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 >

Chat with CA

Just give us some brief information and we'll connect you to the right CA ExpertCA sales representative.

Our hours of availability are 8AM - 5PM CST.

All Fields Required

connecting

We're matching your request.

Unfortunately, we can't connect you to an agent. If you are not automatically redirected please click here.

  • {{message.agentProfile.name}} will be helping you today.

    View Profile


  • Transfered to {{message.agentProfile.name}}

    {{message.agentProfile.name}} joined the conversation

    {{message.agentProfile.name}} left the conversation

  • Your chat with {{$storage.chatSession.messages[$index - 1].agentProfile.name}} has ended.
    Thank you for your interest in CA.


    Rate Your Chat Experience.

    {{chat.statusMsg}}

agent is typing