Hi ! You are right its on a local file system and only if the last file is empty? I will add a ticket and add the stack trace.
Thanks for the fast answer. Wolfgang Am Freitag, 16. Mai 2014 11:43:32 UTC+2 schrieb Björn Antonsson: > > Hi Wolfgang, > > I guess you are using the local file system store, and the problem only > occurs if the last snapshot file is empty? > > That does indeed sound like a real issue. Would you mind opening a > ticket<https://github.com/akka/akka/issues> and > add this information (with a longer more complete stack trace). > > B/ > > On 16 May 2014 at 10:17:23, Wofr ([email protected] <javascript:>) > wrote: > > 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] <javascript:>. > To post to this group, send email to [email protected]<javascript:> > . > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > > -- > *Björn Antonsson* > Typesafe <http://typesafe.com/> – Reactive <http://reactivemanifesto.org/> > Apps > on the JVM > twitter: @bantonsson <http://twitter.com/#!/bantonsson> > > JOIN US. REGISTER TODAY! <http://www.scaladays.org/> > Scala <http://www.scaladays.org/> > Days <http://www.scaladays.org/> > June 16th-18th, <http://www.scaladays.org/> > Berlin <http://www.scaladays.org/> > > -- >>>>>>>>>> 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.
