Forum Discussion

SSmith's avatar
SSmith
New Contributor
12 years ago

MockServices return NumberFormatException after update to 5

We have been using SoapUI 4.x for quite a while with great success. However upon updating to SoapUI 5.0 all of our MockServices are returning a SoapFault with a NumberFormat Exception.
The ironic thing is we are using SoapUI to create the messages as well so it's SoapUI talking to SoapUI.

The error log shows the following:

Tue Apr 15 22:09:40 UTC 2014:ERROR:com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NumberFormatException: null
com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NumberFormatException: null
at com.eviware.soapui.impl.support.AbstractMockResponse.execute(AbstractMockResponse.java:284)
at com.eviware.soapui.impl.wsdl.mock.WsdlMockOperation.dispatchRequest(WsdlMockOperation.java:227)
at com.eviware.soapui.impl.wsdl.mock.WsdlMockDispatcher.dispatchPostRequest(WsdlMockDispatcher.java:256)
at com.eviware.soapui.impl.wsdl.mock.WsdlMockDispatcher.dispatchRequest(WsdlMockDispatcher.java:122)
at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:156)
at com.eviware.soapui.monitor.JettyMockEngine$ServerHandler.handle(JettyMockEngine.java:716)
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:945)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
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:410)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.valueOf(Unknown Source)
at com.eviware.soapui.impl.support.AbstractMockResponse.getResponseHttpStatus(AbstractMockResponse.java:147)
at com.eviware.soapui.impl.support.AbstractMockResponse.writeResponse(AbstractMockResponse.java:337)
at com.eviware.soapui.impl.support.AbstractMockResponse.execute(AbstractMockResponse.java:272)
... 17 more


I've tried different WSDL's and messages and all of them, even the most simple is getting this error.

Any help would be much appreciated. Thanks!

5 Replies

  • SSmith's avatar
    SSmith
    New Contributor
    Have another thing to add. We looked at the properties on the MockService and notice that there is a new one called "Response HTTP-Status". Since the stack trace seems to be around setting the HTTP status we tried selecting that property. But every time we select it we see the stack trace below in the error log. This happens on existing mock services that work fine in SoapUI 4.6.4 and SoapUIPro 4.6.4. We also tried creating a brand new project in SoapUI 5.0 and see the same error.

    Wed Apr 16 04:11:23 UTC 2014:ERROR:java.lang.NoSuchMethodException: Unknown property 'responseHttpStatus'
    java.lang.NoSuchMethodException: Unknown property 'responseHttpStatus'
    at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1122)
    at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:408)
    at com.eviware.soapui.support.components.JPropertiesTable$PropertiesTableModel.getValueAt(JPropertiesTable.java:277)
    at javax.swing.JTable.getValueAt(Unknown Source)
    at javax.swing.JTable.prepareRenderer(Unknown Source)
    at com.eviware.soapui.support.components.JPropertiesTable$PTable.prepareRenderer(JPropertiesTable.java:549)
    at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
    at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
    at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
    at javax.swing.plaf.ComponentUI.update(Unknown Source)
    at javax.swing.JComponent.paintComponent(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintToOffscreen(Unknown Source)
    at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
    at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
    at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
    at javax.swing.RepaintManager.paint(Unknown Source)
    at javax.swing.JComponent._paintImmediately(Unknown Source)
    at javax.swing.JComponent.paintImmediately(Unknown Source)
    at javax.swing.RepaintManager$3.run(Unknown Source)
    at javax.swing.RepaintManager$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
    at javax.swing.RepaintManager.access$1100(Unknown Source)
    at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    @smsmithee post this error in the soapui pro support forum to be sure to have a feedback from the SmartBear support (please a link to your new post here to let us follow further discussions). They are not always checking the current forum
  • Same issue here, only a downgrade to SoapUI 4.x made my tests work again.
  • Hi,

    We have an internal defect of SOAP-2207 which is assigned to a developer to fix. Will let you know when this is fixed.