activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kseelam <krishna_see...@hotmail.com>
Subject Failed to mark the Journal - java.io.FileNotFoundException
Date Thu, 07 Jul 2011 00:58:25 GMT
Hi,

We are using the activemq-5.4.0 with Journaling turned on. So far It has
been working fine without any issues. 

All of the sudden, today, we started getting the 
../apache-activemq-5.4.0/data/journal/archive/00000000.log file not found
exception in our PRODUCTION environment. 
We checked our server and yes, the file is NOT there. But why is it looking
the file which was not created Or is there anything else going wrong?

(Eventhough with this error, it appears the Message producers and consumers
are working as expected and seems we are not loosing any messages. bur we
need to wait and see)
 
and We checked the server directories:

Under /opt/activemq/apache-activemq-5.4.0/data/journal/  directory there is
only one directory - 'journal'.  (there is no 'archive' directory)

Under /opt/activemq/apache-activemq-5.4.0/data/journal/journal  directory,
the following 3 files are found.

-rw-rw-r-- 1 activemq activemq 20971520 Jul  6 17:41     log-001.dat
-rw-rw-r-- 1 activemq activemq         100 Jul  6 13:26     control.dat
-rw-rw-r-- 1 activemq activemq 20971520 Jul  6 13:26     log-000.dat

*More curiously the error started happenning when the control.dat  and
log-000.dat files were last updated/created. (I mean the error started at
Jul 6 13:26)

log-001.dat has been updating fir every minute to 5 minutes or so.

Here is the complete Error Log:

/Failed to mark the Journal: java.io.FileNotFoundException:
/opt/activemq/apache-activemq-5.4.0/data/journal/archive/00000000.log (No
such file or directory) |
org.apache.activemq.store.journal.JournalPersistenceAdapter | Persistence
Adaptor Task
java.io.FileNotFoundException:
/opt/activemq/apache-activemq-5.4.0/data/journal/archive/00000000.log (No
such file or directory)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(Unknown Source)
	at java.io.FileOutputStream.<init>(Unknown Source)
	at org.apache.activeio.journal.active.LogFile.copyTo(LogFile.java:149)
	at
org.apache.activeio.journal.active.LogFileManager.updateMark(LogFileManager.java:341)
	at
org.apache.activeio.journal.active.LogFileManager.append(LogFileManager.java:325)
	at
org.apache.activeio.journal.active.JournalImpl.queuedWrite(JournalImpl.java:256)
	at
org.apache.activeio.journal.active.JournalImpl.access$000(JournalImpl.java:62)
	at
org.apache.activeio.journal.active.JournalImpl$2.run(JournalImpl.java:229)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
/

Could any one please tell what was causing this?

Thank you in advance.

--
View this message in context: http://activemq.2283324.n4.nabble.com/Failed-to-mark-the-Journal-java-io-FileNotFoundException-tp3650403p3650403.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message