[jira] [Commented] (JENA-2102) Calling jena.textindexer from command line throws a NullPointerException
[ https://issues.apache.org/jira/browse/JENA-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17339511#comment-17339511 ] ASF subversion and git services commented on JENA-2102: --- Commit ad24b3777c3515fbaabe81e8ec2ad9d95f012e4c in jena's branch refs/heads/main from Andy Seaborne [ https://gitbox.apache.org/repos/asf?p=jena.git;h=ad24b37 ] JENA-2102: Fix init check > 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.(Cmds.java:33) > ... 1 more{code} >Reporter: R Pope >Assignee: Andy Seaborne >Priority: Major > > {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.(Cmds.java:33) > ... 1 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (JENA-2102) Calling jena.textindexer from command line throws a NullPointerException
[ https://issues.apache.org/jira/browse/JENA-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17339503#comment-17339503 ] ASF subversion and git services commented on JENA-2102: --- Commit cb1def6ce03d54e6719a9bbe9d5d0d95de7daf8b in jena's branch refs/heads/main from Andy Seaborne [ https://gitbox.apache.org/repos/asf?p=jena.git;h=cb1def6 ] Merge pull request #998 from afs/jena2102-cmd-init JENA-2102: Explicitly initialize map for injected commands > 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.(Cmds.java:33) > ... 1 more{code} >Reporter: R Pope >Assignee: Andy Seaborne >Priority: Major > > {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.(Cmds.java:33) > ... 1 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (JENA-2102) Calling jena.textindexer from command line throws a NullPointerException
[ https://issues.apache.org/jira/browse/JENA-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17339502#comment-17339502 ] ASF subversion and git services commented on JENA-2102: --- Commit 155af2a8eb82854b1f839b287bfb55eb11587020 in jena's branch refs/heads/main from Andy Seaborne [ https://gitbox.apache.org/repos/asf?p=jena.git;h=155af2a ] JENA-2102: Explicitly initialize map for injected commands > 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.(Cmds.java:33) > ... 1 more{code} >Reporter: R Pope >Assignee: Andy Seaborne >Priority: Major > > {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.(Cmds.java:33) > ... 1 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (JENA-2102) Calling jena.textindexer from command line throws a NullPointerException
[ https://issues.apache.org/jira/browse/JENA-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17338880#comment-17338880 ] Andy Seaborne commented on JENA-2102: - Hi - thanks for the report. Java class initialization order bites again! There isn't a workaround with writing java. There will be a development build with the fix quite soon. > 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.(Cmds.java:33) > ... 1 more{code} >Reporter: R Pope >Assignee: Andy Seaborne >Priority: Major > > {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.(Cmds.java:33) > ... 1 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)