[ 
https://issues.apache.org/jira/browse/JENA-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17408213#comment-17408213
 ] 

Andy Seaborne commented on JENA-2149:
-------------------------------------

An update to mockito-core 3.12.4 seems to have fixed this although I haven't 
identify which change in  mockito it was.

https://github.com/apache/jena/commit/07cfae2bf4fade2bf1611ebdaea94b246873ba94



> 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)

Reply via email to