Forum Discussion

duvenhage's avatar
duvenhage
Occasional Contributor
9 years ago

Error: </con:endpoints> does not close tag <con:endpoint>

I've created a SoapUI project that works fine when it is created. However, when I regenerate and switch workspace, the project does not load.

 

The (partial) error message is:

Tue Mar 29 11:59:36 CEST 2016:ERROR:com.eviware.soapui.support.SoapUIException: Failed to load project from file [http://simulator.local/testtools/soapui/REST-Project-1-soapui-project.xml]
   com.eviware.soapui.support.SoapUIException: Failed to load project from file [http://simulator.local/testtools/soapui/REST-Project-1-soapui-project.xml]
   	at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:318)
   	at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:234)
...
   Caused by: org.apache.xmlbeans.XmlException: error: </con:endpoints> does not close tag <con:endpoint>.
   	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)

   Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 2; columnNumber: 615; </con:endpoints> does not close tag <con:endpoint>.
   	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
...

 

The xml where the error occurs, looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project id="31d0ba1e-d205-4e5d-8cc5-33a489f9aacd" activeEnvironment="Default" name="REST Project 1" resourceRoot="" soapui-version="5.2.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:RestService" id="ca317474-358c-4327-bdde-7eea097f740e" wadlVersion="http://wadl.dev.java.net/2009/02" name="http://simulator.local:80" type="rest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart=""/><con:endpoints><con:endpoint>http://simulator.local:80</con:endpoint></con:endpoints><con:resource name="Connectivities" path="/rest/connectivities/" id="2de8a5f4-2151-47c4-a74c-5ce7ad1eeed3"><con:settings/><con:parameters><con:parameter><con:name>gaiaId</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>accessId</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:method name="Connectivities" id="59d1f92c-1c92-419c-81ff-f249bbcd8151" method="GET"><con:settings/><con:parameters/><con:representation type="RESPONSE"><con:mediaType>application/json; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element xmlns:con1="http://simulator.local/rest/connectivities/">con1:Response</con:element></con:representation><con:representation type="FAULT"><con:mediaType>application/json; charset=utf-8</con:mediaType><con:status>500</con:status><con:params/><con:element>Fault</con:element></con:representation><con:request name="Request 1" id="f7fa4894-b3f9-46d2-a233-e7364cc3dde4" mediaType="application/json"><con:settings/><con:endpoint>http://simulator.local:80</con:endpoint><con:request/><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters/><con:parameterOrder><con:entry>gaiaId</con:entry><con:entry>accessId</con:entry></con:parameterOrder></con:request></con:method></con:resource></con:interface><con:testSuite id="91531330-b229-4565-b4fd-20510e0817a0" name="SPT Retrieve Location"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase id="1b1216d3-9698-4e5b-bd1f-42efa6900dab" failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="GaiaId" searchProperties="true"><con:settings/><con:testStep type="httprequest" name="Log Clear" id="cb2c6061-e336-4676-88c8-d0538be2d2b5">

Formatted, it looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project id="31d0ba1e-d205-4e5d-8cc5-33a489f9aacd" activeEnvironment="Default" name="REST Project 1" resourceRoot="" soapui-version="5.2.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config">
    <con:settings/>
    <con:interface xsi:type="con:RestService" id="ca317474-358c-4327-bdde-7eea097f740e" wadlVersion="http://wadl.dev.java.net/2009/02" name="http://simulator.local:80" type="rest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <con:settings/>
        <con:definitionCache type="TEXT" rootPart=""/>
        <con:endpoints>
            <con:endpoint>http://simulator.local:80</con:endpoint>
        </con:endpoints>        <con:resource name="Connectivities" path="/rest/connectivities/" id="2de8a5f4-2151-47c4-a74c-5ce7ad1eeed3">
            <con:settings/>
            <con:parameters>
                <con:parameter>
                    <con:name>gaiaId</con:name>
                    <con:value/>
                    <con:style>QUERY</con:style>
                    <con:default/>
                    <con:description xsi:nil="true"/>
                </con:parameter>
                <con:parameter>
                    <con:name>accessId</con:name>
                    <con:value/>
                    <con:style>QUERY</con:style>
                    <con:default/>
                    <con:description xsi:nil="true"/>
                </con:parameter>
            </con:parameters>
            <con:method name="Connectivities" id="59d1f92c-1c92-419c-81ff-f249bbcd8151" method="GET">
                <con:settings/>
                <con:parameters/>
                <con:representation type="RESPONSE">
                    <con:mediaType>application/json; charset=utf-8</con:mediaType>
                    <con:status>200</con:status>
                    <con:params/>
                    <con:element xmlns:con1="http://simulator.local/rest/connectivities/">con1:Response</con:element>
                </con:representation>

... etc.  The error message refers to lines 7-9.  An xml syntax check does not show any error.

 

I'd be very grateful if someone can provide a solution or at least point me in the right direction.

 

 

 

2 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Is soapui project file, which is an xml format, modified by hand? Are you able to open this project using any browser?
    • duvenhage's avatar
      duvenhage
      Occasional Contributor

      Hi,

       

      Thanks for the response. 

       

      The file hasn't been modified by hand. I haven't tried to open it in a browser and, unfortunately, the file has been deleted, so I cannot try it now...