qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Ivanov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPID-8355) BrokerAttributeInjector can't load HotSpotDiagnosticMXBean on Eclipse J9
Date Mon, 05 Aug 2019 10:00:01 GMT
Andrei Ivanov created QPID-8355:
-----------------------------------

             Summary: BrokerAttributeInjector can't load HotSpotDiagnosticMXBean on Eclipse
J9
                 Key: QPID-8355
                 URL: https://issues.apache.org/jira/browse/QPID-8355
             Project: Qpid
          Issue Type: Bug
    Affects Versions: qpid-java-broker-7.1.4
         Environment: openj9-0.15.1
            Reporter: Andrei Ivanov


Switching JVM to Eclipse J9 triggered this problem:

 
{noformat}
java.util.ServiceConfigurationError: org.apache.qpid.server.plugin.ConfiguredObjectAttributeInjector:
Provider org.apache.qpid.server.model.BrokerAttributeInjector could not be instantiated
    at java.util.ServiceLoader.fail(ServiceLoader.java:232)
    at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
    at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
    at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
    at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
    at org.apache.qpid.server.plugin.QpidServiceLoader.instancesOf(QpidServiceLoader.java:73)
    at org.apache.qpid.server.plugin.QpidServiceLoader.instancesOf(QpidServiceLoader.java:43)
    at org.apache.qpid.server.model.SystemConfigBootstrapModel.<init>(SystemConfigBootstrapModel.java:49)
    at org.apache.qpid.server.model.SystemConfigBootstrapModel.<clinit>(SystemConfigBootstrapModel.java:36)
    at org.apache.qpid.server.model.AbstractSystemConfig.<init>(AbstractSystemConfig.java:128)
    at org.apache.qpid.server.store.MemorySystemConfigImpl.<init>(MemorySystemConfigImpl.java:46)
    at org.apache.qpid.server.store.MemorySystemConfigImplFactory.newInstance(MemorySystemConfigImplFactory.java:51)
    at org.apache.qpid.server.store.MemorySystemConfigImplFactory.newInstance(MemorySystemConfigImplFactory.java:32)
    at org.apache.qpid.server.SystemLauncher.startupImpl(SystemLauncher.java:258)
    at org.apache.qpid.server.SystemLauncher.access$200(SystemLauncher.java:65)
    at org.apache.qpid.server.SystemLauncher$1.run(SystemLauncher.java:217)
    at java.security.AccessController.doPrivileged(AccessController.java:770)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.qpid.server.SystemLauncher.startup(SystemLauncher.java:208)
Caused by: java.lang.IllegalArgumentException: com.sun.management.HotSpotDiagnosticMXBean
is not a valid MXBean interface.
    at com.ibm.java.lang.management.internal.ManagementUtils.checkSupported(ManagementUtils.java:647)
    at com.ibm.java.lang.management.internal.ManagementUtils.checkSupportedSingleton(ManagementUtils.java:652)
    at com.ibm.java.lang.management.internal.ManagementUtils.getPlatformMXBean(ManagementUtils.java:675)
    at java.lang.management.ManagementFactory.getPlatformMXBean(ManagementFactory.java:331)
    at org.apache.qpid.server.model.BrokerAttributeInjector.<init>(BrokerAttributeInjector.java:71)
    at java.lang.J9VMInternals.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1848)
    at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380){noformat}
 

I see it was almost fixed in QPID-7081, but, AFAIS, {{ManagementFactory.getPlatformMXBean}}
can throw an {{IllegalArgumentException}} if the bean is not present.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message