cancel
Showing results for 
Search instead for 
Did you mean: 

Null pointer exception in findOperationForRequest

Contributor

Null pointer exception in findOperationForRequest

I have a simple WSDL (see end of post) and when I create a mock service from it and try to invoke the only opertion I get the following exception stack, any ideas what could be causing this ?

SOAP UI seems to happy to create a sample response but it does not make a sample request, just an empty soap body in the envelope.

Mon Sep 01 12:05:18 BST 2008:ERROR:com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NullPointerException
   com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NullPointerException
    at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchMockRequest(WsdlMockRunner.java:57)
    at com.eviware.soapui.monitor.MockEngine$ServerHandler.handle(MockEngine.java:296)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:313)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
   Caused by: java.lang.NullPointerException
    at com.eviware.soapui.impl.wsdl.support.soap.SoapUtils.findOperationForRequest(SoapUtils.java:187)
    at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchMockRequest(WsdlMockRunner.java:247)
    ... 11 more


The WSDL is shown below












































1 REPLY 1
Contributor

Re: Null pointer exception in findOperationForRequest

Doh, found the issue. My WSDL was incorrect in the message definiton for the input.

 
     
 


This should not contain an xs:element but a wsdl:part

Apart from my dumb mistake I am surprised that XML spy would validate the wsdl.
New Here?
Join us and watch the welcome video:
Announcements