|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java compute node: java can not create HTTPRequestHeader |
« View previous topic :: View next topic » |
Author |
Message
|
steveneo |
Posted: Tue Feb 13, 2007 7:20 pm Post subject: Java compute node: java can not create HTTPRequestHeader |
|
|
Newbie
Joined: 13 Feb 2007 Posts: 3
|
Hi, I can create "MQHMD" element in java compute node class. But it fails on a HTTPReqeustHeader, for example:
....
Code: |
MbMessage inMessage = contact admin.getMessage();
MbMessage outMessage = new MbMessage(inMessage);
MbMessageAssembly outAssembly = new MbMessageAssembly(contact admin,
outMessage);
MbElement outRoot = outMessage.getRootElement();
MbElement httpHeader = outRoot.createElementAsFirstChild("HTTPInputHeader"); |
...
The last sentence will cause following errors:
Code: |
Exception. BIP2230E: Error detected whilst processing a message in node 'ConnectStellentJ.JavaCompute'. : F:\build\S600_P\src\DataFlowEngine\PluginInterface\ImbJniNode.cpp: 922: ImbJniNode::evaluate: ComIbmJniNode: ConnectStellentJ#FCMComposite_1_2
BIP2310E: The broker is not capable of handling message of type ''HTTPREQUESTHEADER'' on behalf of node 'ConnectStellentJ.JavaCompute'. : F:\build\S600_P\src\DataFlowEngine\ImbMessageGroup.cpp: 173: ImbMessageGroup::createParser: ComIbmJniNode: ConnectStellentJ#FCMComposite_1_2 |
I log the excpetion:
Code: |
<com.ibm.broker.plugin.MbRecoverableException class:JNI method:ImbMessageGroup::createParser source:BIPv600 key:2310 >
at com.ibm.broker.plugin.MbElement._createElementAsFirstChildUsingParser(Native Method)
at com.ibm.broker.plugin.MbElement.createElementAsFirstChild(MbElement.java:689)
at com.qbe.stellent.ConnectStellentJ_JavaCompute.evaluate(ConnectStellentJ_JavaCompute.java:52)
at com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.evaluate(MbRuntimeJavaComputeNode.java:146)
at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1222) |
It seems Java compute note can not find a suitable parser for HTTPReqeustHeader. Any help? Thanks in advance! |
|
Back to top |
|
 |
steveneo |
Posted: Sun Feb 18, 2007 2:39 pm Post subject: I fix this problem |
|
|
Newbie
Joined: 13 Feb 2007 Posts: 3
|
just use createElementxxx(MbElement.TYPE_NAME_VALUE,"yournodename",null); |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Mon Mar 12, 2007 1:27 am Post subject: Re: Java compute node: java can not create HTTPRequestHeader |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
You can try something like this ...
MbElement properties= root.getFirstElementByPath("/Properties");
MbElement domainHTTPRequestHeader= properties.createElementAfter(MbElement.TYPE_NAME,"HTTPRequestHeader",null);
HTTPRequestHeader has to be between Properties and body.
Marcin |
|
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
|
|
|
|