Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7449

Camel Subscribing to messages published by non-camel producers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.13.0
    • Fix Version/s: 2.12.4, 2.13.2, 2.14.0
    • Component/s: camel-jms
    • Labels:
      None
    • Environment:

      Redhat Linux

    • Estimated Complexity:
      Unknown

      Description

      I have come across an issue with Camel 2.13 when subscribing to a qpid messages published by a non-camel producers. The error happens with both Qpid C++ producer and also a python producer.

      An Null pointer exception is thrown in the JmsBinding.extractHeadersFromJMS on line 173.

      map.put("JMSXUserID", jmsMessage.getStringProperty("JMSXUserID"));

      JMSXUserID has not been set by the publisher as it is a non-JMS publisher.

      java.lang.NullPointerException
      at java.lang.String.<init>(String.java:593)
      at org.apache.qpid.client.message.AMQMessageDelegate_0_10.getStringProperty(AMQMessageDelegate_0_10.java:735)
      at org.apache.qpid.client.message.AbstractJMSMessage.getStringProperty(AbstractJMSMessage.java.225)
      at org.apache.camel.component.jms.JmsBinding.extractHeadersFromJms(JmsBinding.java:173)
      at org.apache.camel.component.jms.JmsMessage.populateInitialHeaders(JmsMessage.java:222)

      Full stack trace not show as it is on a different system

      I can see a change was made to JmsBinding.java in Camel 2.12.2 to fix a ActiveMQ issue. This is what has caused the issue. The system is being upgraded from Camel 2.9.2 to Camel 2.13.1 and this issue has been experienced.

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              JamesGreenwood James Greenwood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: