Typed actor message serialization bug?
typed actor will always use default java
serialization way because in MessageSerializer.scala :
// code in serialize method:
if (message.isInstanceOf[Serializable.JavaJSON]){
.......
}else{
....
}
the message here is supposed to be the augument of methods in
TypeActor. but the typed actor will wrap it's method arguments to a
Object[]{arg1,arg2,...}. So the above code will always go to else clause.
serialization way because in MessageSerializer.scala :
// code in serialize method:
if (message.isInstanceOf[Serializable.JavaJSON]){
.......
}else{
....
}
the message here is supposed to be the augument of methods in
TypeActor. but the typed actor will wrap it's method arguments to a
Object[]{arg1,arg2,...}. So the above code will always go to else clause.
Leave a comment
on 2011-04-12 13:51 *
By viktorklang
What is the proposed solution?
This is not a bug per se.
This is not a bug per se.
on 2011-04-12 13:51 *
By viktorklang
Moving this forward to 2.0 since TypedActor will get some love there.
Awaiting Debasish to push new serialization into master.
on 2011-06-17 12:02 *
By viktorklang
Assigned to changed from viktorklang to -none-
Status changed from Accepted to New
on 2011-07-15 14:24 *
By viktorklang
Assigned to set to viktorklang
Status changed from New to Fixed
Fixed in master with new TypedActor implementation. Will use individual serializers per method parameter value