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 » IBM MQ Java / JMS » Java compute node: java can not create HTTPRequestHeader

Post new topic  Reply to topic
 Java compute node: java can not create HTTPRequestHeader « View previous topic :: View next topic » 
Author Message
steveneo
PostPosted: Tue Feb 13, 2007 7:20 pm    Post subject: Java compute node: java can not create HTTPRequestHeader Reply with quote

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
View user's profile Send private message
steveneo
PostPosted: Sun Feb 18, 2007 2:39 pm    Post subject: I fix this problem Reply with quote

Newbie

Joined: 13 Feb 2007
Posts: 3

just use createElementxxx(MbElement.TYPE_NAME_VALUE,"yournodename",null);
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Mon Mar 12, 2007 1:27 am    Post subject: Re: Java compute node: java can not create HTTPRequestHeader Reply with quote

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

MQSeries.net Forum Index » IBM MQ Java / JMS » Java compute node: java can not create HTTPRequestHeader
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.