Issue Details (XML | Word | Printable)

Key: BATCH-604
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Lucas Ward
Reporter: Lucas Ward
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring Batch

JdbcStepExecutionDao isn't deserializing objects correctly.

Created: 25/Apr/08 03:00 PM   Updated: 07/Aug/08 10:07 AM
Component/s: Documentation
Affects Version/s: 1.0.0
Fix Version/s: 1.0.1

Time Tracking:
Original Estimate: 0.25d
Original Estimate - 0.25d
Remaining Estimate: 0.25d
Remaining Estimate - 0.25d
Time Spent: Not Specified
Remaining Estimate - 0.25d


 Description  « Hide
I'm not sure how this issue has been there so long. I checked back and it's been doing the following since I originally wrote it:

executionContext.put(key, rs.getObject("OBJECT_VAL"));

Which will never work, since getObject will just return a Byte[]. Perhaps it's a reflection of usage that no one has caught this?

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Lucas Ward added a comment - 25/Apr/08 07:15 PM
I resolved the issue by deserializing the stream:

executionContext.put(key, SerializationUtils.deserialize(rs.getBinaryStream("OBJECT_VAL")));

I also added an extra test case.

Dave Syer added a comment - 07/Aug/08 10:07 AM
Assume closed as resolved and released