Forum Discussion

martonjurak's avatar
martonjurak
Occasional Contributor
6 years ago

Jenkins throws org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA but not soapUI

Hi,

 

I made an automated test (it is a composite project) which is running well from GUI or test runner. If I start it from Jenkins it gives an error.

14:06:56 Error at line 1, column 1
14:06:56 org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
14:06:56 	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
14:06:56 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
14:06:56 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
14:06:56 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
14:06:56 	at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source)
14:06:56 	at com.eviware.soapui.impl.wsdl.WsdlProjectPro.b(WsdlProjectPro.java:670)
14:06:56 	at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(WsdlProjectPro.java:461)
14:06:56 	at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:318)
14:06:56 	at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:297)
14:06:56 	at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(WsdlProjectPro.java:215)
14:06:56 	at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(WsdlProjectProFactory.java:113)
14:06:56 	at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(WsdlProjectProFactory.java:1)
14:06:56 	at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.getWsdlProject(AbstractSoapUIRunner.java:416)
14:06:56 	at com.smartbear.ready.cmd.runner.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:352)
14:06:56 	at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.runRunner(SoapUIProTestCaseRunner.java:100)
14:06:56 	at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:286)
14:06:56 	at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:186)
14:06:56 	at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.init(SoapUIProTestCaseRunner.java:84)
14:06:56 	at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.main(SoapUIProTestCaseRunner.java:80)
14:06:56 Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 1; columnNumber: 1; Unexpected element: CDATA
14:06:56 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
14:06:56 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
14:06:56 	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
14:06:56 	... 18 more

I am executing on the same database with the same tomcat. The different is that in Jenkins we have ReadyApi 2.4 and running on linux, when I am executing it is Ready Api 2.6 and running on windows server 2008.
Could someone tell me a fix for this?

Br
Marton
  • Hi,

    It looks problem is solved.

    The issue was that TestSuite name was used as a foldername in Jenkins and had (, and + )characers.Jenkins couldnt handle this characters. After I changed the Test Suite names problem was solved

  • martonjurak's avatar
    martonjurak
    Occasional Contributor

    Hi,

    It looks problem is solved.

    The issue was that TestSuite name was used as a foldername in Jenkins and had (, and + )characers.Jenkins couldnt handle this characters. After I changed the Test Suite names problem was solved