You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dave Stanley (JIRA)" <ji...@apache.org> on 2009/06/16 00:00:35 UTC

[jira] Updated: (AMQ-2292) NullPointerException in ReadOnlyAsyncDataManager as accessorPool is not initialized

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

Dave Stanley updated AMQ-2292:
------------------------------

    Attachment: readonly_async_data_mgr_patch.txt

Patch attached.

>  NullPointerException in ReadOnlyAsyncDataManager as accessorPool is not initialized
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-2292
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2292
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.2.0
>         Environment: Trunk
>            Reporter: Dave Stanley
>         Attachments: readonly_async_data_mgr_patch.txt
>
>
> When you try and use the ReadOnlyAsyncDataManager it throws a NullPointerException like the following:
> java.lang.NullPointerException
> 	at org.apache.activemq.kaha.impl.async.AsyncDataManager.getNextLocation(AsyncDataManager.java:547)
> 	at org.apache.activemq.kaha.impl.async.ReadOnlyAsyncDataManager.getFirstLocation(ReadOnlyAsyncDataManager.java:128)
> 	at org.apache.activemq.kaha.impl.async.JournalImplTest.testReadOnlyRead(JournalImplTest.java:161)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at junit.framework.TestCase.runTest(TestCase.java:168)
> 	at junit.framework.TestCase.runBare(TestCase.java:134)
> 	at junit.framework.TestResult$1.protect(TestResult.java:110)
> 	at junit.framework.TestResult.runProtected(TestResult.java:128)
> 	at junit.framework.TestResult.run(TestResult.java:113)
> 	at junit.framework.TestCase.run(TestCase.java:124)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:232)
> 	at junit.framework.TestSuite.run(TestSuite.java:227)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
> The ReadOnlyDataManager needs to init an accessorPool. Testcase and patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.