marcl
10 years agoOccasional Contributor
[Ready API 1.2] Double slash (//) in path
I get a "double slash" error when calling a REST method using GET. Note that I have lots of other REST calls in my project which do not seems to trigger this bug.
Any idea where the error is coming from and/or how I can identify the cause of the problem ?
Thu Jul 16 13:05:50 UTC 2015:ERROR:nu.xom.MalformedURIException: Double slash (//) in path nu.xom.MalformedURIException: Double slash (//) in path at nu.xom.Verifier.throwMalformedURIException(Verifier.java:161) at nu.xom.Verifier.checkPath(Verifier.java:396) at nu.xom.Verifier.checkAbsoluteURIReference(Verifier.java:907) at nu.xom.Element._setNamespaceURI(Element.java:869) at nu.xom.Element.setNamespaceURI(Element.java:852) at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.processJSONObject(JsonXmlSerializer.java:973) at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:649) at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:616) at com.eviware.soapui.impl.rest.support.handlers.JsonMediaTypeHandler.createXmlRepresentation(JsonMediaTypeHandler.java:61) at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.getContentAsXml(BaseHttpResponse.java:382) at com.eviware.soapui.impl.rest.panels.request.inspectors.schema.InferredSchemaInspector.afterSubmit(InferredSchemaInspector.java:106) at com.eviware.soapui.impl.wsdl.WsdlSubmit.notifyListenersAfterSubmit(WsdlSubmit.java:102) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:143) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
The request causing the problem is the following
GET http://myhost:42221/doit HTTP/1.1 Accept-Encoding: gzip,deflate Host: myhost:42221 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.3.1 (java 1.5)
And the received answer contains this:
HTTP/1.1 200 OK Content-Type: application/json Content-Length: 13 {"success":1}