Forum Discussion

duvenhage's avatar
duvenhage
Occasional Contributor
7 years ago

Unexpected element: OPEN_TAG

I receive this output for one of my projects:

 

    [apply] SoapUI 5.2.1 TestCase Runner
    [apply] 10:35:13,090 DEBUG [WsdlLoader] Getting wsdl component from [http://simulator.template:80/testtools/soapui/null-soapui-project.xml]
    [apply] Error at line 2, column 15
    [apply] org.apache.xmlbeans.XmlException: error: Unexpected element: OPEN_TAG
    [apply] 	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
    ...
    [apply] 	at ch.itsbusiness.testrunner.ITSsoapUItestrunner.main(ITSsoapUItestrunner.java:63)
    [apply] Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 2; columnNumber: 15; Unexpected element: OPEN_TAG
    [apply] 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
    ...
    [apply] 	... 14 more
    [apply] com.eviware.soapui.support.SoapUIException: Failed to load project from file [http://simulator.template:80/testtools/soapui/null-soapui-project.xml]
    [apply] 	at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:318)
    ...
    [apply] 	at ch.itsbusiness.testrunner.ITSsoapUItestrunner.main(ITSsoapUItestrunner.java:63)
    [apply] Caused by: org.apache.xmlbeans.XmlException: error: Unexpected element: OPEN_TAG
    [apply] 	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
    ...
    [apply] 	... 8 more
    [apply] Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 2; columnNumber: 15; Unexpected element: OPEN_TAG
    [apply] 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
    ...
    [apply] 	... 14 more
    [apply] 10:35:13,155 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
    [apply] 10:35:13,155 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: GET /testtools/soapui/null-soapui-project.xml HTTP/1.1
    [apply] 10:35:13,160 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
    [apply] 10:35:13,165 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive for 5000 MILLISECONDS
    [apply] 10:35:13,172 ERROR [SoapUI] An error occurred [Failed to load project from file [http://simulator.template:80/testtools/soapui/null-soapui-project.xml]], see error log for details
    [apply] 10:35:13,351 ERROR [SoapUI] An error occurred [Failed to load SoapUI project file [http://simulator.template:80/testtools/soapui/null-soapui-project.xml]], see error log for details
    [apply] java.lang.Exception: Failed to load SoapUI project file [http://simulator.template:80/testtools/soapui/null-soapui-project.xml]
    [apply] 	at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:345)
    [apply] 	at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:204)
    [apply] 	at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:139)
    [apply] 	at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:114)
    [apply] 	at ch.itsbusiness.testrunner.ITSsoapUItestrunner.main(ITSsoapUItestrunner.java:63)
    [apply] Result: 255

I haven't been able to find any workable solution. Can anyone please point me in the right direction?

  • nmrao's avatar
    nmrao
    Champion Level 3
    How would some one imagine the case to reproduce? Would you mind providing more details?

    By the way, check your project file name. Does it have "null" in its name?
  • nmrao's avatar
    nmrao
    Champion Level 3
    Have you edited the project file manually in any text editor (Even if the project file name is having "null" in its name) ?
    Alternatively, you can try opening your project file in a browser and see.
    It complains line number 2 of your project file for some tag.
  • duvenhage's avatar
    duvenhage
    Occasional Contributor

    Hi Rao,

     

    Apologies for the late response. It's due to a combination of a hectic schedule and a fairly low priority for this problem. There's some work going on on this project at the moment and, once committed, I'll be able to check whether the problem still occurs. Until then it's dormant.

  • You have some extra details in your settings xml file. Open the settings file in a text editor (notepadd++) and simply try to save it. You ll be prompted with an error stating the line where the error occurs. In your case it's line 2 so try to understand what's extra in line 2. Save each time you make a modification and try to see what errors you get (or not).