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.