Skip to content

Command shell (terminal) not working (Java 8/17) #120

@julianzz98

Description

@julianzz98

After checking out and building PR #119, the command shell seems to not be working under usage of ets-wms13/src/main/resources/org/opengis/cite/wms13/test-run-props.xml.

When the command shell is run:

julian@latlon-zilz:~/git/CITE-testsuites/ets-wms13/target$ java -jar ets-wms13-1.34-SNAPSHOT-aio.jar /home/julian/git/CITE-testsuites/ets-wms13/src/main/resources/org/opengis/cite/wms13/test-run-props.xml

It outputs the following error:

[Fatal Error] test-run-props.xml:2:10: DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.
Exception in thread "main" org.xml.sax.SAXParseException; systemId: file:/home/julian/git/CITE-testsuites/ets-wms13/src/main/resources/org/opengis/cite/wms13/test-run-props.xml; lineNumber: 2; columnNumber: 10; DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
	at org.opengis.cite.wms13.CtlController.main(CtlController.java:83)

This can be fixed by changing dbf.setFeature(FEATURE, false); to dbf.setFeature(FEATURE, false); in CtlController.java .

Another run then outputs this error:

julian@latlon-zilz:~/git/CITE-testsuites/ets-wms13/target$ java -jar ets-wms13-1.34-SNAPSHOT-aio.jar /home/julian/git/CITE-testsuites/ets-wms13/src/main/resources/org/opengis/cite/wms13/test-run-props.xml
Exception in thread "main" java.lang.IllegalArgumentException: URI is not hierarchical
	at java.base/java.io.File.<init>(File.java:420)
	at org.opengis.cite.wms13.CtlController.findScriptFile(CtlController.java:153)
	at org.opengis.cite.wms13.CtlController.<init>(CtlController.java:44)
	at org.opengis.cite.wms13.CtlController.main(CtlController.java:84)

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions