Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 11566 invoked from network); 24 Mar 2010 16:41:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Mar 2010 16:41:49 -0000 Received: (qmail 66373 invoked by uid 500); 24 Mar 2010 16:41:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 66251 invoked by uid 500); 24 Mar 2010 16:41:48 -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 66243 invoked by uid 99); 24 Mar 2010 16:41:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 16:41:48 +0000 X-ASF-Spam-Status: No, hits=-1121.3 required=10.0 tests=ALL_TRUSTED,AWL 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; Wed, 24 Mar 2010 16:41:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9C7B6234C4E2 for ; Wed, 24 Mar 2010 16:41:27 +0000 (UTC) Message-ID: <424263388.463951269448887640.JavaMail.jira@brutus.apache.org> Date: Wed, 24 Mar 2010 16:41:27 +0000 (UTC) From: "Martin Keller (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4585) IndexChanger.doDelete throws NullPointerException In-Reply-To: <1436943380.288791268746887338.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849272#action_12849272 ] Martin Keller commented on DERBY-4585: -------------------------------------- Hi, Rebooting the database doesn't change anything. Corrupt means, that the statement above worked for several times until the first exception and then never again. I'll attach the "corrupt" database to the issue. > IndexChanger.doDelete throws NullPointerException > ------------------------------------------------- > > Key: DERBY-4585 > URL: https://issues.apache.org/jira/browse/DERBY-4585 > Project: Derby > Issue Type: Bug > Affects Versions: 10.5.3.0 > Environment: Various operating systems, Java 1.6.0_18 > Reporter: Martin Keller > > After a bunch of DELETE and DROP-Commands, the following error occurs in our application: > 2010-03-16 12:54:23.070 GMT Thread[DRDAConnThread_4,5,derby.daemons] (XID = 15898), (SESSIONID = 1), (DATABASE = ixintrexx), (DRDAID = NF000001.PAA8-4469821361421447518{2}), Cleanup action starting > 2010-03-16 12:54:23.070 GMT Thread[DRDAConnThread_4,5,derby.daemons] (XID = 15898), (SESSIONID = 1), (DATABASE = ixintrexx), (DRDAID = NF000001.PAA8-4469821361421447518{2}), Failed Statement is: DELETE FROM LCAPPCHILDCONTROLTITLE WHERE STRCHILDCONTROLGUID IN (SELECT STRGUID FROM LCAPPCHILDCONTROL WHERE STRAPPCONTROLDRGUID IN (SELECT A.STRGUID FROM LCAPPCONTROLDR A, LCAPPFUP B WHERE A.STRAPPFUPGUID = B.STRGUID AND B.STRAPPGUID = '93A720B90BB6C25703701E67D0DA75220B7D2FFC')) > java.lang.NullPointerException > at org.apache.derby.impl.sql.execute.IndexChanger.doDelete(IndexChanger.java:369) > at org.apache.derby.impl.sql.execute.IndexChanger.delete(IndexChanger.java:544) > at org.apache.derby.impl.sql.execute.IndexSetChanger.delete(IndexSetChanger.java:250) > at org.apache.derby.impl.sql.execute.RowChangerImpl.deleteRow(RowChangerImpl.java:476) > at org.apache.derby.impl.sql.execute.DeleteResultSet.collectAffectedRows(DeleteResultSet.java:405) > at org.apache.derby.impl.sql.execute.DeleteResultSet.open(DeleteResultSet.java:137) > at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(GenericPreparedStatement.java:416) > at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:297) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1235) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:625) > at org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(EmbedStatement.java:175) > at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLIMM(DRDAConnThread.java:5022) > at org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:750) > at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:290) > Cleanup action completed > The database seems to be corrupt, after this exception has been thrown. > As you can see, I already compiled Derby to get the line number where the error occurs. I must apologize for not having a sufficient test case yet, but the code leading to this issue is very complex. If one wants to reproduce this bug, I can send a download link for our product and instructions to reproduce the problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.