Hi Christian,

> just saw that the SelectedSnapshot issue seems to be related to the
> akka.persistence casbah mongodb plugin and was fixed a few days ago. I also
> had a look again at the snapshot serializer and saw this:
>
> val header = SnapshotHeader(snapshotSerializer.identifier,
> snapshotManifest)  val headerSerializer =
> *extension.findSerializerFor(header)*  val headerBytes = headerSerializer.
> toBinary(header)
> I haven't found a serializer for the SnapshotHeader only the Snapshot.
> Did I just miss it?
>

Nope, I haven't found one either, this is a bug it seems. I opened a
ticket: https://github.com/akka/akka/issues/16009

-Endre


>
> Regards,
> Christian
>
> Am Dienstag, 30. September 2014 17:38:54 UTC+2 schrieb Christian
> Kitzmueller:
>
>> Hi,
>>
>> we are using protobuf to serialize our messages - I have to check if we
>> might have missed one. From your comment I conclude that akka persistence
>> itself shouldn't be an issue and the internal parts it is saving (like
>> snapshot headers, manifest, etc ...) are safe ?
>>
>> Regards,
>> Christian
>>
>> Am Dienstag, 30. September 2014 13:00:59 UTC+2 schrieb Akka Team:
>>>
>>> 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.
>



-- 
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.

Reply via email to