构建ActiveMQ源代码报IOException

kaiyuancn 发布于 2017/05/23 17:33
阅读 101
收藏 0

使用NetBeans构建activemq-parent-5.14.5-source-release的时候报错:

testRecoveryOnArchiveFailure(org.apache.activemq.store.kahadb.JournalArchiveTest)  Time elapsed: 3.444 sec  <<< FAILURE!
java.lang.AssertionError: Failed to restart after failure to archive
    at org.junit.Assert.fail(Assert.java:88)
    at org.apache.activemq.store.kahadb.JournalArchiveTest.testRecoveryOnArchiveFailure(JournalArchiveTest.java:168)

testRecoveryOnArchiveFailure(org.apache.activemq.store.kahadb.JournalArchiveTest)  Time elapsed: 3.45 sec  <<< ERROR!
java.io.IOException: Failed to move target\activemq-data\localhost\KahaDB\db-7.log to F:\activemq-parent-5.14.5-source-release\activemq-parent-5.14.5\activemq-kahadb-store\target\activemq-data\localhost\KahaDB\data-archive - target\activemq-data\localhost\KahaDB\db-7.log -> F:\activemq-parent-5.14.5-source-release\activemq-parent-5.14.5\activemq-kahadb-store\target\activemq-data\localhost\KahaDB\data-archive\db-7.log: 另一个程序正在使用此文件,进程无法访问。

    at org.apache.activemq.util.IOHelper.moveFile(IOHelper.java:200)
    at org.apache.activemq.store.kahadb.disk.journal.DataFile.move(DataFile.java:107)
    at org.apache.activemq.store.kahadb.disk.journal.Journal.forceRemoveDataFile(Journal.java:773)
    at org.apache.activemq.store.kahadb.disk.journal.Journal.removeDataFiles(Journal.java:752)
    at org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1697)
    at org.apache.activemq.store.kahadb.MessageDatabase.close(MessageDatabase.java:495)
    at org.apache.activemq.store.kahadb.MessageDatabase.unload(MessageDatabase.java:534)
    at org.apache.activemq.store.kahadb.MessageDatabase.doStop(MessageDatabase.java:302)
    at org.apache.activemq.store.kahadb.KahaDBStore.doStop(KahaDBStore.java:306)
    at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:71)
    at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.doStop(KahaDBPersistenceAdapter.java:254)
    at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:71)
    at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
    at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:842)
    at org.apache.activemq.store.kahadb.JournalArchiveTest.tearDown(JournalArchiveTest.java:112)

 

加载中
返回顶部
顶部