Forum Discussion

Mircea_Untea's avatar
Mircea_Untea
Occasional Contributor
15 years ago

Mock Services NullPointerException

Hi
I make a mockService base on WDSL which works when i send request from soapui to original Endpoint.
If i try to send the same request to my mock services i get this err:

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.dispatchPostRequest(WsdlMockRunner.java:335)
  at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:383)
  at com.eviware.soapui.monitor.JettyMockEngine$ServerHandler.handle(JettyMockEngine.java:701)
  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  at org.mortbay.jetty.Server.handle(Server.java:326)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
  at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
  at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
  Caused by: java.lang.NullPointerException
  at com.eviware.soapui.impl.wsdl.WsdlOperation.getRequestBodyElementQName(WsdlOperation.java:596)
  at com.eviware.soapui.impl.wsdl.support.soap.SoapUtils.findOperationForRequest(SoapUtils.java:229)
  at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchPostRequest(WsdlMockRunner.java:260)
  ... 12 more

I appreciate any feedback, thanks

Catalin
  • Hi!

    hmm.. is this with the latest version of soapUI? Can you attach your WSDL so we can try to reproduce?

    thanks in advance!

    regards,

    /Ole
    eviware.com
  • Mircea_Untea's avatar
    Mircea_Untea
    Occasional Contributor

    -
     
    -
     
    -
     
     
     

     

    -
     
    -
     
    -
     
     
     

     

    -
    -
     

     

     
     

    -
    -
     
     

     

     


    I've attached the WSDL. I have to mention that this WDSL is used for inserting XML messages in the DB Queue (soap over JMS) through an Oracle JMS Adapter.

    Here are some test details:
    The scope is to insert data directly in the Oracle DB Queue. The HermesJMS tool doesn't have a model for inserting directly in the Queue, only in OC4J _SOA  app server.  Therefore I made the following test case:
    1. I want to create this  mockservice in order to dispatch all XML requests directly to the Queue using groovy script and  DB stored procedures.
    2. I made a few test request steps to insert a XML in my mockservice in order to enqueue directly in the DB

    That is it.

    I hope you can understanding me, my English is not so good

    thanks

    Best regards,
  • Mircea_Untea's avatar
    Mircea_Untea
    Occasional Contributor
    We managed to solve this problem. Thanks for your promptitude.

    cata