R Pope created JENA-2102:
----------------------------
Summary: Calling jena.textindexer from command line throws a
NullPointerException
Key: JENA-2102
URL: https://issues.apache.org/jira/browse/JENA-2102
Project: Apache Jena
Issue Type: Bug
Components: Jena, Text
Affects Versions: Jena 4.0.0
Environment: {code:java}
Singularity> java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-post-Debian-1deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.11+9-post-Debian-1deb10u1, mixed mode,
sharing){code}
Currently running openJDK since we are using HPC, but have tried running on
standard Java setup and get same issue.
{code:java}
[popere@mahuika01 tuia]$ java --version
java 15.0.2 2021-01-19
Java(TM) SE Runtime Environment (build 15.0.2+7-27)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)
[popere@mahuika01 tuia]$ java -cp fuseki-server/fuseki-server.jar
jena.textindexer
Exception in thread "main" java.lang.ExceptionInInitializerError
at jena.textindexer.main(textindexer.java:25)
Caused by: java.lang.NullPointerException: Cannot invoke
"java.util.Map.put(Object, Object)" because "org.apache.jena.cmd.Cmds.cmds" is
null
at org.apache.jena.cmd.Cmds.injectCmd(Cmds.java:38)
at org.apache.jena.query.text.cmd.InitTextCmds.cmds(InitTextCmds.java:25)
at org.apache.jena.query.text.TextQuery.init(TextQuery.java:74)
at org.apache.jena.query.text.InitJenaText.start(InitJenaText.java:32)
at org.apache.jena.sys.JenaSystem.lambda$init$2(JenaSystem.java:117)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.apache.jena.sys.JenaSystem.forEach(JenaSystem.java:192)
at org.apache.jena.sys.JenaSystem.forEach(JenaSystem.java:169)
at org.apache.jena.sys.JenaSystem.init(JenaSystem.java:115)
at org.apache.jena.cmd.Cmds.<clinit>(Cmds.java:33)
... 1 more{code}
Reporter: R Pope
{code:java}
Singularity> java -cp
/usr/local/share/apache-jena-fuseki-4.0.0/fuseki-server.jar jena.textindexer
--desc=TextQuery/text-index.ttl
Exception in thread "main" java.lang.ExceptionInInitializerError
at jena.textindexer.main(textindexer.java:25)
Caused by: java.lang.NullPointerException
at org.apache.jena.cmd.Cmds.injectCmd(Cmds.java:38)
at org.apache.jena.query.text.cmd.InitTextCmds.cmds(InitTextCmds.java:25)
at org.apache.jena.query.text.TextQuery.init(TextQuery.java:74)
at org.apache.jena.query.text.InitJenaText.start(InitJenaText.java:32)
at org.apache.jena.sys.JenaSystem.lambda$init$2(JenaSystem.java:117)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at org.apache.jena.sys.JenaSystem.forEach(JenaSystem.java:192)
at org.apache.jena.sys.JenaSystem.forEach(JenaSystem.java:169)
at org.apache.jena.sys.JenaSystem.init(JenaSystem.java:115)
at org.apache.jena.cmd.Cmds.<clinit>(Cmds.java:33)
... 1 more
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)