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 » Error in javacompute node code

Post new topic  Reply to topic
 Error in javacompute node code « View previous topic :: View next topic » 
Author Message
Vijji
PostPosted: Thu Jul 13, 2006 9:10 am    Post subject: Error in javacompute node code Reply with quote

Voyager

Joined: 30 Aug 2005
Posts: 83

Hi,
In my present flow I want to create an output message using java compute node.My flow is like MQInput --->JavaCompute--->MQoutput.

The code which I am using is as follows.


MbElement rootelement = inMessage.getRootElement();
setAttribute("firstParserClassName", "XML");
MbElement mbelement1 = rootelement.getFirstElementByPath("/XML/Data");
MbElement mbelement2 = mbelement1.createElementAsFirstChild(MbElement.TYPE_NAME,"Name","XXX");
MbElement mbelement3 = mbelement2.createElementAsLastChild(MbElement.TYPE_NAME,"Id","123");

I want the output as <Data><Name>XXX</Name><Id>123</Id><Data>.
But when I run the flow I am getting the error as,

Message
Properties
MQMD
XML
Data
mir
LocalEnvironment
Environment
ExceptionList
RecoverableException
File = :\\build\\S600_P\\src\\DataFlowEngine\\ImbDataFlowNode.cpp
Line = 616
Function = ImbDataFlowNode::createExceptionList
Type = ComIbmMQInputNode
Name = SampleFlow1#FCMComposite_1_1
Label = SampleFlow1.MQInput
Catalog = BIPv600
Severity = 3
Number = 2230
Text = Node throwing exception
RecoverableException
File=F:\\build\\S600_P\\src\\DataFlowEngine\\PluginInterface\\ImbJniNode.cpp
Line = 922
Function = ImbJniNode::evaluate
Type = ComIbmJniNode
Name = SampleFlow1#FCMComposite_1_4
Label = SampleFlow1.JavaCompute
Catalog = BIPv600
Severity = 3
Number = 2230
Text = Caught exception and rethrowing
RecoverableException
File = F:\\build\\S600_P\\src\\DataFlowEngine\\PluginInterface\\com_ibm_broker_plugin_CMbService.cpp
Line = 1629
Function = ImbJavaExceptionUtils::throwableToNativeException
Type =
Name =
Label =
Catalog = BIPv600
Severity = 3
Number = 4367
Text = Unhandled exception in plugin method.
Insert
Type = 5
Text = evaluate
Insert
Type = 5
Text = JavaCompute
Insert
Type = 5
Text = <com.ibm.broker.plugin.MbReadOnlyMessageException RecoverableException
File=F:\\build\\S600_P\\src\\DataFlowEngine\\PluginInterface\\com_ibm_broker_plugin_CMbService.cpp
Line = 1647
Function = ImbJavaExceptionUtils::throwableToNativeException
Type =
Name =
Label =
Catalog = BIPv600
Severity = 3
Number = 4395
Text = Unhandled exception in plugin method
Insert
Type = 5
Text = com.ibm.broker.plugin.MbReadOnlyMessageException
Insert
Type = 5
Text = com.ibm.broker.plugin.MbElement
Insert
Type = 5
Text = createElementAsLastChild
Insert
Type = 5
Text = MbElement.java
Insert
Type = 2
Text = 853


Thanx in advance,
Vijji.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jul 13, 2006 2:11 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981



http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac30350_.htm


_________________
I am *not* the model of the modern major general.
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 » Error in javacompute node code
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.