Hi Christian, Are you using Java serialization to save Scala objects? Please note that these Scala versions are not binary compatible, not even on the serialization level. It is highly recommended to use a proper serialization format when using persistence (protobuf, Thrift, etc.) that support forward-backward compatibility and a stable binary format irregardless of the platform.
-Endre On Mon, Sep 29, 2014 at 8:42 AM, Christian Kitzmueller < [email protected]> wrote: > Hi, > > we are currently using akka 2.3.6 and checking for migration from scala > 2.10.4 to 2.11.2. When I tried an update to scala 2.11.2, I noticed > following things: > > When I start my application (using a local leveldb) I cannot reload > Snapshots - I get the following exception: > > 08:12:08.232 ERROR [akka.tcp://[email protected]:3552/system/snapshot-store] > Error loading snapshot [SnapshotMetadata(xxxx,3,1411970788025)] > java.io.InvalidClassException: scala.Option; local class incompatible: > stream classdesc serialVersionUID = -2062608324514658839, local class > serialVersionUID = > -114498752079829388 > > I have a similar issue with the akka-persistence-mongo-casbah journal: > > 07:43:03.534 ERROR [akka.tcp://[email protected]:3552/system/snapshot-store] > error loading snapshot { "_id" : { "$oid" : "5428f1275fe8f19e6086ec8c"} > , "persistenceId" : "xxxxxx" , "sequenceNr" : 0 , "timestamp" : > 1411969319306 , "snapshot" : <Binary Data>} > java.io.InvalidClassException: akka.persistence.SelectedSnapshot; local > class incompatible: stream classdesc serialVersionUID = > -7413351535605152403, local clas > s serialVersionUID = -8204699298693905400 > at java.io.ObjectStreamClass.initNonProxy(Unknown Source) > ~[na:1.7.0_45] > > I guess the only workaround for this would be touching the serializers? > > Regards, > Christian > > -- > >>>>>>>>>> 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. > -- Akka Team Typesafe - The software stack for applications that scale Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> 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.
