[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[lyo-dev] FW: [4.3.2] Cannot invoke "org.apache.jena.rdf.model.Property.asNode()" because "org.apache.jena.vocabulary.RDF.type" is null
|
I think we can suggest calling "JenaSystem.init()" in the Application class or as early as possible to shave ~ 300ms off the first operations with a Jena Model. And to make some Jena behaviors deterministic according to Andy.
On 2022-03-09, 12:34, "Andy Seaborne" <andy@xxxxxxxxxx> wrote:
On 09/03/2022 11:16, Martynas Jusevičius wrote:
> Hi,
>
> This appeared after Java upgrade from 11 to 17:
>
> WARN LocationMapper:188 - Error in configuration file: Cannot invoke
> "org.apache.jena.rdf.model.Property.asNode()" because
> "org.apache.jena.vocabulary.RDF.type" is null
May be init related ... depends when it happened in the app.
Always good to call
JenaSystem.init
before any Jena code is touched if you can. It makes the whole thing
deterministic.
> I was looking at the LocationMapper code, but line 188 does not
> contain anything like that:
> https://github.com/apache/jena/blob/main/jena-core/src/main/java/org/apache/jena/util/LocationMapper.java#L188
Wrong location manager?
Look at any stacktraces.
Run 4.4.0.
>
> What is the cause and does this need to be addressed?
>
> Martynas