Skip to content

SPDXViewer error #116

Closed
Closed

Description

@armintaenzertng

I tried running the SPDXViewer functionality on the standard 2.3 JSON example 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

  1. goneall commented on Apr 13, 2023

    @goneall
    Member

    It looks like SPDXViewer only 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.

  2. added a commit that references this issue on Apr 14, 2023
    930c1d2
  3. added a commit that references this issue on Jun 25, 2025
    b6ec62f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions