Hi Andy, Adding JenaSystem.init() to my class does the trick.
Bart From: Bart van Leeuwen/netage To: [email protected] Date: 31-08-2024 22:46 Subject: RE: Re: Issues with WAR when upgrading from 5.0.0 to 5.1.0 Hi Andy, Will test tomorrow, so my initial idea was correct. Did anything change inbetween 5.0.0 and 5.1.0 ? Goodnight from a quiet fire station ;) Bart On 2024/08/31 20:03:35 Andy Seaborne wrote: > Hi Bart, > > Innl.netage.storetest.Reader > > could you add this as a class static initializer at the beginning of the > class: > > static { jenaSystem.init(); } > > if that works, adding it to info.resc.pontypandy.store.StoreFactory > (assuming that's your code). > > > In general, especially if there might be multiple threads very early on > (not the case here), it is a good idea to call JenaSystem.init(). > > My regards to Sam, > > Andy > > On 31/08/2024 19:04, Bart van Leeuwen wrote: > > Hi, > > > > I've started upgrading my components from 5.0.0 to 5.1.0 and I run > > into the following stacktrace when creating a remotefuseki connection > > > > I suspect an initialization issue, but I cannot find any reference in > > the release notes. > > > > ===== > > > > Caused by: java.lang.ExceptionInInitializerError > > at > > org.apache.jena.sparql.engine.optimizer.reorder.ReorderFixed.type(ReorderFixed.java:61) > > at > > org.apache.jena.sparql.engine.optimizer.reorder.ReorderFixed.<clinit>(ReorderFixed.java:63) > > at > > org.apache.jena.sparql.engine.optimizer.reorder.ReorderLib.fixed(ReorderLib.java:76) > > at org.apache.jena.tdb1.sys.SystemTDB.<clinit>(SystemTDB.java:193) > > at org.apache.jena.tdb1.TDB1.<clinit>(TDB1.java:99) > > at org.apache.jena.tdb1.sys.InitTDB.start(InitTDB.java:29) > > at > > org.apache.jena.base.module.Subsystem.lambda$initialize$1(Subsystem.java:117) > > at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) > > at org.apache.jena.base.module.Subsystem.forEach(Subsystem.java:193) > > at org.apache.jena.base.module.Subsystem.forEach(Subsystem.java:169) > > at > > org.apache.jena.base.module.Subsystem.initialize(Subsystem.java:115) > > at org.apache.jena.sys.JenaSystem.init(JenaSystem.java:89) > > at org.apache.jena.graph.NodeFactory.<clinit>(NodeFactory.java:39) > > at > > org.apache.jena.rdf.model.impl.ResourceImpl.fresh(ResourceImpl.java:150) > > at > > org.apache.jena.rdf.model.impl.ResourceImpl.<init>(ResourceImpl.java:86) > > at > > org.apache.jena.rdf.model.ResourceFactory$Impl.createResource(ResourceFactory.java:308) > > at > > org.apache.jena.rdf.model.ResourceFactory.createResource(ResourceFactory.java:94) > > at org.apache.jena.vocabulary.RDF.resource(RDF.java:54) > > at org.apache.jena.vocabulary.RDF.<clinit>(RDF.java:65) > > at org.apache.jena.riot.lang.ReaderTriX.<clinit>(ReaderTriX.java:116) > > at > > org.apache.jena.riot.RDFParserRegistry.initStandard(RDFParserRegistry.java:74) > > at > > org.apache.jena.riot.RDFParserRegistry.init(RDFParserRegistry.java:57) > > at > > org.apache.jena.riot.RDFParserRegistry.<clinit>(RDFParserRegistry.java:52) > > at org.apache.jena.riot.RDFLanguages.isQuads(RDFLanguages.java:370) > > at > > org.apache.jena.rdflink.RDFLinkHTTPBuilder.quadsFormat(RDFLinkHTTPBuilder.java:172) > > at > > org.apache.jena.rdflink.RDFLinkFuseki.setupForFuseki(RDFLinkFuseki.java:65) > > at > > org.apache.jena.rdflink.RDFLinkFuseki.newBuilder(RDFLinkFuseki.java:45) > > at > > org.apache.jena.rdfconnection.RDFConnectionFuseki$RDFConnectionFusekiBuilder.<init>(RDFConnectionFuseki.java:75) > > at > > org.apache.jena.rdfconnection.RDFConnectionFuseki.create(RDFConnectionFuseki.java:61) > > at > > info.resc.pontypandy.store.jena.fuseki.JenaFusekiStore.<init>(JenaFusekiStore.java:52) > > at > > info.resc.pontypandy.store.jena.fuseki.JenaFusekiStoreFactory.getStore(JenaFusekiStoreFactory.java:75) > > at > > info.resc.pontypandy.store.jena.fuseki.JenaFusekiStoreFactory.getStore(JenaFusekiStoreFactory.java:16) > > at > > info.resc.pontypandy.store.StoreFactory.getStoreFromJNDI(StoreFactory.java:292) > > at nl.netage.storetest.Reader.test(Reader.java:41) > > at > > java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) > > at java.base/java.lang.reflect.Method.invoke(Method.java:580) > > at > > org.apache.openejb.server.cxf.rs.PojoInvoker.performInvocation(PojoInvoker.java:43) > > at > > org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) > > ... 37 more > > Caused by: java.lang.NullPointerException: Cannot invoke > > "org.apache.jena.rdf.model.Resource.asNode()" because > > "org.apache.jena.vocabulary.RDF.Alt" is null > > at org.apache.jena.vocabulary.RDF$Nodes.<clinit>(RDF.java:193) > > ... 75 more >
