you are using Java Serialization (i can see
akka.serialization.JavaSerializer in your stack trace), and the
exception is telling you that the type com.tibco.as.space.impl.ASSpace
is not serializable. most likely your type does not extend
java.io.Serializable. for more details of java serialization, here are
the java 7 docs:
http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
you might also consider using a different serialization mechanism, since
java serialization is slow.
-Michael
On 12/14/14 22:39, Krishna Kadam wrote:
This is the stack trace of the Exception
java.io.NotSerializableException: com.tibco.as.space.impl.ASSpace
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.ArrayList.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
akka.serialization.JavaSerializer$$anonfun$toBinary$1.apply$mcV$sp(Serializer.scala:113)
at
akka.serialization.JavaSerializer$$anonfun$toBinary$1.apply(Serializer.scala:113)
at
akka.serialization.JavaSerializer$$anonfun$toBinary$1.apply(Serializer.scala:113)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57)
at akka.serialization.JavaSerializer.toBinary(Serializer.scala:113)
at akka.remote.MessageSerializer$.serialize(MessageSerializer.scala:36)
at
akka.remote.RemoteTransport$$anonfun$createRemoteMessageProtocolBuilder$1.apply(RemoteTransport.scala:256)
at
akka.remote.RemoteTransport$$anonfun$createRemoteMessageProtocolBuilder$1.apply(RemoteTransport.scala:256)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57)
at
akka.remote.RemoteTransport.createRemoteMessageProtocolBuilder(RemoteTransport.scala:255)
at
akka.remote.netty.RemoteMessageEncoder.encode(NettyRemoteSupport.scala:299)
at
org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:67)
at
org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:60)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:592)
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:786)
at
org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:185)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:592)
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:786)
at
org.jboss.netty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:299)
at
org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:261)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:592)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:583)
at org.jboss.netty.channel.Channels.write(Channels.java:712)
at org.jboss.netty.channel.Channels.write(Channels.java:679)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248)
at akka.remote.netty.RemoteClient.send(Client.scala:62)
at akka.remote.netty.RemoteClient.send(Client.scala:49)
at
akka.remote.netty.NettyRemoteTransport.send(NettyRemoteSupport.scala:243)
at akka.remote.RemoteActorRef.$bang(RemoteActorRefProvider.scala:260)
at akka.actor.ActorRef.tell(ActorRef.scala:98)
at newpoc.MyActor1.sendToWorker(MyActor1.java:83)
at newpoc.MyActor1.send(MyActor1.java:63)
at newpoc.MyListener1$ASListener.onPut(MyListener1.java:40)
at
com.tibco.as.space.impl.ASListenerAdapter.dispatch(ASListenerAdapter.java:69)
at
com.tibco.as.space.impl.ListenerDispatcher.dispatch(ListenerDispatcher.java:31)
Thnks
Krishna Kadam
--
>>>>>>>>>> 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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
--
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.