Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 53776 invoked from network); 15 Apr 2009 15:37:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2009 15:37:47 -0000 Received: (qmail 98723 invoked by uid 500); 15 Apr 2009 15:37:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 98676 invoked by uid 500); 15 Apr 2009 15:37:46 -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 98668 invoked by uid 99); 15 Apr 2009 15:37:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 15:37:46 +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; Wed, 15 Apr 2009 15:37:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E89C8234C003 for ; Wed, 15 Apr 2009 08:37:14 -0700 (PDT) Message-ID: <1835842324.1239809834938.JavaMail.jira@brutus> Date: Wed, 15 Apr 2009 08:37:14 -0700 (PDT) From: "ArtemGr (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Issue Comment Edited: (DERBY-4160) getMetaData().getIndexInfo crashes with "ERROR X0Y68: Column 'PARAM1' already exists." In-Reply-To: <2109434513.1239795495948.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-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699236#action_12699236 ] ArtemGr edited comment on DERBY-4160 at 4/15/09 8:36 AM: --------------------------------------------------------- > Did you run with a fresh database or with one where you'd seen the error before? Fresh one. On the first run with a fresh database DataNucleus creates the schemas. On the second run it checks them and runs into this error. > Did you set the property before the Derby driver was loaded? Yes. was (Author: artem@bizlink.ru): > Did you run with a fresh database or with one where you'd seen the error before? Fresh one. > Did you set the property before the Derby driver was loaded? Yes. > getMetaData().getIndexInfo crashes with "ERROR X0Y68: Column 'PARAM1' already exists." > -------------------------------------------------------------------------------------- > > Key: DERBY-4160 > URL: https://issues.apache.org/jira/browse/DERBY-4160 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.4.2.0 > Environment: FreeBSD java 1.6.0, 64-Bit Server VM; DataNucleus JDO > Reporter: ArtemGr > > The following code in DataNucleus: > rs = conn.getMetaData().getIndexInfo(catalogName, schemaName, tableName, false, > true); > triggers an Exception (http://gist.github.com/95679): > Caused by: java.sql.SQLException: Column 'PARAM1' already exists. > at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45) > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory40.java:119) > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:70) > ... 105 more > Caused by: ERROR X0Y68: Column 'PARAM1' already exists. > at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:303) > at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.duplicateDescriptorException(DataDictionaryImpl.java:1678) > at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.addDescriptor(DataDictionaryImpl.java:1662) > at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.addSPSParams(DataDictionaryImpl.java:3682) > at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.updateSPS(DataDictionaryImpl.java:3830) > at org.apache.derby.iapi.sql.dictionary.SPSDescriptor.updateSYSSTATEMENTS(SPSDescriptor.java:1112) > at org.apache.derby.iapi.sql.dictionary.SPSDescriptor.getPreparedStatement(SPSDescriptor.java:736) > at org.apache.derby.iapi.sql.dictionary.SPSDescriptor.getPreparedStatement(SPSDescriptor.java:642) > at org.apache.derby.impl.sql.compile.ExecSPSNode.generate(ExecSPSNode.java:177) > at org.apache.derby.impl.sql.GenericStatement.prepMinion(GenericStatement.java:447) > at org.apache.derby.impl.sql.GenericStatement.prepare(GenericStatement.java:88) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(GenericLanguageConnectionContext.java:794) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.(EmbedPreparedStatement.java:128) > ... 99 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.