Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 66137 invoked from network); 5 Nov 2009 22:10:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Nov 2009 22:10:03 -0000 Received: (qmail 58303 invoked by uid 500); 5 Nov 2009 22:10:03 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 58260 invoked by uid 500); 5 Nov 2009 22:10:03 -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 58252 invoked by uid 99); 5 Nov 2009 22:10:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 22:10:03 +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; Thu, 05 Nov 2009 22:09:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C9453234C052 for ; Thu, 5 Nov 2009 14:09:32 -0800 (PST) Message-ID: <1324206838.1257458972822.JavaMail.jira@brutus> Date: Thu, 5 Nov 2009 22:09:32 +0000 (UTC) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4435) Emptying index fails with NPE doing replacement import of empty file In-Reply-To: <2044362148.1257413372360.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-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774106#action_12774106 ] Mamta A. Satoor commented on DERBY-4435: ---------------------------------------- Myrna, where are you seeing this "acf81e0010x0124xc63fxedebx00000017dda80.g0() line: not available"? Both in and outside of eclipse, I do not see it in my stack trace. > Emptying index fails with NPE doing replacement import of empty file > -------------------------------------------------------------------- > > Key: DERBY-4435 > URL: https://issues.apache.org/jira/browse/DERBY-4435 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.3.3.0, 10.4.2.0, 10.5.3.0 > Environment: Doing replacement import resulting in an empty table, where the table has at least one index. > Reporter: Kristian Waagan > Attachments: Derby4435Repro.java > > > When importing data from an empty file, with the replacement option enabled (non-zero last argument in the import procedure call), Derby fails with a NullPointerException when emptying the index(es) . > Stack trace, insane build: > java.sql.SQLException: Import error on line 1 of file [snip]: Java exception: ': java.lang.NullPointerException'. > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:95) > ... > Caused by: java.lang.NullPointerException > at org.apache.derby.impl.sql.execute.InsertResultSet.emptyIndexes(InsertResultSet.java:2348) > at org.apache.derby.impl.sql.execute.InsertResultSet.updateAllIndexes(InsertResultSet.java:1820) > at org.apache.derby.impl.sql.execute.InsertResultSet.bulkInsertCore(InsertResultSet.java:1356) > at org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java:444) > at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(GenericPreparedStatement.java:436) > at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:317) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1235) > ... 44 more > Stack trace, sane build: > java.sql.SQLException: The exception 'java.sql.SQLException: An internal error was identified by RawStore module.' was thrown while evaluating an expression. > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:95) > ... > Caused by: ERROR 40XT0: An internal error was identified by RawStore module. > at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:276) > at org.apache.derby.impl.store.raw.xact.Xact.abort(Xact.java:917) > at org.apache.derby.impl.store.access.RAMTransaction.abort(RAMTransaction.java:1985) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.doRollback(GenericLanguageConnectionContext.java:1496) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.userRollback(GenericLanguageConnectionContext.java:1404) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.rollback(TransactionResourceImpl.java:244) > at org.apache.derby.impl.jdbc.EmbedConnection.rollback(EmbedConnection.java:1764) > ... 40 more > A quick investigation suggests DERBY-2537 added the code that fails. > Problem reported by a user on the Derby user list, see http://thread.gmane.org/gmane.comp.apache.db.derby.user/11764 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.