[ 
https://issues.apache.org/jira/browse/ARTEMIS-2667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram updated ARTEMIS-2667:
------------------------------------
    Description: 
Adding a call to {{clear()}} at the end of 
{{org.apache.activemq.artemis.tests.integration.persistence.DuplicateCacheTest#testDuplicateNonPersistent}}
 triggers an NPE:

{noformat}
java.lang.NullPointerException
        at 
org.apache.activemq.artemis.core.postoffice.impl.DuplicateIDCacheImpl.clear(DuplicateIDCacheImpl.java:307)
        at 
org.apache.activemq.artemis.tests.integration.persistence.DuplicateCacheTest.testDuplicateNonPersistent(DuplicateCacheTest.java:122)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
        ...
        at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
{noformat}

> NPE when clearing non-persistent duplicate ID cache
> ---------------------------------------------------
>
>                 Key: ARTEMIS-2667
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2667
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>
> Adding a call to {{clear()}} at the end of 
> {{org.apache.activemq.artemis.tests.integration.persistence.DuplicateCacheTest#testDuplicateNonPersistent}}
>  triggers an NPE:
> {noformat}
> java.lang.NullPointerException
>       at 
> org.apache.activemq.artemis.core.postoffice.impl.DuplicateIDCacheImpl.clear(DuplicateIDCacheImpl.java:307)
>       at 
> org.apache.activemq.artemis.tests.integration.persistence.DuplicateCacheTest.testDuplicateNonPersistent(DuplicateCacheTest.java:122)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>       ...
>       at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to