Geert Graat created QPID-8381:
---------------------------------
Summary: Cannot run Qpid Broker-J with Azul Zulu JRE 11
Key: QPID-8381
URL: https://issues.apache.org/jira/browse/QPID-8381
Project: Qpid
Issue Type: Bug
Environment: * Qpid Broker-J 7.1.5
* Java Zulu Community 11.0.4+11 LTS
* Windows 10
Reporter: Geert Graat
Attachments: log.txt
When running the Qpid Java broker with Zulu Community JRE, I get an error on
startup when my configured virtual node is validated. The maximum amount of
runtime memory needs to be computed, and specifically for the Zulu runtime the
class {{com.azul.zing.management.ManagementFactory}} is needed, which is not
part of the Zulu Community. It seems to be part of the (commercial) Zing JVM
from Azul systems.
When using the Oracle JDK, this problem does not occur.
Below is the stacktrace from the log.
{quote}2019-11-20 15:49:10,735 INFO [VirtualHostNode-blueriq-Config]
(o.a.q.s.s.b.StandardEnvironmentFacade) - Creating environment at environment
path C:\Program Files\Blueriq12\tools\qpid\work\blueriq\messages2019-11-20
15:49:10,735 INFO [VirtualHostNode-blueriq-Config]
(o.a.q.s.s.b.StandardEnvironmentFacade) - Creating environment at environment
path C:\Program Files\Blueriq12\tools\qpid\work\blueriq\messages2019-11-20
15:49:10,998 ERROR [VirtualHostNode-blueriq-Config]
(o.a.q.s.m.AbstractConfiguredObject) - Failed to open object with name
'blueriq'. Object will be put into ERROR
state.org.apache.qpid.server.configuration.IllegalConfigurationException:
Cannot open virtual host message store:Could not access Zing management bean.
Make sure -XX:+UseZingMXBeans was specified. at
org.apache.qpid.server.virtualhost.AbstractVirtualHost.validateMessageStoreCreation(AbstractVirtualHost.java:563)
at
org.apache.qpid.server.virtualhost.AbstractVirtualHost.onValidate(AbstractVirtualHost.java:398)
at
org.apache.qpid.server.model.AbstractConfiguredObject.doValidation(AbstractConfiguredObject.java:1205)
at
org.apache.qpid.server.model.AbstractConfiguredObject$1.execute(AbstractConfiguredObject.java:589)
at
org.apache.qpid.server.model.AbstractConfiguredObject$1.execute(AbstractConfiguredObject.java:578)
at
org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:639)
at
org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:632)
at
org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:248)
at
org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper$1.run(TaskExecutorImpl.java:320)
at java.base/java.security.AccessController.doPrivileged(Native Method) at
java.base/javax.security.auth.Subject.doAs(Unknown Source) at
org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper.call(TaskExecutorImpl.java:313)
at
com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
at
com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57)
at
com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at
org.apache.qpid.server.bytebuffer.QpidByteBufferFactory.lambda$null$0(QpidByteBufferFactory.java:464)
at java.base/java.lang.Thread.run(Unknown Source)Caused by:
java.lang.IllegalStateException: Could not access Zing management bean. Make
sure -XX:+UseZingMXBeans was specified. at
com.sleepycat.je.utilint.JVMSystemUtils.getRuntimeMaxMemory(JVMSystemUtils.java:95)
at com.sleepycat.je.dbi.MemoryBudget.calcMaxMemory(MemoryBudget.java:765) at
com.sleepycat.je.dbi.MemoryBudget.<init>(MemoryBudget.java:716) at
com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:598) at
com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:487) at
com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:192) at
com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:267) at
com.sleepycat.je.Environment.<init>(Environment.java:252) at
com.sleepycat.je.Environment.<init>(Environment.java:222) at
org.apache.qpid.server.store.berkeleydb.StandardEnvironmentFacade.<init>(StandardEnvironmentFacade.java:146)
at
org.apache.qpid.server.store.berkeleydb.StandardEnvironmentFacadeFactory.createEnvironmentFacade(StandardEnvironmentFacadeFactory.java:89)
at
org.apache.qpid.server.store.berkeleydb.BDBMessageStore.doOpen(BDBMessageStore.java:57)
at
org.apache.qpid.server.store.berkeleydb.AbstractBDBMessageStore.openMessageStore(AbstractBDBMessageStore.java:131)
at
org.apache.qpid.server.virtualhost.AbstractVirtualHost.validateMessageStoreCreation(AbstractVirtualHost.java:559)
... 18 common frames omittedCaused by: java.lang.ClassNotFoundException:
com.azul.zing.management.ManagementFactory 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) at
java.base/java.lang.Class.forName0(Native Method) at
java.base/java.lang.Class.forName(Unknown Source) at
com.sleepycat.je.utilint.JVMSystemUtils.getRuntimeMaxMemory(JVMSystemUtils.java:81)
... 31 common frames omitted
{quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]