Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 60470 invoked from network); 16 Jun 2009 11:07:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 11:07:21 -0000 Received: (qmail 144 invoked by uid 500); 16 Jun 2009 11:07:32 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 99983 invoked by uid 500); 16 Jun 2009 11:07:32 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 99975 invoked by uid 99); 16 Jun 2009 11:07:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 11:07:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 11:07:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 57B7D234C044 for ; Tue, 16 Jun 2009 04:07:07 -0700 (PDT) Message-ID: <2036662759.1245150427344.JavaMail.jira@brutus> Date: Tue, 16 Jun 2009 04:07:07 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4198) When using the FOR UPDATE OF clause with SUR (Scroll-insensive updatable result sets), the updateRow() method crashes In-Reply-To: <71776953.1241017291330.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-4198: --------------------------------- Attachment: derby-4198-4.stat derby-4198-4.diff Thanks for the review, Knut. Uploading patch derby-4198-4 incorporating your comments. I added a sentence to FormatableBitSet: * @param beyondBit Only look at bit that is greater than this bit number. * Supplying a value of -1 makes the call equivalent to * anySetBit(). > When using the FOR UPDATE OF clause with SUR (Scroll-insensive updatable result sets), the updateRow() method crashes > --------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-4198 > URL: https://issues.apache.org/jira/browse/DERBY-4198 > Project: Derby > Issue Type: Bug > Components: JDBC, Network Client, SQL > Affects Versions: 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1 > Reporter: Tiago R. Espinha > Assignee: Dag H. Wanvik > Fix For: 10.6.0.0 > > Attachments: derby-4198-1.diff, derby-4198-1.diff, derby-4198-1.stat, derby-4198-1.stat, derby-4198-2.diff, derby-4198-2.stat, derby-4198-3.diff, derby-4198-3.stat, derby-4198-4.diff, derby-4198-4.stat, derby-4198-throwable.diff, derby-4198-throwable.stat, ErrorOutput_Client.tar.gz, ErrorOutput_Embedded.tar.gz, ReproHoldCursorBug.java > > > This problem occurs on both Client/Server and Embedded. > With the Embedded driver, the JVM crashes with the following error: > -------------------------------------8<------------------------------------ > 1) testReproduction(org.apache.derbyTesting.functionTests.tests.store.ReproHoldCursorBug)org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED statementContext is not expected to equal statementContexts[0] > at org.apache.derby.shared.common.sanity.SanityManager.ASSERT(SanityManager.java:120) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.popStatementContext(GenericLanguageConnectionContext.java:2286) > at org.apache.derby.impl.jdbc.EmbedResultSet.updateRow(EmbedResultSet.java:3740) > at org.apache.derbyTesting.functionTests.tests.store.ReproHoldCursorBug.testReproduction(ReproHoldCursorBug.java:71) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:105) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > ------------------------------------8<--------------------------------------------- > (It shows a stack trace after this, but I'm attaching the result folders since those are more thorough.)[1] > On the client driver, the JVM does not crash but it also errors out: > 1) testReproduction(org.apache.derbyTesting.functionTests.tests.store.ReproHoldCursorBug)java.sql.SQLException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ001, SQLERRMC: java.lang.NullPointerExceptionXJ001.U > (more detail on the log files)[2] > The error does not show as long as the "OF DATA" isn't specified. It also won't show if the whole FOR UPDATE clause is omitted. > I would also like some comments and advice on how to proceed on converting holdCursorJDBC30.sql as it is affected by this problem. The original test does an update on a cursor with the "FOR UPDATE OF DATA" clause, and this isn't working on the Java version of the test. Do I go around it by removing the FOR UPDATE clause or should I wait for this bug to get fixed? > Attachments: > [1] - ErrorOutput_Embedded.tar.gz - Error output files of the Embedded run > [2] - ErrorOutput_Client.tar.gz - Error output files of the Client/Server run > [3] - ReproHoldCursorBug.java - The reproduction of the errors -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.