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 » Problem in accessing List using XPATH

Post new topic  Reply to topic Goto page Previous  1, 2
 Problem in accessing List using XPATH « View previous topic :: View next topic » 
Author Message
vishnurajnr
PostPosted: Mon Mar 05, 2012 6:54 am    Post subject: Reply with quote

Centurion

Joined: 08 Aug 2011
Posts: 134
Location: Trivandrum

Just confirming you are generating inputBody like below:

Code:
MbMessage outMessage = new MbMessage(inMessage);
   try {
    MbElement outRoot = outMessage.getRootElement();
    MbElement inputBody = outRoot.getLastChild();
         .....
         ...


Apart from that I can not find any issue with your code as the same is iterating properly when I tested!
Back to top
View user's profile Send private message Visit poster's website
kimbert
PostPosted: Mon Mar 05, 2012 7:18 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
God knows why it is not working!
Yes, I believe so.
Quote:
the control is entering to the if block satisfying "( queryResult != null )" but while executing the for loop statement the control skips the whole loop.
Sounds like the result set is valid but empty.
Quote:
It's not throwing any exception either.
But it did earlier. You must have changed something.
Back to top
View user's profile Send private message
SDS
PostPosted: Mon Mar 05, 2012 7:59 pm    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2011
Posts: 47

Hi Kimbert,

Yes it was throwing iteration error previously but it got resolved after importing "java.util.List".
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problem in accessing List using XPATH
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.