Feb 15th, 2005, 07:52 AM
HttpInvokers and serialization of BindException
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.
Feb 15th, 2005, 08:17 AM
This is what i found in the JIRA Issue tracker:
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.
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.
Should be fixed in version 1.1.4, so im going to download the new version and lets see if it works :-)