StoreTest.testLock() fails due to java.io.IOException: The process cannot
access the file because another process has locked a portion of the file on
Windows
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: AMQ-1348
URL: https://issues.apache.org/activemq/browse/AMQ-1348
Project: ActiveMQ
Issue Type: Bug
Components: Message Store
Affects Versions: 5.0.0
Environment: Windows.
Reporter: Hiram Chirino
Assignee: Hiram Chirino
Fix For: 5.0.0
{code}
java.io.IOException: The process cannot access the file because another process
has locked a portion of the file
at java.io.RandomAccessFile.readBytes(Native Method)
at java.io.RandomAccessFile.read(Unknown Source)
at java.io.RandomAccessFile.readFully(Unknown Source)
at java.io.RandomAccessFile.readFully(Unknown Source)
at
org.apache.activemq.kaha.impl.index.StoreIndexReader.readItem(StoreIndexReader.java:46)
at
org.apache.activemq.kaha.impl.index.IndexManager.initialize(IndexManager.java:177)
at
org.apache.activemq.kaha.impl.index.IndexManager.<init>(IndexManager.java:55)
at
org.apache.activemq.kaha.impl.KahaStore.getIndexManager(KahaStore.java:358)
at
org.apache.activemq.kaha.impl.KahaStore.initialize(KahaStore.java:428)
at
org.apache.activemq.kaha.impl.KahaStore.doesListContainerExist(KahaStore.java:250)
at
org.apache.activemq.kaha.impl.KahaStore.doesListContainerExist(KahaStore.java:246)
at org.apache.activemq.kaha.StoreTest.testLock(StoreTest.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.