Author |
Message
|
alokamit72 |
Posted: Tue Jun 07, 2011 3:47 am Post subject: Method getValueAsString() not found from MbElement class |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Jun 07, 2011 4:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
alokamit72 |
Posted: Wed Jun 08, 2011 1:07 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Jun 08, 2011 2:32 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
WHAT is saying that getValueAsString is undefined?
The Toolkit?
Or the Runtime? |
|
Back to top |
|
 |
jlaisbett |
Posted: Wed Jun 08, 2011 2:41 am Post subject: |
|
|
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 |
|
 |
alokamit72 |
Posted: Fri Jun 10, 2011 1:41 am Post subject: |
|
|
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 |
|
 |
|