qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-8355) BrokerAttributeInjector can't load HotSpotDiagnosticMXBean on Eclipse J9
Date Mon, 12 Aug 2019 08:30:00 GMT

    [ https://issues.apache.org/jira/browse/QPID-8355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16904972#comment-16904972
] 

ASF subversion and git services commented on QPID-8355:
-------------------------------------------------------

Commit c373c84fe8e6a0e74ea2ec56e8aee9a3be2747f0 in qpid-broker-j's branch refs/heads/7.0.x
from Alex Rudyy
[ https://gitbox.apache.org/repos/asf?p=qpid-broker-j.git;h=c373c84 ]

QPID-8355: [Broker-J] Improve exception handling on instantiation of JMX MBeans

(cherry picked from commit 3caf52ae0bac0a8008434dfb62478e5689d3a499)


> 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
>            Priority: Major
>
> 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