Knowledge
9 years agoContributor
Exception when running same test case twice
Hi,
I have encounter with a very weird problem.
I'm running a test case that has the following steps:
1. Send a request to my service
2. Send a 2nd request to the service
3. Mock response test step to receive a request from my service
When I run it once, it works well.
When I run it for the 2nd time, i get an exception(see below).
From now on, it will always fail. If i close SoapUI and re open it, it will work again for the 1st attempt and then fails again from the 2nd try.
I've built tons of test cases and now I cant use any of it, since it will only work for 1 attempt :(
This is the exception:
- Wed Jul 20 14:22:44 IDT 2016:ERROR:java.io.UnsupportedEncodingException:
- java.io.UnsupportedEncodingException:
- at java.lang.StringCoding.encode(Unknown Source)
- at java.lang.String.getBytes(Unknown Source)
- at com.eviware.soapui.impl.support.AbstractMockResponse.writeResponse(AbstractMockResponse.java:338)
- at com.eviware.soapui.impl.support.AbstractMockResponse.execute(AbstractMockResponse.java:269)
- at com.eviware.soapui.impl.wsdl.mock.WsdlMockOperation.dispatchRequest(WsdlMockOperation.java:209)
- at com.eviware.soapui.impl.wsdl.mock.WsdlMockDispatcher.dispatchPostRequest(WsdlMockDispatcher.java:218)
- at com.eviware.soapui.impl.wsdl.mock.WsdlMockDispatcher.dispatchRequest(WsdlMockDispatcher.java:113)
- at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:142)
- at com.eviware.soapui.monitor.JettyMockEngine$ServerHandler.handle(JettyMockEngine.java:604)
- 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)
- Wed Jul 20 14:22:44 IDT 2016:ERROR:com.eviware.soapui.impl.wsdl.mock.DispatchException: Missing operation for soapAction [****my API***] and body element [null] with SOAP Version [SOAP 1.1]
- com.eviware.soapui.impl.wsdl.mock.DispatchException: Missing operation for soapAction [***my API***] and body element [null] with SOAP Version [SOAP 1.1]
- at com.eviware.soapui.impl.wsdl.mock.WsdlMockDispatcher.dispatchPostRequest(WsdlMockDispatcher.java:233)
- at com.eviware.soapui.impl.wsdl.mock.WsdlMockDispatcher.dispatchRequest(WsdlMockDispatcher.java:113)
- at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:142)
- at com.eviware.soapui.monitor.JettyMockEngine$ServerHandler.handle(JettyMockEngine.java:604)
- 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)
If anyone has an idea what is the problem,please let me know
Thanks