Issue Details (XML | Word | Printable)

Key: BATCH-610
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
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

JdbcCursorItemReader cannot be reopened once closed.

Created: 02/May/08 09:58 AM   Updated: 07/Aug/08 10:07 AM
Component/s: Infrastructure
Affects Version/s: 1.0.0
Fix Version/s: 1.0.1, 1.1.0

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
The JdbcCursorItemReader cannot be reopned because it does a check to ensure the previous resultset is null before opening. However, the close method only closes the resultset and doesn't set it to null.

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Lucas Ward added a comment - 02/May/08 10:21 AM
I modified the JdbcCursorItemReader to ensure that close also sets the internal ResultSet to null as well. I also added the an additional test case to the common item reader tests. Th reason the bug wasn't caught before was because that test creates a new ItemReader instead of trying to close and reopen one. The change has been made to both 1.0.x and 1.1

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