Thanks for your help Konrad (and others that might want to!)

I created two repos to ask for help:
https://github.com/Optrak/serializationBasics  <--- This one is based on a 
sample -- I think it is called akka-sample-persistence-scala, in the Akka 
code base. Apparently, I can persist messages using joda-time with 

   - https://github.com/romix/akka-kryo-serialization (compiled and 
   published locally to get a version that uses Akka 2.3.4)
   - https://github.com/magro/kryo-serializers

and
https://github.com/Optrak/AltFSMAndroid

The latter currently fails with
https://github.com/Optrak/AltFSMAndroid/blob/master/error2.txt

The README here (AT THE BOTTOM):
https://github.com/Optrak/AltFSMAndroid
says:
the error is
Caused by: java.lang.ClassNotFoundException: 
com.optrak.experiment.SettingTasksFSM.Task
(That is a Scala case class in our code).


I am not sure if name mangling is tricking me. For example, should I be 
using something like

com.optrak.experiment.SettingTasksFSM$.Task$

somewhere (in the application.conf? in the proguardOptions?)
Please HELP!


On Friday, August 1, 2014 3:15:13 AM UTC-5, Konrad Malawski wrote:
>
> Hey there,
> that class is not serialisable by the default Java serialiser - so it 
> blows up.
>
> Define custom serialisers for such types and you’re ready to roll: 
> http://doc.akka.io/docs/akka/snapshot/scala/serialization.html
>
> On 1 August 2014 at 03:42:28, Oscar Vargas Torres ([email protected] 
> <javascript:>) wrote:
>
> Hello!
>
> I m getting the following error:
>
> I/System.out﹕ java.io.NotSerializableException: 
> org.joda.time.tz.DateTimeZoneBuilder$Recurrence
>
> (Here is the full error message: http://pastie.org/9435620)
>
> I get the same error no matter if I use joda-time 2.4:
>
> libraryDependencies ++= Seq(  
>   "joda-time" % "joda-time" % "2.4",
>   "org.joda" % "joda-convert" % "1.6",
>   // more dependencies
> )
>
> or
>
>  libraryDependencies ++= Seq(
>
>
>  The app crashes when Akka Persistence tries to serialize a message that 
> includes a org.joda.time.DateTime.
> Any help/guidance is appreciated.
>
>    "org.joda" % "joda-convert" % "1.6",
>   // more dependencies
> )
>
>   "net.danlew" % "android.joda" % "2.3.4",
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "scala-on-android" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> Konrad 'ktoso’ Malawski
> hAkker @ typesafe
> akka.io / java.pl / geecon.org / krakowscala.pl / gdgkrakow.pl
>

-- 
You received this message because you are subscribed to the Google Groups 
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to