Forum Discussion

paul_igoe's avatar
paul_igoe
Contributor
8 years ago

Null pointer exception with HTTP Monitor in SoapUI open source (but OK in Pro)

Hi,

 

Anybody know if there is an issue with the HTTP Monitor functionality in SoapUI open source, compared to SoapUI Pro?

 

With SoapUI Pro (Ready API 2.0.2, trial version) I can capture traffic no problem.

 

With SoapUI open source (5.3.0), following exactly the same actions to start the monitor, and sending the same request, I get Null pointer exception.

 

Any ideas?

 

 

    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
      <title>Error 500 INTERNAL_SERVER_ERROR</title>
   </head>
   <body>
      <h2>HTTP ERROR 500</h2>
      <p>
         Problem accessing /tk2/20170619-1745/esb/login/. Reason:
         <pre>INTERNAL_SERVER_ERROR</pre>
      </p>
      <h3>Caused by:</h3>
      <pre>java.lang.NullPointerException
    at com.eviware.soapui.impl.wsdl.submit.AbstractMessageExchange.&lt;init>(AbstractMessageExchange.java:33)
    at com.eviware.soapui.impl.wsdl.submit.AbstractWsdlMessageExchange.&lt;init>(AbstractWsdlMessageExchange.java:36)
    at com.eviware.soapui.impl.wsdl.monitor.WsdlMonitorMessageExchange.&lt;init>(WsdlMonitorMessageExchange.java:28)
    at com.eviware.soapui.impl.wsdl.monitor.JProxyServletWsdlMonitorMessageExchange.&lt;init>(JProxyServletWsdlMonitorMessageExchange.java:86)
    at com.eviware.soapui.impl.wsdl.monitor.jettyproxy.ProxyServlet.service(ProxyServlet.java:155)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at com.eviware.soapui.impl.wsdl.monitor.jettyproxy.JettyServer.handle(JettyServer.java:76)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)</pre>

 

 

Regards,

Paul

 

 

  • sanj's avatar
    sanj
    Super Contributor

    I have issues even running testrunner on opensource soap ui

    Seems like some packages are missing!

     

  • Just to add some more details....

     

    To rule out any installation issues, since I had SoapUI open source and Pro installed on same machine, I uninstalled both and re-installed open-source (5.3.0) only.

    In a new workspace, I followed the steps described at https://www.soapui.org/http-recording/recording.html:

     

    1. create new SOAP project with CurrencyConverter service (http://www.webservicex.net/CurrencyConvertor.asmx?WSDL)
    2. verify currency conversion request (EUR-USD) gets valid response (for some reason I get ConversionRateResult = -1 instead of actual rate, but response is well-formed)
    3. start Http Monitor as described
    4. repeat request - get null pointer exception

     

    Is this a known bug? If so, can we expect a fix?

     

    Kind Regards,

    Paul

     

  • Some more information related to this error.

    I just noticed that when I start SoapUI, there are always various errors in the soapui log:

    (error log is empty).

     

    Could these errors be related to the Null pointer exception I get when trying to use Http Monitor?

    Any idea how to fix them?

     

     

    Tue Aug 01 14:20:56 CEST 2017:INFO:initialized soapui-settings from [C:\Users\Paul\soapui-settings.xml]

    Tue Aug 01 14:20:58 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\ready-uxm-plugin-1.0.1-dist.jar]

    Tue Aug 01 14:20:58 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\soapui-swagger-plugin-2.2-dist.jar]

    Tue Aug 01 14:20:59 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Added AutoFactory for [PluginPrefs]

    Tue Aug 01 14:20:59 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:20:59 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\readyapi-postman-1.0.1.jar]

    Tue Aug 01 14:21:00 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Tue Aug 01 14:21:00 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:21:00 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\ready-mqtt-plugin-dist.jar]

    Tue Aug 01 14:21:00 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Tue Aug 01 14:21:00 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:21:00 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Added AutoFactory for [PluginTestStep]

    Added AutoFactory for [PluginTestStep]

    Added AutoFactory for [PluginTestStep]

    Added AutoFactory for [PluginPanelBuilder]

    Added AutoFactory for [PluginPanelBuilder]

    Added AutoFactory for [PluginPanelBuilder]

    Tue Aug 01 14:21:00 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:21:00 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\readyapi-swaggerhub-plugin-1.0.jar]

    Tue Aug 01 14:21:01 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Tue Aug 01 14:21:01 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:21:01 CEST 2017:INFO:5 plugins loaded in 2244 ms

    Tue Aug 01 14:21:01 CEST 2017:INFO:All plugins loaded

    Tue Aug 01 14:21:01 CEST 2017:INFO:initialized soapui-settings from [C:\Users\Paul\soapui-settings.xml]

    Tue Aug 01 14:21:02 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\ready-uxm-plugin-1.0.1-dist.jar]

    Tue Aug 01 14:21:02 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\soapui-swagger-plugin-2.2-dist.jar]

    Tue Aug 01 14:21:03 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Added AutoFactory for [PluginPrefs]

    Tue Aug 01 14:21:03 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:21:03 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\readyapi-postman-1.0.1.jar]

    Tue Aug 01 14:21:03 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Tue Aug 01 14:21:03 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:21:03 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Tue Aug 01 14:21:03 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:21:03 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\ready-mqtt-plugin-dist.jar]

    Tue Aug 01 14:21:04 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Added AutoFactory for [PluginTestStep]

    Added AutoFactory for [PluginTestStep]

    Added AutoFactory for [PluginTestStep]

    Added AutoFactory for [PluginPanelBuilder]

    Added AutoFactory for [PluginPanelBuilder]

    Added AutoFactory for [PluginPanelBuilder]

    Tue Aug 01 14:21:04 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:21:04 CEST 2017:INFO:Adding plugin from [C:\Users\Paul\.soapuios\plugins\readyapi-swaggerhub-plugin-1.0.jar]

    Tue Aug 01 14:21:04 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details

    Tue Aug 01 14:21:04 CEST 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

    Tue Aug 01 14:21:04 CEST 2017:INFO:5 plugins loaded in 2001 ms

    Tue Aug 01 14:21:04 CEST 2017:INFO:All plugins loaded

    Tue Aug 01 14:21:05 CEST 2017:INFO:Loading workspace from [C:\Users\Paul\default-soapui-workspace.xml]

    Tue Aug 01 14:21:05 CEST 2017:INFO:Loaded project from [file:/C:/Users/Paul/Documents/ProjectAxis/SoapUI%20Projects/Proof-Of-Concept-soapui-project.xml]

    Tue Aug 01 14:21:05 CEST 2017:INFO:Used java version: 1.7.0_55

    Scheduling garbage collection every 60 seconds

    The cajo server is running on localhost:1198/soapuiIntegration

  • Hi,

     

    I'd really appreciate some feedback on this from Smartbear.

    I'm currently evaluating SoapUI open source as a possible solution for a new service-level automation project.

    The other possibility we are looking at is TestComplete (we already use) scripting (using MSXML2.SERVERXMLHTTP.6.0 to manage http requests).

     

    Currently I'd favour SoapUI, but only if the create test case from Http Monitor functionality is working.

    Manually copy/pasting request details from e.g. chrome F12 or fiddler is too slow / error-prone.

    (project is at http level, not SOAP or WSDL)

     

    We need to make a decision this week!

     

    Thanks in advance for any feedback you can provide!

     

    Kind Regards,

    Paul