Hi

We using Akka 2.3.2 with akka-persistence in our project.
So far our experience with this new module are quite good :)
. 
But recently we run into some troubles when using snapshots. In the case we 
shutdown our application we write some data
to some snapshots. Some how it happens sometimes that snapshot files are 
created but empty.

In the case of a restart of our application this empty snapshots causes 
this error. 
If more revision of this snapshot are available and the last one does 
contain data, the error does not occur.

java.io.EOFException: null
        at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown 
Source) ~[na:1.7.0_25]
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown 
Source) ~[na:1.7.0_25]
        at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
~[na:1.7.0_25]
        at java.io.ObjectInputStream.<init>(Unknown Source) ~[na:1.7.0_25]
        at 
akka.util.ClassLoaderObjectInputStream.<init>(ClassLoaderObjectInputStream.scala:16)
 
~[akka-actor_2.10-2.3.2.jar:na]

I would expect that an empty file should not cause an exception.

Regards

Wolfgang


-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to