Forum Discussion

grexe's avatar
grexe
Occasional Contributor
14 years ago

error "Failed to load project", "Unexpected element: CDATA"

I have a composite project with 2 test suites which works fine in soapUI 3.6.1 PRO when manually starting either test suite.
However, the testrunner fails both in soapUI (!) and on the command line:

...ERROR [SoapUI] An error occured [Failed to load project from file...
Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA

I want to keep the project composite because this makes versioning and team work (we are actually using soapUI pro) much easier and cleaner.

Any ideas why this happens?
See also related Threads:

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    there is a bug in the 3.6.1 release regarding loading of composite projects from the command-line, please try the nightly build that should have this fixed!

    regards!

    /Ole
    eviware.com
  • I downloaded3.6.2 snapshot and I am still getting the same error for the composite project
    C:\Program Files\eviware\soapui-pro-3.6.2-SNAPSHOT\bin>testrunner.bat -e http:/
    /CustomerCentral/api -s CCGetInstitution -c CCGetInstitution001ValidInstitutionI
    ORE.tpPartnerId=6 -G CCAPI.SoapUI.CORE.defaultFI=100000 -r -a -j -t soapui-setti
    TestResults\ -F CSV -R TestSuiteReport -i C:\CC_Workspace\CustomerCentral\QA\Bea
    atedTests\tests
    soapUI Pro 3.6.2-SNAPSHOT TestCase Runner
    2011-02-03 12:11:54,234 [main] INFO com.eviware.soapui.SoapUIProTestCaseRunner
    perty [CCAPI.SoapUI.CORE.tpPartnerId] to [6]
    Configuring log4j from [C:\Program Files\eviware\soapui-pro-3.6.2-SNAPSHOT\bin\s
    12:11:55,859 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Docu
    vaidyanathan\soapui-settings.xml]
    12:11:56,843 INFO [HttpClientSupport$Helper] Initializing KeyStore
    12:11:56,984 INFO [HttpClientSupport$Helper] Set KeyMaterial from file [C:\Prog
    tware Foundation\Apache2.2\conf\ssl.crt\taxds-cc-qa01.p12]
    12:11:57,078 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\e
    6.2-SNAPSHOT\bin\listeners\demo-listeners.xml]
    12:11:57,828 INFO [SoapUIProTestCaseRunner] Setting global property [CCAPI.Soap
    o [100000]
    Error at line 1, column 1
    org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:12
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:12
    at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaType

    at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(U
    at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java
    at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:209)
    at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProject
    at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProject
    at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCas
    at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunne
    at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(Abst
    a:84)
    at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:48)
    Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA
    at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo
    at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454
    ... 12 more
    12:11:59,437 ERROR [SoapUI] An error occured [Failed to load project from file [
    /CustomerCentral/QA/BeaconM2.0/SoapUI/AutomatedTests/tests]], see error log for
    com.eviware.soapui.support.SoapUIException: Failed to load project from file [fi
    ustomerCentral/QA/BeaconM2.0/SoapUI/AutomatedTests/tests]
    at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java
    at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:209)
    at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProject
    at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProject
    at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCas
    at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunne
    at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(Abst
    a:84)
    at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:48)
    Caused by: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:12
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:12
    at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaType

    at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(U
    at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java
    ... 7 more
    Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA
    at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo
    at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454
    ... 12 more
    12:11:59,843 ERROR [SoapUIProTestCaseRunner] java.lang.Exception: Failed to load
    [C:\CC_Workspace\CustomerCentral\QA\BeaconM2.0\SoapUI\AutomatedTests\tests]
    12:11:59,859 ERROR [SoapUI] An error occured [Failed to load soapUI project file
    stomerCentral\QA\BeaconM2.0\SoapUI\AutomatedTests\tests]], see error log for det
    java.lang.Exception: Failed to load soapUI project file [C:\CC_Workspace\Custome
    .0\SoapUI\AutomatedTests\tests]
    at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCas
    at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunne
    at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(Abst
    a:84)
    at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:48)