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 0A113C7CB for ; Tue, 18 Jun 2013 12:19:44 +0000 (UTC) Received: (qmail 98374 invoked by uid 500); 18 Jun 2013 12:19:43 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 98222 invoked by uid 500); 18 Jun 2013 12:19:41 -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 98214 invoked by uid 99); 18 Jun 2013 12:19:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 12:19:41 +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; Tue, 18 Jun 2013 12:19:33 +0000 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5ICJ8NQ023130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 18 Jun 2013 12:19:09 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5ICJAuE016845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 18 Jun 2013 12:19:11 GMT Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5ICJAFY020880 for ; Tue, 18 Jun 2013 12:19:10 GMT Received: from dhcp-amer-vpn-rmdc-anyconnect-10-159-111-16.vpn.oracle.com (/10.159.111.16) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 18 Jun 2013 05:19:10 -0700 Message-ID: <51C05041.6050106@oracle.com> Date: Tue, 18 Jun 2013 05:19:13 -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> <51BF6B2B.6040509@oracle.com> In-Reply-To: <51BF6B2B.6040509@oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Virus-Checked: Checked by ClamAV on apache.org On 6/17/13 1:01 PM, Rick Hillegas wrote: > 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 > I'm told that the NodeFactory work hasn't been checked in yet. So that's not the explanation. What's the query you're running through ASTParser and TreeWalker? Does the query work standalone when you just give it to Derby? Thanks, -Rick