Issue Details (XML | Word | Printable)

Key: HHH-3675
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Gail Badner
Reporter: Gail Badner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibernate Core

Limitations on Sybase ResultSet implementation cause unit test failures

Created: 22/Dec/08 04:37 PM   Updated: 26/Dec/08 05:47 PM
Component/s: core
Affects Version/s: None
Fix Version/s: 3.2.7, 3.3.2, 3.5

Time Tracking:
Not Specified


 Description  « Hide
CMTTest.testCurrentSessionWithScroll() fails using Sybase because it calls ResultSet.isLast() and the Sybase implentation throws com.sybase.jdbc2.utils.UnimplementedOperationException. The exception message is, "The method com.sybase.jdbc2.jdbc.SybResultSet.isLast() has not been completed and should not be called.".

AggressiveReleaseTest,testSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResources() throws NullPointerException when a ResultSet is closed before reading any rows.

The exception is:
java.lang.NullPointerException at com.sybase.jdbc2.tds.TdsResultSet.next(TdsResultSet.java:313) at com.sybase.jdbc2.tds.TdsResultSet.close(TdsResultSet.java:452) at com.sybase.jdbc2.jdbc.SybResultSet.markDead(SybResultSet.java:1540) at com.sybase.jdbc2.jdbc.SybResultSet.close(SybResultSet.java:1608) at com.sybase.jdbc2.jdbc.SybResultSet.close(SybResultSet.java:193) at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:207) at org.hibernate.impl.AbstractScrollableResults.close(AbstractScrollableResults.java:99) at org.hibernate.test.connections.AggressiveReleaseTest.testSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResources(AggressiveReleaseTest.java:112) at org.hibernate.junit.functional.FunctionalTestCase.runTest(FunctionalTestCase.java:102) at org.hibernate.junit.UnitTestCase.runBare(UnitTestCase.java:34) at org.hibernate.junit.functional.FunctionalTestClassTestSuite.runTest(FunctionalTestClassTestSuite.java:100) at org.hibernate.junit.functional.FunctionalTestClassTestSuite.run(FunctionalTestClassTestSuite.java:69)

CurrentSessionConnectionTest extends AggressiveReleaseTest, so NullPointerException is thrown for the same reason.


 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Gail Badner added a comment - 22/Dec/08 05:33 PM
Fixed in Branch_3_2, Branch_3_2_4_SP1_CP, Branch_3_3, and trunk.


Gail Badner added a comment - 26/Dec/08 05:40 PM
StatsTest.testQueryStatGathering() also fails with NullPointerException if results are not processed before closing the ResultSet.