Forum Discussion

cadbury8388's avatar
11 years ago

Why i am getting nullpointer exception in SOAPUI response?

I am new to SOAPUI.
I have installed open source version yesterday and created one simple project and added a WSDL.
Now when i provide itemXML and itemResponse parameters in the SOAP test case,I get the Java.lang.nullpointer exception in resonse.

My request xml looks like below:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:res="http://pearson.com/ai/responseanalytics">
<soapenv:Header/>
<soapenv:Body>
<res:innovativeItemScoreRequest>
<!--You may enter the following 2 items in any order-->
<res:itemXml><?xml version="1.0" encoding="utf-8"?><assessmentItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" keyType="FractionAllowCommaCorrectPlace" schema="Pearson TN XML" schemaVersion="1.0" guid="0123456789abcdef0123456789abcdef" uin="fillFAC"><itemBody><stemArea id="stem1"><text id="text1">keyType="FractionAllowCommaCorrectPlace" Jodie pays for ice cream with a <say replacement="five-dollar">$5</say> bill.</text><text id="text2">As change, she receives 7 coins.</text><text id="text3"><tab/>•<tab/>1 quarter<br/><br/><tab/>•<tab/>1 dime<br/><br/><tab/>•<tab/>1 nickel<br/><br/><tab/>•<tab/>4 pennies</text><text id="text4">How much does the ice cream cost?</text><text id="text5">Enter your answer in the box.</text></stemArea><responseArea id="response1"><fillInResponse id="fillIn1" characterMax="20" preGridText="$" allowedCharacters="1234567890./,"><correct>0.5</correct></fillInResponse></responseArea></itemBody></assessmentItem></res:itemXml>
<res:itemResponse><RESP><RV><VALUE><![CDATA[1,000/2,000]]></VALUE></RV><TIME>10</TIME><META /></RESP></res:itemResponse>
</res:innovativeItemScoreRequest>
</soapenv:Body>
</soapenv:Envelope>

and this is what i get in response:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>ns0:Server</faultcode>
<faultstring xml:lang="en">java.lang.NullPointerException</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
No RepliesBe the first to reply