Issue Details (XML | Word | Printable)

Key: DERBY-880
Type: Bug Bug
Status: Closed Closed
Resolution: Invalid
Priority: Major Major
Assignee: Unassigned
Reporter: Ramandeep Kaur
Votes: 0
Watchers: 0
Operations

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

jdbcapi/connectionJdbc20.java fails for server (10.1.2.2) and client (10.2.0.0) compatibility testing with > SQLSTATE(null): java.sql.SQLException: Stream of column value in result cannot be retrieved twice

Created: 27/Jan/06 12:41 PM   Updated: 01/Jul/09 12:09 AM
Return to search
Component/s: Network Client
Affects Version/s: 10.2.1.6
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
File connectionJdbc20.diff 2006-01-27 12:45 PM Ramandeep Kaur 10 kB
File connectionJdbc20.tmp 2006-01-27 12:45 PM Ramandeep Kaur 2 kB
Text File connectionJdbc20.tmpmstr 2006-01-27 12:45 PM Ramandeep Kaur 9 kB
Environment: OS: Windows 2000, Server: 10.1.2.2 (372412), Client: 10.2.0.0(37212), Testing: 10.1.2.2 (372412), jvm: sun jdk15
Issue Links:
Reference
 

Resolution Date: 17/Nov/08 06:50 PM


 Description  « Hide
Ran derby suite "derbynetclientmats" with Server: 10.1.2.2 (372412), Client: 10.2.0.0(37212), Testing: 10.1.2.2 (372412), jvm: sun jdk15 as following:

1. Create directories for 10.1.2.2 jar files (all jar files except derbyclient.jar) and 10.2.0.0 jars files (only derbyClient.jar).
 2. Set CLASSPATh to the jars in the above directories.
 3. Run suite derbynetclientmats by giving the following command:-
 java org.apache.derbyTesting.functionTests.harness.RunSuite derbynetclientmats

Test case jdbcapi/connectionJdbc20.java failed with following exception:-
> FAIL -- unexpected exception
> SQLSTATE(null): java.sql.SQLException: Stream of column value in result cannot be retrieved twice
> java.sql.SQLException: Stream of column value in result cannot be retrieved twice
Test Failed.

Attaching diff, tmp, and tmpstr.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Kathey Marsden added a comment - 27/Jan/06 01:32 PM
Looking at the svn log, It looks like this error was added in DERBY-721

r357435 | tmnk | 2005-12-17 21:15:39 -0800 (Sat, 17 Dec 2005) | 1 line

- DERBY-721_4 - State of InputStream retrieved from resultset is not clean , if
 there exists previous InputStream . Patch to throw exception if user get stream
 for a value in result set twice . by Tomohito Nakayama (tomonaka@basil.ocn.ne.jp)


The test was returning results but now throws this error when combining 10.2 client with 10.1 server, so at first glance looks like a regression.




Kathey Marsden added a comment - 31/Jan/06 03:03 PM
Marking this as a regression as it appears to be a serious failure where the tests expects results and gets:
> SQLSTATE(null): java.sql.SQLException: Stream of column value in result cannot be retrieved twice

Kathey Marsden added a comment - 31/Jan/06 03:10 PM
DERBY-881 looks like it might be the same prolem or related to DERBY-880

Daniel John Debrunner added a comment - 31/Jan/06 11:27 PM
I don't think this is a regression. Yes, previously you could call getXXXStream() in embedded twice on the column to read the stream twice, but the second read returned the wrong results. Look at the comments et c. in DERBY-721.

The change was discussed on the list, the JDBC spec says portable code should only read a column once.

So now we have getXXXStream(0 calls which can only be called once, and thus always return the correct results.

Any applications depending on the old behaviour are returning the worng results ot their users.

Kathey Marsden added a comment - 01/Feb/06 12:26 AM
Thanks Dan,

It sounds like the best thing to do is to fix up the 10.1 test to do the right thing and document in the release notes as a change that might affect existing applications.

Does that sound correct?


Rajesh Kartha added a comment - 04/Feb/06 07:05 AM
- Changing the priority from 'Critical' to 'Medium'.
- Since the tests in 10.1 branch needs to be updated, the fix verison should also reflect that - 10.1.2.3

Kathey Marsden added a comment - 10/Feb/06 02:32 PM
Removing this from :"Regression Test Failure". Dan pointed out that this is probably an intended behaviour change from DERBY-721. Still the test should be fixed as soon as possible to verify that that is the case and this issue left open until it has been verified.

Andrew McIntyre added a comment - 25/Jan/07 08:40 PM
Unsetting Fix Version on Unassigned issues. Sending mail for these because these should be reviewed to see if they are still valid issues.

Kathey Marsden added a comment - 17/Nov/08 06:50 PM
Comments indicate that this is an expected failure due to DERBY-721 change.