aspose file tools*
The moose likes Spring and the fly likes java.io.NotSerializableException: org.springframework.remoting.support.RemoteInvocationTraceIntercep Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "java.io.NotSerializableException: org.springframework.remoting.support.RemoteInvocationTraceIntercep" Watch "java.io.NotSerializableException: org.springframework.remoting.support.RemoteInvocationTraceIntercep" New topic
Forums: Spring BEA/Weblogic
Author

java.io.NotSerializableException: org.springframework.remoting.support.RemoteInvocationTraceIntercep

Venkat Madhi Reddy
Greenhorn

Joined: Apr 08, 2014
Posts: 2
Hi All,

I am geeting belwo exception in web logice cluster environment.

My all model objects are serializable and I am Spring HTTP Invoker for remoting.

Please help me to solve this issue

java.rmi.MarshalException: failed to marshal update(Lweblogic.cluster.replication.ROID;ILjava.io.Serializable;Ljava.lang.Object;); nested exception is:
java.io.NotSerializableException: org.springframework.remoting.support.RemoteInvocationTraceInterceptor
at weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:90)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:221)
at weblogic.cluster.replication.ReplicationManager_1030_WLStub.update(Unknown Source)
at sun.reflect.GeneratedMethodAccessor678.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.cluster.replication.SecureReplicationInvocationHandler$ReplicationServicesInvocationAction.run(SecureReplicationInvocationHandler.java:184)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.cluster.replication.SecureReplicationInvocationHandler.invoke(SecureReplicationInvocationHandler.java:154)
at com.sun.proxy.$Proxy472.update(Unknown Source)
at weblogic.cluster.replication.ReplicationManager.updateSecondary(ReplicationManager.java:524)
at weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(Unknown Source)
at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(Unknown Source)
at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(Unknown Source)
at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(Unknown Source)
at weblogic.servlet.internal.ServletResponseImpl$1.run(ServletResponseImpl.java:1444)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1438)
at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.io.NotSerializableException: org.springframework.remoting.support.RemoteInvocationTraceInterceptor
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1165)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1413)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1159)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1359)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1155)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1413)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1159)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1413)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1159)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:329)
at weblogic.servlet.internal.session.ReplicatedSessionChange.writeExternal(ReplicatedSessionChange.java:123)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1770)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1443)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:329)
at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:618)
at weblogic.rjvm.MsgAbbrevOutputStream.writeObjectWL(MsgAbbrevOutputStream.java:609)
at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:38)
at weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:86)
... 19 more
<Apr 8, 2014 12:18:25 PM CDT> <Error> <Cluster> <BEA-000126> <All session objects should be serializable to replicate. Check the objects in your session. Failed to replicate non-serializable object.>
2014-04-08 12:19:30,385 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO OttoLogger -
Surendra Kumar
Ranch Hand

Joined: Jul 04, 2006
Posts: 235
Obviously you're trying to serialize an object that has 'org.springframework.remoting.support.RemoteInvocationTraceInterceptor' which is not serializable.
Make sure you have entire object tree as serializable or mark a member variable transient if not serializable.
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2321
    
  28

It looks to me like you have put an object in the session that doesn't implement Serializable. To enable replication of sessions, weblogic serializes all the object in session. All the objects have to implement serializable. You have probably put a spring managed bean into your session. You'll need to find the object that causes this problem.
Venkat Madhi Reddy
Greenhorn

Joined: Apr 08, 2014
Posts: 2
I removed the getProxyForService object from session it solve the problem.

Thanks All
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.io.NotSerializableException: org.springframework.remoting.support.RemoteInvocationTraceIntercep