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 » Throwing Error : ImbSyntaxElement::attachAsLastChild

Post new topic  Reply to topic
 Throwing Error : ImbSyntaxElement::attachAsLastChild « View previous topic :: View next topic » 
Author Message
phaniIIB
PostPosted: Mon May 09, 2016 4:44 am    Post subject: Throwing Error : ImbSyntaxElement::attachAsLastChild Reply with quote

Acolyte

Joined: 28 Jul 2015
Posts: 51

Hi all,

I am trying a simple code of extracting the input using evaluateXPath and propagating to the ouput. It throws the below error. Can anyone help.

com.ibm.broker.plugin.MbRecoverableException class:JNI method:ImbSyntaxElement::attachAsLastChild source:BIPmsgs key:2332

Code:
MbMessage inMessage=contact admin.getMessage();
      MbElement root=inMessage.getRootElement();
      List<MbElement> messages=new ArrayList<MbElement>();
      messages= (List<MbElement>) root.evaluateXPath("/input/JSON/Data");
      System.out.println("The size of the list is : "+messages.size());
      for(int i=0;i<messages.size();i++){
         MbMessage outputMessage = new MbMessage();
         outputMessage.getRootElement().addAsLastChild(messages.get(i));
         MbMessageAssembly outAssembly=new MbMessageAssembly(contact admin, outputMessage);
         out.propagate(outAssembly);
      }
         
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon May 09, 2016 6:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What's the full exception message?

What's the documentation say on that bip code?

What does a trace show?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
timber
PostPosted: Mon May 09, 2016 6:47 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

If your flow is simply routing the message, why is your code even looking at the contents of it?

Assuming that you do have a good reason, why have you chosen to use the Java API, and not something simpler?
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 » Throwing Error : ImbSyntaxElement::attachAsLastChild
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.