balajisn
12 years agoNew Contributor
JSON response generated but exception is seen in error log
Hi,
I am using the latest SoapUI 5.0.0.
I have some test cases involving JSON data in the response. The response is successfully retrieved from the server, the assertions also says success, but in the error log or during the integration with jenkins, the following exception is seen:
Wed May 28 12:03:02 IST 2014:ERROR:nu.xom.MalformedURIException: Illegal path character
nu.xom.MalformedURIException: Illegal path character
at nu.xom.Verifier.throwMalformedURIException(Verifier.java:161)
at nu.xom.Verifier.checkPath(Verifier.java:416)
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:1173)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:735)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:690)
at com.eviware.soapui.impl.rest.support.handlers.JsonMediaTypeHandler.createXmlRepresentation(JsonMediaTypeHandler.java:69)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.getContentAsXml(BaseHttpResponse.java:462)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.propertyChange(RestTestRequestStep.java:485)
at java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:90)
at com.eviware.soapui.impl.support.AbstractHttpRequest.setResponse(AbstractHttpRequest.java:896)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.setResponse(RestTestRequest.java:140)
at com.eviware.soapui.impl.support.panels.AbstractHttpRequestDesktopPanel.afterSubmit(AbstractHttpRequestDesktopPanel.java:714)
at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestDesktopPanel.afterSubmit(RestTestRequestDesktopPanel.java:296)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:161)
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)
Upon searching the forum, this is similar to the thread:
viewtopic.php?f=2&t=23652&p=54867&hilit=JSON+response+msgs+not+converted+to+XML
With respect to the above link, it says check for data having $ or # or @ in the response. But, in the response I am looking at, there is no such characters, but still the exception is seen in the error log.
Is this bug in SoapUI or any other problem, please advise.
Thanks,
Balaji
I am using the latest SoapUI 5.0.0.
I have some test cases involving JSON data in the response. The response is successfully retrieved from the server, the assertions also says success, but in the error log or during the integration with jenkins, the following exception is seen:
Wed May 28 12:03:02 IST 2014:ERROR:nu.xom.MalformedURIException: Illegal path character
nu.xom.MalformedURIException: Illegal path character
at nu.xom.Verifier.throwMalformedURIException(Verifier.java:161)
at nu.xom.Verifier.checkPath(Verifier.java:416)
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:1173)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:735)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:690)
at com.eviware.soapui.impl.rest.support.handlers.JsonMediaTypeHandler.createXmlRepresentation(JsonMediaTypeHandler.java:69)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.getContentAsXml(BaseHttpResponse.java:462)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.propertyChange(RestTestRequestStep.java:485)
at java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:90)
at com.eviware.soapui.impl.support.AbstractHttpRequest.setResponse(AbstractHttpRequest.java:896)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.setResponse(RestTestRequest.java:140)
at com.eviware.soapui.impl.support.panels.AbstractHttpRequestDesktopPanel.afterSubmit(AbstractHttpRequestDesktopPanel.java:714)
at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestDesktopPanel.afterSubmit(RestTestRequestDesktopPanel.java:296)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:161)
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)
Upon searching the forum, this is similar to the thread:
viewtopic.php?f=2&t=23652&p=54867&hilit=JSON+response+msgs+not+converted+to+XML
With respect to the above link, it says check for data having $ or # or @ in the response. But, in the response I am looking at, there is no such characters, but still the exception is seen in the error log.
Is this bug in SoapUI or any other problem, please advise.
Thanks,
Balaji