Hi, I am trying to convert a tag file to RDF file by using the TagToRDF class and the function convertTagFileToRdf and got a NoSuchMethodError exception.
I am using the test file tools-java/testResources/SPDXTagExample-v2.2.spdx at the Github repo. Creating a SpdxDocument and logging annotations from the file. The exception is thrown the convertTagFileToRdf function try to set behavior by creating a new BuildDocument class, mark in bold. None of the input parameters are null. HandBuiltParser parser = new HandBuiltParser(nci); SpdxDocumentContainer[] result = new SpdxDocumentContainer[1]; *parser.setBehavior(new BuildDocument(result, constants, warnings));* parser.data(); I am using the spdx-tools-2.2.7.jar which has the TagToRDF but can't find the class in the Github repo. I am a newbie so maybe I am using the wrong library or just got the wrong end of the stick? Greetings Chris. -------------- The exception is logged by the spdx-tools: org.spdx.tag.BuildDocument.<init>([Lorg/spdx/rdfparser/SpdxDocumentContainer;Ljava/util/Properties;Ljava/util/List;)V java.lang.NoSuchMethodError at org.clearbyte.persistance.test.SpdxManagerTest.spdxTagFileToRDFTest(SpdxManagerTest.java:61) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#4555): https://lists.spdx.org/g/Spdx-tech/message/4555 Mute This Topic: https://lists.spdx.org/mt/91575539/21656 Group Owner: [email protected] Unsubscribe: https://lists.spdx.org/g/Spdx-tech/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
