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 » Null pointer while creating JMS Message

Post new topic  Reply to topic
 Null pointer while creating JMS Message « View previous topic :: View next topic » 
Author Message
Sosed
PostPosted: Tue Feb 25, 2014 3:49 am    Post subject: Null pointer while creating JMS Message Reply with quote

Apprentice

Joined: 24 Aug 2012
Posts: 43

Hello.

I use WMB 8.0.0.2 on RHEL.
WMQ is 7.5.0.0.

I encountered an error at JMSOutputNode:
Code:
RecoverableException
   File:CHARACTER:/build/slot1/S800_P/src/DataFlowEngine/PluginInterface/ImbJniNode.cpp
   Line:INTEGER:1267
   Function:CHARACTER:ImbJniNode::evaluate
   Type:CHARACTER:ComIbmJMSClientOutputNode
   Name:CHARACTER:<flow name>#FCMComposite_1_14.<subflow name>#FCMComposite_1_3
   Label:CHARACTER:<flow name>.JMSOutput
   Catalog:CHARACTER:BIPmsgs
   Severity:INTEGER:3
   Number:INTEGER:2230
   Text:CHARACTER:Caught exception and rethrowing
   RecoverableException
         File:CHARACTER:JMSClientErrors.java
         Line:INTEGER:694
         Function:CHARACTER:JMSClientOutputNode::createOutputMessage()
         Type:CHARACTER:
         Name:CHARACTER:
         Label:CHARACTER:
         Catalog:CHARACTER:BIPmsgs
         Severity:INTEGER:3
         Number:INTEGER:4362
         Text:CHARACTER:Null pointer while creating JMS Message
         Insert
               Type:INTEGER:5
               Text:CHARACTER:Broker '<value>'; Execution Group '<value>'; Message Flow '<value>'; Node 'JMSOutput::ComIbmJMSClientOutputNode'  Exception Message ' '; Exception Stack 'java.lang.NullPointerException at com.ibm.broker.jmsclientnodes.JMSClientMessageFormatterMbToJms.createJMSMessage(JMSClientMessageFormatterMbToJms.java:753) at com.ibm.broker.jmsclientnodes.JMSClientOutputNode.createOutputMessage(JMSClientOutputNode.java:967) at com.ibm.broker.jmsclientnodes.JMSClientOutputNode.evaluate(JMSClientOutputNode.java:467) at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1480) at com.ibm.broker.plugin.MbOutputTerminal._propagate(Native Method) at com.ibm.broker.plugin.MbOutputTerminal.propagate(MbOutputTerminal.java:133) at com.ibm.broker.plugin.MbOutputTerminal.propagate(MbOutputTerminal.java:88) at com.ibm.broker.transportheadernodes.jms.JMSHeaderNode.evaluate(JMSHeaderNode.java:254) at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1480) '
         Insert
               Type:INTEGER:5
               Text:CHARACTER:


My message flow is:
Quote:
Timeout Notification (creates message once a day) -> ESQL node (create message body in XMLNSC domain) -> JMS Header node (JMS Header option = "Add header") -> ESQL node (fill up log info at Application_Properties) and propagating to log and out terminals ->(to log terminal)-> JMS Output node (sends messages to log queue) -> returns to ESQL and propagate message to out terminal ->(to out terminal)-> JMS Output node (sends messages to destination)

Error comes out at first JMSOutput node.

My JMS Header is:
Code:
JMSTransport
   Transport_Folders
         Message_MetaData
               PayloadType
                     CHARACTER:jms_text
               MessagePersistence
                     CHARACTER:Non_Persistent
         Header_Values
               JMSDestination
                     CHARACTER:
               JMSDeliveryMode
                     dt:CHARACTER:i4
                     INTEGER:2
               JMSExpiration
                     dt:CHARACTER:r8
                     INTEGER:0
               JMSPriority
                     dt:CHARACTER:i4
                     INTEGER:4
               JMSTimestamp
                     dt:CHARACTER:i8
                     INTEGER:1393326709399
               JMSMessageID
                     CHARACTER:222
               JMSCorrelationID
                     CHARACTER:0000000000000000
               JMSReplyTo
                     CHARACTER:
               JMSType
                     CHARACTER:
               JMSRedelivered
                     dt:CHARACTER:boolean
                     INTEGER:1
         Application_Properties
               EventDate
                     CHARACTER:2014-02-25 15:11:50.697149
               OperationId
                     CHARACTER:9db9f5c2-9e0d-11e3-b27c-0a2082870000
               RequestId
                     CHARACTER:9db9f16c-9e0d-11e3-b27c-0a2082870000               
               Type
                     CHARACTER:REQUEST
         JMS_Provider_Properties
         Standard_Properties


Have I missed any mandatory property at JMS Header?
can any one help to resolve this?

Thank in advance.
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Feb 25, 2014 4:31 am    Post subject: Re: Null pointer while creating JMS Message Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

I know of the rule, that there shouldn't be null pointer exceptions (in Java) in production code.

So it's probably something IBM could have a look into... on how to fix it and change the exception text into something more meaningful.

Elsewise it is very likely that you are leaving a (mandatory) field empty.

To fix it, you may (just for testing) fill in all fields you see (and which are empty), then test "if fixed" and then try to focus down (onto the values actually needed).

enjoy (JMS)
_________________
Just use REFERENCEs
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 » Null pointer while creating JMS Message
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.