Chunking throwing IOException

Klaus Wuestefeld <[email protected]> Sun, 16 Jun 2013 19:37:53 -0300
Newsgroups gmane.comp.java.prevayler
Message-ID <CAMAooZELY9R-R4ZEn8GdK4pN+Tmn_0xhjoyWuDMrc0r7eLqgOw@mail.gmail.com>
Hi,

Prevayler is throwing an IOException at startup when a chunk header is
corrupted.

Could this be caused by the last chunk not being written properly?
In this case, shouldn't Prevayler ignore the broken chunk?

Klaus


Caused by: java.io.IOException: Chunk header corrupted
at org.prevayler.foundation.Chunking.readChunk(Chunking.java:59)
at org.prevayler.foundation.DurableInputStream.readChunk(DurableInputStream.java:38)
at org.prevayler.implementation.journal.PersistentJournal.recoverPendingTransactions(PersistentJournal.java:169)
at org.prevayler.implementation.journal.PersistentJournal.update(PersistentJournal.java:142)
at org.prevayler.implementation.publishing.CentralPublisher.subscribe(CentralPublisher.java:98)
at org.prevayler.implementation.PrevalentSystemGuard.subscribeTo(PrevalentSystemGuard.java:45)
at org.prevayler.implementation.PrevaylerImpl.<init>(PrevaylerImpl.java:47)
at org.prevayler.PrevaylerFactory.create(PrevaylerFactory.java:289)

--
Valeu, Klaus.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org