[esb-issues] [JBoss JIRA] Assigned: (JBESB-2446) The update to the message context has broken serialisation with older versions
Kevin Conner (JIRA)
jira-events at lists.jboss.org
Tue May 19 05:40:05 EDT 2009
[ https://jira.jboss.org/jira/browse/JBESB-2446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Conner reassigned JBESB-2446:
-----------------------------------
Assignee: Kevin Conner
> The update to the message context has broken serialisation with older versions
> ------------------------------------------------------------------------------
>
> Key: JBESB-2446
> URL: https://jira.jboss.org/jira/browse/JBESB-2446
> Project: JBoss ESB
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Rosetta
> Affects Versions: 4.4 CP2
> Reporter: Kevin Conner
> Assignee: Kevin Conner
> Fix For: 4.4 CP3
>
>
> The message context was previously unused but was modified, by me I must admit, so that we could usefully distinguish between message context and message contents.
> Unfortunately this breaks when an old version of a serialized message is read by the new version.
> The fix is straight forward, add the following into the ContextImpl for the serialized format.
>
> /**
> * Deserialise the object, checking for old versions.
> * @param ois The object input stream.
> * @throws IOException For IO exceptions during object deserialisation.
> * @throws ClassNotFoundException If dependent classes cannot be found.
> */
> private void readObject(final ObjectInputStream ois)
> throws IOException, ClassNotFoundException
> {
> ois.defaultReadObject() ;
> if (context == null)
> {
> context = new HashMap<String, Serializable>() ;
> }
> }
> The XML variant is correct.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the esb-issues
mailing list