XAResourceRecord save/restore state insufficiently paranoid
-----------------------------------------------------------
Key: JBTM-377
URL:
http://jira.jboss.com/jira/browse/JBTM-377
Project: JBoss Transaction Manager
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.3.0.GA
Reporter: Jonathan Halliday
Fix For: 4.4.CR2
The XAResourceRecord save state method writes meta-data into the objectstore before
attempting to Serialize and write the actual bytes for an XAResource that it believes, on
the basis of it implementing the market interface, is Serializable. If the serialization
fails at runtime, the objectstore record is left in an invalid state and can cause the
recovery pass to blow up in horrible ways.
We should obtain the byte[] representing the serialized resource before writing anything
to the record so that this does not occur. If serialization fails, the record will
therefore be useless but at least not otherwise broken.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira