You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alex Rudyy (Jira)" <ji...@apache.org> on 2019/10/03 10:59:00 UTC

[jira] [Updated] (QPID-8355) [Broker-J] BrokerAttributeInjector can't load HotSpotDiagnosticMXBean on Eclipse J9

     [ https://issues.apache.org/jira/browse/QPID-8355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Rudyy updated QPID-8355:
-----------------------------
    Summary: [Broker-J] BrokerAttributeInjector can't load HotSpotDiagnosticMXBean on Eclipse J9  (was: BrokerAttributeInjector can't load HotSpotDiagnosticMXBean on Eclipse J9)

> [Broker-J] 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
>          Components: Broker-J
>    Affects Versions: qpid-java-broker-7.1.4
>         Environment: openj9-0.15.1
>            Reporter: Andrei Ivanov
>            Assignee: Alex Rudyy
>            Priority: Major
>             Fix For: qpid-java-broker-8.0.0, qpid-java-broker-7.0.8, qpid-java-broker-7.1.5
>
>
> 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
(v8.3.4#803005)

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