struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Serialization Issue while using tokenInterceptor
Date Mon, 29 Jun 2015 18:30:53 GMT
2015-06-25 15:04 GMT+02:00 Abdou <abdellah.waali@gmail.com>:
> Hi,
> We are facing the same problem with Struts 2.3.16.1 , here is the main error
> :
> java.io.NotSerializableException:
> com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector
>
> After analysing struts sources, the problem comes from the class
> org.apache.struts2.util.InvocationSessionStore which countains an inner
> class (InvocationContext) with an attribute invocation, the type of this
> attribute is com.opensymphony.xwork2.ActionInvocation, which is a not
> Serializable class.
> We are still looking for a way to workaround this issue.

It's Serializable [1] also default implementation has dedicated
methods which are used during serialization/deserialization to avoid
such problems [2]

[1] https://github.com/apache/struts/blob/master/core/src/main/java/com/opensymphony/xwork2/ActionInvocation.java#L32
[2] https://github.com/apache/struts/blob/master/core/src/main/java/com/opensymphony/xwork2/DefaultActionInvocation.java#L480-L501

> Is there any version fixing the bug?

Nope as there is still no idea what's wrong


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message