Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
5.5.1
-
None
-
None
-
Mac / Windows
Description
When creating a simple message using ActiveMQ and trying to receive that same message. We get the following stacktrace when trying to retrieve JMSXProducerTXID.
[SEVERE] Thread death for Transacted Thread caused by For input string: "TX:ID:ID-PC12010.local-59923-1369316134520-2:10:1" java.lang.NumberFormatException: For input string: "TX:ID:ID-PC12010.local-59923-1369316134520-2:10:1" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:449) at java.lang.Integer.<init>(Integer.java:660) at org.apache.activemq.filter.PropertyExpression$14.evaluate(PropertyExpression.java:147) at org.apache.activemq.filter.PropertyExpression.evaluate(PropertyExpression.java:194) at org.apache.activemq.command.ActiveMQMessage.getObjectProperty(ActiveMQMessage.java:509) at org.apache.activemq.command.ActiveMQMessage.getStringProperty(ActiveMQMessage.java:604) at com.id.scriptura.documentflow.standard.impl.jms.JMSMessageConsumerStep$TransactedMessageReceiver.run(Unknown Source) at java.lang.Thread.run(Thread.java:680)
This property is set by ActiveMQ and NOT by our application. The code for retrieving is like this:
msg.getStringProperty(JMSXProducerTXID)