Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 11173 invoked from network); 15 Oct 2010 18:13:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Oct 2010 18:13:01 -0000 Received: (qmail 8820 invoked by uid 500); 15 Oct 2010 18:13:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 8792 invoked by uid 500); 15 Oct 2010 18:13:00 -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 8785 invoked by uid 99); 15 Oct 2010 18:13:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 18:13:00 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 18:12:58 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9FICa0E006619 for ; Fri, 15 Oct 2010 18:12:36 GMT Message-ID: <33497349.166331287166356872.JavaMail.jira@thor> Date: Fri, 15 Oct 2010 14:12:36 -0400 (EDT) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-4835) Trigger plan does not recompile with upgrade from 10.5.3.0 to 10.6.1.0 causing java.lang.NoSuchMethodError In-Reply-To: <20785479.8461286381191331.JavaMail.jira@thor> 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-4835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor reassigned DERBY-4835: -------------------------------------- Assignee: Mamta A. Satoor > Trigger plan does not recompile with upgrade from 10.5.3.0 to 10.6.1.0 causing java.lang.NoSuchMethodError > ----------------------------------------------------------------------------------------------------------- > > Key: DERBY-4835 > URL: https://issues.apache.org/jira/browse/DERBY-4835 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.6.1.0 > Reporter: Kathey Marsden > Assignee: Mamta A. Satoor > Fix For: 10.5.3.2, 10.6.2.3, 10.7.0.0 > > Attachments: DERBY4835_patch1_diff.txt > > > Trigger plan does not recompile on upgrade from 10.5.3.0 to 10.6.1.0 causing the following exception the first time the trigger is fired after upgrade. > ATABASE = wombat), (DRDAID = null), Failed Statement is: INSERT INTO tidlggls(blt_number,create_date,update_date,propagation_date,glossary_status, > time_stamp,min_max_size ) > VALUES ( (select max(blt_number) from tidlrblt), CURRENT_DATE, > CURRENT_DATE, CURRENT_DATE, '00' , CURRENT_TIMESTAMP, (select min_max_size from tidlrblt where blt_number = (select max(blt_number) from tidlrblt))) > java.lang.NoSuchMethodError: org/apache/derby/iapi/sql/execute/ResultSetFactory.getProjectRestrictResultSet(Lorg/apache/derby/iapi/sql/execute/NoPutResultSet;Lorg/apache/derby/iapi/services/loader/GeneratedMethod;Lorg/apache/derby/iapi/services/loader/GeneratedMethod;ILorg/apache/derby/iapi/services/loader/GeneratedMethod;IZZDD)Lorg/apache/derby/iapi/sql/execute/NoPutResultSet; > at org.apache.derby.exe.acf81e0010x012bx823cxd0d3x00000026c4a00.g0(Unknown Source) > at org.apache.derby.exe.acf81e0010x012bx823cxd0d3x00000026c4a00.execute(Unknown Source) > at org.apache.derby.impl.sql.GenericActivationHolder.execute(Unknown Source) > at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source) > at org.apache.derby.impl.sql.GenericPreparedStatement.executeSubStatement(Unknown Source) > at org.apache.derby.impl.sql.execute.GenericTriggerExecutor.executeSPS(Unknown Source) > at org.apache.derby.impl.sql.execute.StatementTriggerExecutor.fireTrigger(Unknown Source) > at org.apache.derby.impl.sql.execute.TriggerEventActivator.notifyEvent(Unknown Source) > at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source) > at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source) > at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source) > at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source) > at org.apache.derby.impl.tools.ij.ij.executeImmediate(Unknown Source) > at org.apache.derby.impl.tools.ij.utilMain.doCatch(Unknown Source) > at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(Unknown Source) > at org.apache.derby.impl.tools.ij.utilMain.go(Unknown Source) > at org.apache.derby.impl.tools.ij.Main.go(Unknown Source) > at org.apache.derby.impl.tools.ij.Main.mainCore(Unknown Source) > at org.apache.derby.impl.tools.ij.Main.main(Unknown Source) > at org.apache.derby.tools.ij.main(Unknown Source) > Cleanup action completed > To reproduce, run the attached script 10_5_3_work.sql with the 10.5.3.0 release and then connect with 10.6.1.0 and insert into the table with the trigger: > connect 'jdbc:derby:wombat;upgrade=true'; > > INSERT INTO tidlrblt(BLT,BLT_SIZE,MIN_MAX_SIZE) VALUES('Mamatha Testing2', 15, 20); > ERROR XJ001: Java exception: 'org/apache/derby/iapi/sql/execute/ResultSetFactory > .getProjectRestrictResultSet(Lorg/apache/derby/iapi/sql/execute/NoPutResultSet;L > org/apache/derby/iapi/services/loader/GeneratedMethod;Lorg/apache/derby/iapi/ser > vices/loader/GeneratedMethod;ILorg/apache/derby/iapi/services/loader/GeneratedMe > thod;IZZDD)Lorg/apache/derby/iapi/sql/execute/NoPutResultSet;: java.lang.NoSuchM > ethodError'. > I think this may be related to the DERBY-1107 change in handleMinorRevisionChange which has the code: > if (fromVersion.majorVersionNumber >= DataDictionary.DD_VERSION_DERBY_10_5) > bootingDictionary.updateMetadataSPSes(tc); > else > bootingDictionary.clearSPSPlans(); > Likely, clearSPSPlans() should not be in the else clause but rather executed unconditionally. > To work around the issue, after connecting with 10.6.1, drop and recreate the trigger as in workaround.sql -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.