API error when running through TC integration
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
API error when running through TC integration
I am getting this error shown in the screenshot when running an API suite in TestComplete via the ReadyAPI integration.
I can't find much on this error. All the tests pass and when I run the project in ReadyAPI I don't get this error.
2023-02-21 11:53:22,619 ERROR [errorlog] net.sf.saxon.trans.XPathException: java.net.MalformedURLException: unknown protocol: c
net.sf.saxon.trans.XPathException: java.net.MalformedURLException: unknown protocol: c
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:424) ~[saxon-9.1.0.8j.jar:?]
at net.sf.saxon.event.Sender.send(Sender.java:214) ~[saxon-9.1.0.8j.jar:?]
at net.sf.saxon.event.Sender.send(Sender.java:50) ~[saxon-9.1.0.8j.jar:?]
at net.sf.saxon.Controller.transform(Controller.java:1611) ~[saxon-9.1.0.8j.jar:?]
at com.eviware.soapui.reporting.engine.junit.JUnitReportEngine.a(JUnitReportEngine.java:203) ~[ready-api-soapui-pro-3.43.1.jar:3.43.1]
at com.eviware.soapui.reporting.engine.junit.JUnitReportEngine.a(JUnitReportEngine.java:137) ~[ready-api-soapui-pro-3.43.1.jar:3.43.1]
at com.eviware.soapui.reporting.engine.junit.JUnitReportEngine.a(JUnitReportEngine.java:124) ~[ready-api-soapui-pro-3.43.1.jar:3.43.1]
at com.eviware.soapui.reporting.engine.junit.JUnitReportEngine.createReport(JUnitReportEngine.java:104) ~[ready-api-soapui-pro-3.43.1.jar:3.43.1]
at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.exportJUnitReports(SoapUIProTestCaseRunner.java:345) ~[ready-api-runners-3.43.1.jar:?]
at com.smartbear.ready.cmd.runner.SoapUITestCaseRunner.exportReports(SoapUITestCaseRunner.java:654) ~[ready-api-runners-3.43.1.jar:?]
at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.exportReports(SoapUIProTestCaseRunner.java:330) ~[ready-api-runners-3.43.1.jar:?]
at com.smartbear.ready.cmd.runner.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:547) ~[ready-api-runners-3.43.1.jar:?]
at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.runRunner(SoapUIProTestCaseRunner.java:142) ~[ready-api-runners-3.43.1.jar:?]
at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:334) ~[ready-api-runners-3.43.1.jar:?]
at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:199) [ready-api-runners-3.43.1.jar:?]
at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.init(SoapUIProTestCaseRunner.java:102) [ready-api-runners-3.43.1.jar:?]
at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.main(SoapUIProTestCaseRunner.java:98) [ready-api-runners-3.43.1.jar:?]
Caused by: java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(URL.java:681) ~[?:?]
at java.net.URL.<init>(URL.java:569) ~[?:?]
at java.net.URL.<init>(URL.java:516) ~[?:?]
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:404) ~[saxon-9.1.0.8j.jar:?]
... 16 more
- Labels:
-
Integrations
-
Test Run
-
Web Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error indicates that the URL is malformed. Make sure that the URL that you are using is legal. For example, http:// or http://// and not http:///
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which URL? the request? Every test passes.
And I get no error when running not in TC so it's something with TC
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It has something to do with this,
It might need to be like e.g. "file:///"
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Don't think it's that. I copied the file locally and am still facing the error:
-----------------------------
Time Taken: 2109ms
Total TestSuites: 1
Total TestCases: 9 (0 failed)
Total TestSteps: 11
Total Request Assertions: 11
Total Failed Assertions: 0
Total Exported Results: 11
Error
java.net.MalformedURLException: unknown protocol: c
13:26:01,800 INFO [license] ReadyAPI 3.43.0 shutting down
13:26:02,021 ERROR [SoapUIProTestCaseRunner] net.sf.saxon.trans.XPathException: java.net.MalformedURLException: unknown protocol: c
13:26:02,027 INFO [WsdlProject] Loaded project from [file:/D:/Dashboard-Smoke-Test-readyapi-project.xml]
13:26:02,038 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\SmartBear\ReadyAPI-3.3.2\bin\scripts]
13:26:02,042 ERROR [SoapUI] An error occurred [java.net.MalformedURLException: unknown protocol: c], see error log for details
13:26:02,042 ERROR [errorlog] net.sf.saxon.trans.XPathException: java.net.MalformedURLException: unknown protocol: c
net.sf.saxon.trans.XPathException: java.net.MalformedURLException: unknown protocol: c
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are experiencing the same error.
Were you able to resolve the issue?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was told they were working on a fix but downgrading to on older version of ReadyAPI works.
I am using 3.40.2 and I do not get that error.
