Hey hAkkers,
I've been trying to implement Serializer for akka so that it uses
https://github.com/RuedigerMoeller/fast-serialization instead of the
default Java one. The code is as follows
class FST4Akka(system: ExtendedActorSystem) extends Serializer {
val address = system.provider.getDefaultAddress
val conf = FSTConfiguration.createDefaultConfiguration()
override def identifier: Int = 123456
override def includeManifest: Boolean = true
override def fromBinary(bytes: Array[Byte], manifest: Option[Class[_]]):
AnyRef = {
...
}
override def toBinary(o: AnyRef): Array[Byte] = {
...
}
}
The only line of interest is the 2nd line, where I want to use the default
address to deserialize (is this the right way to do this?). In my .conf
file, I bind "java.io.Serializable" with this one. As soon as the system
starts, this second line throws a null pointer exception immediately. Any
help?
Thanks!
Alex
--
>>>>>>>>>> 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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.