|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error in javacompute node code |
« View previous topic :: View next topic » |
Author |
Message
|
Vijji |
Posted: Thu Jul 13, 2006 9:10 am Post subject: Error in javacompute node code |
|
|
 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 |
|
 |
jefflowrey |
Posted: Thu Jul 13, 2006 2:11 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
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
|
|
|
|