Projects tigase _server server-core Issues #1321
JMX monitoring doesn't work with latest JDK17 (#1321)
wojciech.kapcia@tigase.net opened 3 years ago
[2022-05-02 14:31:18:316] [SEVERE  ] [                  main ] MonitoringBean$MonitorBeanAbstract.beforeUnregister(): Cound not stop monitor: tigase.management.MonitoringBean.JMXMonitor
javax.management.InstanceNotFoundException: system:name=rmiconnector
	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(Unknown Source)
	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(Unknown Source)
	at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(Unknown Source)
	at tigase.management.MonitoringBean$JMXMonitor.stop(MonitoringBean.java:155)
	at tigase.management.MonitoringBean$MonitorBeanAbstract.beforeUnregister(MonitoringBean.java:178)
	at tigase.kernel.core.Kernel.fireUnregisterAware(Kernel.java:1142)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:143)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1259)
	at tigase.kernel.core.Kernel.injectDependency(Kernel.java:866)
	at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1538)
	at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:565)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:128)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1259)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
	at tigase.kernel.core.Kernel.getInstance(Kernel.java:303)
	at tigase.server.Bootstrap.start(Bootstrap.java:327)
	at tigase.server.XMPPServer.start(XMPPServer.java:196)
	at tigase.server.XMPPServer.main(XMPPServer.java:149)

[2022-05-02 14:31:18:415] [SEVERE  ] [                  main ] ThreadExceptionHandler.uncaughtException(): Uncaught thread: "main" exception
java.lang.NoClassDefFoundError: java/rmi/registry/LocateRegistry
	at tigase.management.MonitoringBean$JMXMonitor.start(MonitoringBean.java:129)
	at tigase.management.MonitoringBean$MonitorBeanAbstract.initialize(MonitoringBean.java:187)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:136)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1259)
	at tigase.kernel.core.Kernel.injectDependency(Kernel.java:866)
	at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1538)
	at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:565)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:128)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1259)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
	at tigase.kernel.core.Kernel.getInstance(Kernel.java:303)
	at tigase.server.Bootstrap.start(Bootstrap.java:327)
	at tigase.server.XMPPServer.start(XMPPServer.java:196)
	at tigase.server.XMPPServer.main(XMPPServer.java:149)
Caused by: java.lang.ClassNotFoundException: java.rmi.registry.LocateRegistry
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	... 14 more

(image: "tigase/tigase-xmpp-server:nightly-8.3-2022-04-30")

wojciech.kapcia@tigase.net commented 3 years ago

Issue was caused by the use of jlink. Adding missing rmi-related modules fixed the issue.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.3.0
Spent time
2h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1321
Please wait...
Page is in error, reload to recover