Announcement Announcement Module
Collapse
No announcement yet.
HttpInvokers and serialization of BindException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HttpInvokers and serialization of BindException

    Hi,

    I have a situation where i want to send a BindException object through a HttpInvoker;

    This BindException class implements Serializable so this should work fine.
    When i try this i get a NotSerializableException on BeanWrapperImpl (which is a property of BindException). This BeanWrapperImpl isn't Serializable..

    Is this a bug in Spring?

    The only solution i can think of is to return a List of ObjectError 's and create a new BindException and fill it with these ObjectError 's, but this is just a work-a-round.

    Thanks,

  • #2
    This is what i found in the JIRA Issue tracker:


    Description
    As per our discussion, we need the BeanWrapper to be serializable, since we're serializing the BindException to a fat client to do communication of error messages.

    Thanks!

    Comment by Juergen Hoeller [11/Jan/05 03:40 AM] [ Permlink ]
    BindException is serializable now, with the BeanWrapper reference being transient. If necessary, a new BeanWrapper is built for the target object.

    Juergen



    Should be fixed in version 1.1.4, so im going to download the new version and lets see if it works :-)

    Comment

    Working...
    X