ActiveMQ Failed to Fill Batch Could not locate data file

Document ID:  TEC1956072
Last Modified Date:  06/06/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Service Operations Insight

Releases

  • CA Service Operations Insight:Release:4.0

Components

  • Service Operations Insight (SOI) Manager:SOIMGR
Problem:

There have been recent cases where the the ActiveMQ component in SOI stopped working despite the settings below
in the  <SOI_HOME>\tomcat\webapps\activemq-web\WEB-INF\caifwmq.xml file
<persistenceAdapter>

            <!--<amqPersistenceAdapter syncOnWrite="false" directory="${activemq.base}/data" maxFileLength="32 mb"/>-->

  <kahaDB directory="C:\Program Files (x86)\CA\SOI\tomcat\webapps\activemq-web\activemq-data" journalMaxFileLength="32mb" cleanupInterval="5000" ignoreMissingJournalfiles="true"/>

</persistenceAdapter>

 

In the soimgr.log, you will see the following error messages...

 
ERROR [ActiveMQ Transport: tcp:///*.*.*.*:53839] cursors.AbstractStoreCursor.fillBatch(264)  - Failed to fill batch

java.io.IOException: Could not locate data file C:\Program Files (x86)\soi\tomcat\webapps\activemq-web\activemq-data\db-9552.log

ERROR [localhost-startStop-1] broker.BrokerService.start(528)  - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Detected missing/corrupt journal files. 1 messages affected.

java.io.IOException: Detected missing/corrupt journal files. 1 messages affected.

 

Environment:
SOI 4.2 SP2
Resolution:

Removing the cleanupInterval="5000" resolves this problem.

The settings should look as follows

<persistenceAdapter>

            <!--<amqPersistenceAdapter syncOnWrite="false" directory="${activemq.base}/data" maxFileLength="32 mb"/>-->

  <kahaDB directory="C:\Program Files (x86)\CA\SOI\tomcat\webapps\activemq-web\activemq-data" journalMaxFileLength="32mb"  ignoreMissingJournalfiles="true"/>

</persistenceAdapter>

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >