Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 53228 invoked from network); 1 Mar 2008 07:24:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2008 07:24:54 -0000 Received: (qmail 25292 invoked by uid 500); 1 Mar 2008 07:24:49 -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 25275 invoked by uid 99); 1 Mar 2008 07:24:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 23:24:49 -0800 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; Sat, 01 Mar 2008 07:24:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5DBB0234C077 for ; Fri, 29 Feb 2008 23:23:51 -0800 (PST) Message-ID: <285874800.1204356231382.JavaMail.jira@brutus> Date: Fri, 29 Feb 2008 23:23:51 -0800 (PST) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-576) Create new tests for getting a pmf using jdoconfig.xml In-Reply-To: <16588389.1202509447532.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Craig Russell updated JDO-576: ------------------------------ Attachment: jdo-576.patch Please review this patch. With this patch applied, the config.Persistence test succeeds for application identity but fails for datastore identity: [java] 1) testGetPMFfromEMFNamed(org.apache.jdo.tck.api.persistencemanagerfactory.config.Persistence)javax.jdo.JDODataStoreException: [JPOX-052208] Insert of object "org.apache.jdo.tck.pc.mylib.PCPoint@39f7bc" using statement "INSERT INTO datastoreidentity0.PCPOINT (PCPOINT_ID,Y,X,ID) VALUES (?,?,?,?)" failed : 'PCPOINT_ID' is not a column in table or VTI 'DATASTOREIDENTITY0.PCPOINT'. [java] at org.jpox.jdo.JPOXJDOHelper.getJDOExceptionForJPOXException(JPOXJDOHelper.java:289) [java] at org.jpox.jdo.AbstractPersistenceManager.jdoMakePersistent(AbstractPersistenceManager.java:665) [java] at org.jpox.jdo.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:685) [java] at org.apache.jdo.tck.api.persistencemanagerfactory.config.Persistence.makePersistent(Persistence.java:108) [java] at org.apache.jdo.tck.api.persistencemanagerfactory.config.Persistence.runTest(Persistence.java:90) [java] at org.apache.jdo.tck.api.persistencemanagerfactory.config.Persistence.testGetPMFfromEMFNamed(Persistence.java:67) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:259) [java] at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108) [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148) [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123) [java] NestedThrowablesStackTrace: [java] ERROR 42X14: 'PCPOINT_ID' is not a column in table or VTI 'DATASTOREIDENTITY0.PCPOINT'. According to the package.orm, the identity column is named ID, not PCPOINT_ID. When JPOX uses persistence.xml to find the configuration, does it read package.jdo and package.orm? The configuration info is in package.orm. > Create new tests for getting a pmf using jdoconfig.xml > ------------------------------------------------------ > > Key: JDO-576 > URL: https://issues.apache.org/jira/browse/JDO-576 > Project: JDO > Issue Type: Test > Components: tck2, tck2-legacy > Reporter: Michelle Caisse > Assignee: Michelle Caisse > Fix For: JDO 2 maintenance release 1 > > Attachments: jdo-576.patch > > > New tests are needed to test getting a persistence manager factory with JDOHelper.getPersistenceManagerFactory() and JDOHelper.getPersistenceManagerFactory(String name); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.