Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 39407 invoked from network); 19 Mar 2006 18:42:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Mar 2006 18:42:45 -0000 Received: (qmail 32954 invoked by uid 500); 19 Mar 2006 18:42:45 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 32940 invoked by uid 99); 19 Mar 2006 18:42:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Mar 2006 10:42:44 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Mar 2006 10:42:44 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 2CBBD6ACA9 for ; Sun, 19 Mar 2006 18:42:23 +0000 (GMT) Message-ID: <1796944063.1142793743180.JavaMail.jira@ajax> Date: Sun, 19 Mar 2006 18:42:23 +0000 (GMT) From: "Michael Bouschen (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-310) JPOX fails test VariableInResult.testDistinctNoNavigation with JDODataStoreException from Derby In-Reply-To: <959655462.1140205284701.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JDO-310?page=comments#action_12370998 ] Michael Bouschen commented on JDO-310: -------------------------------------- The patch looks good. What is the failure when uinsg the patch? > JPOX fails test VariableInResult.testDistinctNoNavigation with JDODataStoreException from Derby > ----------------------------------------------------------------------------------------------- > > Key: JDO-310 > URL: http://issues.apache.org/jira/browse/JDO-310 > Project: JDO > Type: Bug > Components: tck20 > Reporter: Michael Bouschen > Assignee: Erik Bengtson > Fix For: JDO 2 final > Attachments: variables.patch > > Test methods testDistinctNoNavigation and testNoNavigation of org.apache.jdo.tck.query.result.VariableInResult fail throwing a JDODataStoreException. The error messages says: "ERROR 42972: An ON clause associated with a JOIN operator is not valid.". > Here is the stacktace for method testDistinctNoNavigation, the other stacktrace is the same: > 1) testDistinctNoNavigation(org.apache.jdo.tck.query.result.VariableInResult)javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT DISTINCT UNBOUND_P.PROJID FROM applicationidentity0.PERSONS THIS,applicationidentity0.PROJECTS UNBOUND_P WHERE EXISTS (SELECT 1 FROM applicationidentity0.PROJECT_MEMBER THIS_PROJECTS_P LEFT OUTER JOIN applicationidentity0.PROJECTS UNBOUND_P_NAME ON UNBOUND_P.PROJID = UNBOUND_P_NAME.PROJID WHERE THIS_PROJECTS_P."MEMBER" = THIS.PERSONID AND THIS_PROJECTS_P."MEMBER" = THIS.PERSONID AND UNBOUND_P.PROJID = THIS_PROJECTS_P.PROJID AND UNBOUND_P_NAME."NAME" = ? AND (THIS.DISCRIMINATOR = ? OR THIS.DISCRIMINATOR = ? OR THIS.DISCRIMINATOR = ?))" : An ON clause associated with a JOIN operator is not valid. > ERROR 42972: An ON clause associated with a JOIN operator is not valid. > at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) > at org.apache.derby.impl.sql.compile.JoinNode.deferredBindExpressions(Unknown Source) > at org.apache.derby.impl.sql.compile.JoinNode.bindResultColumns(Unknown Source) > at org.apache.derby.impl.sql.compile.FromList.bindResultColumns(Unknown Source) > at org.apache.derby.impl.sql.compile.SelectNode.bindResultColumns(Unknown Source) > at org.apache.derby.impl.sql.compile.SubqueryNode.bindExpression(Unknown Source) > at org.apache.derby.impl.sql.compile.SelectNode.bindExpressions(Unknown Source) > at org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(Unknown Source) > at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source) > at org.apache.derby.impl.sql.compile.ReadCursorNode.bind(Unknown Source) > at org.apache.derby.impl.sql.compile.CursorNode.bind(Unknown Source) > at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source) > at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.(Unknown Source) > at org.apache.derby.jdbc.Driver30.newEmbedPreparedStatement(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source) > at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:241) > at org.jpox.store.rdbms.RDBMSManager.getStatement(RDBMSManager.java:355) > at org.jpox.store.StatementText.prepareStatement(StatementText.java:204) > at org.jpox.store.query.Query.getStatement(Query.java:797) > at org.jpox.store.query.JDOQLQuery.performExecute(JDOQLQuery.java:516) > at org.jpox.store.query.Query.executeWithMap(Query.java:1113) > at org.jpox.store.query.Query.executeWithArray(Query.java:1086) > at org.jpox.store.query.Query.execute(Query.java:1009) > at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1192) > at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1070) > at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:1007) > at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:987) > at org.apache.jdo.tck.query.result.VariableInResult.testDistinctNoNavigation(VariableInResult.java:138) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204) > at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120) > at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95) > . > at org.jpox.store.query.JDOQLQuery.performExecute(JDOQLQuery.java:570) > at org.jpox.store.query.Query.executeWithMap(Query.java:1113) > at org.jpox.store.query.Query.executeWithArray(Query.java:1086) > at org.jpox.store.query.Query.execute(Query.java:1009) > at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1192) > at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1070) > at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:1007) > at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:987) > at org.apache.jdo.tck.query.result.VariableInResult.testDistinctNoNavigation(VariableInResult.java:138) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204) > at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120) > at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira