Hi,

I tried building Flink 1.13 with the Scala 2.12 profile and running some of
the examples with Java 11, without encountering the issue you describe
(with or without HA). Can you give more details on how exactly you built
Flink (ideally the full command), and how you ran the job?

Best,
Nico

On Thu, Oct 28, 2021 at 10:42 AM L. C. Hsieh <vii...@apache.org> wrote:

> Hi Flink developers,
>
> I encountered a weird error like follows. It only happens when I build
> Flink with Scala 2.12 profile and run with Java 11. No such error for Scala
> 2.11 + Java 8/11.
>
> Just search for relative info, but don't find any useful. Do you have any
> idea about this? Thanks.
>
> java.lang.NoClassDefFoundError: javax/management/remote/rmi/RMIServerImpl
>         at
> org.apache.flink.runtime.management.JMXService.getPort(JMXService.java:76)
> ~[flink-dist_2.12-1.13-SNAPSHOT.jar:1.13-SNAPSHOT]
>         at
> org.apache.flink.runtime.taskexecutor.TaskExecutor.connectToResourceManager(TaskExecutor.java:1300)
> ~[flink-dist_2.12-1.13-SNAPSHOT.jar:1.13-SNAPSHOT]
>         at
> org.apache.flink.runtime.taskexecutor.TaskExecutor.tryConnectToResourceManager(TaskExecutor.java:1284)
> ~[flink-dist_2.12-1.13-SNAPSHOT.jar:1.13-SNAPSHOT]
>         at
> org.apache.flink.runtime.taskexecutor.TaskExecutor.reconnectToResourceManager(TaskExecutor.java:1279)
> ~[flink-dist_2.12-1.13-SNAPSHOT.jar:1.13-SNAPSHOT]
>         at
> org.apache.flink.runtime.taskexecutor.TaskExecutor.notifyOfNewResourceManagerLeader(TaskExecutor.java:1258)
> ~[flink-dist_2.12-1.13-SNAPSHOT.jar:1.13-SNAPSHOT]
>         at
> org.apache.flink.runtime.taskexecutor.TaskExecutor.access$800(TaskExecutor.java:181)
> ~[flink-dist_2.12-1.13-SNAPSHOT.jar:1.13-SNAPSHOT]
>         at
> org.apache.flink.runtime.taskexecutor.TaskExecutor$ResourceManagerLeaderListener.lambda$notifyLeaderAddress$0(TaskExecutor.java:2150)
> ~[flink-dist_2.12-1.13-SNAPSHOT.jar:1.13-SNAPSHOT]
>

Reply via email to