Forum Discussion

Siemens__s_r_o_'s avatar
Siemens__s_r_o_
Occasional Contributor
10 years ago

[R]SoapUI 5.0.0-Mock Response Test Step-NoSuchMethodExceptio

Hi guys,

When selecting a SOAP Mock Response test step in UI, error log fills up with exceptions. Also when running a test case containing this test step, the step is not able to receive any incoming requests and whole test case hangs. The same mockservice works without a problem as a standalone mockservice in the project.

I started with creating a fresh project, adding a wsdl (tested and working for all other purposes). Then I created a usual structure of a Test Suite and a Test Case. After adding a SOAP Mock Response Test Step, the error log fills with several exceptions.

Stack trace:

Thu May 15 10:27:36 CEST 2014:ERROR:java.lang.NoSuchMethodException: Unknown property 'handleFault'
java.lang.NoSuchMethodException: Unknown property 'handleFault'
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.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(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.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)

I get the same exception and stack trace also for these properties:

Unknown property 'handleFault'
Unknown property 'handleResponse'
Unknown property 'forceMtom'
Unknown property 'multipartEnabled'
Unknown property 'encodeAttachments'
Unknown property 'inlineFilesEnabled'
Unknown property 'responseHttpStatus'
Unknown property 'responseDelay'


These properties seem to be directly related to the properties panel on the bottom left. Also when the panel is smaller and scrollable, exceptions pop up as they are being rendered when scrolling.

This behavior was only observed on the 5.0.0 free (I don't know about betas and paid versions), previous versions are not affected, we successfully rolled back to 4.6.3.

Let me know if you need any more information

Regards,

Jakub

2 Replies

  • soelschlaegel's avatar
    soelschlaegel
    Occasional Contributor
    Hi,

    I'm experiencing the same exceptions with SOAP UI Pro 5.0.0.

    Additionally, when sending a request to the Mock Response Test Step (which is running till eternity), the following error occurs:

    Response:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Fault>
    <!--type: QName-->
    <faultcode>Server</faultcode>
    <faultstring>java.lang.NumberFormatException: null</faultstring>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>


    Stack Trace:

    Tue Jul 22 10:06:34 CEST 2014:ERROR:java.lang.NumberFormatException: null
    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)
    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)
    Tue Jul 22 10:06:34 CEST 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
    Tue Jul 22 10:06:34 CEST 2014:ERROR:java.lang.IllegalStateException: WRITER
    java.lang.IllegalStateException: WRITER
    at org.mortbay.jetty.Response.getOutputStream(Response.java:594)
    at com.eviware.soapui.monitor.JettyMockEngine$MockRequestLog.log(JettyMockEngine.java:820)
    at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:51)
    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)


    With Pro version 4.6.4 there were no such problems.

    Could anyone please help and respond to this thread.

    Many thanks.
    Sebastian
  • Hi,

    Tue Jul 22 10:06:34 CEST 2014:ERROR:java.lang.NumberFormatException: null
    java.lang.NumberFormatException: null


    The exception (and broken functionality) with the mock response test step is fixed in the 5.0 maintenance builds and in 5.1. Since the 5.0 maintenance builds are not archived please upgrade to 5.1.