Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35DAE10934 for ; Mon, 17 Jun 2013 20:02:17 +0000 (UTC) Received: (qmail 58001 invoked by uid 500); 17 Jun 2013 20:02:17 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 57983 invoked by uid 500); 17 Jun 2013 20:02:17 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 57976 invoked by uid 99); 17 Jun 2013 20:02:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 20:02:16 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rick.hillegas@oracle.com designates 156.151.31.81 as permitted sender) Received: from [156.151.31.81] (HELO userp1040.oracle.com) (156.151.31.81) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 20:02:09 +0000 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5HK1ivP015551 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Jun 2013 20:01:45 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5HK1kM6002430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 17 Jun 2013 20:01:46 GMT Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5HK1kM8018323 for ; Mon, 17 Jun 2013 20:01:46 GMT Received: from dhcp-whq-twvpn-3-vpnpool-10-159-254-121.vpn.oracle.com (/10.159.254.121) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 Jun 2013 13:01:45 -0700 Message-ID: <51BF6B2B.6040509@oracle.com> Date: Mon, 17 Jun 2013 13:01:47 -0700 From: Rick Hillegas User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: derby-user@db.apache.org Subject: Re: Using ASTParser and TreeWalker for parsing SQL query References: <1371180867740-131219.post@n7.nabble.com> <51BB1D11.3030908@oracle.com> <1371233868201-131390.post@n7.nabble.com> <51BB76FC.1040009@oracle.com> <1371275765941-131432.post@n7.nabble.com> <51BF0C14.7000401@oracle.com> <1371477773348-131475.post@n7.nabble.com> <51BF269E.2050503@oracle.com> <1371495779250-131496.post@n7.nabble.com> In-Reply-To: <1371495779250-131496.post@n7.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Virus-Checked: Checked by ClamAV on apache.org On 6/17/13 12:02 PM, venu wrote: > Hi Rick, > Thanks for the reply. > I took the development trunk code > (svn checkout https://svn.apache.org/repos/asf/db/derby/code/trunk/) and > replaced SelectNode.java file with the given SelectedNode.java file and > managed to generate a derby.jar file. > > But, when I run Treewalker or ASTParser I got this error. > Does I did anything wrong while making jar file? > or Is this a issue ? > > java.sql.SQLException: Java exception: 'ASSERT FAILED Six-argument init() > not implemented for org.apache.derby.impl.sql.compile.SelectNode: > org.apache.derby.shared.common.sanity.AssertFailure'. > at > org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:103) > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:141) > at org.apache.derby.impl.jdbc.Util.javaException(Util.java:335) > at > org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:436) > at > org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:353) > at > org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2395) > at > org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82) > at > org.apache.derby.impl.jdbc.EmbedPreparedStatement.(EmbedPreparedStatement.java:152) > at > org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Driver40.java:98) > at > org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java:1733) > at > org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java:1561) > at > com.ibm.tivoli.tnpm.dal.jdbc.sqlparser.TreeWalker.execute(TreeWalker.java:100) > > Thanks, > Venu > > > > -- > View this message in context: http://apache-database.10148.n7.nabble.com/Using-ASTParser-and-TreeWalker-for-parsing-SQL-query-tp131219p131496.html > Sent from the Apache Derby Users mailing list archive at Nabble.com. > Hi Venu, I also ported the fix to the 10.10 branch. That may be a more stable place to look for the change to SelectNode. The error you are seeing suggests that you have tripped across some interference from the work being done on the NodeFactory. Hope this helps, -Rick