[ https://issues.apache.org/jira/browse/JENA-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne updated JENA-2149: -------------------------------- Description: Java18 is showing a problem with mockito in jena-core contract tests, jena-permissions and jena-querybuilder. They look similar - some kind of mockito init problem: {noformat} ... Caused by: java.lang.NullPointerException: Cannot invoke "org.mockito.internal.configuration.plugins.PluginRegistry.getStackTraceCleanerProvider()" because "org.mockito.internal.configuration.plugins.Plugins.registry" is null {noformat} The "cannot invoke" changes - the {{"org.mockito.internal.configuration.plugins.Plugins.registry" is null}] does not. One example: https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-core/3/testReport/org.apache.jena.graph.impl/SimpleEventManager_CS/testGeneralEvent_GraphEventManagerContractTest_/ tests: https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-permissions/3/testReport/ https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-core/3/testReport/ https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-querybuilder/3/testReport/ The dependency is mockito 3.11.2 (which is latest : 2021-06-21). I didn't find any online reports of problems nor a report at the mockito project on github. This is only on our java18 build - the other JDK versions pass. was: Java18 is showing a problem with mockito in jena-core contract tests, jena-permissions and jena-querybuilder. One example (they look similar - some kind of mockito init problem) https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-core/3/testReport/org.apache.jena.graph.impl/SimpleEventManager_CS/testGeneralEvent_GraphEventManagerContractTest_/ tests: https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-permissions/3/testReport/ https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-core/3/testReport/ https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-querybuilder/3/testReport/ The dependency is mockito 3.11.2 (which is latest : 2021-06-21). I didn't find any online reports of problems nor a report at the mockito project on github. This is only on our java18 build - the other JDK versions pass. > Java18 JDK + Mockito causes problems > ------------------------------------ > > Key: JENA-2149 > URL: https://issues.apache.org/jira/browse/JENA-2149 > Project: Apache Jena > Issue Type: Bug > Reporter: Andy Seaborne > Priority: Major > > Java18 is showing a problem with mockito in jena-core contract tests, > jena-permissions and jena-querybuilder. > They look similar - some kind of mockito init problem: > {noformat} > ... > Caused by: java.lang.NullPointerException: Cannot invoke > "org.mockito.internal.configuration.plugins.PluginRegistry.getStackTraceCleanerProvider()" > because "org.mockito.internal.configuration.plugins.Plugins.registry" is null > {noformat} > The "cannot invoke" changes - the > {{"org.mockito.internal.configuration.plugins.Plugins.registry" is null}] > does not. > One example: > https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-core/3/testReport/org.apache.jena.graph.impl/SimpleEventManager_CS/testGeneralEvent_GraphEventManagerContractTest_/ > tests: > https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-permissions/3/testReport/ > https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-core/3/testReport/ > https://ci-builds.apache.org/job/Jena/job/Jena_JDK18/org.apache.jena$jena-querybuilder/3/testReport/ > The dependency is mockito 3.11.2 (which is latest : 2021-06-21). > I didn't find any online reports of problems nor a report at the mockito > project on github. > This is only on our java18 build - the other JDK versions pass. -- This message was sent by Atlassian Jira (v8.3.4#803005)