java.rmi.marshlingException

Hi,

can any help with cause/ resolution of this error. Its getting critical for me now..

java.rmi.MarshalException: error marshalling arguments; nested exception is:

java.io.IOException: Broken pipe

java.io.IOException: Broken pipe

at java.net.SocketOutputStream.socketWrite(Native Method)

at java.net.SocketOutputStream.write(SocketOutputStream.java:91)

at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:67)

at java.io.BufferedOutputStream.write(BufferedOutputStream.java:106)

at java.io.ObjectOutputStream.drain(ObjectOutputStream.java:1458)

at java.io.ObjectOutputStream.setBlockData(ObjectOutputStream.java:1481)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:402)

at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:263)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)

at

at java.lang.Thread.run(Thread.java:479)

on ther side exception I got is :

at javax.servlet.GenericServlet.init(GenericServlet.java)

at org.apache.tomcat.facade.ServletHandler.doInit(ServletHandler.java:447)

at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:263)

at org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(LoadOnStartupInte

rceptor.java:136)

at org.apache.tomcat.core.Context.init(Context.java:542)

at org.apache.tomcat.core.ContextManager.init(ContextManager.java:597)

at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:5

64)

at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:703)

at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)

at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.jav

a:190)

at java.security.AccessController.doPrivileged(Native Method)

at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)

at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)

at java.lang.reflect.Method.invoke(Native Method)

java.io.IOException: Broken pipe]

Message was edited by:

amangla

[2226 byte] By [amanglaa] at [2007-11-27 1:28:22]
# 1
Is that two exceptions or one? If it is two, where is the top of the 2nd stack trace?
ejpa at 2007-7-12 0:26:10 > top of Java-index,Core,Core APIs...
# 2
only first part is the error, second part is not part of this error i pasted it here by mistake.. sorry...actually i have two RMI on two diff machines and passes some arguments b/w each other. and during this communication i m getting this error... thnx for concearn..
amanglaa at 2007-7-12 0:26:10 > top of Java-index,Core,Core APIs...
# 3

So what behaviour did you get on the other side?

If none, can you enable all the tracing defined in http://java.sun.com/j2se/1.5.0/docs/guide/rmi/javarmiproperties.html and http://java.sun.com/j2se/1.5.0/docs/guide/rmi/sunrmiproperties.html, especially the exception tracing, and show the results?

ejpa at 2007-7-12 0:26:10 > top of Java-index,Core,Core APIs...
# 4

thnx for the help,

sorry i was late to respond on it...

i got the error.. it ws some library issue.

i saw some incomatible class error like classes on two side were compiled from different version, but later i got correct library and issue resolved.

now i got it resolved

amanglaa at 2007-7-12 0:26:10 > top of Java-index,Core,Core APIs...