I tried running the `SPDXViewer` functionality on the [standard 2.3 JSON example](https://github.com/spdx/spdx-spec/blob/development/v2.3.1/examples/SPDXJSONExample-v2.3.spdx.json) and got the following error: ``` java -jar tools-java-1.1.6-SNAPSHOT-jar-with-dependencies.jar SPDXViewer SPDXJSONExample-v2.3.spdx.json WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. 17:02:26.550 [main] ERROR org.apache.jena.util.JenaXMLInput - Problem setting StAX property - name: "http://javax.xml.XMLConstants/property/accessExternalDTD" - value: "" - error: Unrecognized property 'http://javax.xml.XMLConstants/property/accessExternalDTD' 17:02:26.566 [main] ERROR org.apache.jena.riot - [line: 1, col: 1 ] Content is not allowed in prolog. Error creating SPDX Document: [line: 1, col: 1 ] Content is not allowed in prolog. ```
Activity
goneall commentedon Apr 13, 2023
It looks like
SPDXVieweronly supports RDF as the input format.Should be an easy fix to support all file types - I'll see if I can get a PR submitted before the next release.
Support JSON, YAML, XML (and tag/value) file types for SPDX Viewer
Sync with original repository (#1)