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

ActiveMQArtemis on Openshift: custom plugin with no parameters results in "java.lang.IllegalArgumentException: map value not in k=v format"

XMLWordPrintable

      A custom plugin without parameters, defined in:

      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.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
      

      Results in the following message via `oc describe ActiveMQArtemis`:

          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.IllegalArgumentException: map value  not in k=v format"}]]
      

      In this case, I did not observe loss of functionality in the plugin.

            gtully@redhat.com Gary Tully
            rhn-support-shiggs Stephen Higgs
            Michal Toth Michal Toth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: