Date: Mon, 29 Aug 2022 13:06:42 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266099] net/activemq: ActiveMQ not working with openjdk8 but requires openjdk11 Message-ID: <bug-266099-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266099 Bug ID: 266099 Summary: net/activemq: ActiveMQ not working with openjdk8 but requires openjdk11 Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: nc@FreeBSD.org Reporter: haemmerle@gmail.com Flags: maintainer-feedback?(nc@FreeBSD.org) Assignee: nc@FreeBSD.org The runtime dependency for net/activemq seems to be openjdk8, but when star= ting the service it simply dies without any logs. When executing the actual run command it tells you that it is compiled with the more recent Java version = 55 (JDK11) (see below). With JDK11 installed everything works smoothly. Tested with the packages (latest) version 5.17.1 on two AMD64 boxes. root@dd:~ # /usr/local/openjdk8/bin/java -server -jar -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=3Dtrue -Djava.util.logging.config.file=3Dlogging.properties -Dcom.sun.management.jmxremote -Dactivemq.classpath=3D/usr/local/etc/active= mq -Dactivemq.conf=3D/usr/local/etc/activemq -Dactivemq.data=3D/var/db/activemq -Dactivemq.logs=3D/var/log/activemq -Dactivemq.home=3D/usr/local/share/acti= vemq -Dactivemq.base=3D/usr/local/share/activemq -Dactivemq.hostname=3Ddeamon /usr/local/share/activemq/bin/activemq.jar start Error: A JNI error has occurred, please check your installation and try aga= in Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/activemq/console/Main has been compiled by a more recent version= of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266099-7788>