struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3414) XWorkList not Serializable
Date Mon, 23 Jul 2012 21:08:34 GMT

    [ https://issues.apache.org/jira/browse/WW-3414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420960#comment-13420960
] 

David commented on WW-3414:
---------------------------

I encountered this issue on both Xwork/Struts 2.3.3 and Xwork/Struts 2.3.4 when trying to
serialize an object containing an XWorkList. The stack trace that I receive says:

java.io.NotSerializableException: com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector

When I downgrade my app to Xwork/Struts 2.3.1.2, I get the following error (for the same code
- no changes other than the Struts & Xwork jars):

java.io.NotSerializableException: com.opensymphony.xwork2.conversion.impl.XWorkConverter

Could someone verify that XWorkList was actually made serializable in 2.3.3? Thanks.
                
> XWorkList not Serializable
> --------------------------
>
>                 Key: WW-3414
>                 URL: https://issues.apache.org/jira/browse/WW-3414
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.8.1
>         Environment: Windows XP
>            Reporter: johan jarkovic
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.3.3
>
>
> If action has a property of type ArrayList then an XWorkList object is created. 
> This is not serializable so we get NotSerializableException when we try to send this
List to the business tier.
> The problem that I can see is that a new field of type XWorkConverter has been added
to the XWorkList in struts version 2.1.x This field is not Serializable.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message