Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test "owsTests:ows-main" failed validation error via REST API #36

Closed
keshavnangare opened this issue May 6, 2019 · 1 comment · Fixed by #37
Closed

Test "owsTests:ows-main" failed validation error via REST API #36

keshavnangare opened this issue May 6, 2019 · 1 comment · Fixed by #37
Assignees
Labels
Projects
Milestone

Comments

@keshavnangare
Copy link

keshavnangare commented May 6, 2019

Following are the details to reproduce this issue:

There are multiple test failures with the same error when we execute the test via REST API.

Caused by: java.lang.RuntimeException: Failed to parse resource from http://sensorweb.demo.52north.org/52n-sos-webapp/service/kvp?service=SOS&request=GetCapabilities
	at com.occamlab.te.parsers.XMLValidatingParser.parse(XMLValidatingParser.java:227)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.occamlab.te.TECore.parse(TECore.java:2168)
	... 387 more
Caused by: org.xml.sax.SAXParseException; systemId: jar:file:/usr/local/tomcat/webapps/teamengine/WEB-INF/lib/ets-sos20-1.14-SNAPSHOT.jar!/xsd/w3c/xml.xsd; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

Here is log file: logs.txt

But if we run this ets via webapp it worked successfully.

@lgoltz
Copy link
Contributor

lgoltz commented Jun 5, 2019

Encoding of file src/main/resources/xsd/w3c/xml.xsd was UTF-16 and the file broken in the jar file. Furthermore an update of the teamengine version was required (bug fix opengeospatial/teamengine#362)

@lgoltz lgoltz moved this from In progress to To verify in CITE Jun 5, 2019
@dstenger dstenger added this to the 1.14 milestone Aug 19, 2019
CITE automation moved this from To verify to Done May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
CITE
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants