- 17.9K All Categories
- 3.3K Industry Applications
- 3.3K Intelligent Advisor
- 60 Insurance
- 534.5K On-Premises Infrastructure
- 137.7K Analytics Software
- 38.5K Application Development Software
- 5.3K Cloud Platform
- 109.1K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 70.8K Infrastructure Software
- 105.1K Integration
- 41.5K Security Software
NullPointerException in ActiveMQ due to Oracle AQ setting message headers to null
I am sending messages via Oracle AQ on an Oracle Database 18c Enterprise Edition Release 184.108.40.206.0. An application server (Wildfly 18) running ActiveMQ (Apache Artemis 2.10.1) is set up consuming all the messages from the Oracel AQ.
While processing the messages I hit a NullPointerException when the message header JMSXGroupSeq is handled. Further investigations show that Oracle AQ is setting some headers to null by default for new messages. Here is a list of JMS headers of one of the messages I received:
Is this a desired behaviour? I would prefer not having some headers set automatically.
Additionally: Section 3.5.9 of both the JMS 2.0 & 1.1 specifications indicate that the JMSXGroupSeq property is of type int. An int is a primitive type and therefore should not be null. Based on this, using null is not compliant with the JMS specification.
Thanks for the support and kind regards