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 » Method getValueAsString() not found from MbElement class

Post new topic  Reply to topic
 Method getValueAsString() not found from MbElement class « View previous topic :: View next topic » 
Author Message
alokamit72
PostPosted: Tue Jun 07, 2011 3:47 am    Post subject: Method getValueAsString() not found from MbElement class Reply with quote

Newbie

Joined: 02 Jun 2011
Posts: 8

Hi,

I am facing one issue. In my message flow I am using JCN(Java compute node). In a java class I have impoted MbElement and created an object of this class and trying to retrive all the method of MbElement.
I am able to see all the method except getValueAsString(). i have installed fix pac 9.But still its giving getValueAsString() is undefined for MbElement.

Please help me out on this.


Thanx
Amit
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 07, 2011 4:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Do you mean that you can't get the Toolkit to provide you with code assistance in calling this method?

or that when you write the code to call this method, and deploy your Java code and test it, then the method doesn't function or throws an exception indicating that the method doesn't exist?

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.plugin.doc/com/ibm/broker/plugin/MbElement.html
Back to top
View user's profile Send private message
alokamit72
PostPosted: Wed Jun 08, 2011 1:07 am    Post subject: Reply with quote

Newbie

Joined: 02 Jun 2011
Posts: 8

Hi,

When I am writing the code like

import com.ibm.broker.plugin.MbElement;
MbElement e = null;

Storing some value in e.

and here if i try to get
e.getValueAsString(); its giving getValueAsString() is undefined for the type MbElement

Regards
Amit
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 08, 2011 2:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

WHAT is saying that getValueAsString is undefined?

The Toolkit?

Or the Runtime?
Back to top
View user's profile Send private message
jlaisbett
PostPosted: Wed Jun 08, 2011 2:41 am    Post subject: Reply with quote

Apprentice

Joined: 27 Nov 2009
Posts: 39

It's related to the fact that the toolkit uses a different jar than the runtime and the toolkit version is missing that method, although I thought that was only an issue with earlier fix packs.

What's the classpath entry being used for that java project? maybe it's still pointing at an old version of the jar.
Back to top
View user's profile Send private message
alokamit72
PostPosted: Fri Jun 10, 2011 1:41 am    Post subject: Reply with quote

Newbie

Joined: 02 Jun 2011
Posts: 8

Hi ,

The issue has been resolved.I have added new version of jar called jplugin2 .jar in java build path.Earlier I had older version of jplugin2 .jar.

Thank you all for the help.

Regards
Amit
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 » Method getValueAsString() not found from MbElement class
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.