Re: Serialization Issue while using tokenInterceptor

2015-06-29 Thread Lukasz Lenart
2015-06-25 15:04 GMT+02:00 Abdou abdellah.wa...@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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Need documentation or code example for custom tag in Struts 2.3.24

2015-06-29 Thread Lynn Li
I am upgrading Struts from 2.1.6 to 2.3.24. My application has a custom URL 
tag. I need help on refactoring custom URL tag code. Does anyone have 
documentation or code example for custom tag in Struts 2.3.24? Thank you in 
advance!


Nothing in this message is intended to constitute an electronic signature 
unless a specific statement to the contrary is included in this message.

Confidentiality Note: This message is intended only for the person or entity to 
which it is addressed. It may contain confidential and/or privileged material. 
Any review, transmission, dissemination or other use, or taking of any action 
in reliance upon this message by persons or entities other than the intended 
recipient is prohibited and may be unlawful. If you received this message in 
error, please contact the sender and delete it from your computer.