16 years ago
XPATH JDOM issue
Hello
I am trying very hard to solve this issue but couldn't, any help is much appreciated.
I am using java code to parse and do some procesing with web service response as i am more comfortable with java than with groovy.
Have included my java classes as a jar file in soapui/bin/ext folder.
I have verified that my method call is sent to jar file by inserting write to file statements.
The issue is when i make method call to one of the static methods i wrote, it never gets a response, as if method call went into a black hole.
SoapUI stops responding, hangs and i have to kill the application everytime.
With the above write to file statements, i was able to narrow down to this statement which is causing the problem, but i don't know how to get past this. The program control never gets past this statement.
I am hoping some expert from soapui pro support team can help me with this.
List objList = xpath.selectNodes(jdomDocument);
xpath is object of type org.jdom.xpath.XPath
jdomDocument is object of type org.jdom.Document.
verified xpath is not null, jdomDocument is not null
verified webservice response object is not null and verified the contents that comes into java code, it is correct.
I am unable to post the response for NDA reasons.
BTW, this code works on my unit tests, it doesn't works when i make the call from soapui, it might be some groovy to java incompatibility that i am unaware of.
Please help.
Thanks
Prakash
I am trying very hard to solve this issue but couldn't, any help is much appreciated.
I am using java code to parse and do some procesing with web service response as i am more comfortable with java than with groovy.
Have included my java classes as a jar file in soapui/bin/ext folder.
I have verified that my method call is sent to jar file by inserting write to file statements.
The issue is when i make method call to one of the static methods i wrote, it never gets a response, as if method call went into a black hole.
SoapUI stops responding, hangs and i have to kill the application everytime.
With the above write to file statements, i was able to narrow down to this statement which is causing the problem, but i don't know how to get past this. The program control never gets past this statement.
I am hoping some expert from soapui pro support team can help me with this.
List objList = xpath.selectNodes(jdomDocument);
xpath is object of type org.jdom.xpath.XPath
jdomDocument is object of type org.jdom.Document.
verified xpath is not null, jdomDocument is not null
verified webservice response object is not null and verified the contents that comes into java code, it is correct.
I am unable to post the response for NDA reasons.
BTW, this code works on my unit tests, it doesn't works when i make the call from soapui, it might be some groovy to java incompatibility that i am unaware of.
Please help.
Thanks
Prakash