ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQHeader node - setting MQMD.expiry value

Post new topic  Reply to topic
 MQHeader node - setting MQMD.expiry value « View previous topic :: View next topic » 
Author Message
zpat
PostPosted: Thu Jul 16, 2009 5:24 am    Post subject: MQHeader node - setting MQMD.expiry value Reply with quote

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
View user's profile Send private message
WMBDEV1
PostPosted: Thu Jul 16, 2009 5:44 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

What version and fixpack are you on? Can you try it on 6.1.0.4?

I noticed this but dont know if its related......
http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg1IC59320
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Jul 16, 2009 6:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQHeader node - setting MQMD.expiry value
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.