Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-8156

AMQ 7.11.1 doesn't work properly with a SecurityManager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • AMQ 7.11.1.GA
    • broker-core

      When moving to AMQ 7.11.1 we are getting the following error:

      java.lang.NoClassDefFoundError: Could not initialize class org.apache.activemq.artemis.core.client.ActiveMQClientMessageBundle
        at org.apache.activemq.artemis@2.28.0.redhat-00004//org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.returnBlocking(ChannelImpl.java:233)
        at org.apache.activemq.artemis@2.28.0.redhat-00004//org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.returnBlocking(ChannelImpl.java:225)
        at org.apache.activemq.artemis@2.28.0.redhat-00004//org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQClientProtocolManager.stop(ActiveMQClientProtocolManager.java:215)
        at org.apache.activemq.artemis@2.28.0.redhat-00004//org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.interruptConnectAndCloseAllSessions(ClientSessionFactoryImpl.java:473)
        at org.apache.activemq.artemis@2.28.0.redhat-00004//org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.close(ClientSessionFactoryImpl.java:512)
        at org.apache.activemq.artemis@2.28.0.redhat-00004//org.apache.activemq.artemis.jms.client.ActiveMQConnection.close(ActiveMQConnection.java:342)
        at deployment.env-entry-test.jar//org.jboss.as.test.integration.ee.injection.resource.enventry.EnvEntryTestCase.testEnvEntriesMDB(EnvEntryTestCase.j

      This is due to https://github.com/apache/activemq-artemis/blob/main/artemis-commons/src/main/java/org/apache/activemq/artemis/logs/BundleFactory.java#L31 which should use a PriviledgeAction as in https://github.com/jboss-logging/jboss-logging/blob/main/src/main/java/org/jboss/logging/Messages.java.

            rhn-support-jbertram Justin Bertram
            ehugonne1@redhat.com Emmanuel Hugonnet
            Roman Vais Roman Vais
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: