|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQHeader node - setting MQMD.expiry value |
« View previous topic :: View next topic » |
Author |
Message
|
zpat |
Posted: Thu Jul 16, 2009 5:24 am Post subject: MQHeader node - setting MQMD.expiry value |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I have a message flow that has MQinput node followed by MQHeader node and MQOutput node.
In the MQHeader node I want to modify the MQMD.Expiry to a specific value so I selected the properties tab and edit for the Expiry and entered the following Xpath expression
$Root/MQMD/Expiry=12345
Simple enough? But when the message flow runs the following error occurs:
Quote: |
The method ''evaluate'' in Java node ''Set MQMD.Expiry'' has thrown the following exception: 'java.lang.NullPointerException'.
The method ''evaluate'' of the Java node has thrown an exception. Examine previous error messages for details of the cause of the problem.
This error is generated by the Java node API. It can occur in a Java Compute node or a Java user-defined node. If the node is a user-defined node, contact the node provider for further details. |
Quote: |
Java exception: ''java.lang.NullPointerException''; thrown from class name: ''com.ibm.broker.transportheadernodes.mq.MQHeaderNode'', method name: ''convertToDataType'', file: ''MQHeaderNode.java'', line: '2825'
The message contains that data associated with a Java exception.
No user action required. |
Is this the correct way to use Xpath or is this a bug in WMB? |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Thu Jul 16, 2009 5:44 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
|
Back to top |
|
 |
zpat |
Posted: Thu Jul 16, 2009 6:15 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Sorry, I should have stated that I tried it on WMB 6.1.0.3, Windows XP.
The incoming message has no expiry value (i.e. non-expiring or -1).
The answer is just to set the value
12345
In the Xpath expression, seems to work then! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|