struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mojoRising <jpi...@averoinc.com>
Subject StrutsRequestWrapper causing NotSerializableException?
Date Thu, 01 May 2008 14:32:12 GMT

I have this exception from Weblogic that tells me something in my session
(org.apache.struts2.dispatcher.StrutsRequestWrapper) is not serializable. 

Does anyone understand what is going on here? I am not sure whether the
org.apache.struts2.dispatcher.StrutsRequestWrapper should be in the session
or not, but if it is then why is it not serializable? 

I am using the execAndWait interceptor, could this have something to do with
it? I see that that interceptor puts an object in the session:
org.apache.struts2.interceptor.BackgroundProcess@4ee507

Is anyone else getting this error?


java.rmi.MarshalException: failed to marshal
update(Lweblogic.cluster.replication.ROID;ILjava.io.Serializable;Ljava.lang.Object;);
nested exception is: 
        java.io.NotSerializableException:
org.apache.struts2.dispatcher.StrutsRequestWrapper
        at
weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:91)
        at
weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
        at
weblogic.cluster.replication.ReplicationManager_921_WLStub.update(Lweblogic.cluster.replication.ROID;ILjava.io.Serializable;Ljava.lang.Object;)V(Unknown
Source)
        at
weblogic.cluster.replication.ReplicationManager.updateSecondary(ReplicationManager.java:528)
        at
weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(ReplicatedSessionData.java:558)
        at
weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSessionContext.java:82)
        at
weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2507)
        at
weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2482)
        at
weblogic.servlet.internal.ServletResponseImpl$1.run(ServletResponseImpl.java:1308)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at
weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1302)
        at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1368)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.io.NotSerializableException:
org.apache.struts2.dispatcher.StrutsRequestWrapper
        at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
        at
java.io.ObjectOutputStream.defaultWriteFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeOrdinaryObject(Ljava.lang.Object;Ljava.io.ObjectStreamClass;Z)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
        at
java.io.ObjectOutputStream.defaultWriteFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeOrdinaryObject(Ljava.lang.Object;Ljava.io.ObjectStreamClass;Z)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeObject(Ljava.lang.Object;)V(Unknown Source)
        at
weblogic.servlet.internal.session.ReplicatedSessionChange.writeExternal(ReplicatedSessionChange.java:114)
        at
java.io.ObjectOutputStream.writeExternalData(Ljava.io.Externalizable;)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeOrdinaryObject(Ljava.lang.Object;Ljava.io.ObjectStreamClass;Z)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeObject0(Ljava.lang.Object;Z)V(Unknown
Source)
        at
java.io.ObjectOutputStream.writeObject(Ljava.lang.Object;)V(Unknown Source)
        at
weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:614)
        at
weblogic.rjvm.MsgAbbrevOutputStream.writeObjectWL(MsgAbbrevOutputStream.java:605)
        at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:38)
        at
weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:87)
        at
weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
        at
weblogic.cluster.replication.ReplicationManager_921_WLStub.update(Lweblogic.cluster.replication.ROID;ILjava.io.Serializable;Ljava.lang.Object;)V(Unknown
Source)
        at
weblogic.cluster.replication.ReplicationManager.updateSecondary(ReplicationManager.java:528)
        at
weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(ReplicatedSessionData.java:558)
        at
weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSessionContext.java:82)
        at
weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2507)
        at
weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2482)
        at
weblogic.servlet.internal.ServletResponseImpl$1.run(ServletResponseImpl.java:1308)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at
weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1302)
        at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1368)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
<May 1, 2008 10:07:57 AM EDT> <Error> <Cluster> <BEA-000126> <All
session
objects should be serializable to replicate. Check the objects in your
session. Failed to replicate non-serializable object.> 
-- 
View this message in context: http://www.nabble.com/StrutsRequestWrapper-causing-NotSerializableException--tp16993270p16993270.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message