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

ActiveMQArtemis on Openshift: custom plugin results in java.lang.NoSuchMethodException: Unknown property 'name' on class

XMLWordPrintable

      With multiple plugins defined:

      apiVersion: broker.amq.io/v1beta1
      kind: ActiveMQArtemis
      metadata:
        name: broker
      spec:
        deploymentPlan:
          size: 1
          persistenceEnabled: true
          managementRBACEnabled: true
          image: placeholder
          extraMounts:
            secrets:
            - "myplugin"
            - "newlog4j-logging-config"
        brokerProperties:
         - brokerPlugins.\"org.apache.activemq.artemis.core.server.plugin.impl.LoggingActiveMQServerPlugin.class\".init=LOG_ALL_EVENTS=true,LOG_CONNECTION_EVENTS=true,LOG_SESSION_EVENTS=true,LOG_CONSUMER_EVENTS=true,LOG_DELIVERING_EVENTS=true,LOG_SENDING_EVENTS=true,LOG_INTERNAL_EVENTS=true
         - brokerPlugins.\"org.apache.activemq.artemis.plugin.message.NOOP.class\".init=
        console:
          expose: true
        acceptors:
        - name: my
          expose: false
          port: 61617
          protocols: 'amqp,core,openwire'
          supportAdvisory: false
          suppressInternalManagementObjects: false
        env:
        - name: ARTEMIS_EXTRA_LIBS
          value: /amq/extra/secrets/myplugin
      

      The ActiveMQArtemis describe output shows:

      Message:               some properties from broker-props resulted in error on pod broker-ss-0 : reasons: map[broker.properties:[{"value":"brokerPlugins.\"org.apache.activemq.artemis.plugin.message.NOOP.class\".init=","reason":"java.lang.NoSuchMethodException: Unknown property 'name' on class 'class org.apache.activemq.artemis.core.server.plugin.impl.LoggingActiveMQServerPlugin'"}]]
      

              dbruscin Domenico Francesco Bruscino
              rhn-support-shiggs Stephen Higgs
              Michal Toth Michal Toth
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: