From commits-return-7933-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 01 08:56:55 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 21315 invoked from network); 1 Nov 2010 08:56:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 08:56:54 -0000 Received: (qmail 6036 invoked by uid 500); 1 Nov 2010 08:57:26 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 5983 invoked by uid 500); 1 Nov 2010 08:57:24 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 5975 invoked by uid 99); 1 Nov 2010 08:57:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 08:57:24 +0000 X-ASF-Spam-Status: No, hits=-1994.3 required=10.0 tests=ALL_TRUSTED,HTML_MESSAGE,MIME_HTML_ONLY 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; Mon, 01 Nov 2010 08:57:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA18v0ON004820 for ; Mon, 1 Nov 2010 08:57:00 GMT Date: Mon, 1 Nov 2010 04:57:00 -0400 (EDT) From: confluence@apache.org To: commits@openjpa.apache.org Message-ID: <20384209.3825.1288601820022.JavaMail.confluence@thor> Subject: [CONF] OpenJPA > JEST Syntax MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Auto-Submitted: auto-generated X-Virus-Checked: Checked by ClamAV on apache.org
From commits-return-7934-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 01 09:37:52 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 44392 invoked from network); 1 Nov 2010 09:37:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 09:37:52 -0000 Received: (qmail 43333 invoked by uid 500); 1 Nov 2010 09:38:23 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 43254 invoked by uid 500); 1 Nov 2010 09:38:22 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 43240 invoked by uid 99); 1 Nov 2010 09:38:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 09:38:21 +0000 X-ASF-Spam-Status: No, hits=-1994.3 required=10.0 tests=ALL_TRUSTED,HTML_MESSAGE,MIME_HTML_ONLY 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; Mon, 01 Nov 2010 09:38:20 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA19c0R5005300 for ; Mon, 1 Nov 2010 09:38:00 GMT Date: Mon, 1 Nov 2010 05:38:00 -0400 (EDT) From: confluence@apache.org To: commits@openjpa.apache.org Message-ID: <19314937.3875.1288604280019.JavaMail.confluence@thor> Subject: [CONF] OpenJPA > JEST Representation MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Auto-Submitted: auto-generated
From commits-return-7935-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 01 09:46:55 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 45374 invoked from network); 1 Nov 2010 09:46:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 09:46:54 -0000 Received: (qmail 45724 invoked by uid 500); 1 Nov 2010 09:47:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 45513 invoked by uid 500); 1 Nov 2010 09:47:24 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 45506 invoked by uid 99); 1 Nov 2010 09:47:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 09:47:24 +0000 X-ASF-Spam-Status: No, hits=-1994.3 required=10.0 tests=ALL_TRUSTED,HTML_MESSAGE,MIME_HTML_ONLY 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; Mon, 01 Nov 2010 09:47:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA19l0mX005369 for ; Mon, 1 Nov 2010 09:47:00 GMT Date: Mon, 1 Nov 2010 05:47:00 -0400 (EDT) From: confluence@apache.org To: commits@openjpa.apache.org Message-ID: <9097758.3883.1288604820019.JavaMail.confluence@thor> Subject: [CONF] OpenJPA > JEST Usage MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Auto-Submitted: auto-generated X-Virus-Checked: Checked by ClamAV on apache.org
From commits-return-7936-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 01 14:41:54 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 6056 invoked from network); 1 Nov 2010 14:41:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 14:41:54 -0000 Received: (qmail 90857 invoked by uid 500); 1 Nov 2010 14:42:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 90800 invoked by uid 500); 1 Nov 2010 14:42:24 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 90793 invoked by uid 99); 1 Nov 2010 14:42:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 14:42:23 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 14:42:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id AD57323889B2; Mon, 1 Nov 2010 14:41:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1029683 - in /openjpa/trunk/openjpa-examples: image-gallery/pom.xml openbooks/pom.xml Date: Mon, 01 Nov 2010 14:41:26 -0000 To: commits@openjpa.apache.org From: dwoods@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101101144126.AD57323889B2@eris.apache.org> Author: dwoods Date: Mon Nov 1 14:41:26 2010 New Revision: 1029683 URL: http://svn.apache.org/viewvc?rev=1029683&view=rev Log: fix pom parents to be openjpa-examples Modified: openjpa/trunk/openjpa-examples/image-gallery/pom.xml openjpa/trunk/openjpa-examples/openbooks/pom.xml Modified: openjpa/trunk/openjpa-examples/image-gallery/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/image-gallery/pom.xml?rev=1029683&r1=1029682&r2=1029683&view=diff ============================================================================== --- openjpa/trunk/openjpa-examples/image-gallery/pom.xml (original) +++ openjpa/trunk/openjpa-examples/image-gallery/pom.xml Mon Nov 1 14:41:26 2010 @@ -26,7 +26,7 @@ org.apache.openjpa - openjpa-parent + openjpa-examples 2.1.0-SNAPSHOT Modified: openjpa/trunk/openjpa-examples/openbooks/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/pom.xml?rev=1029683&r1=1029682&r2=1029683&view=diff ============================================================================== --- openjpa/trunk/openjpa-examples/openbooks/pom.xml (original) +++ openjpa/trunk/openjpa-examples/openbooks/pom.xml Mon Nov 1 14:41:26 2010 @@ -28,7 +28,7 @@ org.apache.openjpa - openjpa-parent + openjpa-examples 2.1.0-SNAPSHOT From commits-return-7937-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 01 15:30:58 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 45784 invoked from network); 1 Nov 2010 15:30:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 15:30:58 -0000 Received: (qmail 70304 invoked by uid 500); 1 Nov 2010 15:31:29 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 70245 invoked by uid 500); 1 Nov 2010 15:31:28 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 70238 invoked by uid 99); 1 Nov 2010 15:31:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 15:31:28 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 15:31:27 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 5962CC00C4 for ; Mon, 1 Nov 2010 15:31:07 +0000 (UTC) Date: Mon, 1 Nov 2010 15:31:07 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1734794351.731288625467292.JavaMail.hudson@aegis> In-Reply-To: <468573015.16541288381251724.JavaMail.hudson@aegis> References: <468573015.16541288381251724.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#301?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-01_15-13-00/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 minutes 51 seconds [INFO] Finished at: Sun Oct 31 22:31:10 GMT 2010 [INFO] Final Memory: 74M/178M [INFO] ------------------------------------------------------------------------ From commits-return-7938-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 01 15:31:01 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 45810 invoked from network); 1 Nov 2010 15:31:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 15:31:01 -0000 Received: (qmail 70380 invoked by uid 500); 1 Nov 2010 15:31:32 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 70320 invoked by uid 500); 1 Nov 2010 15:31:32 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 70313 invoked by uid 99); 1 Nov 2010 15:31:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 15:31:31 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 15:31:29 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 4895BC00C5 for ; Mon, 1 Nov 2010 15:31:08 +0000 (UTC) Date: Mon, 1 Nov 2010 15:31:08 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1621315967.741288625468296.JavaMail.hudson@aegis> In-Reply-To: <111661799.16551288381252325.JavaMail.hudson@aegis> References: <111661799.16551288381252325.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #301 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [dwoods] fix pom parents to be openjpa-examples ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-examples\image-gallery\pom.xml U openjpa-examples\openbooks\pom.xml At revision 1029691 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-60974fe7 c:\hudson\hudson-slave\maven-interceptor.jar 56472 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1029683 at timestamp: October 31, 2010 at 10:14 PM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-01_15-13-00/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-01_15-13-00/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-01_15-13-00/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 minutes 51 seconds [INFO] Finished at: Sun Oct 31 22:31:10 GMT 2010 [INFO] Final Memory: 74M/178M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7939-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 01 16:02:24 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 58007 invoked from network); 1 Nov 2010 16:02:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 16:02:24 -0000 Received: (qmail 26112 invoked by uid 500); 1 Nov 2010 16:02:55 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 26053 invoked by uid 500); 1 Nov 2010 16:02:55 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 26046 invoked by uid 99); 1 Nov 2010 16:02:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 16:02:55 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 16:02:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BEE002388A3B; Mon, 1 Nov 2010 16:01:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1029724 - /openjpa/trunk/pom.xml Date: Mon, 01 Nov 2010 16:01:55 -0000 To: commits@openjpa.apache.org From: dwoods@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101101160155.BEE002388A3B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dwoods Date: Mon Nov 1 16:01:55 2010 New Revision: 1029724 URL: http://svn.apache.org/viewvc?rev=1029724&view=rev Log: rollback to prior version of maven-checkstyle-plugin, due to build errors on some Windows machines Modified: openjpa/trunk/pom.xml Modified: openjpa/trunk/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/pom.xml?rev=1029724&r1=1029723&r2=1029724&view=diff ============================================================================== --- openjpa/trunk/pom.xml (original) +++ openjpa/trunk/pom.xml Mon Nov 1 16:01:55 2010 @@ -774,7 +774,14 @@ org.apache.maven.plugins maven-checkstyle-plugin - 2.6 + 2.2 + + + org.codehaus.plexus + plexus-velocity + 1.1.3 + + org.apache.maven.plugins From commits-return-7940-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 01 20:20:15 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 90763 invoked from network); 1 Nov 2010 20:20:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 20:20:15 -0000 Received: (qmail 32679 invoked by uid 500); 1 Nov 2010 20:20:47 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 32624 invoked by uid 500); 1 Nov 2010 20:20:46 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 32617 invoked by uid 99); 1 Nov 2010 20:20:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 20:20:46 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 20:20:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8A20923889DA; Mon, 1 Nov 2010 20:19:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1029821 - in /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed: Department2.java TestEmbeddable.java Date: Mon, 01 Nov 2010 20:19:32 -0000 To: commits@openjpa.apache.org From: allee8285@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101101201932.8A20923889DA@eris.apache.org> Author: allee8285 Date: Mon Nov 1 20:19:32 2010 New Revision: 1029821 URL: http://svn.apache.org/viewvc?rev=1029821&view=rev Log: OPENJPA-1793 - New test case testEntityA_Embed_Single_Coll caused "ORA-01861: literal does not match format string" when run against Oracle due to default DATE column format differences. (See http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements004.htm) Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Department2.java openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Department2.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Department2.java?rev=1029821&r1=1029820&r2=1029821&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Department2.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/Department2.java Mon Nov 1 20:19:32 2010 @@ -49,6 +49,6 @@ public class Department2 { } public void addEmployee(Employee2 emp) { - empMap.put(emp.getEmpPK(), emp); + getEmpMap().put(emp.getEmpPK(), emp); } } Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java?rev=1029821&r1=1029820&r2=1029821&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java Mon Nov 1 20:19:32 2010 @@ -60,8 +60,7 @@ public class TestEmbeddable extends SQLL public int numEmployeesPerPhoneNumber = 1; public int numPhoneNumbersPerEmployee = 2; public int numEmployeesPerProgramManager = 2; - public int numEmployees = numProgramManagers - * numEmployeesPerProgramManager; + public int numEmployees = numProgramManagers * numEmployeesPerProgramManager; public int numPhoneNumbers = numEmployees * numPhoneNumbersPerEmployee; public int numDepartments = 2; public int numEmployeesPerDept = 2; @@ -79,8 +78,7 @@ public class TestEmbeddable extends SQLL public int phoneId = 1; public int pmId = 1; public int parkingSpotId = 1; - public Map phones = - new HashMap(); + public Map phones = new HashMap(); public Map employees = new HashMap(); public void setUp() { @@ -108,7 +106,7 @@ public class TestEmbeddable extends SQLL EntityA_Embed_Complex.class, A.class, CLEAR_TABLES); sql.clear(); DBDictionary dict = ((JDBCConfiguration)emf.getConfiguration()).getDBDictionaryInstance(); - if (dict.getClass().getName().indexOf("oracle") != -1) { + if (dict.getClass().getName().toLowerCase().indexOf("oracle") != -1) { ((OracleDictionary)dict).useTriggersForAutoAssign = true; } } @@ -188,7 +186,8 @@ public class TestEmbeddable extends SQLL //string (even the simplest string will do). em = emf.createEntityManager(); Query query1 = em.createQuery("SELECT e FROM EntityA_Embed_Single_Coll e " - + "where e.embed.date = '" + date + "'"); + + "where e.embed.date = :wheredate"); + query1.setParameter("wheredate", date); eesc = (EntityA_Embed_Single_Coll) query1.getSingleResult(); assertEquals(eesc.getEmbed().getDate().toString(), date.toString()); em.close(); From commits-return-7941-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 01:31:53 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 98193 invoked from network); 2 Nov 2010 01:31:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 01:31:53 -0000 Received: (qmail 40214 invoked by uid 500); 2 Nov 2010 01:32:24 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 40183 invoked by uid 500); 2 Nov 2010 01:32:24 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 40176 invoked by uid 99); 2 Nov 2010 01:32:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 01:32:24 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 01:32:22 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id B99B9C010A for ; Tue, 2 Nov 2010 01:32:00 +0000 (UTC) Date: Tue, 2 Nov 2010 01:32:00 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <2000990792.401288661520744.JavaMail.hudson@aegis> In-Reply-To: <1734794351.731288625467292.JavaMail.hudson@aegis> References: <1734794351.731288625467292.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#302?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_01-29-12/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 28 seconds [INFO] Finished at: Mon Nov 01 08:32:04 GMT 2010 [INFO] Final Memory: 65M/169M [INFO] ------------------------------------------------------------------------ From commits-return-7942-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 01:31:53 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 98218 invoked from network); 2 Nov 2010 01:31:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 01:31:53 -0000 Received: (qmail 40305 invoked by uid 500); 2 Nov 2010 01:32:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 40253 invoked by uid 500); 2 Nov 2010 01:32:25 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 40246 invoked by uid 99); 2 Nov 2010 01:32:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 01:32:25 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 01:32:22 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 4504EC0161 for ; Tue, 2 Nov 2010 01:32:01 +0000 (UTC) Date: Tue, 2 Nov 2010 01:32:01 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <255330011.411288661521281.JavaMail.hudson@aegis> In-Reply-To: <1621315967.741288625468296.JavaMail.hudson@aegis> References: <1621315967.741288625468296.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #302 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [allee8285] OPENJPA-1793 - New test case testEntityA_Embed_Single_Coll caused "ORA-01861: literal does not match format string" when run against Oracle due to default DATE column format differences. (See http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements004.htm) [dwoods] rollback to prior version of maven-checkstyle-plugin, due to build errors on some Windows machines ------------------------------------------ Started by an SCM change Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U pom.xml U openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\embed\TestEmbeddable.java U openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\embed\Department2.java At revision 1029935 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 56798 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1029821 at timestamp: November 1, 2010 at 8:30 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_01-29-12/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_01-29-12/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_01-29-12/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 28 seconds [INFO] Finished at: Mon Nov 01 08:32:04 GMT 2010 [INFO] Final Memory: 65M/169M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7943-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 08:27:36 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 60778 invoked from network); 2 Nov 2010 08:27:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 08:27:36 -0000 Received: (qmail 78479 invoked by uid 500); 2 Nov 2010 08:28:08 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 78417 invoked by uid 500); 2 Nov 2010 08:28:06 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 78408 invoked by uid 99); 2 Nov 2010 08:28:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 08:28:06 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 08:28:05 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 9995DC010A for ; Tue, 2 Nov 2010 08:27:45 +0000 (UTC) Date: Tue, 2 Nov 2010 08:27:45 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <2051961478.701288686465613.JavaMail.hudson@aegis> In-Reply-To: <630146777.17041288426210961.JavaMail.hudson@aegis> References: <630146777.17041288426210961.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJPA-t?= =?UTF-8?Q?runk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#44?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See From commits-return-7944-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 08:27:39 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 60799 invoked from network); 2 Nov 2010 08:27:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 08:27:39 -0000 Received: (qmail 78550 invoked by uid 500); 2 Nov 2010 08:28:10 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 78493 invoked by uid 500); 2 Nov 2010 08:28:09 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 78486 invoked by uid 99); 2 Nov 2010 08:28:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 08:28:09 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 08:28:07 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 4ED92C0161 for ; Tue, 2 Nov 2010 08:27:46 +0000 (UTC) Date: Tue, 2 Nov 2010 08:27:46 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1905788872.711288686466321.JavaMail.hudson@aegis> In-Reply-To: <869049935.17051288426211621.JavaMail.hudson@aegis> References: <869049935.17051288426211621.JavaMail.hudson@aegis> Subject: Hudson build is back to stable : OpenJPA-trunk-deploy #44 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See From commits-return-7945-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 14:20:17 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 32982 invoked from network); 2 Nov 2010 14:20:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 14:20:17 -0000 Received: (qmail 42687 invoked by uid 500); 2 Nov 2010 14:20:48 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 42624 invoked by uid 500); 2 Nov 2010 14:20:47 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 42566 invoked by uid 99); 2 Nov 2010 14:20:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 14:20:46 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 14:20:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 57AE12388A3D; Tue, 2 Nov 2010 14:19:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030056 - in /openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/datacache/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/datacache/ Date: Tue, 02 Nov 2010 14:19:31 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102141931.57AE12388A3D@eris.apache.org> Author: curtisr7 Date: Tue Nov 2 14:19:30 2010 New Revision: 1030056 URL: http://svn.apache.org/viewvc?rev=1030056&view=rev Log: OPENJPA-1867: Fix ClassCastException when loading from DataCache. Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/datacache/ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/datacache/TestInheritanceWithDataCache.java (with props) Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java?rev=1030056&r1=1030055&r2=1030056&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java Tue Nov 2 14:19:30 2010 @@ -149,7 +149,7 @@ public class DataCacheStoreManager mods.additions.add(new PCDataHolder(data, sm)); CacheStatistics stats = cache.getStatistics(); if (stats.isEnabled()) { - ((CacheStatisticsSPI)stats).newPut(sm.getMetaData().getDescribedType()); + ((CacheStatisticsSPI)stats).newPut(data.getType()); } } } @@ -188,7 +188,7 @@ public class DataCacheStoreManager } CacheStatistics stats = cache.getStatistics(); if (stats.isEnabled()) { - ((CacheStatisticsSPI)stats).newPut(sm.getMetaData().getDescribedType()); + ((CacheStatisticsSPI)stats).newPut(data.getType()); } } } @@ -339,7 +339,7 @@ public class DataCacheStoreManager // if we have a cached version update from there if (version != null) { if(stats.isEnabled()){ - ((CacheStatisticsSPI)stats).newGet(sm.getMetaData().getDescribedType(), true); + ((CacheStatisticsSPI)stats).newGet(data.getType(), true); } if (!version.equals(sm.getVersion())) { sm.setVersion(version); @@ -349,7 +349,8 @@ public class DataCacheStoreManager } if(stats.isEnabled()){ - ((CacheStatisticsSPI)stats).newGet(sm.getMetaData().getDescribedType(), false); + Class cls = (data == null) ? sm.getMetaData().getDescribedType() : data.getType(); + ((CacheStatisticsSPI) stats).newGet(cls, false); } // use data store version return super.syncVersion(sm, edata); @@ -360,7 +361,7 @@ public class DataCacheStoreManager if (cache == null) { return super.initialize(sm, state, fetch, edata); } - Class cls = sm.getMetaData().getDescribedType(); + DataCachePCData data = cache.get(sm.getObjectId()); CacheStatistics stats = cache.getStatistics(); boolean fromDatabase = false; @@ -373,14 +374,15 @@ public class DataCacheStoreManager } else { if (alreadyCached && !isLocking(fetch)) { if (stats.isEnabled()) { - ((CacheStatisticsSPI)stats).newGet(cls, true); + ((CacheStatisticsSPI)stats).newGet(data.getType(), true); } - sm.initialize(cls, state); + sm.initialize(data.getType(), state); data.load(sm, fetch, edata); } else { if (!alreadyCached) { if (stats.isEnabled()) { - ((CacheStatisticsSPI)stats).newGet(cls, false); + // Get the classname from MetaData... but this won't be right in every case. + ((CacheStatisticsSPI)stats).newGet(sm.getMetaData().getDescribedType(), false); } } fromDatabase = super.initialize(sm, state, fetch, edata); @@ -391,10 +393,10 @@ public class DataCacheStoreManager && ((fetch.getCacheStoreMode() == DataCacheStoreMode.USE && !alreadyCached) || (fetch.getCacheStoreMode() == DataCacheStoreMode.REFRESH)); if (updateCache) { + cacheStateManager(cache, sm, data); if (stats.isEnabled()) { - ((CacheStatisticsSPI)stats).newPut(cls); + ((CacheStatisticsSPI) stats).newPut(sm.getMetaData().getDescribedType()); } - cacheStateManager(cache, sm, data); } return fromDatabase || alreadyCached; } @@ -435,12 +437,12 @@ public class DataCacheStoreManager return super.load(sm, fields, fetch, lockLevel, edata); CacheStatistics stats = cache.getStatistics(); - Class cls = sm.getMetaData().getDescribedType(); DataCachePCData data = cache.get(sm.getObjectId()); if (lockLevel == LockLevels.LOCK_NONE && !isLocking(fetch) && data != null) data.load(sm, fields, fetch, edata); if (fields.length() == 0){ if (stats.isEnabled()) { + Class cls = (data == null) ? sm.getMetaData().getDescribedType() : data.getType(); ((CacheStatisticsSPI)stats).newGet(cls, true); } return true; @@ -509,7 +511,7 @@ public class DataCacheStoreManager //### the 'data.type' access here probably needs //### to be addressed for bug 511 if (stats.isEnabled()) { - ((CacheStatisticsSPI)stats).newGet(sm.getMetaData().getDescribedType(), true); + ((CacheStatisticsSPI) stats).newGet(data.getType(), true); } sm.initialize(data.getType(), state); data.load(sm, fetch, edata); @@ -529,11 +531,11 @@ public class DataCacheStoreManager if (fields.length() > 0){ unloaded = addUnloaded(sm, fields, unloaded); if (stats.isEnabled()) { - ((CacheStatisticsSPI)stats).newGet(sm.getMetaData().getDescribedType(), false); + ((CacheStatisticsSPI)stats).newGet(data.getType(), false); } }else{ if (stats.isEnabled()) { - ((CacheStatisticsSPI)stats).newGet(sm.getMetaData().getDescribedType(), true); + ((CacheStatisticsSPI)stats).newGet(data.getType(), true); } } } else{ @@ -588,7 +590,7 @@ public class DataCacheStoreManager cache.update(data); CacheStatistics stats = cache.getStatistics(); if (stats.isEnabled()) { - ((CacheStatisticsSPI)stats).newPut(sm.getMetaData().getDescribedType()); + ((CacheStatisticsSPI)stats).newPut(data.getType()); } } finally { cache.writeUnlock(); Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/datacache/TestInheritanceWithDataCache.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/datacache/TestInheritanceWithDataCache.java?rev=1030056&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/datacache/TestInheritanceWithDataCache.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/datacache/TestInheritanceWithDataCache.java Tue Nov 2 14:19:30 2010 @@ -0,0 +1,70 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.inheritance.datacache; + +import javax.persistence.EntityManager; + +import org.apache.openjpa.persistence.inheritance.entity.Department; +import org.apache.openjpa.persistence.inheritance.entity.Employee; +import org.apache.openjpa.persistence.inheritance.entity.FTEmployee; +import org.apache.openjpa.persistence.inheritance.entity.Manager; +import org.apache.openjpa.persistence.inheritance.entity.PTEmployee; +import org.apache.openjpa.persistence.test.SingleEMFTestCase; + +public class TestInheritanceWithDataCache extends SingleEMFTestCase { + Object[] props = + new Object[] { FTEmployee.class, Employee.class, Manager.class, PTEmployee.class, Department.class, + "openjpa.DataCache", "true", CLEAR_TABLES }; + + @Override + public void setUp() throws Exception { + super.setUp(props); + } + + public void test() throws Exception { + EntityManager em = emf.createEntityManager(); + try { + // Create a manager and a department + em.getTransaction().begin(); + Manager m = new Manager(); + m.setId(1); + em.persist(m); + Department dept = new Department(); + dept.setId(1); + dept.setDepartmentManager(m); + em.persist(dept); + m.setDepartment(dept); + em.getTransaction().commit(); + em.clear(); + + emf.getCache().evictAll(); + + Employee e = em.find(Employee.class, 1); + assertNotNull(e); + assertTrue(e instanceof Manager); + em.clear(); + e = em.find(Employee.class, 1); + assertNotNull(e); + assertTrue(e instanceof Manager); + } finally { + em.close(); + } + + } +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/datacache/TestInheritanceWithDataCache.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-7947-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 14:59:02 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 56808 invoked from network); 2 Nov 2010 14:59:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 14:59:02 -0000 Received: (qmail 27933 invoked by uid 500); 2 Nov 2010 14:59:33 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 27826 invoked by uid 500); 2 Nov 2010 14:59:33 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 27633 invoked by uid 99); 2 Nov 2010 14:59:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 14:59:32 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 14:59:29 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 757E1C0161 for ; Tue, 2 Nov 2010 14:59:08 +0000 (UTC) Date: Tue, 2 Nov 2010 14:59:08 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <979590988.991288709948480.JavaMail.hudson@aegis> In-Reply-To: <255330011.411288661521281.JavaMail.hudson@aegis> References: <255330011.411288661521281.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #303 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [curtisr7] OPENJPA-1867: Fix ClassCastException when loading from DataCache. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-kernel\src\main\java\org\apache\openjpa\datacache\DataCacheStoreManager.java A openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\inheritance\datacache AU openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\inheritance\datacache\TestInheritanceWithDataCache.java At revision 1030063 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 49973 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030056 at timestamp: November 1, 2010 at 9:40 PM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_14-37-56/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_14-37-56/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_14-37-56/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20 minutes 38 seconds [INFO] Finished at: Mon Nov 01 21:59:11 GMT 2010 [INFO] Final Memory: 64M/163M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7946-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 14:59:02 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 56801 invoked from network); 2 Nov 2010 14:59:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 14:59:02 -0000 Received: (qmail 27893 invoked by uid 500); 2 Nov 2010 14:59:33 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 27632 invoked by uid 500); 2 Nov 2010 14:59:31 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 27620 invoked by uid 99); 2 Nov 2010 14:59:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 14:59:31 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 14:59:28 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id CAB44C010A for ; Tue, 2 Nov 2010 14:59:07 +0000 (UTC) Date: Tue, 2 Nov 2010 14:59:07 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <158906857.981288709947814.JavaMail.hudson@aegis> In-Reply-To: <2000990792.401288661520744.JavaMail.hudson@aegis> References: <2000990792.401288661520744.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#303?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_14-37-56/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20 minutes 38 seconds [INFO] Finished at: Mon Nov 01 21:59:11 GMT 2010 [INFO] Final Memory: 64M/163M [INFO] ------------------------------------------------------------------------ From commits-return-7948-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 15:19:02 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 75504 invoked from network); 2 Nov 2010 15:19:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 15:19:02 -0000 Received: (qmail 76863 invoked by uid 500); 2 Nov 2010 15:19:33 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 76430 invoked by uid 500); 2 Nov 2010 15:19:32 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 76152 invoked by uid 99); 2 Nov 2010 15:19:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 15:19:32 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 15:19:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 122BD23889B3; Tue, 2 Nov 2010 15:18:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030083 - in /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence: AnnotationPersistenceMetaDataSerializer.java EntityManagerFactoryImpl.java QueryImpl.java meta/SourceAnnotationHandler.java Date: Tue, 02 Nov 2010 15:18:13 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102151814.122BD23889B3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Tue Nov 2 15:18:10 2010 New Revision: 1030083 URL: http://svn.apache.org/viewvc?rev=1030083&view=rev Log: OPENJPA-1865: Findbugs. Use entrySet iterator rather than keySet. Patch contributed by Guy Korland. Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java?rev=1030083&r1=1030082&r2=1030083&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java Tue Nov 2 15:18:10 2010 @@ -18,55 +18,76 @@ */ package org.apache.openjpa.persistence; -import org.apache.openjpa.lib.meta.SourceTracker; -import org.apache.openjpa.lib.util.J2DoPrivHelper; -import org.apache.openjpa.lib.util.Localizer; -import org.apache.openjpa.lib.util.JavaVersions; -import org.apache.openjpa.lib.log.Log; -import org.apache.openjpa.lib.conf.Configurations; -import org.apache.openjpa.conf.OpenJPAConfiguration; -import org.apache.openjpa.meta.*; -import org.apache.openjpa.kernel.QueryLanguages; -import org.apache.openjpa.util.InternalException; -import org.apache.commons.lang.StringUtils; - -import java.security.AccessController; -import java.security.PrivilegedActionException; -import java.util.*; import java.io.File; +import java.io.FileWriter; import java.io.IOException; import java.io.Writer; -import java.io.FileWriter; -import java.lang.reflect.Member; +import java.lang.annotation.Annotation; import java.lang.reflect.Field; +import java.lang.reflect.Member; import java.lang.reflect.Method; -import java.lang.annotation.Annotation; - -import serp.util.Strings; +import java.security.AccessController; +import java.security.PrivilegedActionException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.EnumSet; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Properties; +import java.util.Set; +import java.util.Map.Entry; -import javax.persistence.Entity; +import javax.persistence.AttributeOverride; +import javax.persistence.Basic; +import javax.persistence.CascadeType; import javax.persistence.Embeddable; +import javax.persistence.Embedded; +import javax.persistence.EmbeddedId; +import javax.persistence.Entity; +import javax.persistence.FetchType; +import javax.persistence.Id; +import javax.persistence.IdClass; +import javax.persistence.ManyToMany; +import javax.persistence.ManyToOne; +import javax.persistence.MapKey; import javax.persistence.MappedSuperclass; import javax.persistence.NamedNativeQuery; import javax.persistence.NamedQuery; +import javax.persistence.OneToMany; +import javax.persistence.OneToOne; +import javax.persistence.OrderBy; import javax.persistence.QueryHint; import javax.persistence.SequenceGenerator; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.EmbeddedId; -import javax.persistence.Version; import javax.persistence.Transient; -import javax.persistence.Basic; -import javax.persistence.Embedded; -import javax.persistence.ManyToOne; -import javax.persistence.OneToOne; -import javax.persistence.OneToMany; -import javax.persistence.ManyToMany; -import javax.persistence.OrderBy; -import javax.persistence.MapKey; -import javax.persistence.AttributeOverride; -import javax.persistence.CascadeType; -import javax.persistence.FetchType; +import javax.persistence.Version; + +import org.apache.commons.lang.StringUtils; +import org.apache.openjpa.conf.OpenJPAConfiguration; +import org.apache.openjpa.kernel.QueryLanguages; +import org.apache.openjpa.lib.conf.Configurations; +import org.apache.openjpa.lib.log.Log; +import org.apache.openjpa.lib.meta.SourceTracker; +import org.apache.openjpa.lib.util.J2DoPrivHelper; +import org.apache.openjpa.lib.util.JavaVersions; +import org.apache.openjpa.lib.util.Localizer; +import org.apache.openjpa.meta.ClassMetaData; +import org.apache.openjpa.meta.FieldMetaData; +import org.apache.openjpa.meta.JavaTypes; +import org.apache.openjpa.meta.MetaDataInheritanceComparator; +import org.apache.openjpa.meta.MetaDataModes; +import org.apache.openjpa.meta.MetaDataRepository; +import org.apache.openjpa.meta.Order; +import org.apache.openjpa.meta.QueryMetaData; +import org.apache.openjpa.meta.SequenceMetaData; +import org.apache.openjpa.meta.ValueMetaData; +import org.apache.openjpa.util.InternalException; + +import serp.util.Strings; //@todo: javadocs @@ -1217,14 +1238,18 @@ public class AnnotationPersistenceMetaDa } } + @SuppressWarnings("unchecked") public void serialize(Writer out, int flags) throws IOException { Map output = new HashMap(); serialize(output, flags); - for(Object meta: output.keySet()) { + Set entrySet = output.entrySet(); + for(Entry entry : entrySet) { + Object meta = entry.getKey(); + List annos = (List) entry.getValue(); + out.write("--"+meta.toString()); out.write("\n"); - List annos = (List) output.get(meta); for(String ann: annos) { out.write("\t"); out.write(ann); Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java?rev=1030083&r1=1030082&r2=1030083&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java Tue Nov 2 15:18:10 2010 @@ -236,8 +236,9 @@ public class EntityManagerFactoryImpl OpenJPAEntityManagerSPI em = newEntityManagerImpl(broker); // allow setting of other bean properties of EM - for (Object key : props.keySet()) { - em.setProperty(key.toString(), props.get(key)); + Set entrySet = props.entrySet(); + for (Map.Entry entry : entrySet) { + em.setProperty(entry.getKey().toString(), entry.getValue()); } if (log != null && log.isTraceEnabled()) { log.trace(this + " created EntityManager " + em + "."); Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java?rev=1030083&r1=1030082&r2=1030083&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java Tue Nov 2 15:18:10 2010 @@ -32,6 +32,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Map.Entry; import java.util.concurrent.locks.ReentrantLock; import javax.persistence.FlushModeType; @@ -48,6 +49,7 @@ import org.apache.openjpa.conf.OpenJPACo import org.apache.openjpa.kernel.Broker; import org.apache.openjpa.kernel.DelegatingQuery; import org.apache.openjpa.kernel.DelegatingResultList; +import org.apache.openjpa.kernel.DistinctResultList; import org.apache.openjpa.kernel.FetchConfiguration; import org.apache.openjpa.kernel.Filters; import org.apache.openjpa.kernel.PreparedQuery; @@ -55,7 +57,6 @@ import org.apache.openjpa.kernel.Prepare import org.apache.openjpa.kernel.QueryLanguages; import org.apache.openjpa.kernel.QueryOperations; import org.apache.openjpa.kernel.QueryStatistics; -import org.apache.openjpa.kernel.DistinctResultList; import org.apache.openjpa.kernel.exps.AggregateListener; import org.apache.openjpa.kernel.exps.FilterListener; import org.apache.openjpa.kernel.jpql.JPQLParser; @@ -987,9 +988,11 @@ public class QueryImpl implements Ope if (_declaredParams == null) { _declaredParams = new HashMap>(); OrderedMap> paramTypes = _query.getOrderedParameterTypes(); - for (Object key : paramTypes.keySet()) { - Parameter param = null; - Class expectedValueType = paramTypes.get(key); + for(Entry> entry : paramTypes.entrySet()){ + Object key = entry.getKey(); + Class expectedValueType = entry.getValue(); + Parameter param; + if (key instanceof Integer) { param = new ParameterImpl((Integer)key, expectedValueType); } else if (key instanceof String) { Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java?rev=1030083&r1=1030082&r2=1030083&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java Tue Nov 2 15:18:10 2010 @@ -18,6 +18,9 @@ */ package org.apache.openjpa.persistence.meta; +import static javax.persistence.AccessType.FIELD; +import static javax.persistence.AccessType.PROPERTY; + import java.lang.annotation.Annotation; import java.util.ArrayList; import java.util.Collection; @@ -25,6 +28,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Map.Entry; import javax.annotation.processing.ProcessingEnvironment; import javax.lang.model.element.AnnotationMirror; @@ -43,8 +47,6 @@ import javax.lang.model.type.TypeMirror; import javax.lang.model.util.Types; import javax.persistence.Access; import javax.persistence.AccessType; -import static javax.persistence.AccessType.*; - import javax.persistence.Embeddable; import javax.persistence.Entity; import javax.persistence.ManyToMany; @@ -53,6 +55,7 @@ import javax.persistence.MappedSuperclas import javax.persistence.OneToMany; import javax.persistence.OneToOne; import javax.persistence.Transient; + import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.meta.AccessCode; import org.apache.openjpa.util.UserException; @@ -428,11 +431,11 @@ public class SourceAnnotationHandler List annos = e.getAnnotationMirrors(); for (AnnotationMirror mirror : annos) { if (mirror.getAnnotationType().toString().equals(anno.getName())) { - Map - values = mirror.getElementValues(); - for (ExecutableElement ex : values.keySet()) { - if (ex.getSimpleName().toString().equals(attr)) - return values.get(ex).getValue(); + Map values = mirror.getElementValues(); + for (Entry entry : values.entrySet()) { + if (entry.getKey().getSimpleName().toString().equals(attr)) { + return entry.getValue().getValue(); + } } } } From commits-return-7949-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 15:35:40 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 82235 invoked from network); 2 Nov 2010 15:35:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 15:35:36 -0000 Received: (qmail 95141 invoked by uid 500); 2 Nov 2010 15:36:07 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 95041 invoked by uid 500); 2 Nov 2010 15:36:06 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 94762 invoked by uid 99); 2 Nov 2010 15:36:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 15:36:05 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 15:36:04 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 44881C0161 for ; Tue, 2 Nov 2010 15:35:44 +0000 (UTC) Date: Tue, 2 Nov 2010 15:35:44 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1385930747.1051288712144279.JavaMail.hudson@aegis> In-Reply-To: <979590988.991288709948480.JavaMail.hudson@aegis> References: <979590988.991288709948480.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #304 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See Changes: [curtisr7] OPENJPA-1865: Findbugs. Use entrySet iterator rather than keySet. Patch contributed by Guy Korland. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-persistence\src\main\java\org\apache\openjpa\persistence\EntityManagerFactoryImpl.java U openjpa-persistence\src\main\java\org\apache\openjpa\persistence\QueryImpl.java U openjpa-persistence\src\main\java\org\apache\openjpa\persistence\meta\SourceAnnotationHandler.java U openjpa-persistence\src\main\java\org\apache\openjpa\persistence\AnnotationPersistenceMetaDataSerializer.java At revision 1030085 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 50650 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030083 at timestamp: November 1, 2010 at 10:34 PM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_15-33-45/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_15-33-45/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_15-33-45/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 44 seconds [INFO] Finished at: Mon Nov 01 22:35:47 GMT 2010 [INFO] Final Memory: 65M/163M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7950-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 15:35:40 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 82242 invoked from network); 2 Nov 2010 15:35:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 15:35:36 -0000 Received: (qmail 95175 invoked by uid 500); 2 Nov 2010 15:36:07 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 95097 invoked by uid 500); 2 Nov 2010 15:36:07 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 95083 invoked by uid 99); 2 Nov 2010 15:36:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 15:36:06 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 15:36:04 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id AF0D0C010A for ; Tue, 2 Nov 2010 15:35:43 +0000 (UTC) Date: Tue, 2 Nov 2010 15:35:43 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1675793862.1041288712143715.JavaMail.hudson@aegis> In-Reply-To: <158906857.981288709947814.JavaMail.hudson@aegis> References: <158906857.981288709947814.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#304?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_15-33-45/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 44 seconds [INFO] Finished at: Mon Nov 01 22:35:47 GMT 2010 [INFO] Final Memory: 65M/163M [INFO] ------------------------------------------------------------------------ From commits-return-7951-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 17:05:11 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 27183 invoked from network); 2 Nov 2010 17:05:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 17:05:11 -0000 Received: (qmail 15860 invoked by uid 500); 2 Nov 2010 17:05:43 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 15813 invoked by uid 500); 2 Nov 2010 17:05:42 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 15806 invoked by uid 99); 2 Nov 2010 17:05:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:05:42 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:05:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4FB3023889D7; Tue, 2 Nov 2010 17:04:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030124 - /openjpa/trunk/openjpa-persistence-jdbc/pom.xml Date: Tue, 02 Nov 2010 17:04:26 -0000 To: commits@openjpa.apache.org From: dwoods@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102170426.4FB3023889D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dwoods Date: Tue Nov 2 17:04:25 2010 New Revision: 1030124 URL: http://svn.apache.org/viewvc?rev=1030124&view=rev Log: exclude JEST tests for now Modified: openjpa/trunk/openjpa-persistence-jdbc/pom.xml Modified: openjpa/trunk/openjpa-persistence-jdbc/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/pom.xml?rev=1030124&r1=1030123&r2=1030124&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/pom.xml (original) +++ openjpa/trunk/openjpa-persistence-jdbc/pom.xml Tue Nov 2 17:04:25 2010 @@ -975,6 +975,8 @@ org/apache/openjpa/persistence/kernel/TestEJBTransactionalClass.java + + org/apache/openjpa/persistence/jest/Test*.java From commits-return-7952-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 17:34:30 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 40893 invoked from network); 2 Nov 2010 17:34:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 17:34:30 -0000 Received: (qmail 57870 invoked by uid 500); 2 Nov 2010 17:35:01 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 57809 invoked by uid 500); 2 Nov 2010 17:35:01 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 57802 invoked by uid 99); 2 Nov 2010 17:35:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:35:01 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:34:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BD9B923889C5; Tue, 2 Nov 2010 17:33:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030139 - in /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa: datacache/ instrumentation/ kernel/ kernel/exps/ meta/ util/ Date: Tue, 02 Nov 2010 17:33:42 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102173342.BD9B923889C5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Tue Nov 2 17:33:41 2010 New Revision: 1030139 URL: http://svn.apache.org/viewvc?rev=1030139&view=rev Log: OPENJPA-1868: Miscellaneous FindBugs suggested performance improvements for openjpa-kernel. Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/AbstractQueryCacheInstrument.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/DetachedValueStateManager.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ExpressionStoreQuery.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ObjectIdStateManager.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Abs.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Sqrt.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataRepository.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ApplicationIds.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/DoubleId.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/FloatId.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java Tue Nov 2 17:33:41 2010 @@ -492,9 +492,9 @@ public class DataCacheStoreManager unloaded = addUnloaded(sm, null, unloaded); } - for (Iterator itr = caches.keySet().iterator(); itr.hasNext();) { - cache = itr.next(); - smList = caches.get(cache); + for(Entry> entry : caches.entrySet()){ + cache = entry.getKey(); + smList = entry.getValue(); List oidList = new ArrayList(smList.size()); for (OpenJPAStateManager sm : smList) { Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/AbstractQueryCacheInstrument.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/AbstractQueryCacheInstrument.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/AbstractQueryCacheInstrument.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/AbstractQueryCacheInstrument.java Tue Nov 2 17:33:41 2010 @@ -199,7 +199,7 @@ public abstract class AbstractQueryCache private QueryKey findKey(String key) { QueryStatistics stats = getStatistics(); for (QueryKey qk : stats.keys()) { - if (qk.toString().equals(key.toString())) { + if (qk.toString().equals(key)) { return qk; } } Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java Tue Nov 2 17:33:41 2010 @@ -23,6 +23,7 @@ import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.util.Set; +import java.util.Map.Entry; import org.apache.commons.lang.ObjectUtils; import org.apache.openjpa.enhance.PersistenceCapable; @@ -379,10 +380,11 @@ abstract class AttachStrategy try { return manager.getProxyManager().copyMap(orig); } catch (Exception e) { - Map map = (Map) sm.newFieldProxy(fmd.getIndex()); - Set keys = orig.keySet(); - for (Object key : keys) - map.put(key, orig.get(key)); + Map map = (Map) sm.newFieldProxy(fmd.getIndex()); + + for (Entry entry : ((Map) orig).entrySet()) { + map.put(entry.getKey(), entry.getValue()); + } return map; } } Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/DetachedValueStateManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/DetachedValueStateManager.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/DetachedValueStateManager.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/DetachedValueStateManager.java Tue Nov 2 17:33:41 2010 @@ -316,9 +316,9 @@ public class DetachedValueStateManager case JavaTypes.CHAR: return Character.valueOf(fm.fetchCharField(field)); case JavaTypes.DOUBLE: - return new Double(fm.fetchDoubleField(field)); + return Double.valueOf(fm.fetchDoubleField(field)); case JavaTypes.FLOAT: - return new Float(fm.fetchFloatField(field)); + return Float.valueOf(fm.fetchFloatField(field)); case JavaTypes.INT: return fm.fetchIntField(field); case JavaTypes.LONG: Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ExpressionStoreQuery.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ExpressionStoreQuery.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ExpressionStoreQuery.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ExpressionStoreQuery.java Tue Nov 2 17:33:41 2010 @@ -28,11 +28,10 @@ import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Map.Entry; -import org.apache.commons.collections.map.LinkedMap; import org.apache.openjpa.conf.OpenJPAConfiguration; import org.apache.openjpa.datacache.DataCache; -import org.apache.openjpa.kernel.exps.Subquery; import org.apache.openjpa.kernel.exps.AbstractExpressionVisitor; import org.apache.openjpa.kernel.exps.AggregateListener; import org.apache.openjpa.kernel.exps.Constant; @@ -44,6 +43,7 @@ import org.apache.openjpa.kernel.exps.Pa import org.apache.openjpa.kernel.exps.QueryExpressions; import org.apache.openjpa.kernel.exps.Resolver; import org.apache.openjpa.kernel.exps.StringContains; +import org.apache.openjpa.kernel.exps.Subquery; import org.apache.openjpa.kernel.exps.Val; import org.apache.openjpa.kernel.exps.Value; import org.apache.openjpa.kernel.exps.WildcardMatch; @@ -409,7 +409,8 @@ public class ExpressionStoreQuery OrderedMap> paramTypes = getOrderedParameterTypes(q); Object[] arr = new Object[userParams.size()]; int base = positionalParameterBase(userParams.keySet()); - for (Object key : paramTypes.keySet()) { + for(Entry> entry : paramTypes.entrySet()){ + Object key = entry.getKey(); int idx = (key instanceof Integer) ? ((Integer)key).intValue() - base : paramTypes.indexOf(key); @@ -418,7 +419,7 @@ public class ExpressionStoreQuery new Object[]{q.getContext().getQueryString(), key, userParams.size(), userParams})); Object value = userParams.get(key); - validateParameterValue(key, value, (Class)paramTypes.get(key)); + validateParameterValue(key, value, (Class)entry.getValue()); arr[idx] = value; } return arr; Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java Tue Nov 2 17:33:41 2010 @@ -337,9 +337,9 @@ public class Filters { if (type == Integer.class && allowNumericConversion(o.getClass(), type, strictNumericConversion)) { return ((Number) o).intValue(); } else if (type == Float.class && allowNumericConversion(o.getClass(), type, strictNumericConversion)) { - return new Float(((Number) o).floatValue()); + return Float.valueOf(((Number) o).floatValue()); } else if (type == Double.class) { - return new Double(((Number) o).doubleValue()); + return Double.valueOf(((Number) o).doubleValue()); } else if (type == Long.class && allowNumericConversion(o.getClass(), type, strictNumericConversion)) { return ((Number) o).longValue(); } else if (type == BigDecimal.class) { @@ -349,11 +349,11 @@ public class Filters { // and Float versions, despite wanting to cast it to BigDecimal double dval = ((Number) o).doubleValue(); if (Double.isNaN(dval) || Double.isInfinite(dval)) - return new Double(dval); + return Double.valueOf(dval); float fval = ((Number) o).floatValue(); if (Float.isNaN(fval) || Float.isInfinite(fval)) - return new Float(fval); + return Float.valueOf(fval); return new BigDecimal(o.toString()); } else if (type == BigInteger.class) { @@ -512,7 +512,7 @@ public class Filters { default: throw new InternalException(); } - return new Float(tot); + return Float.valueOf(tot); } /** @@ -539,7 +539,7 @@ public class Filters { default: throw new InternalException(); } - return new Double(tot); + return Double.valueOf(tot); } /** @@ -1021,7 +1021,7 @@ public class Filters { if (nType == Integer.class) return Integer.valueOf(0); if (nType == Double.class) - return new Double(0.0); + return Double.valueOf(0.0); if (nType == Float.class) return new Float(0.0); if (nType == Short.class) Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ObjectIdStateManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ObjectIdStateManager.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ObjectIdStateManager.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ObjectIdStateManager.java Tue Nov 2 17:33:41 2010 @@ -49,8 +49,8 @@ public class ObjectIdStateManager private static final Byte ZERO_BYTE = Byte.valueOf((byte)0); private static final Character ZERO_CHAR = Character.valueOf((char)0); - private static final Double ZERO_DOUBLE = new Double(0); - private static final Float ZERO_FLOAT = new Float(0); + private static final Double ZERO_DOUBLE = Double.valueOf(0); + private static final Float ZERO_FLOAT = Float.valueOf(0); private static final Short ZERO_SHORT = Short.valueOf((short)0); private Object _oid; @@ -483,11 +483,11 @@ public class ObjectIdStateManager } public void storeFloat(int field, float extVal) { - setValue(field, new Float(extVal), true); + setValue(field, Float.valueOf(extVal), true); } public void storeDouble(int field, double extVal) { - setValue(field, new Double(extVal), true); + setValue(field, Double.valueOf(extVal), true); } public void storeString(int field, String extVal) { Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java Tue Nov 2 17:33:41 2010 @@ -29,6 +29,7 @@ import java.util.Iterator; import java.util.List; import java.util.ListIterator; import java.util.Map; +import java.util.Map.Entry; import java.util.concurrent.locks.ReentrantLock; import org.apache.commons.collections.map.LinkedMap; @@ -1769,10 +1770,7 @@ public class QueryImpl expected, paramTypes.keySet())); } - Iterator>> itr = paramTypes.entrySet().iterator(); - Map.Entry> entry; - for (int i = 0; itr.hasNext(); i++) { - entry = itr.next(); + for (Entry> entry : paramTypes.entrySet()) { if (entry.getValue().isPrimitive() && params.get(entry.getKey()) == null) throw new UserException(_loc.get("null-primitive-param", entry.getKey())); Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java Tue Nov 2 17:33:41 2010 @@ -852,9 +852,9 @@ public class StateManagerImpl case JavaTypes.CHAR: return Character.valueOf(fetchCharField(field)); case JavaTypes.DOUBLE: - return new Double(fetchDoubleField(field)); + return Double.valueOf(fetchDoubleField(field)); case JavaTypes.FLOAT: - return new Float(fetchFloatField(field)); + return Float.valueOf(fetchFloatField(field)); case JavaTypes.INT: return fetchIntField(field); case JavaTypes.LONG: @@ -983,9 +983,9 @@ public class StateManagerImpl case JavaTypes.CHAR: return Character.valueOf(fm.fetchCharField(field)); case JavaTypes.DOUBLE: - return new Double(fm.fetchDoubleField(field)); + return Double.valueOf(fm.fetchDoubleField(field)); case JavaTypes.FLOAT: - return new Float(fm.fetchFloatField(field)); + return Float.valueOf(fm.fetchFloatField(field)); case JavaTypes.INT: return fm.fetchIntField(field); case JavaTypes.LONG: @@ -2486,8 +2486,7 @@ public class StateManagerImpl if (!fmd.isExternalized()) storeDoubleField(field, externalVal); else - storeField(field, fmd.getFieldValue(new Double(externalVal), - _broker)); + storeField(field, fmd.getFieldValue(Double.valueOf(externalVal), _broker)); } public void storeDoubleField(int field, double curVal) { @@ -2507,8 +2506,7 @@ public class StateManagerImpl if (!fmd.isExternalized()) storeFloatField(field, externalVal); else - storeField(field, fmd.getFieldValue(new Float(externalVal), - _broker)); + storeField(field, fmd.getFieldValue(Float.valueOf(externalVal), _broker)); } public void storeFloatField(int field, float curVal) { Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Abs.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Abs.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Abs.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Abs.java Tue Nov 2 17:33:41 2010 @@ -53,9 +53,9 @@ class Abs if (c == Integer.class) return Math.abs(((Number) o).intValue()); if (c == Float.class) - return new Float(Math.abs(((Number) o).floatValue())); + return Float.valueOf(Math.abs(((Number) o).floatValue())); if (c == Double.class) - return new Double(Math.abs(((Number) o).doubleValue())); + return Double.valueOf(Math.abs(((Number) o).doubleValue())); if (c == Long.class) return Math.abs(((Number) o).longValue()); if (c == BigDecimal.class) Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Sqrt.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Sqrt.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Sqrt.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Sqrt.java Tue Nov 2 17:33:41 2010 @@ -38,6 +38,6 @@ class Sqrt } protected Object operate(Object o, Class c) { - return new Double(Math.sqrt(((Number) o).doubleValue())); + return Double.valueOf(Math.sqrt(((Number) o).doubleValue())); } } Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java Tue Nov 2 17:33:41 2010 @@ -295,21 +295,21 @@ public class JavaTypes { if (val instanceof Double) return val; if (val instanceof Number) - return new Double(((Number) val).doubleValue()); + return Double.valueOf(((Number) val).doubleValue()); // no break case DOUBLE: if (val instanceof String) - return new Double(val.toString()); + return Double.valueOf(val.toString()); return val; case FLOAT_OBJ: if (val instanceof Float) return val; if (val instanceof Number) - return new Float(((Number) val).floatValue()); + return Float.valueOf(((Number) val).floatValue()); // no break case FLOAT: if (val instanceof String) - return new Float(val.toString()); + return Float.valueOf(val.toString()); return val; case INT_OBJ: if (val instanceof Integer) Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataRepository.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataRepository.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataRepository.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataRepository.java Tue Nov 2 17:33:41 2010 @@ -1268,7 +1268,7 @@ public class MetaDataRepository implemen mapped.add(meta); } } - return mapped.toArray(new ClassMetaData[]{}); + return mapped.toArray(new ClassMetaData[mapped.size()]); } /** * Gets the metadata corresponding to the given persistence-aware class. Returns null, if the Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ApplicationIds.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ApplicationIds.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ApplicationIds.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ApplicationIds.java Tue Nov 2 17:33:41 2010 @@ -622,11 +622,11 @@ public class ApplicationIds { } public void storeFloatField(int field, float val) { - store(new Float(val)); + store(Float.valueOf(val)); } public void storeDoubleField(int field, double val) { - store(new Double(val)); + store(Double.valueOf(val)); } public void storeStringField(int field, String val) { Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/DoubleId.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/DoubleId.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/DoubleId.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/DoubleId.java Tue Nov 2 17:33:41 2010 @@ -51,7 +51,7 @@ public final class DoubleId } public Object getIdObject() { - return new Double(key); + return Double.valueOf(key); } public String toString() { Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/FloatId.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/FloatId.java?rev=1030139&r1=1030138&r2=1030139&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/FloatId.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/FloatId.java Tue Nov 2 17:33:41 2010 @@ -51,7 +51,7 @@ public final class FloatId } public Object getIdObject() { - return new Float(key); + return Float.valueOf(key); } public String toString() { From commits-return-7953-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 17:35:06 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 41254 invoked from network); 2 Nov 2010 17:35:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 17:35:05 -0000 Received: (qmail 58801 invoked by uid 500); 2 Nov 2010 17:35:37 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 58772 invoked by uid 500); 2 Nov 2010 17:35:37 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 58765 invoked by uid 99); 2 Nov 2010 17:35:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:35:37 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:35:36 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id C14ECC010A for ; Tue, 2 Nov 2010 17:35:16 +0000 (UTC) Date: Tue, 2 Nov 2010 17:35:16 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1044010859.1111288719316777.JavaMail.hudson@aegis> In-Reply-To: <1675793862.1041288712143715.JavaMail.hudson@aegis> References: <1675793862.1041288712143715.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#305?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_17-33-47/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 20 seconds [INFO] Finished at: Tue Nov 02 00:35:20 GMT 2010 [INFO] Final Memory: 65M/175M [INFO] ------------------------------------------------------------------------ From commits-return-7954-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 17:35:07 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 41282 invoked from network); 2 Nov 2010 17:35:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 17:35:07 -0000 Received: (qmail 58873 invoked by uid 500); 2 Nov 2010 17:35:38 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 58843 invoked by uid 500); 2 Nov 2010 17:35:38 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 58836 invoked by uid 99); 2 Nov 2010 17:35:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:35:38 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:35:37 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 8252AC0161 for ; Tue, 2 Nov 2010 17:35:17 +0000 (UTC) Date: Tue, 2 Nov 2010 17:35:17 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <212801287.1121288719317532.JavaMail.hudson@aegis> In-Reply-To: <1385930747.1051288712144279.JavaMail.hudson@aegis> References: <1385930747.1051288712144279.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #305 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See Changes: [dwoods] exclude JEST tests for now ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-persistence-jdbc\pom.xml At revision 1030137 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 52110 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030124 at timestamp: November 2, 2010 at 12:34 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_17-33-47/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_17-33-47/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_17-33-47/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 20 seconds [INFO] Finished at: Tue Nov 02 00:35:20 GMT 2010 [INFO] Final Memory: 65M/175M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7955-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 18:04:42 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 51467 invoked from network); 2 Nov 2010 18:04:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 18:04:42 -0000 Received: (qmail 8795 invoked by uid 500); 2 Nov 2010 18:05:13 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 8740 invoked by uid 500); 2 Nov 2010 18:05:13 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8733 invoked by uid 99); 2 Nov 2010 18:05:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:05:13 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:05:13 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id CD311C010A for ; Tue, 2 Nov 2010 18:04:52 +0000 (UTC) Date: Tue, 2 Nov 2010 18:04:52 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1556580703.1141288721092825.JavaMail.hudson@aegis> In-Reply-To: <1044010859.1111288719316777.JavaMail.hudson@aegis> References: <1044010859.1111288719316777.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#306?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_18-03-36/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 7 seconds [INFO] Finished at: Tue Nov 02 01:04:56 GMT 2010 [INFO] Final Memory: 65M/171M [INFO] ------------------------------------------------------------------------ From commits-return-7956-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 18:04:47 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 51562 invoked from network); 2 Nov 2010 18:04:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 18:04:46 -0000 Received: (qmail 9006 invoked by uid 500); 2 Nov 2010 18:05:17 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 8981 invoked by uid 500); 2 Nov 2010 18:05:17 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8971 invoked by uid 99); 2 Nov 2010 18:05:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:05:17 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:05:14 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 6E534C0161 for ; Tue, 2 Nov 2010 18:04:53 +0000 (UTC) Date: Tue, 2 Nov 2010 18:04:53 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1810543073.1151288721093451.JavaMail.hudson@aegis> In-Reply-To: <212801287.1121288719317532.JavaMail.hudson@aegis> References: <212801287.1121288719317532.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #306 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [curtisr7] OPENJPA-1868: Miscellaneous FindBugs suggested performance improvements for openjpa-kernel. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\exps\Sqrt.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\exps\Abs.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\Filters.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\ObjectIdStateManager.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\QueryImpl.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\DetachedValueStateManager.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\ExpressionStoreQuery.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\AttachStrategy.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\StateManagerImpl.java U openjpa-kernel\src\main\java\org\apache\openjpa\instrumentation\AbstractQueryCacheInstrument.java U openjpa-kernel\src\main\java\org\apache\openjpa\meta\JavaTypes.java U openjpa-kernel\src\main\java\org\apache\openjpa\meta\MetaDataRepository.java U openjpa-kernel\src\main\java\org\apache\openjpa\datacache\DataCacheStoreManager.java U openjpa-kernel\src\main\java\org\apache\openjpa\util\FloatId.java U openjpa-kernel\src\main\java\org\apache\openjpa\util\DoubleId.java U openjpa-kernel\src\main\java\org\apache\openjpa\util\ApplicationIds.java At revision 1030148 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 52475 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030139 at timestamp: November 2, 2010 at 1:04 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_18-03-36/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_18-03-36/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_18-03-36/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 7 seconds [INFO] Finished at: Tue Nov 02 01:04:56 GMT 2010 [INFO] Final Memory: 65M/171M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7957-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 18:25:01 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 74295 invoked from network); 2 Nov 2010 18:25:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 18:25:01 -0000 Received: (qmail 63485 invoked by uid 500); 2 Nov 2010 18:25:32 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 63463 invoked by uid 500); 2 Nov 2010 18:25:32 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 63456 invoked by uid 99); 2 Nov 2010 18:25:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:25:32 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:25:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D197623889ED; Tue, 2 Nov 2010 18:24:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030156 - in /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc: kernel/ meta/ meta/strats/ schema/ sql/ Date: Tue, 02 Nov 2010 18:24:13 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102182413.D197623889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Tue Nov 2 18:24:12 2010 New Revision: 1030156 URL: http://svn.apache.org/viewvc?rev=1030156&view=rev Log: OPENJPA-1868: Miscellaneous FindBugs suggested performance improvements for openjpa-jdbc. Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreQuery.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMappingInfo.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/DiscriminatorMappingInfo.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/JavaSQLTypes.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingDefaultsImpl.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/EnumValueHandler.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/PrimitiveWrapperArrays.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java Tue Nov 2 18:24:12 2010 @@ -146,8 +146,7 @@ public class JDBCFetchConfigurationImpl && mode != EagerFetchModes.EAGER_NONE && mode != EagerFetchModes.EAGER_JOIN && mode != EagerFetchModes.EAGER_PARALLEL) - throw new IllegalArgumentException( - _loc.get("bad-fetch-mode", new Integer(mode)).getMessage()); + throw new IllegalArgumentException(_loc.get("bad-fetch-mode", Integer.valueOf(mode)).getMessage()); if (mode == DEFAULT) { JDBCConfiguration conf = getJDBCConfiguration(); @@ -177,8 +176,7 @@ public class JDBCFetchConfigurationImpl && mode != EagerFetchModes.EAGER_NONE && mode != EagerFetchModes.EAGER_JOIN && mode != EagerFetchModes.EAGER_PARALLEL) - throw new IllegalArgumentException( - _loc.get("bad-fetch-mode", new Integer(mode)).getMessage()); + throw new IllegalArgumentException(_loc.get("bad-fetch-mode", Integer.valueOf(mode)).getMessage()); if (mode == DEFAULT) { JDBCConfiguration conf = getJDBCConfiguration(); @@ -199,8 +197,7 @@ public class JDBCFetchConfigurationImpl && type != ResultSet.TYPE_FORWARD_ONLY && type != ResultSet.TYPE_SCROLL_INSENSITIVE && type != ResultSet.TYPE_SCROLL_SENSITIVE) - throw new IllegalArgumentException(_loc.get("bad-resultset-type", - new Integer(type)).getMessage()); + throw new IllegalArgumentException(_loc.get("bad-resultset-type", Integer.valueOf(type)).getMessage()); if (type == DEFAULT) { JDBCConfiguration conf = getJDBCConfiguration(); @@ -220,8 +217,7 @@ public class JDBCFetchConfigurationImpl && direction != ResultSet.FETCH_FORWARD && direction != ResultSet.FETCH_REVERSE && direction != ResultSet.FETCH_UNKNOWN) - throw new IllegalArgumentException(_loc.get("bad-fetch-direction", - new Integer(direction)).getMessage()); + throw new IllegalArgumentException(_loc.get("bad-fetch-direction", Integer.valueOf(direction)).getMessage()); if (direction == DEFAULT) { JDBCConfiguration conf = getJDBCConfiguration(); @@ -241,8 +237,7 @@ public class JDBCFetchConfigurationImpl && size != LRSSizes.SIZE_QUERY && size != LRSSizes.SIZE_LAST && size != LRSSizes.SIZE_UNKNOWN) - throw new IllegalArgumentException( - _loc.get("bad-lrs-size", new Integer(size)).getMessage()); + throw new IllegalArgumentException(_loc.get("bad-lrs-size", Integer.valueOf(size)).getMessage()); if (size == DEFAULT) { JDBCConfiguration conf = getJDBCConfiguration(); @@ -262,8 +257,7 @@ public class JDBCFetchConfigurationImpl && syntax != JoinSyntaxes.SYNTAX_SQL92 && syntax != JoinSyntaxes.SYNTAX_TRADITIONAL && syntax != JoinSyntaxes.SYNTAX_DATABASE) - throw new IllegalArgumentException( - _loc.get("bad-join-syntax", new Integer(syntax)).getMessage()); + throw new IllegalArgumentException(_loc.get("bad-join-syntax", Integer.valueOf(syntax)).getMessage()); if (syntax == DEFAULT) { JDBCConfiguration conf = getJDBCConfiguration(); @@ -383,8 +377,7 @@ public class JDBCFetchConfigurationImpl && level != Connection.TRANSACTION_READ_COMMITTED && level != Connection.TRANSACTION_REPEATABLE_READ && level != Connection.TRANSACTION_SERIALIZABLE) - throw new IllegalArgumentException( - _loc.get("bad-level", new Integer(level)).getMessage()); + throw new IllegalArgumentException(_loc.get("bad-level", Integer.valueOf(level)).getMessage()); if (level == DEFAULT) _state.isolationLevel = -1; Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreQuery.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreQuery.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreQuery.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreQuery.java Tue Nov 2 18:24:12 2010 @@ -944,13 +944,13 @@ public class JDBCStoreQuery Object val = getValue(absVal.getValue(), ob, params, sm); Class c = val.getClass(); if (c == Integer.class) - return new Integer(java.lang.Math.abs(((Integer) val).intValue())); + return Integer.valueOf(java.lang.Math.abs(((Integer) val).intValue())); else if (c == Float.class) - return new Float(java.lang.Math.abs(((Float) val).floatValue())); + return Float.valueOf(java.lang.Math.abs(((Float) val).floatValue())); else if (c == Double.class) - return new Double(java.lang.Math.abs(((Double) val).doubleValue())); + return Double.valueOf(java.lang.Math.abs(((Double) val).doubleValue())); else if (c == Long.class) - return new Long(java.lang.Math.abs(((Long) val).longValue())); + return Long.valueOf(java.lang.Math.abs(((Long) val).longValue())); throw new UnsupportedException(); } @@ -961,15 +961,13 @@ public class JDBCStoreQuery Object val = getValue(sqrtVal.getValue(), ob, params, sm); Class c = val.getClass(); if (c == Integer.class) - return new Double(java.lang.Math.sqrt(((Integer) val). - doubleValue())); + return Double.valueOf(java.lang.Math.sqrt(((Integer) val).doubleValue())); else if (c == Float.class) - return new Double(java.lang.Math.sqrt(((Float) val).floatValue())); + return Double.valueOf(java.lang.Math.sqrt(((Float) val).floatValue())); else if (c == Double.class) - return new Double(java.lang.Math.sqrt(((Double) val). - doubleValue())); + return Double.valueOf(java.lang.Math.sqrt(((Double) val).doubleValue())); else if (c == Long.class) - return new Double(java.lang.Math.sqrt(((Long) val).doubleValue())); + return Double.valueOf(java.lang.Math.sqrt(((Long) val).doubleValue())); throw new UnsupportedException(); } Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMappingInfo.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMappingInfo.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMappingInfo.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/ClassMappingInfo.java Tue Nov 2 18:24:12 2010 @@ -178,7 +178,7 @@ public class ClassMappingInfo public DBIdentifier[] getSecondaryTableIdentifiers() { if (_seconds == null) return new DBIdentifier[0]; - return (DBIdentifier[]) _seconds.keySet().toArray(new DBIdentifier[]{ }); + return (DBIdentifier[]) _seconds.keySet().toArray(new DBIdentifier[_seconds.size()]); } /** Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/DiscriminatorMappingInfo.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/DiscriminatorMappingInfo.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/DiscriminatorMappingInfo.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/DiscriminatorMappingInfo.java Tue Nov 2 18:24:12 2010 @@ -73,7 +73,7 @@ public class DiscriminatorMappingInfo case JavaTypes.INT: return Integer.valueOf(_value); case JavaTypes.CHAR: - return new Character(_value.charAt(_value.indexOf('\'')+1)); + return Character.valueOf(_value.charAt(_value.indexOf('\'')+1)); case JavaTypes.STRING: default: return _value; Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/JavaSQLTypes.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/JavaSQLTypes.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/JavaSQLTypes.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/JavaSQLTypes.java Tue Nov 2 18:24:12 2010 @@ -49,18 +49,18 @@ public class JavaSQLTypes public static final int TIMESTAMP = 1011; public static final int JDBC_DEFAULT = 1012; - private static final Byte ZERO_BYTE = new Byte((byte) 0); - private static final Character ZERO_CHAR = new Character((char) 0); - private static final Double ZERO_DOUBLE = new Double(0d); - private static final Float ZERO_FLOAT = new Float(0f); - private static final Short ZERO_SHORT = new Short((short) 0); + private static final Byte ZERO_BYTE = Byte.valueOf((byte) 0); + private static final Character ZERO_CHAR = Character.valueOf((char) 0); + private static final Double ZERO_DOUBLE = Double.valueOf(0d); + private static final Float ZERO_FLOAT = Float.valueOf(0f); + private static final Short ZERO_SHORT = Short.valueOf((short) 0); private static final BigDecimal ZERO_BIGDECIMAL = new BigDecimal(0d); private static final Byte NONZERO_BYTE = new Byte((byte) 1); - private static final Character NONZERO_CHAR = new Character((char) 'a'); - private static final Double NONZERO_DOUBLE = new Double(1d); - private static final Float NONZERO_FLOAT = new Float(1f); - private static final Short NONZERO_SHORT = new Short((short) 1); + private static final Character NONZERO_CHAR = Character.valueOf((char) 'a'); + private static final Double NONZERO_DOUBLE = Double.valueOf(1d); + private static final Float NONZERO_FLOAT = Float.valueOf(1f); + private static final Short NONZERO_SHORT = Short.valueOf((short) 1); private static final BigInteger NONZERO_BIGINTEGER = new BigInteger("1"); private static final BigDecimal NONZERO_BIGDECIMAL = new BigDecimal(1d); Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingDefaultsImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingDefaultsImpl.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingDefaultsImpl.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingDefaultsImpl.java Tue Nov 2 18:24:12 2010 @@ -553,9 +553,9 @@ public class MappingDefaultsImpl switch (disc.getJavaType()) { case JavaTypes.INT: - return new Integer(alias.hashCode()); + return Integer.valueOf(alias.hashCode()); case JavaTypes.CHAR: - return new Character(alias.charAt(0)); + return Character.valueOf(alias.charAt(0)); case JavaTypes.STRING: default: return alias; Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/EnumValueHandler.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/EnumValueHandler.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/EnumValueHandler.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/EnumValueHandler.java Tue Nov 2 18:24:12 2010 @@ -106,7 +106,7 @@ public class EnumValueHandler if (val == null) return null; if (_ordinal) - return new Integer(((Enum) val).ordinal()); + return Integer.valueOf(((Enum) val).ordinal()); return ((Enum) val).name(); } Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/PrimitiveWrapperArrays.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/PrimitiveWrapperArrays.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/PrimitiveWrapperArrays.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/PrimitiveWrapperArrays.java Tue Nov 2 18:24:12 2010 @@ -36,7 +36,7 @@ class PrimitiveWrapperArrays { if (vm.getType().getComponentType() == Character.class) { Character[] objectArray = new Character[array.length]; for (int i = 0; i < array.length; i++) - objectArray[i] = new Character(array[i]); + objectArray[i] = Character.valueOf(array[i]); return objectArray; } return array; @@ -65,7 +65,7 @@ class PrimitiveWrapperArrays { if (vm.getType().getComponentType() == Byte.class) { Byte[] objectArray = new Byte[array.length]; for (int i = 0; i < array.length; i++) - objectArray[i] = new Byte(array[i]); + objectArray[i] = Byte.valueOf(array[i]); return objectArray; } return array; Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Tue Nov 2 18:24:12 2010 @@ -415,7 +415,7 @@ public class Column break; case JavaTypes.CHAR: case JavaTypes.CHAR_OBJ: - _default = new Character(_defaultStr.charAt(0)); + _default = Character.valueOf(_defaultStr.charAt(0)); break; case JavaTypes.DOUBLE: case JavaTypes.DOUBLE_OBJ: Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java Tue Nov 2 18:24:12 2010 @@ -536,10 +536,10 @@ public class DBDictionary return getBigDecimal(rs, column); } catch (Exception e1) { try { - return new Double(getDouble(rs, column)); + return Double.valueOf(getDouble(rs, column)); } catch (Exception e2) { try { - return new Float(getFloat(rs, column)); + return Float.valueOf(getFloat(rs, column)); } catch (Exception e3) { try { return getLong(rs, column); @@ -4742,7 +4742,7 @@ public class DBDictionary timeout = 0; } else if (timeout < 0) { if (log.isWarnEnabled()) - log.warn(_loc.get("invalid-timeout", new Integer(timeout))); + log.warn(_loc.get("invalid-timeout", Integer.valueOf(timeout))); return; } else if (timeout > 0 && timeout < 1000) { // round up to 1 sec Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java Tue Nov 2 18:24:12 2010 @@ -517,7 +517,7 @@ public class OracleDictionary new Class[]{ int.class, short.class }). invoke(inner, new Object[]{ - new Integer(idx), + Integer.valueOf(idx), Class.forName ("oracle.jdbc.OraclePreparedStatement"). getField("FORM_NCHAR").get(null) Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java Tue Nov 2 18:24:12 2010 @@ -350,7 +350,7 @@ public final class SQLBuffer * Append a parameter value. */ public SQLBuffer appendValue(byte b, Column col) { - return appendValue(new Byte(b), col); + return appendValue(Byte.valueOf(b), col); } /** @@ -364,7 +364,7 @@ public final class SQLBuffer * Append a parameter value. */ public SQLBuffer appendValue(char c, Column col) { - return appendValue(new Character(c), col); + return appendValue(Character.valueOf(c), col); } /** @@ -378,7 +378,7 @@ public final class SQLBuffer * Append a parameter value. */ public SQLBuffer appendValue(double d, Column col) { - return appendValue(new Double(d), col); + return appendValue(Double.valueOf(d), col); } /** @@ -392,7 +392,7 @@ public final class SQLBuffer * Append a parameter value. */ public SQLBuffer appendValue(float f, Column col) { - return appendValue(new Float(f), col); + return appendValue(Float.valueOf(f), col); } /** @@ -434,7 +434,7 @@ public final class SQLBuffer * Append a parameter value. */ public SQLBuffer appendValue(short s, Column col) { - return appendValue(new Short(s), col); + return appendValue(Short.valueOf(s), col); } /** Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java?rev=1030156&r1=1030155&r2=1030156&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SolidDBDictionary.java Tue Nov 2 18:24:12 2010 @@ -432,11 +432,11 @@ public class SolidDBDictionary break; case JavaTypes.FLOAT: case JavaTypes.FLOAT_OBJ: - setFloat(stmnt, idx, new Double(val).floatValue(), col); + setFloat(stmnt, idx, Double.valueOf(val).floatValue(), col); break; case JavaTypes.LONG: case JavaTypes.LONG_OBJ: - setLong(stmnt, idx, new Double(val).longValue(), col); + setLong(stmnt, idx, Double.valueOf(val).longValue(), col); break; } } From commits-return-7958-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 18:34:40 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 82211 invoked from network); 2 Nov 2010 18:34:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 18:34:40 -0000 Received: (qmail 88495 invoked by uid 500); 2 Nov 2010 18:35:10 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 88460 invoked by uid 500); 2 Nov 2010 18:35:10 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 88417 invoked by uid 99); 2 Nov 2010 18:35:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:35:10 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:35:09 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 76982C0161 for ; Tue, 2 Nov 2010 18:34:48 +0000 (UTC) Date: Tue, 2 Nov 2010 18:34:48 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1005643324.1171288722888484.JavaMail.hudson@aegis> In-Reply-To: <1810543073.1151288721093451.JavaMail.hudson@aegis> References: <1810543073.1151288721093451.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #307 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See Changes: [curtisr7] OPENJPA-1868: Miscellaneous FindBugs suggested performance improvements for openjpa-jdbc. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\SolidDBDictionary.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\SQLBuffer.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\DBDictionary.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\OracleDictionary.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\kernel\JDBCStoreQuery.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\kernel\JDBCFetchConfigurationImpl.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\schema\Column.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\meta\DiscriminatorMappingInfo.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\meta\strats\EnumValueHandler.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\meta\strats\PrimitiveWrapperArrays.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\meta\MappingDefaultsImpl.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\meta\JavaSQLTypes.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\meta\ClassMappingInfo.java At revision 1030164 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 52840 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030156 at timestamp: November 2, 2010 at 1:34 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_18-33-41/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_18-33-41/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_18-33-41/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 59 seconds [INFO] Finished at: Tue Nov 02 01:34:51 GMT 2010 [INFO] Final Memory: 65M/160M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7959-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 18:34:40 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 82228 invoked from network); 2 Nov 2010 18:34:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 18:34:40 -0000 Received: (qmail 88882 invoked by uid 500); 2 Nov 2010 18:35:11 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 88862 invoked by uid 500); 2 Nov 2010 18:35:11 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 88841 invoked by uid 99); 2 Nov 2010 18:35:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:35:11 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:35:09 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 2FA0EC010A for ; Tue, 2 Nov 2010 18:34:48 +0000 (UTC) Date: Tue, 2 Nov 2010 18:34:48 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <219220030.1161288722888179.JavaMail.hudson@aegis> In-Reply-To: <1556580703.1141288721092825.JavaMail.hudson@aegis> References: <1556580703.1141288721092825.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#307?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_18-33-41/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 59 seconds [INFO] Finished at: Tue Nov 02 01:34:51 GMT 2010 [INFO] Final Memory: 65M/160M [INFO] ------------------------------------------------------------------------ From commits-return-7960-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 18:51:00 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 92981 invoked from network); 2 Nov 2010 18:51:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 18:51:00 -0000 Received: (qmail 30460 invoked by uid 500); 2 Nov 2010 18:51:32 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 30433 invoked by uid 500); 2 Nov 2010 18:51:32 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 30425 invoked by uid 99); 2 Nov 2010 18:51:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:51:32 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:51:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 801F123889ED; Tue, 2 Nov 2010 18:50:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030172 - in /openjpa/trunk: openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/ openjpa-lib/src/main/java/org/apache/openjpa/lib/log/ openjpa-lib/src/main/java/org/apache/openjpa/lib/util/ openjpa-persistence-jdbc/src/main/java/o... Date: Tue, 02 Nov 2010 18:50:14 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102185014.801F123889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Tue Nov 2 18:50:13 2010 New Revision: 1030172 URL: http://svn.apache.org/viewvc?rev=1030172&view=rev Log: OPENJPA-1868: Miscellaneous FindBugs suggested performance improvements for lib, persistence, and persistence-jdbc. Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/LogFactoryImpl.java openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/MultiLogFactory.java openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/J2DoPrivHelper.java openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/Options.java openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Expressions.java Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java?rev=1030172&r1=1030171&r2=1030172&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java Tue Nov 2 18:50:13 2010 @@ -88,7 +88,7 @@ public class IdentifierUtilImpl implemen } if (delimited) { - combined = delimit(config, rule, combined.toString()).toString(); + combined = delimit(config, rule, combined.toString()); } return combined; @@ -105,7 +105,7 @@ public class IdentifierUtilImpl implemen delimit = true; } String name = name1 + config.getIdentifierConcatenator() + name2; - return delimit(config, rule, name, delimit).toString(); + return delimit(config, rule, name, delimit); } public String combineNames(IdentifierConfiguration config, IdentifierRule namingRule, String[] names) { @@ -125,7 +125,7 @@ public class IdentifierUtilImpl implemen } } if (delimited) { - combined = delimit(config, namingRule, combined.toString()).toString(); + combined = delimit(config, namingRule, combined.toString()); } return combined; @@ -145,7 +145,7 @@ public class IdentifierUtilImpl implemen name2 = IdentifierUtil.EMPTY; } String name = name1 + name2; - return delimit(rule, name).toString(); + return delimit(rule, name); } /** @@ -414,7 +414,7 @@ public class IdentifierUtilImpl implemen } tName = tName.substring(0, tName.length() - length); if (delimited) { - tName = delimit(namingRule, tName).toString(); + tName = delimit(namingRule, tName); } return tName; } @@ -477,7 +477,7 @@ public class IdentifierUtilImpl implemen name = name.substring(newStart); if (delimited) { - name = delimit(rule, name).toString(); + name = delimit(rule, name); } return name; } @@ -502,7 +502,7 @@ public class IdentifierUtilImpl implemen if (delimit) { name = removeDelimiters(config, orule, name, config.getLeadingDelimiter(), config.getTrailingDelimiter()); - return delimit(getIdentifierConfiguration(), nrule, name, delimit).toString(); + return delimit(getIdentifierConfiguration(), nrule, name, delimit); } return name; } Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/LogFactoryImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/LogFactoryImpl.java?rev=1030172&r1=1030171&r2=1030172&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/LogFactoryImpl.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/LogFactoryImpl.java Tue Nov 2 18:50:13 2010 @@ -277,8 +277,7 @@ public class LogFactoryImpl for (Iterator> iter = opts.entrySet().iterator(); iter.hasNext();) { e = iter.next(); - _configuredLevels.put(shorten((String) e.getKey()), new Short( - getLevel((String) e.getValue()))); + _configuredLevels.put(shorten((String) e.getKey()), Short.valueOf(getLevel((String) e.getValue()))); } opts.clear(); } Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/MultiLogFactory.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/MultiLogFactory.java?rev=1030172&r1=1030171&r2=1030172&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/MultiLogFactory.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/MultiLogFactory.java Tue Nov 2 18:50:13 2010 @@ -68,7 +68,7 @@ public class MultiLogFactory implements * Returns the delegates that this MultiLogFactory delegates messages to. */ public LogFactory[] getDelegates() { - return (LogFactory[]) _delegates.toArray(new LogFactory[0]); + return (LogFactory[]) _delegates.toArray(new LogFactory[_delegates.size()]); } /** Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/J2DoPrivHelper.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/J2DoPrivHelper.java?rev=1030172&r1=1030171&r2=1030172&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/J2DoPrivHelper.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/J2DoPrivHelper.java Tue Nov 2 18:50:13 2010 @@ -597,7 +597,7 @@ public abstract class J2DoPrivHelper { public static final PrivilegedAction lengthAction(final File f) { return new PrivilegedAction() { public Long run() { - return new Long(f.length()); + return Long.valueOf(f.length()); } }; } Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/Options.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/Options.java?rev=1030172&r1=1030171&r2=1030172&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/Options.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/Options.java Tue Nov 2 18:50:13 2010 @@ -62,13 +62,13 @@ public class Options extends TypedProper // maps primitive types to the appropriate wrapper class and default value private static Object[][] _primWrappers = new Object[][]{ { boolean.class, Boolean.class, Boolean.FALSE }, - { byte.class, Byte.class, new Byte((byte) 0) }, - { char.class, Character.class, new Character((char) 0) }, - { double.class, Double.class, new Double(0D) }, - { float.class, Float.class, new Float(0F) }, - { int.class, Integer.class, new Integer(0) }, - { long.class, Long.class, new Long(0L) }, - { short.class, Short.class, new Short((short) 0) }, }; + { byte.class, Byte.class, Byte.valueOf((byte) 0) }, + { char.class, Character.class, Character.valueOf((char) 0) }, + { double.class, Double.class, Double.valueOf(0D) }, + { float.class, Float.class, Float.valueOf(0F) }, + { int.class, Integer.class, Integer.valueOf(0) }, + { long.class, Long.class, Long.valueOf(0L) }, + { short.class, Short.class, Short.valueOf((short) 0) }, }; /** * Default constructor. Modified: openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java?rev=1030172&r1=1030171&r2=1030172&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java Tue Nov 2 18:50:13 2010 @@ -1401,14 +1401,12 @@ public class XMLPersistenceMappingParser super.addDeferredEmbeddableMetaData(); if (_deferredMappings.size() > 0) { Set> keys = _deferredMappings.keySet(); - Class[] classes = keys.toArray(new Class[0]); + Class[] classes = keys.toArray(new Class[keys.size()]); for (int i = 0; i < classes.length; i++) { try { applyDeferredEmbeddableOverrides(classes[i]); } catch (Exception e) { - throw new MetaDataException( - _loc.get("no-embeddable-metadata", - classes[i].getName()), e); + throw new MetaDataException(_loc.get("no-embeddable-metadata", classes[i].getName()), e); } } } Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Expressions.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Expressions.java?rev=1030172&r1=1030171&r2=1030172&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Expressions.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/Expressions.java Tue Nov 2 18:50:13 2010 @@ -590,7 +590,7 @@ class Expressions { } public static class Trim extends BinarayFunctionalExpression { - static Expression defaultTrim = new Constant(Character.class, new Character(' ')); + static Expression defaultTrim = new Constant(Character.class, Character.valueOf(' ')); static Trimspec defaultSpec = Trimspec.BOTH; private Trimspec ts; From commits-return-7961-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 18:53:57 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 94075 invoked from network); 2 Nov 2010 18:53:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 18:53:57 -0000 Received: (qmail 37111 invoked by uid 500); 2 Nov 2010 18:54:28 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 37058 invoked by uid 500); 2 Nov 2010 18:54:28 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 37049 invoked by uid 99); 2 Nov 2010 18:54:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:54:28 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 18:54:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 16B8C23889ED; Tue, 2 Nov 2010 18:53:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030173 - /openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java Date: Tue, 02 Nov 2010 18:53:15 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102185315.16B8C23889ED@eris.apache.org> Author: curtisr7 Date: Tue Nov 2 18:53:14 2010 New Revision: 1030173 URL: http://svn.apache.org/viewvc?rev=1030173&view=rev Log: OPENJPA-1868: Miscellaneous FindBugs suggested performance improvement.. Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java?rev=1030173&r1=1030172&r2=1030173&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/identifier/IdentifierUtilImpl.java Tue Nov 2 18:53:14 2010 @@ -88,7 +88,7 @@ public class IdentifierUtilImpl implemen } if (delimited) { - combined = delimit(config, rule, combined.toString()); + combined = delimit(config, rule, combined); } return combined; @@ -125,7 +125,7 @@ public class IdentifierUtilImpl implemen } } if (delimited) { - combined = delimit(config, namingRule, combined.toString()); + combined = delimit(config, namingRule, combined); } return combined; From commits-return-7962-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 19:04:08 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 816 invoked from network); 2 Nov 2010 19:04:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 19:04:08 -0000 Received: (qmail 60547 invoked by uid 500); 2 Nov 2010 19:04:39 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 60493 invoked by uid 500); 2 Nov 2010 19:04:39 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 60486 invoked by uid 99); 2 Nov 2010 19:04:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:04:39 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:04:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4381423889ED; Tue, 2 Nov 2010 19:03:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030178 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java Date: Tue, 02 Nov 2010 19:03:23 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102190323.4381423889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Tue Nov 2 19:03:22 2010 New Revision: 1030178 URL: http://svn.apache.org/viewvc?rev=1030178&view=rev Log: OPENJPA-1868: Fix checkstyle failure. Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java?rev=1030178&r1=1030177&r2=1030178&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCFetchConfigurationImpl.java Tue Nov 2 19:03:22 2010 @@ -217,7 +217,8 @@ public class JDBCFetchConfigurationImpl && direction != ResultSet.FETCH_FORWARD && direction != ResultSet.FETCH_REVERSE && direction != ResultSet.FETCH_UNKNOWN) - throw new IllegalArgumentException(_loc.get("bad-fetch-direction", Integer.valueOf(direction)).getMessage()); + throw new IllegalArgumentException(_loc.get("bad-fetch-direction", Integer.valueOf(direction)) + .getMessage()); if (direction == DEFAULT) { JDBCConfiguration conf = getJDBCConfiguration(); From commits-return-7963-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 19:04:36 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 1139 invoked from network); 2 Nov 2010 19:04:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 19:04:36 -0000 Received: (qmail 61678 invoked by uid 500); 2 Nov 2010 19:05:08 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 61623 invoked by uid 500); 2 Nov 2010 19:05:08 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 61616 invoked by uid 99); 2 Nov 2010 19:05:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:05:07 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:05:07 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 803AEC010A for ; Tue, 2 Nov 2010 19:04:47 +0000 (UTC) Date: Tue, 2 Nov 2010 19:04:47 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <247018752.1211288724687513.JavaMail.hudson@aegis> In-Reply-To: <219220030.1161288722888179.JavaMail.hudson@aegis> References: <219220030.1161288722888179.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#308?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See Changes: [curtisr7] OPENJPA-1868: Miscellaneous FindBugs suggested performance improvement.. [curtisr7] OPENJPA-1868: Miscellaneous FindBugs suggested performance improvements for lib, persistence, and persistence-jdbc. ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_19-03-36/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute [INFO] Finished at: Tue Nov 02 02:04:51 GMT 2010 [INFO] Final Memory: 65M/171M [INFO] ------------------------------------------------------------------------ From commits-return-7964-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 19:04:41 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 1162 invoked from network); 2 Nov 2010 19:04:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 19:04:41 -0000 Received: (qmail 61724 invoked by uid 500); 2 Nov 2010 19:05:12 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 61696 invoked by uid 500); 2 Nov 2010 19:05:12 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 61689 invoked by uid 99); 2 Nov 2010 19:05:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:05:11 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:05:09 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id F1511C0161 for ; Tue, 2 Nov 2010 19:04:47 +0000 (UTC) Date: Tue, 2 Nov 2010 19:04:47 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1254759932.1221288724687987.JavaMail.hudson@aegis> In-Reply-To: <1005643324.1171288722888484.JavaMail.hudson@aegis> References: <1005643324.1171288722888484.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #308 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [curtisr7] OPENJPA-1868: Miscellaneous FindBugs suggested performance improvement.. [curtisr7] OPENJPA-1868: Miscellaneous FindBugs suggested performance improvements for lib, persistence, and persistence-jdbc. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-lib\src\main\java\org\apache\openjpa\lib\log\MultiLogFactory.java U openjpa-lib\src\main\java\org\apache\openjpa\lib\log\LogFactoryImpl.java U openjpa-lib\src\main\java\org\apache\openjpa\lib\identifier\IdentifierUtilImpl.java U openjpa-lib\src\main\java\org\apache\openjpa\lib\util\J2DoPrivHelper.java U openjpa-lib\src\main\java\org\apache\openjpa\lib\util\Options.java U openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persistence\jdbc\XMLPersistenceMappingParser.java U openjpa-persistence\src\main\java\org\apache\openjpa\persistence\criteria\Expressions.java At revision 1030175 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 53206 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030173 at timestamp: November 2, 2010 at 2:04 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_19-03-36/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_19-03-36/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_19-03-36/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute [INFO] Finished at: Tue Nov 02 02:04:51 GMT 2010 [INFO] Final Memory: 65M/171M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7965-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 19:17:06 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 13857 invoked from network); 2 Nov 2010 19:17:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 19:17:06 -0000 Received: (qmail 77350 invoked by uid 500); 2 Nov 2010 19:17:38 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 77322 invoked by uid 500); 2 Nov 2010 19:17:37 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 77315 invoked by uid 99); 2 Nov 2010 19:17:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:17:37 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:17:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C6DCA2388A02; Tue, 2 Nov 2010 19:16:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030183 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java Date: Tue, 02 Nov 2010 19:16:21 -0000 To: commits@openjpa.apache.org From: dwoods@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102191621.C6DCA2388A02@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dwoods Date: Tue Nov 2 19:16:21 2010 New Revision: 1030183 URL: http://svn.apache.org/viewvc?rev=1030183&view=rev Log: OPENJPA-1764 protect against java.lang.NoClassDefFoundError when being used in an app server but as app managed and the JVM exits quickly from under us Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java?rev=1030183&r1=1030182&r2=1030183&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java Tue Nov 2 19:16:21 2010 @@ -76,7 +76,9 @@ extends SimpleDriverDataSource implement ((org.apache.commons.dbcp.BasicDataSource)_dbcpClass.cast(_ds)).close(); } } - } catch (ClassCastException cce) { + } catch (Exception e) { + // no-op + } catch (Throwable t) { // no-op } finally { _ds = null; From commits-return-7966-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 19:19:53 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 15838 invoked from network); 2 Nov 2010 19:19:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 19:19:49 -0000 Received: (qmail 85383 invoked by uid 500); 2 Nov 2010 19:20:20 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 85364 invoked by uid 500); 2 Nov 2010 19:20:20 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 85357 invoked by uid 99); 2 Nov 2010 19:20:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:20:20 +0000 X-ASF-Spam-Status: No, hits=-1994.3 required=10.0 tests=ALL_TRUSTED,HTML_MESSAGE,MIME_HTML_ONLY 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; Tue, 02 Nov 2010 19:20:20 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA2JK0dU002587 for ; Tue, 2 Nov 2010 19:20:00 GMT Date: Tue, 2 Nov 2010 15:20:00 -0400 (EDT) From: confluence@apache.org To: commits@openjpa.apache.org Message-ID: <30996071.4220.1288725600013.JavaMail.confluence@thor> Subject: [CONF] OpenJPA > JEST Transaction MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Auto-Submitted: auto-generated
From commits-return-7967-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 20:07:24 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 43374 invoked from network); 2 Nov 2010 20:07:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 20:07:24 -0000 Received: (qmail 54972 invoked by uid 500); 2 Nov 2010 20:07:55 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 54947 invoked by uid 500); 2 Nov 2010 20:07:55 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 54940 invoked by uid 99); 2 Nov 2010 20:07:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 20:07:55 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 20:07:53 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 6EBEEC010A for ; Tue, 2 Nov 2010 20:07:32 +0000 (UTC) Date: Tue, 2 Nov 2010 20:07:32 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1570492725.1261288728452437.JavaMail.hudson@aegis> In-Reply-To: <247018752.1211288724687513.JavaMail.hudson@aegis> References: <247018752.1211288724687513.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#309?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_19-33-41/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 32 minutes 38 seconds [INFO] Finished at: Tue Nov 02 03:06:36 GMT 2010 [INFO] Final Memory: 64M/161M [INFO] ------------------------------------------------------------------------ From commits-return-7968-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 20:07:25 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 43398 invoked from network); 2 Nov 2010 20:07:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 20:07:25 -0000 Received: (qmail 55071 invoked by uid 500); 2 Nov 2010 20:07:56 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 55017 invoked by uid 500); 2 Nov 2010 20:07:56 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 55010 invoked by uid 99); 2 Nov 2010 20:07:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 20:07:56 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 20:07:54 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id D4D0BC0161 for ; Tue, 2 Nov 2010 20:07:32 +0000 (UTC) Date: Tue, 2 Nov 2010 20:07:32 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1460109653.1271288728452870.JavaMail.hudson@aegis> In-Reply-To: <1254759932.1221288724687987.JavaMail.hudson@aegis> References: <1254759932.1221288724687987.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #309 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [dwoods] OPENJPA-1764 protect against java.lang.NoClassDefFoundError when being used in an app server but as app managed and the JVM exits quickly from under us [curtisr7] OPENJPA-1868: Fix checkstyle failure. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\kernel\JDBCFetchConfigurationImpl.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\schema\DBCPDriverDataSource.java At revision 1030188 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 53578 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030183 at timestamp: November 2, 2010 at 2:36 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_19-33-41/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_19-33-41/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_19-33-41/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 32 minutes 38 seconds [INFO] Finished at: Tue Nov 02 03:06:36 GMT 2010 [INFO] Final Memory: 64M/161M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7969-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 21:03:07 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 67005 invoked from network); 2 Nov 2010 21:03:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 21:03:07 -0000 Received: (qmail 30570 invoked by uid 500); 2 Nov 2010 21:03:39 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 30514 invoked by uid 500); 2 Nov 2010 21:03:38 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 30506 invoked by uid 99); 2 Nov 2010 21:03:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 21:03:38 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 21:03:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2DFE823889ED; Tue, 2 Nov 2010 21:02:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030215 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java Date: Tue, 02 Nov 2010 21:02:22 -0000 To: commits@openjpa.apache.org From: dwoods@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102210222.2DFE823889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dwoods Date: Tue Nov 2 21:02:21 2010 New Revision: 1030215 URL: http://svn.apache.org/viewvc?rev=1030215&view=rev Log: one more attempt to fix these failing testTimeouts1 failures on some machines Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java?rev=1030215&r1=1030214&r2=1030215&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java Tue Nov 2 21:02:21 2010 @@ -1006,6 +1006,9 @@ public abstract class CacheTest extends endTx(em); + // get post-persist time for sleep calculations below + Date persistTime = new Date(); + Object[] ids = new Object[4]; ids[0] = new Id(CacheObjectE.class, em.getObjectId(e).toString()); ids[1] = new Id(CacheObjectF.class, em.getObjectId(f).toString()); @@ -1042,26 +1045,34 @@ public abstract class CacheTest extends checkCache(cache, ids, new boolean[]{ true, true, true, true }); } else { // need to skip the test on slow systems or when using remote DB connections - getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(all, <500) because diff="+diff); + getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(all, <500) because initial diff="+diff); } // should cause h to be dropped (timeout=500) currentTime = new Date(); diff = (currentTime.getTime() - startTime.getTime()); sleep = 750 - diff; - if (sleep > 0) { + if (sleep < (-150)) { + // we already missed the window + getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(h=500) because sleep="+sleep); + } else if (sleep > 10) { getLog().info("CacheTest.timeoutsHelper() testing h to be dropped by waiting sleep="+sleep); Thread.currentThread().sleep(sleep); Thread.yield(); } else { sleep = 0; } - if ((diff + sleep) < 950) { + + // recalc diff again + currentTime = new Date(); + diff = (currentTime.getTime() - startTime.getTime()); + if (sleep >= 0 && diff > 500 && diff < 950) { // only h should be dropped checkCache(cache, ids, new boolean[]{ true, true, true, false }); } else { // need to skip the test on slow systems or when using remote DB connections - getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(h=500) because diff="+(diff+sleep)); + getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(h=500) because sleep="+sleep+ + " and final diff="+diff); } // if this run has a default timeout (set to 1 sec in the test @@ -1075,7 +1086,7 @@ public abstract class CacheTest extends currentTime = new Date(); diff = currentTime.getTime() - startTime.getTime(); sleep = 2000 - diff; - if (sleep > 0) { + if (sleep > 10) { getLog().info("CacheTest.timeoutsHelper() testing f to be dropped by waiting sleep="+sleep); Thread.currentThread().sleep(sleep); Thread.yield(); @@ -1100,7 +1111,7 @@ public abstract class CacheTest extends currentTime = new Date(); diff = currentTime.getTime() - startTime.getTime(); sleep = 6000 - diff; - if (sleep > 0) { + if (sleep > 10) { getLog().info("CacheTest.timeoutsHelper() testing g to be dropped by waiting sleep="+sleep); Thread.currentThread().sleep(sleep); Thread.yield(); From commits-return-7970-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 21:29:08 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 95616 invoked from network); 2 Nov 2010 21:29:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 21:29:08 -0000 Received: (qmail 85335 invoked by uid 500); 2 Nov 2010 21:29:39 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 85314 invoked by uid 500); 2 Nov 2010 21:29:39 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 85307 invoked by uid 99); 2 Nov 2010 21:29:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 21:29:39 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 21:29:39 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 59CBD23889F1; Tue, 2 Nov 2010 21:28:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030235 - in /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql: AbstractSQLServerDictionary.java SQLServerDictionary.java Date: Tue, 02 Nov 2010 21:28:24 -0000 To: commits@openjpa.apache.org From: dwoods@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101102212824.59CBD23889F1@eris.apache.org> Author: dwoods Date: Tue Nov 2 21:28:23 2010 New Revision: 1030235 URL: http://svn.apache.org/viewvc?rev=1030235&view=rev Log: OPENJPA-1759 Use new DATETIME2 type in MSSQL2008 for new tables with DATE or TIMESTAMP columns, but 3.0 driver still doesn't handle 2.0 created tables with DATETIME columns.... Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLServerDictionary.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java?rev=1030235&r1=1030234&r2=1030235&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java Tue Nov 2 21:28:23 2010 @@ -79,6 +79,7 @@ public abstract class AbstractSQLServerD "IMAGE", "TEXT", "NTEXT", "MONEY", "SMALLMONEY", "INT", "DOUBLE PRECISION", "DATETIME", "SMALLDATETIME", "EXTENDED TYPE", "SYSNAME", "SQL_VARIANT", "INDEX", + "DATETIME2", })); } Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLServerDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLServerDictionary.java?rev=1030235&r1=1030234&r2=1030235&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLServerDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLServerDictionary.java Tue Nov 2 21:28:23 2010 @@ -22,9 +22,12 @@ import java.sql.Blob; import java.sql.Clob; import java.sql.Connection; import java.sql.DatabaseMetaData; +import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; +import java.sql.Timestamp; import java.sql.Types; +import java.util.Calendar; import java.util.Set; import org.apache.openjpa.jdbc.identifier.DBIdentifier; @@ -74,7 +77,7 @@ public class SQLServerDictionary extends if (driverVendor == null) { if (driverName != null) { if (driverName.startsWith("Microsoft SQL Server")) { - // v1.1, 1.2 or 2.0 driver + // v1.1, 1.2, 2.0 or 3.0 driver driverVendor = VENDOR_MICROSOFT; // serverMajorVersion of 8==2000, 9==2005, 10==2008 if (meta.getDatabaseMajorVersion() >= 9) @@ -88,6 +91,13 @@ public class SQLServerDictionary extends // and disableStatementPooling=true requiresWarnings = false; } + if (meta.getDatabaseMajorVersion() >= 10) { + // MSSQL 2008 supports new date, time and datetime2 types + // Use DATETIME2 which has 100ns vs. 3.333msec precision + dateTypeName = "DATETIME2"; + timeTypeName = "DATETIME"; + timestampTypeName = "DATETIME2"; + } } else { if ("NetDirect JSQLConnect".equals(driverName)) driverVendor = VENDOR_NETDIRECT; @@ -321,5 +331,4 @@ public class SQLServerDictionary extends return clob.getCharacterStream(); } - } From commits-return-7971-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 21:55:59 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 10850 invoked from network); 2 Nov 2010 21:55:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 21:55:59 -0000 Received: (qmail 25752 invoked by uid 500); 2 Nov 2010 21:56:30 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 25733 invoked by uid 500); 2 Nov 2010 21:56:30 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 25726 invoked by uid 99); 2 Nov 2010 21:56:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 21:56:30 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 21:56:28 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 7BF94C010A for ; Tue, 2 Nov 2010 21:56:07 +0000 (UTC) Date: Tue, 2 Nov 2010 21:56:07 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1997685594.1361288734967505.JavaMail.hudson@aegis> In-Reply-To: <1570492725.1261288728452437.JavaMail.hudson@aegis> References: <1570492725.1261288728452437.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#310?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_21-35-41/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 minutes 59 seconds [INFO] Finished at: Tue Nov 02 04:55:03 GMT 2010 [INFO] Final Memory: 64M/164M [INFO] ------------------------------------------------------------------------ From commits-return-7972-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 02 21:56:03 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 10876 invoked from network); 2 Nov 2010 21:56:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 21:56:02 -0000 Received: (qmail 25851 invoked by uid 500); 2 Nov 2010 21:56:34 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 25826 invoked by uid 500); 2 Nov 2010 21:56:34 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 25818 invoked by uid 99); 2 Nov 2010 21:56:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 21:56:34 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 21:56:31 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 79D70C0161 for ; Tue, 2 Nov 2010 21:56:10 +0000 (UTC) Date: Tue, 2 Nov 2010 21:56:10 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1321809115.1371288734970497.JavaMail.hudson@aegis> In-Reply-To: <1460109653.1271288728452870.JavaMail.hudson@aegis> References: <1460109653.1271288728452870.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #310 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [dwoods] OPENJPA-1759 Use new DATETIME2 type in MSSQL2008 for new tables with DATE or TIMESTAMP columns, but 3.0 driver still doesn't handle 2.0 created tables with DATETIME columns.... [dwoods] one more attempt to fix these failing testTimeouts1 failures on some machines ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\SQLServerDictionary.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\AbstractSQLServerDictionary.java U openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\datacache\CacheTest.java At revision 1030235 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 53728 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030235 at timestamp: November 2, 2010 at 4:36 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_21-35-41/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-02_21-35-41/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-02_21-35-41/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 minutes 59 seconds [INFO] Finished at: Tue Nov 02 04:55:03 GMT 2010 [INFO] Final Memory: 64M/164M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7973-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 14:52:20 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 86092 invoked from network); 3 Nov 2010 14:52:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 14:52:20 -0000 Received: (qmail 14699 invoked by uid 500); 3 Nov 2010 14:52:51 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 14427 invoked by uid 500); 3 Nov 2010 14:52:49 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 14416 invoked by uid 99); 3 Nov 2010 14:52:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 14:52:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 14:52:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1B12C23889E7; Wed, 3 Nov 2010 14:51:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030479 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/ openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/ openjpa-persistence-jdbc/src/... Date: Wed, 03 Nov 2010 14:51:28 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101103145129.1B12C23889E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Wed Nov 3 14:51:28 2010 New Revision: 1030479 URL: http://svn.apache.org/viewvc?rev=1030479&view=rev Log: OPENJPA-1851: Backing changes out of trunk while we continue to develop this feature in a sandbox. Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryImpl.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/QueryExpressions.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.java openjpa/trunk/openjpa-persistence-jdbc/src/main/resources/META-INF/jest-instance.xsd (contents, props changed) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/ (props changed) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRequestParsing.java openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ (props changed) openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTRequest.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Server.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryImpl.java?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryImpl.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryImpl.java Wed Nov 3 14:51:28 2010 @@ -216,7 +216,7 @@ public class PreparedQueryImpl implement _exps = ((StoreQuery.Executor)executor).getQueryExpressions(); for (int i = 0; i < _exps.length; i++) { QueryExpressions exp = _exps[i]; - if (exp.hasParameterizedInExpression) + if (exp.hasInExpression) return new Object[]{null, _loc.get("exclude-in-expression", _id)}; if (isUsingExternalizedParameter(exp)) { return new Object[]{null, _loc.get("exclude-externalized-param", _id)}; Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/QueryExpressions.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/QueryExpressions.java?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/QueryExpressions.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/QueryExpressions.java Wed Nov 3 14:51:28 2010 @@ -78,7 +78,7 @@ public class QueryExpressions private Stack _contexts = null; public Object state; public ResultShape shape; - public boolean hasParameterizedInExpression; + public boolean hasInExpression; /** * Set reference to the JPQL query contexts. Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.java?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.java Wed Nov 3 14:51:28 2010 @@ -310,7 +310,7 @@ public class JPQLExpressionBuilder exps.parameterTypes = parameterTypes; exps.accessPath = getAccessPath(); - exps.hasParameterizedInExpression = this.hasParameterizedInExpression; + exps.hasInExpression = this.hasParameterizedInExpression; return exps; } Modified: openjpa/trunk/openjpa-persistence-jdbc/src/main/resources/META-INF/jest-instance.xsd URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/main/resources/META-INF/jest-instance.xsd?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/main/resources/META-INF/jest-instance.xsd (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/main/resources/META-INF/jest-instance.xsd Wed Nov 3 14:51:28 2010 @@ -31,7 +31,7 @@ The related instances are resolved within the document root. Document root represents zero or more instances. - The file must be named "jest-instance.xsd". + The file must be named "META-INF/jest-instance.xsd". ]]> Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/main/resources/META-INF/jest-instance.xsd ------------------------------------------------------------------------------ svn:mergeinfo = Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/ ------------------------------------------------------------------------------ svn:mergeinfo = Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRequestParsing.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRequestParsing.java?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRequestParsing.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRequestParsing.java Wed Nov 3 14:51:28 2010 @@ -34,7 +34,7 @@ public class TestRequestParsing extends public void testRequestFindImplicitParam() throws IOException { GETRequest req = new GETRequest(); - req.read(Arrays.asList("/find?Person&1234")); + req.read(Arrays.asList("/find?Person;1234")); assertEquals("find", req.getAction()); assertTrue(req.hasParameter("Person")); @@ -49,7 +49,7 @@ public class TestRequestParsing extends public void testRequestFindExplicitParam() throws IOException { GETRequest req = new GETRequest(); - req.read(Arrays.asList("/find?Person&ssn=1234")); + req.read(Arrays.asList("/find?Person;ssn=1234")); assertEquals("find", req.getAction()); assertTrue(req.hasParameter("Person")); @@ -64,7 +64,7 @@ public class TestRequestParsing extends public void testRequestQueryWithParameters() throws IOException { GETRequest req = new GETRequest(); - req.read(Arrays.asList("/query?select p from Person p where p.name=:name&name=xyz&age=20")); + req.read(Arrays.asList("/query?select p from Person p where p.name=:name;name=xyz;age=20")); assertEquals("query", req.getAction()); assertEquals("select p from Person p where p.name=:name", req.getParameter(0).getKey()); Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml Wed Nov 3 14:51:28 2010 @@ -379,13 +379,4 @@ value="buildSchema"/> - - - org.apache.openjpa.persistence.PersistenceProviderImpl - org.apache.openjpa.persistence.jest.JObject - - - - - Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java Wed Nov 3 14:51:28 2010 @@ -45,10 +45,10 @@ import org.apache.openjpa.lib.util.Close import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.persistence.criteria.CriteriaBuilderImpl; import org.apache.openjpa.persistence.criteria.OpenJPACriteriaBuilder; -import org.apache.openjpa.persistence.jest.Server; import org.apache.openjpa.persistence.meta.MetamodelImpl; import org.apache.openjpa.persistence.query.OpenJPAQueryBuilder; import org.apache.openjpa.persistence.query.QueryBuilderImpl; +import org.apache.openjpa.util.UserException; /** * Implementation of {@link EntityManagerFactory} that acts as a @@ -70,8 +70,7 @@ public class EntityManagerFactoryImpl private transient StoreCache _cache = null; private transient QueryResultCache _queryCache = null; private transient MetamodelImpl _metaModel; - private transient Server _remoteAccess = null; - + /** * Default constructor provided for auto-instantiation. */ @@ -94,11 +93,10 @@ public class EntityManagerFactoryImpl /** * Delegate must be provided before use. - * Configures for Remote Access, if appropriate. */ public void setBrokerFactory(BrokerFactory factory) { - _factory = new DelegatingBrokerFactory(factory, PersistenceExceptions.TRANSLATOR); - configureRemoteAccess(getConfiguration()); + _factory = new DelegatingBrokerFactory(factory, + PersistenceExceptions.TRANSLATOR); } public OpenJPAConfiguration getConfiguration() { @@ -274,10 +272,6 @@ public class EntityManagerFactoryImpl if (log.isTraceEnabled()) { log.trace(this + ".close() invoked."); } - if (_remoteAccess != null) { - _remoteAccess.stop(); - _remoteAccess = null; - } _factory.close(); } @@ -403,40 +397,4 @@ public class EntityManagerFactoryImpl } } } - - /** - * Configures this unit for remote access. - */ - protected void configureRemoteAccess(OpenJPAConfiguration conf) { - Value value = conf.getValue("RemoteAccess"); - if (value == null) { - return; - } - String props = value.getString(); - if (props == null) - return; - try { - _remoteAccess = new Server(); - _remoteAccess.setContext(this); - Configurations.configureInstance(_remoteAccess, conf, props); - conf.removeValue(value); - if (!_remoteAccess.start()) { - _remoteAccess = null; - } - } catch (Exception ex) { - Log log = _factory.getConfiguration().getLog(OpenJPAConfiguration.LOG_RUNTIME); - if (log != null) { - log.error(_loc.get("remote-start-error"), ex); - } - } - } - - /** - * Affirms if this unit is accessible remotely. - */ - public boolean allowsRemoteAccess() { - return _remoteAccess != null; - } - - } Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java Wed Nov 3 14:51:28 2010 @@ -188,7 +188,6 @@ public class PersistenceProductDerivatio conf.metaFactoryPlugin.setAlias(SPEC_JPA.getName(), PersistenceMetaDataFactory.class.getName()); conf.addValue(new EntityManagerFactoryValue()); - conf.addString("RemoteAccess"); conf.readLockLevel.setAlias("optimistic", String.valueOf(MixedLockLevels.LOCK_OPTIMISTIC)); conf.readLockLevel.setAlias("optimistic-force-increment", String Propchange: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ ------------------------------------------------------------------------------ svn:mergeinfo = Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTRequest.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTRequest.java?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTRequest.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTRequest.java Wed Nov 3 14:51:28 2010 @@ -277,22 +277,22 @@ public abstract class JESTRequest implem buf.append(ch); else transit(ParseState.PARAM_VALUE); - } else if (ch == '&') { + } else if (ch == ';') { transit(ParseState.PARAM_KEY); } else if (isQueryKey() && isQueryChar(ch)) { buf.append(ch); } else { - parseError(ch, i, s, true, '&', '='); + parseError(ch, i, s, true, ';', '='); } break; case PARAM_VALUE: if (Character.isJavaIdentifierPart(ch)) { buf.append(ch); - } else if (ch == '&') { + } else if (ch == ';') { transit(ParseState.PARAM_KEY); } else { - parseError(ch, i, s, true, '&'); + parseError(ch, i, s, true, ';'); } break; default: Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java Wed Nov 3 14:51:28 2010 @@ -113,7 +113,7 @@ public class MetamodelHelper { * */ public static class AttributeComparator implements Comparator> { -// @Override + @Override public int compare(Attribute a1, Attribute a2) { Integer t1 = getAttributeTypeCode(a1); Integer t2 = getAttributeTypeCode(a2); Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Server.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Server.java?rev=1030479&r1=1030478&r2=1030479&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Server.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Server.java Wed Nov 3 14:51:28 2010 @@ -20,11 +20,8 @@ package org.apache.openjpa.persistence.jest; import java.io.IOException; -import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; -import java.net.URI; -import java.net.URISyntaxException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; @@ -50,7 +47,6 @@ public class Server implements ServerCon private ServerSocket _listenSocket; protected ExecutorService _executors; public final static int DEFAULT_PORT = 6789; - protected String _host = "127.0.0.1"; protected int _port = DEFAULT_PORT; protected int _range = 1; protected String _format = "xml"; @@ -59,14 +55,6 @@ public class Server implements ServerCon private EntityManagerFactoryImpl _ctx; private static Localizer _loc = Localizer.forPackage(Server.class); - public Server() { - try { - _host = InetAddress.getLocalHost().getHostAddress(); - } catch (Exception ex) { - - } - - } /** * Sets the persistence unit context in which this server will serve requests. * The context must be set before operation. @@ -103,7 +91,7 @@ public class Server implements ServerCon if (_thread != null) return true; if (createServerSocket()) { - _thread = new Thread(this, "JEST-"+_port); + _thread = new Thread(this); _thread.setDaemon(true); _thread.start(); return true; @@ -124,18 +112,6 @@ public class Server implements ServerCon _executors.shutdownNow(); } - public String getHost() { - return _host; - } - - public URI getURI() { - try { - return new URI("http://"+_host+":"+_port); - } catch (URISyntaxException e) { - return null; - } - } - /** * Sets the port in which the server will listen. * @@ -188,7 +164,7 @@ public class Server implements ServerCon try { Socket socket = _listenSocket.accept(); if (_log.isTraceEnabled()) - _log.trace(_loc.get("server-request", socket.getInetAddress()+":"+socket.getPort())); + _log.trace(_loc.get("server-request", socket)); RequestHandler request = new RequestHandler(socket, this); _executors.submit(request); } catch (IOException e) { @@ -248,7 +224,7 @@ public class Server implements ServerCon public String toString() { if (_listenSocket == null) return "JEST Server [not strated]"; - return "JEST Server " + getURI().toString(); + return "JEST Server " + _listenSocket.getInetAddress()+":"+_listenSocket.getLocalPort(); } } From commits-return-7974-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 15:00:32 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 88109 invoked from network); 3 Nov 2010 15:00:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 15:00:31 -0000 Received: (qmail 28557 invoked by uid 500); 3 Nov 2010 15:01:03 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 28496 invoked by uid 500); 3 Nov 2010 15:01:02 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 28489 invoked by uid 99); 3 Nov 2010 15:01:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:01:02 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:01:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 249F723889E7; Wed, 3 Nov 2010 14:59:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030481 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ Date: Wed, 03 Nov 2010 14:59:48 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101103145948.249F723889E7@eris.apache.org> Author: curtisr7 Date: Wed Nov 3 14:59:47 2010 New Revision: 1030481 URL: http://svn.apache.org/viewvc?rev=1030481&view=rev Log: OPENJPA-1851: Backing changes out of trunk while we continue to develop this feature in a sandbox. Removed: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ From commits-return-7975-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 15:12:03 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 99309 invoked from network); 3 Nov 2010 15:12:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 15:12:03 -0000 Received: (qmail 47435 invoked by uid 500); 3 Nov 2010 15:12:34 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 47370 invoked by uid 500); 3 Nov 2010 15:12:33 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 47363 invoked by uid 99); 3 Nov 2010 15:12:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:12:32 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:12:30 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DFF6A2388A64; Wed, 3 Nov 2010 15:11:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030492 - in /openjpa/trunk/openjpa-persistence-jdbc/src: main/resources/META-INF/jest-instance.xsd test/java/org/apache/openjpa/persistence/jest/ Date: Wed, 03 Nov 2010 15:11:15 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101103151115.DFF6A2388A64@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Wed Nov 3 15:11:15 2010 New Revision: 1030492 URL: http://svn.apache.org/viewvc?rev=1030492&view=rev Log: OPENJPA-1851: Backing changes out of trunk while we continue to develop this feature in a sandbox. Removed: openjpa/trunk/openjpa-persistence-jdbc/src/main/resources/META-INF/jest-instance.xsd openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/ From commits-return-7976-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 15:20:14 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 2005 invoked from network); 3 Nov 2010 15:20:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 15:20:14 -0000 Received: (qmail 60547 invoked by uid 500); 3 Nov 2010 15:20:45 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 60486 invoked by uid 500); 3 Nov 2010 15:20:44 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 60476 invoked by uid 99); 3 Nov 2010 15:20:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:20:43 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:20:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 84AF023889C5; Wed, 3 Nov 2010 15:19:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030495 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/maps/spec_10_1_27_ex0/TestSpec10_1_27.java Date: Wed, 03 Nov 2010 15:19:29 -0000 To: commits@openjpa.apache.org From: dianner@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101103151929.84AF023889C5@eris.apache.org> Author: dianner Date: Wed Nov 3 15:19:29 2010 New Revision: 1030495 URL: http://svn.apache.org/viewvc?rev=1030495&view=rev Log: OPENJPA-1862 Enable test to run correctly on DB2 Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/maps/spec_10_1_27_ex0/TestSpec10_1_27.java Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/maps/spec_10_1_27_ex0/TestSpec10_1_27.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/maps/spec_10_1_27_ex0/TestSpec10_1_27.java?rev=1030495&r1=1030494&r2=1030495&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/maps/spec_10_1_27_ex0/TestSpec10_1_27.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/maps/spec_10_1_27_ex0/TestSpec10_1_27.java Wed Nov 3 15:19:29 2010 @@ -85,6 +85,7 @@ public class TestSpec10_1_27 extends SQL setCandidate(q, Compny1.class); List rs = q.getResultList(); Division d = (Division) rs.get(0); + Division d2 = (Division) rs.get(1); em.clear(); query = "select ENTRY(e) from Compny1 c, " + @@ -95,8 +96,8 @@ public class TestSpec10_1_27 extends SQL rs = q.getResultList(); Map.Entry me = (Map.Entry) rs.get(0); - assertEquals(d, me.getKey()); - + assertTrue(d.equals(me.getKey()) || d2.equals(me.getKey())); + query = "select KEY(e) from Compny2 c, " + " in (c.orgs) e order by c.id"; q = em.createQuery(query); @@ -104,6 +105,7 @@ public class TestSpec10_1_27 extends SQL setCandidate(q, Compny2.class); rs = q.getResultList(); d = (Division) rs.get(0); + d2 = (Division) rs.get(1); em.clear(); query = "select ENTRY(e) from Compny2 c, " + @@ -114,7 +116,7 @@ public class TestSpec10_1_27 extends SQL rs = q.getResultList(); me = (Map.Entry) rs.get(0); - assertEquals(d, me.getKey()); + assertTrue(d.equals(me.getKey()) || d2.equals(me.getKey())); // new tests for element collection em.clear(); From commits-return-7977-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 15:39:50 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 9734 invoked from network); 3 Nov 2010 15:39:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 15:39:50 -0000 Received: (qmail 99383 invoked by uid 500); 3 Nov 2010 15:40:21 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 99323 invoked by uid 500); 3 Nov 2010 15:40:20 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 99308 invoked by uid 99); 3 Nov 2010 15:40:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:40:19 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:40:17 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 44CB6C010A for ; Wed, 3 Nov 2010 15:39:56 +0000 (UTC) Date: Wed, 3 Nov 2010 15:39:56 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <95047648.2081288798796270.JavaMail.hudson@aegis> In-Reply-To: <1997685594.1361288734967505.JavaMail.hudson@aegis> References: <1997685594.1361288734967505.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#311?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-03_15-07-40/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 32 minutes 1 second [INFO] Finished at: Tue Nov 02 22:40:00 GMT 2010 [INFO] Final Memory: 64M/160M [INFO] ------------------------------------------------------------------------ From commits-return-7978-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 15:39:50 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 9750 invoked from network); 3 Nov 2010 15:39:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 15:39:50 -0000 Received: (qmail 99422 invoked by uid 500); 3 Nov 2010 15:40:21 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 99325 invoked by uid 500); 3 Nov 2010 15:40:21 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 99316 invoked by uid 99); 3 Nov 2010 15:40:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:40:20 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:40:17 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 942C0C0161 for ; Wed, 3 Nov 2010 15:39:56 +0000 (UTC) Date: Wed, 3 Nov 2010 15:39:56 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <969653652.2091288798796605.JavaMail.hudson@aegis> In-Reply-To: <1321809115.1371288734970497.JavaMail.hudson@aegis> References: <1321809115.1371288734970497.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #311 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [curtisr7] OPENJPA-1851: Backing changes out of trunk while we continue to develop this feature in a sandbox. [curtisr7] OPENJPA-1851: Backing changes out of trunk while we continue to develop this feature in a sandbox. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\kernel\PreparedQueryImpl.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\jpql\JPQLExpressionBuilder.java U openjpa-kernel\src\main\java\org\apache\openjpa\kernel\exps\QueryExpressions.java U openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\jest\TestRequestParsing.java U openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\jest U openjpa-persistence-jdbc\src\test\resources\META-INF\persistence.xml UU openjpa-persistence-jdbc\src\main\resources\META-INF\jest-instance.xsd D openjpa-persistence\src\main\java\org\apache\openjpa\persistence\jest U openjpa-persistence\src\main\java\org\apache\openjpa\persistence\EntityManagerFactoryImpl.java U openjpa-persistence\src\main\java\org\apache\openjpa\persistence\PersistenceProductDerivation.java At revision 1030483 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 53961 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030481 at timestamp: November 2, 2010 at 10:09 PM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-03_15-07-40/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-03_15-07-40/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-03_15-07-40/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 32 minutes 1 second [INFO] Finished at: Tue Nov 02 22:40:00 GMT 2010 [INFO] Final Memory: 64M/160M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7979-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 15:51:17 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 14839 invoked from network); 3 Nov 2010 15:51:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 15:51:17 -0000 Received: (qmail 10543 invoked by uid 500); 3 Nov 2010 15:51:48 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 10483 invoked by uid 500); 3 Nov 2010 15:51:47 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 10476 invoked by uid 99); 3 Nov 2010 15:51:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:51:47 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:51:46 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 962C9C010A for ; Wed, 3 Nov 2010 15:51:26 +0000 (UTC) Date: Wed, 3 Nov 2010 15:51:26 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <120584998.2101288799486608.JavaMail.hudson@aegis> In-Reply-To: <95047648.2081288798796270.JavaMail.hudson@aegis> References: <95047648.2081288798796270.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#312?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-03_15-44-29/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6 minutes 50 seconds [INFO] Finished at: Tue Nov 02 22:51:30 GMT 2010 [INFO] Final Memory: 65M/174M [INFO] ------------------------------------------------------------------------ From commits-return-7980-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 15:51:19 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 14886 invoked from network); 3 Nov 2010 15:51:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 15:51:19 -0000 Received: (qmail 11178 invoked by uid 500); 3 Nov 2010 15:51:50 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 11156 invoked by uid 500); 3 Nov 2010 15:51:50 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 11149 invoked by uid 99); 3 Nov 2010 15:51:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:51:50 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:51:48 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id E4BAEC0161 for ; Wed, 3 Nov 2010 15:51:26 +0000 (UTC) Date: Wed, 3 Nov 2010 15:51:26 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <881468549.2111288799486935.JavaMail.hudson@aegis> In-Reply-To: <969653652.2091288798796605.JavaMail.hudson@aegis> References: <969653652.2091288798796605.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #312 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [dianner] OPENJPA-1862 Enable test to run correctly on DB2 [curtisr7] OPENJPA-1851: Backing changes out of trunk while we continue to develop this feature in a sandbox. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk D openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\jest U openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\jdbc\maps\spec_10_1_27_ex0\TestSpec10_1_27.java D openjpa-persistence-jdbc\src\main\resources\META-INF\jest-instance.xsd At revision 1030501 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 53971 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030495 at timestamp: November 2, 2010 at 10:45 PM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-03_15-44-29/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-03_15-44-29/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-03_15-44-29/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6 minutes 50 seconds [INFO] Finished at: Tue Nov 02 22:51:30 GMT 2010 [INFO] Final Memory: 65M/174M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7981-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 18:07:52 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 15395 invoked from network); 3 Nov 2010 18:07:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 18:07:52 -0000 Received: (qmail 63434 invoked by uid 500); 3 Nov 2010 18:08:24 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 63375 invoked by uid 500); 3 Nov 2010 18:08:23 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 63364 invoked by uid 99); 3 Nov 2010 18:08:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 18:08:22 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 18:08:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 45C6E23889E1; Wed, 3 Nov 2010 18:07:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030579 - in /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc: conf/JDBCConfigurationImpl.java sql/DBDictionaryFactory.java sql/MaxDBDictionary.java Date: Wed, 03 Nov 2010 18:07:08 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101103180708.45C6E23889E1@eris.apache.org> Author: mikedd Date: Wed Nov 3 18:07:07 2010 New Revision: 1030579 URL: http://svn.apache.org/viewvc?rev=1030579&view=rev Log: OPENJPA-1864: Add db dictionary for MaxDB & alias in JDBCConfImpl. Added: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java (with props) Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java?rev=1030579&r1=1030578&r2=1030579&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/conf/JDBCConfigurationImpl.java Wed Nov 3 18:07:07 2010 @@ -39,6 +39,7 @@ import org.apache.openjpa.jdbc.schema.Dr import org.apache.openjpa.jdbc.schema.SchemaFactory; import org.apache.openjpa.jdbc.sql.DBDictionary; import org.apache.openjpa.jdbc.sql.DBDictionaryFactory; +import org.apache.openjpa.jdbc.sql.MaxDBDictionary; import org.apache.openjpa.jdbc.sql.SQLFactory; import org.apache.openjpa.kernel.BrokerImpl; import org.apache.openjpa.kernel.StoreContext; @@ -218,6 +219,7 @@ public class JDBCConfigurationImpl "soliddb", "org.apache.openjpa.jdbc.sql.SolidDBDictionary", "sqlserver", "org.apache.openjpa.jdbc.sql.SQLServerDictionary", "sybase", "org.apache.openjpa.jdbc.sql.SybaseDictionary", + "maxdb", MaxDBDictionary.class.getCanonicalName(), }; dbdictionaryPlugin.setAliases(aliases); dbdictionaryPlugin.setInstantiatingGetter("getDBDictionaryInstance"); Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java?rev=1030579&r1=1030578&r2=1030579&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionaryFactory.java Wed Nov 3 18:07:07 2010 @@ -259,6 +259,9 @@ public class DBDictionaryFactory { return CacheDictionary.class.getName(); if (prod.indexOf("derby") != -1) return dbdictionaryPlugin.unalias("derby"); + if (prod.indexOf("sapdb") != -1) { + return dbdictionaryPlugin.unalias("maxdb"); + } // test h2 in a special way, because there's a decent chance the string // h2 could appear in the URL of another database if (prod.indexOf("jdbc:h2:") != -1) @@ -278,8 +281,6 @@ public class DBDictionaryFactory { return DBDictionary.class.getName(); if (prod.indexOf("daffodil") != -1) return DBDictionary.class.getName(); - if (prod.indexOf("sapdb") != -1) - return DBDictionary.class.getName(); if (prod.indexOf("idb") != -1) // instantdb return DBDictionary.class.getName(); Added: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java?rev=1030579&view=auto ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java (added) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java Wed Nov 3 18:07:07 2010 @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.jdbc.sql; + +/** + * Database dictionary for using SAP's MaxDB Dictionary. Currently just a placeholder, the behavior does not differ from + * org.apache.openjpa.jdbc.sql.Dictionary + * + */ +public class MaxDBDictionary extends DBDictionary { + +} Propchange: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-7982-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 18:57:53 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 45028 invoked from network); 3 Nov 2010 18:57:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 18:57:53 -0000 Received: (qmail 49295 invoked by uid 500); 3 Nov 2010 18:58:24 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 49234 invoked by uid 500); 3 Nov 2010 18:58:23 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 49227 invoked by uid 99); 3 Nov 2010 18:58:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 18:58:23 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 18:58:22 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 63263C0161 for ; Wed, 3 Nov 2010 18:58:02 +0000 (UTC) Date: Wed, 3 Nov 2010 18:58:02 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1627627865.2191288810682404.JavaMail.hudson@aegis> In-Reply-To: <881468549.2111288799486935.JavaMail.hudson@aegis> References: <881468549.2111288799486935.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #313 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See Changes: [mikedd] OPENJPA-1864: Add db dictionary for MaxDB & alias in JDBCConfImpl. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\DBDictionaryFactory.java AU openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\MaxDBDictionary.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\conf\JDBCConfigurationImpl.java At revision 1030597 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 54011 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030579 at timestamp: November 3, 2010 at 1:39 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-03_18-37-52/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-03_18-37-52/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-03_18-37-52/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20 minutes 1 second [INFO] Finished at: Wed Nov 03 01:58:05 GMT 2010 [INFO] Final Memory: 64M/160M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7983-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 18:57:54 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 45043 invoked from network); 3 Nov 2010 18:57:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 18:57:54 -0000 Received: (qmail 49330 invoked by uid 500); 3 Nov 2010 18:58:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 49305 invoked by uid 500); 3 Nov 2010 18:58:25 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 49298 invoked by uid 99); 3 Nov 2010 18:58:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 18:58:25 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 18:58:23 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id BED16C010A for ; Wed, 3 Nov 2010 18:58:01 +0000 (UTC) Date: Wed, 3 Nov 2010 18:58:01 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1820948536.2181288810681769.JavaMail.hudson@aegis> In-Reply-To: <120584998.2101288799486608.JavaMail.hudson@aegis> References: <120584998.2101288799486608.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#313?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-03_18-37-52/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20 minutes 1 second [INFO] Finished at: Wed Nov 03 01:58:05 GMT 2010 [INFO] Final Memory: 64M/160M [INFO] ------------------------------------------------------------------------ From commits-return-7984-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 20:09:59 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 94150 invoked from network); 3 Nov 2010 20:09:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 20:09:59 -0000 Received: (qmail 48025 invoked by uid 500); 3 Nov 2010 20:10:30 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 48002 invoked by uid 500); 3 Nov 2010 20:10:30 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 47995 invoked by uid 99); 3 Nov 2010 20:10:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 20:10:30 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 20:10:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1313C23889E7; Wed, 3 Nov 2010 20:09:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030640 - /openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml Date: Wed, 03 Nov 2010 20:09:16 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101103200916.1313C23889E7@eris.apache.org> Author: curtisr7 Date: Wed Nov 3 20:09:15 2010 New Revision: 1030640 URL: http://svn.apache.org/viewvc?rev=1030640&view=rev Log: Update openjpa.AutoDetach default values. Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml?rev=1030640&r1=1030639&r2=1030640&view=diff ============================================================================== --- openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml (original) +++ openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml Wed Nov 3 20:09:15 2010 @@ -567,11 +567,11 @@ transaction. AutoDetach -Default: - +Default: - close,rollback Possible values: close, -commit, nontx-read +commit, nontx-read, rollback Description: A comma-separated list of events From commits-return-7985-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 20:52:30 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 17239 invoked from network); 3 Nov 2010 20:52:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 20:52:30 -0000 Received: (qmail 17883 invoked by uid 500); 3 Nov 2010 20:53:01 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 17828 invoked by uid 500); 3 Nov 2010 20:53:01 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 17816 invoked by uid 99); 3 Nov 2010 20:53:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 20:53: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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 20:53:00 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 0C209C010A for ; Wed, 3 Nov 2010 20:52:40 +0000 (UTC) Date: Wed, 3 Nov 2010 20:52:40 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1841464097.2311288817560036.JavaMail.hudson@aegis> In-Reply-To: <1820948536.2181288810681769.JavaMail.hudson@aegis> References: <1820948536.2181288810681769.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#314?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-03_20-35-11/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 minutes 19 seconds [INFO] Finished at: Wed Nov 03 03:52:44 GMT 2010 [INFO] Final Memory: 65M/165M [INFO] ------------------------------------------------------------------------ From commits-return-7986-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 03 20:52:33 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 17259 invoked from network); 3 Nov 2010 20:52:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 20:52:33 -0000 Received: (qmail 17919 invoked by uid 500); 3 Nov 2010 20:53:04 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 17899 invoked by uid 500); 3 Nov 2010 20:53:04 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 17892 invoked by uid 99); 3 Nov 2010 20:53:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 20:53:04 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 20:53:02 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id CFF56C0161 for ; Wed, 3 Nov 2010 20:52:40 +0000 (UTC) Date: Wed, 3 Nov 2010 20:52:40 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <902807322.2321288817560850.JavaMail.hudson@aegis> In-Reply-To: <1627627865.2191288810682404.JavaMail.hudson@aegis> References: <1627627865.2191288810682404.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #314 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [curtisr7] Update openjpa.AutoDetach default values. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-project\src\doc\manual\ref_guide_conf.xml At revision 1030648 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 54037 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030640 at timestamp: November 3, 2010 at 3:36 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-03_20-35-11/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-03_20-35-11/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-03_20-35-11/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 minutes 19 seconds [INFO] Finished at: Wed Nov 03 03:52:44 GMT 2010 [INFO] Final Memory: 65M/165M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7987-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 13:17:55 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 15299 invoked from network); 4 Nov 2010 13:17:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 13:17:55 -0000 Received: (qmail 35086 invoked by uid 500); 4 Nov 2010 13:18:26 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 35021 invoked by uid 500); 4 Nov 2010 13:18:25 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 35004 invoked by uid 99); 4 Nov 2010 13:18:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 13:18:24 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 13:18:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7BF1923889DE; Thu, 4 Nov 2010 13:17:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030932 - /openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataSerializer.java Date: Thu, 04 Nov 2010 13:17:10 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101104131710.7BF1923889DE@eris.apache.org> Author: curtisr7 Date: Thu Nov 4 13:17:10 2010 New Revision: 1030932 URL: http://svn.apache.org/viewvc?rev=1030932&view=rev Log: OPENJPA-1871: Fix FindBugs reported performance problem in XMLMetaDataSerializer. Patch contributed by Guy Korland. Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataSerializer.java Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataSerializer.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataSerializer.java?rev=1030932&r1=1030931&r2=1030932&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataSerializer.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataSerializer.java Thu Nov 4 13:17:10 2010 @@ -27,10 +27,9 @@ import java.security.AccessController; import java.security.PrivilegedActionException; import java.util.Collection; import java.util.HashMap; -import java.util.Iterator; import java.util.LinkedList; -import java.util.List; import java.util.Map; +import java.util.Map.Entry; import javax.xml.transform.Result; import javax.xml.transform.TransformerConfigurationException; @@ -98,10 +97,10 @@ public abstract class XMLMetaDataSeriali if (files == null) return; - // for each file, serialize objects - Collection fileObjs; - for(File file : files.keySet()) { - fileObjs = files.get(file); + // for each file, serialize objects + for (Entry> entry : files.entrySet()) { + File file = entry.getKey(); + Collection fileObjs = entry.getValue(); if (_log != null && _log.isInfoEnabled()) _log.info(_loc.get("ser-file", file)); From commits-return-7988-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 14:04:40 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 38287 invoked from network); 4 Nov 2010 14:04:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 14:04:39 -0000 Received: (qmail 24301 invoked by uid 500); 4 Nov 2010 14:05:11 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 24234 invoked by uid 500); 4 Nov 2010 14:05:09 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 24227 invoked by uid 99); 4 Nov 2010 14:05:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 14:05:09 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 14:05:06 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 8B769C010A for ; Thu, 4 Nov 2010 14:04:45 +0000 (UTC) Date: Thu, 4 Nov 2010 14:04:45 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <1287473622.2951288879485484.JavaMail.hudson@aegis> In-Reply-To: <1841464097.2311288817560036.JavaMail.hudson@aegis> References: <1841464097.2311288817560036.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#315?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See Changes: [curtisr7] OPENJPA-1871: Fix FindBugs reported performance problem in XMLMetaDataSerializer. Patch contributed by Guy Korland. ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_13-38-59/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 25 minutes 21 seconds [INFO] Finished at: Wed Nov 03 21:04:49 GMT 2010 [INFO] Final Memory: 64M/171M [INFO] ------------------------------------------------------------------------ From commits-return-7989-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 14:04:40 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 38306 invoked from network); 4 Nov 2010 14:04:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 14:04:40 -0000 Received: (qmail 24358 invoked by uid 500); 4 Nov 2010 14:05:11 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 24319 invoked by uid 500); 4 Nov 2010 14:05:11 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 24312 invoked by uid 99); 4 Nov 2010 14:05:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 14:05:11 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 14:05:10 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 8DCC8C0161 for ; Thu, 4 Nov 2010 14:04:50 +0000 (UTC) Date: Thu, 4 Nov 2010 14:04:50 +0000 (UTC) From: Apache Hudson Server To: commits@openjpa.apache.org Message-ID: <955046792.2961288879490580.JavaMail.hudson@aegis> In-Reply-To: <902807322.2321288817560850.JavaMail.hudson@aegis> References: <902807322.2321288817560850.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #315 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See Changes: [curtisr7] OPENJPA-1871: Fix FindBugs reported performance problem in XMLMetaDataSerializer. Patch contributed by Guy Korland. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-lib\src\main\java\org\apache\openjpa\lib\meta\XMLMetaDataSerializer.java At revision 1030959 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 54261 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildNumber: 1030932 at timestamp: November 3, 2010 at 8:41 PM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_13-38-59/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_13-38-59/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_13-38-59/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 25 minutes 21 seconds [INFO] Finished at: Wed Nov 03 21:04:49 GMT 2010 [INFO] Final Memory: 64M/171M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7990-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 16:00:59 2010 Return-Path: Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 96894 invoked from network); 4 Nov 2010 16:00:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 16:00:59 -0000 Received: (qmail 99023 invoked by uid 500); 4 Nov 2010 16:01:30 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 98967 invoked by uid 500); 4 Nov 2010 16:01:30 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 98946 invoked by uid 99); 4 Nov 2010 16:01:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 16:01:30 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 16:01:27 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 81A712388A02; Thu, 4 Nov 2010 16:00:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031050 - /openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml Date: Thu, 04 Nov 2010 16:00:12 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101104160012.81A712388A02@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Thu Nov 4 16:00:12 2010 New Revision: 1031050 URL: http://svn.apache.org/viewvc?rev=1031050&view=rev Log: OPENJPA-1864: Adding documentation for MaxDB Dictionary (includes new section for user reported databases which we haven't verified). Modified: openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml Modified: openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml?rev=1031050&r1=1031049&r2=1031050&view=diff ============================================================================== --- openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml (original) +++ openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml Thu Nov 4 16:00:12 2010 @@ -36,6 +36,10 @@ release of OpenJPA, while the contains the list of databases and drivers that were tested against prior releases or by OpenJPA users and may not support every feature of this release. + +The Unverified Database Matrix contains a +list of databases which have been reported to work, but have not been tested by +the development team. @@ -531,6 +535,64 @@ databases that have been fully tested ag +
+ + Unverified Database Matrix + + +Following is a table of the database and JDBC driver versions that have been reported +to work with OpenJPA by the community but have not been verified by the development +team. In some cases this is a question of availability since the developers may not +be able to obtain a license to test, or have experience configuring these databases. +For the list of databases that have been fully tested against this release, please +refer to the Verified Database Matrix section. + + + + Unverified Databases and JDBC Drivers + + + + + + + + + + Database Name + + + Database Version + + + JDBC Driver Name + + + JDBC Driver Version + + + + + + + SAP MaxDB + + + + + + + + + + + + + +
+ +
+
Apache Derby From commits-return-7991-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 16:24:29 2010 Return-Path: <commits-return-7991-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 13544 invoked from network); 4 Nov 2010 16:24:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 16:24:29 -0000 Received: (qmail 45300 invoked by uid 500); 4 Nov 2010 16:25:00 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 45276 invoked by uid 500); 4 Nov 2010 16:25:00 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 45269 invoked by uid 99); 4 Nov 2010 16:25:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 16:25: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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 16:25:00 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id DC202C010A for <commits@openjpa.apache.org>; Thu, 4 Nov 2010 16:24:38 +0000 (UTC) Date: Thu, 4 Nov 2010 16:24:38 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1878410357.3051288887878801.JavaMail.hudson@aegis> In-Reply-To: <1287473622.2951288879485484.JavaMail.hudson@aegis> References: <1287473622.2951288879485484.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#316?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/316/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_16-06-54/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 minutes 35 seconds [INFO] Finished at: Wed Nov 03 23:24:42 GMT 2010 [INFO] Final Memory: 65M/168M [INFO] ------------------------------------------------------------------------ From commits-return-7992-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 16:24:29 2010 Return-Path: <commits-return-7992-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 13565 invoked from network); 4 Nov 2010 16:24:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 16:24:29 -0000 Received: (qmail 45370 invoked by uid 500); 4 Nov 2010 16:25:00 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 45347 invoked by uid 500); 4 Nov 2010 16:25:00 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 45340 invoked by uid 99); 4 Nov 2010 16:25:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 16:25: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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 16:25:00 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 973A6C0161 for <commits@openjpa.apache.org>; Thu, 4 Nov 2010 16:24:39 +0000 (UTC) Date: Thu, 4 Nov 2010 16:24:39 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <267849610.3061288887879618.JavaMail.hudson@aegis> In-Reply-To: <955046792.2961288879490580.JavaMail.hudson@aegis> References: <955046792.2961288879490580.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #316 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/316/changes> Changes: [mikedd] OPENJPA-1864: Adding documentation for MaxDB Dictionary (includes new section for user reported databases which we haven't verified). ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-project\src\doc\manual\supported_databases.xml At revision 1031050 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 54294 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1031050 at timestamp: November 3, 2010 at 11:08 PM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_16-06-54/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_16-06-54/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_16-06-54/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 minutes 35 seconds [INFO] Finished at: Wed Nov 03 23:24:42 GMT 2010 [INFO] Final Memory: 65M/168M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7993-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 17:29:16 2010 Return-Path: <commits-return-7993-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 49606 invoked from network); 4 Nov 2010 17:29:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 17:29:15 -0000 Received: (qmail 74432 invoked by uid 500); 4 Nov 2010 17:29:47 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 74373 invoked by uid 500); 4 Nov 2010 17:29:46 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 74366 invoked by uid 99); 4 Nov 2010 17:29:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 17:29:46 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 17:29:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 300C123889DA; Thu, 4 Nov 2010 17:28:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031090 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java Date: Thu, 04 Nov 2010 17:28:32 -0000 To: commits@openjpa.apache.org From: dwoods@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101104172832.300C123889DA@eris.apache.org> Author: dwoods Date: Thu Nov 4 17:28:31 2010 New Revision: 1031090 URL: http://svn.apache.org/viewvc?rev=1031090&view=rev Log: another attempt to fix the intermitent datacache test failures Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java?rev=1031090&r1=1031089&r2=1031090&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java Thu Nov 4 17:28:31 2010 @@ -1035,26 +1035,30 @@ public abstract class CacheTest extends Date currentTime = new Date(); long diff = (currentTime.getTime() - startTime.getTime()); + long diff2 = (currentTime.getTime() - persistTime.getTime()); long sleep = 0; getLog().info("CacheTest.timeoutsHelper() testing all are still in the cache, elapsed time="+diff); DataCache cache = cacheManager(factory).getDataCache( DataCache.NAME_DEFAULT, false); - if (diff < 500) { + diff = Math.max(diff, diff2); + if (diff < 450) { // all should still be in the cache checkCache(cache, ids, new boolean[]{ true, true, true, true }); } else { // need to skip the test on slow systems or when using remote DB connections - getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(all, <500) because initial diff="+diff); + getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(all, <500) because diff=" + + diff + " and diff2=" + diff2); } // should cause h to be dropped (timeout=500) currentTime = new Date(); diff = (currentTime.getTime() - startTime.getTime()); - sleep = 750 - diff; - if (sleep < (-150)) { + diff2 = (currentTime.getTime() - persistTime.getTime()); + sleep = Math.min((800 - diff), (800 - diff2)); + if (sleep < 0) { // we already missed the window - getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(h=500) because sleep="+sleep); + getLog().warn("CacheTest.timeoutsHelper() skipping sleep for checkCache(h=500) because sleep="+sleep); } else if (sleep > 10) { getLog().info("CacheTest.timeoutsHelper() testing h to be dropped by waiting sleep="+sleep); Thread.currentThread().sleep(sleep); @@ -1062,17 +1066,18 @@ public abstract class CacheTest extends } else { sleep = 0; } - // recalc diff again currentTime = new Date(); diff = (currentTime.getTime() - startTime.getTime()); - if (sleep >= 0 && diff > 500 && diff < 950) { + diff2 = (currentTime.getTime() - persistTime.getTime()); + diff = Math.max(diff, diff2); + if (sleep >= 0 && diff > 600 && diff < 900) { // only h should be dropped checkCache(cache, ids, new boolean[]{ true, true, true, false }); } else { // need to skip the test on slow systems or when using remote DB connections getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(h=500) because sleep="+sleep+ - " and final diff="+diff); + " and final diff=" + diff + " and diff2=" + diff2); } // if this run has a default timeout (set to 1 sec in the test @@ -1085,6 +1090,8 @@ public abstract class CacheTest extends // should cause f to be dropped (timeout=1000) currentTime = new Date(); diff = currentTime.getTime() - startTime.getTime(); + diff2 = (currentTime.getTime() - persistTime.getTime()); + diff = Math.max(diff, diff2); sleep = 2000 - diff; if (sleep > 10) { getLog().info("CacheTest.timeoutsHelper() testing f to be dropped by waiting sleep="+sleep); @@ -1093,12 +1100,17 @@ public abstract class CacheTest extends } else { sleep = 0; } - if ((diff + sleep) < 4900) { + // recalc diff again + currentTime = new Date(); + diff = currentTime.getTime() - startTime.getTime(); + diff2 = currentTime.getTime() - persistTime.getTime(); + diff = Math.max(diff, diff2); + if (diff < 4900) { // e is conditional, h and f should be dropped, but not g yet checkCache(cache, ids, new boolean[]{ eStatus, false, true, false }); } else { // need to skip the test on slow systems or when using remote DB connections - getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(f=1000) because diff="+(diff+sleep)); + getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(f=1000) because diff="+diff); } // at this point, q2 should be dropped (because its candidate @@ -1110,8 +1122,10 @@ public abstract class CacheTest extends // should cause g to be dropped (timeout=5000) currentTime = new Date(); diff = currentTime.getTime() - startTime.getTime(); + diff2 = currentTime.getTime() - persistTime.getTime(); + diff = Math.max(diff, diff2); sleep = 6000 - diff; - if (sleep > 10) { + if (sleep > 0) { getLog().info("CacheTest.timeoutsHelper() testing g to be dropped by waiting sleep="+sleep); Thread.currentThread().sleep(sleep); Thread.yield(); From commits-return-7994-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 17:58:44 2010 Return-Path: <commits-return-7994-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 57927 invoked from network); 4 Nov 2010 17:58:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 17:58:43 -0000 Received: (qmail 22513 invoked by uid 500); 4 Nov 2010 17:59:15 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 22460 invoked by uid 500); 4 Nov 2010 17:59:15 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 22453 invoked by uid 99); 4 Nov 2010 17:59:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 17:59:14 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 17:59:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CBC5F23889ED; Thu, 4 Nov 2010 17:58:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031109 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java Date: Thu, 04 Nov 2010 17:58:00 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101104175800.CBC5F23889ED@eris.apache.org> Author: mikedd Date: Thu Nov 4 17:58:00 2010 New Revision: 1031109 URL: http://svn.apache.org/viewvc?rev=1031109&view=rev Log: OPENJPA-1870: Check if columnDefinition was provided before overriding blob type. Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java?rev=1031109&r1=1031108&r2=1031109&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java Thu Nov 4 17:58:00 2010 @@ -32,6 +32,7 @@ import java.util.Set; import org.apache.commons.lang.StringUtils; import org.apache.openjpa.jdbc.identifier.DBIdentifier; +import org.apache.openjpa.jdbc.identifier.DBIdentifier.DBIdentifierType; import org.apache.openjpa.jdbc.kernel.JDBCFetchConfiguration; import org.apache.openjpa.jdbc.kernel.JDBCStore; import org.apache.openjpa.jdbc.kernel.exps.FilterValue; @@ -459,7 +460,8 @@ public class MySQLDictionary */ @Override public String getTypeName(Column col) { - if (col.getType() == Types.BLOB) { + // handle blobs differently, if the DBItentifierType is NULL (e.g. no column definition is set). + if (col.getType() == Types.BLOB && col.getTypeIdentifier().getType() == DBIdentifierType.NULL) { if (col.getSize() <= 0) // unknown size return blobTypeName; // return old default of 64KB else if (col.getSize() <= 255) From commits-return-7995-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 17:58:52 2010 Return-Path: <commits-return-7995-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 57978 invoked from network); 4 Nov 2010 17:58:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 17:58:52 -0000 Received: (qmail 22568 invoked by uid 500); 4 Nov 2010 17:59:23 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 22545 invoked by uid 500); 4 Nov 2010 17:59:23 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 22536 invoked by uid 99); 4 Nov 2010 17:59:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 17:59:23 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 17:59:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6F25C23889F1; Thu, 4 Nov 2010 17:58:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031110 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java Date: Thu, 04 Nov 2010 17:58:09 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101104175809.6F25C23889F1@eris.apache.org> Author: curtisr7 Date: Thu Nov 4 17:58:09 2010 New Revision: 1031110 URL: http://svn.apache.org/viewvc?rev=1031110&view=rev Log: OPENJPA-1872: Optimize CacheMap get(..) for non-pinned usage. Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java?rev=1031110&r1=1031109&r2=1031110&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java Thu Nov 4 17:58:09 2010 @@ -46,7 +46,7 @@ import java.util.concurrent.locks.Reentr */ public class CacheMap implements Map { - + /** * The map for non-expired and non-pinned references. */ @@ -350,18 +350,19 @@ public class CacheMap public Object get(Object key) { readLock(); try { - Object val = pinnedMap.get(key); - if (val != null) - return val; - - val = cacheMap.get(key); + // Check the main map first + Object val = cacheMap.get(key); if (val == null) { // if we find the key in the soft map, move it back into // the primary map val = softMap.get(key); - if (val != null) + if (val != null){ put(key, val); + }else{ + val = pinnedMap.get(key); + } } + return val; } finally { readUnlock(); @@ -501,9 +502,7 @@ public class CacheMap public boolean containsKey(Object key) { readLock(); try { - return pinnedMap.get(key) != null - || cacheMap.containsKey(key) - || softMap.containsKey(key); + return cacheMap.containsKey(key) || pinnedMap.get(key) != null || softMap.containsKey(key); } finally { readUnlock(); } @@ -512,9 +511,7 @@ public class CacheMap public boolean containsValue(Object val) { readLock(); try { - return pinnedMap.containsValue(val) - || cacheMap.containsValue(val) - || softMap.containsValue(val); + return cacheMap.containsValue(val) || pinnedMap.containsValue(val) || softMap.containsValue(val); } finally { readUnlock(); } @@ -535,8 +532,7 @@ public class CacheMap public String toString() { readLock(); try { - return "CacheMap:" + cacheMap.toString() + "::" - + softMap.toString(); + return "CacheMap:" + cacheMap.toString() + "::" + softMap.toString(); } finally { readUnlock(); } From commits-return-7996-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 18:10:46 2010 Return-Path: <commits-return-7996-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 70572 invoked from network); 4 Nov 2010 18:10:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 18:10:46 -0000 Received: (qmail 44731 invoked by uid 500); 4 Nov 2010 18:11:17 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 44670 invoked by uid 500); 4 Nov 2010 18:11:17 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 44663 invoked by uid 99); 4 Nov 2010 18:11:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 18:11:17 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 18:11:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6E03323889E1; Thu, 4 Nov 2010 18:10:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031116 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java Date: Thu, 04 Nov 2010 18:10:00 -0000 To: commits@openjpa.apache.org From: dwoods@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101104181000.6E03323889E1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dwoods Date: Thu Nov 4 18:10:00 2010 New Revision: 1031116 URL: http://svn.apache.org/viewvc?rev=1031116&view=rev Log: another attempt to fix the intermitent datacache test failures as the persist() is taking 1.2 secs on some test machines Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java?rev=1031116&r1=1031115&r2=1031116&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java Thu Nov 4 18:10:00 2010 @@ -1071,13 +1071,13 @@ public abstract class CacheTest extends diff = (currentTime.getTime() - startTime.getTime()); diff2 = (currentTime.getTime() - persistTime.getTime()); diff = Math.max(diff, diff2); - if (sleep >= 0 && diff > 600 && diff < 900) { + if (diff > 600 && diff < 900) { // only h should be dropped checkCache(cache, ids, new boolean[]{ true, true, true, false }); } else { // need to skip the test on slow systems or when using remote DB connections - getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(h=500) because sleep="+sleep+ - " and final diff=" + diff + " and diff2=" + diff2); + getLog().warn("CacheTest.timeoutsHelper() skipping checkCache(h=500) because diff=" + diff + + " and diff2=" + diff2); } // if this run has a default timeout (set to 1 sec in the test @@ -1093,7 +1093,10 @@ public abstract class CacheTest extends diff2 = (currentTime.getTime() - persistTime.getTime()); diff = Math.max(diff, diff2); sleep = 2000 - diff; - if (sleep > 10) { + if (sleep < 0) { + // we already missed the window + getLog().warn("CacheTest.timeoutsHelper() skipping sleep for checkCache(f=000) because sleep="+sleep); + } else if (sleep > 10) { getLog().info("CacheTest.timeoutsHelper() testing f to be dropped by waiting sleep="+sleep); Thread.currentThread().sleep(sleep); Thread.yield(); From commits-return-7997-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 19:06:20 2010 Return-Path: <commits-return-7997-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 17252 invoked from network); 4 Nov 2010 19:06:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 19:06:20 -0000 Received: (qmail 78466 invoked by uid 500); 4 Nov 2010 19:06:51 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 78409 invoked by uid 500); 4 Nov 2010 19:06:51 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 78402 invoked by uid 99); 4 Nov 2010 19:06:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 19:06:51 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 19:06:50 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 95C84C010A for <commits@openjpa.apache.org>; Thu, 4 Nov 2010 19:06:30 +0000 (UTC) Date: Thu, 4 Nov 2010 19:06:30 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1377776044.91288897590602.JavaMail.hudson@aegis> In-Reply-To: <1878410357.3051288887878801.JavaMail.hudson@aegis> References: <1878410357.3051288887878801.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#317?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/317/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_19-04-18/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 54 seconds [INFO] Finished at: Thu Nov 04 02:06:34 GMT 2010 [INFO] Final Memory: 65M/177M [INFO] ------------------------------------------------------------------------ From commits-return-7998-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 19:06:21 2010 Return-Path: <commits-return-7998-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 17270 invoked from network); 4 Nov 2010 19:06:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 19:06:21 -0000 Received: (qmail 78533 invoked by uid 500); 4 Nov 2010 19:06:52 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 78480 invoked by uid 500); 4 Nov 2010 19:06:52 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 78473 invoked by uid 99); 4 Nov 2010 19:06:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 19:06:52 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 19:06:51 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 7350FC0161 for <commits@openjpa.apache.org>; Thu, 4 Nov 2010 19:06:31 +0000 (UTC) Date: Thu, 4 Nov 2010 19:06:31 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1728858878.101288897591471.JavaMail.hudson@aegis> In-Reply-To: <267849610.3061288887879618.JavaMail.hudson@aegis> References: <267849610.3061288887879618.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #317 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/317/changes> Changes: [dwoods] another attempt to fix the intermitent datacache test failures as the persist() is taking 1.2 secs on some test machines [curtisr7] OPENJPA-1872: Optimize CacheMap get(..) for non-pinned usage. [mikedd] OPENJPA-1870: Check if columnDefinition was provided before overriding blob type. [dwoods] another attempt to fix the intermitent datacache test failures ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\MySQLDictionary.java U openjpa-kernel\src\main\java\org\apache\openjpa\util\CacheMap.java U openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\datacache\CacheTest.java At revision 1031154 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 54335 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1031116 at timestamp: November 4, 2010 at 2:05 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_19-04-18/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_19-04-18/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_19-04-18/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 54 seconds [INFO] Finished at: Thu Nov 04 02:06:34 GMT 2010 [INFO] Final Memory: 65M/177M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-7999-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 20:58:57 2010 Return-Path: <commits-return-7999-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 89572 invoked from network); 4 Nov 2010 20:58:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 20:58:56 -0000 Received: (qmail 58529 invoked by uid 500); 4 Nov 2010 20:59:28 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 58495 invoked by uid 500); 4 Nov 2010 20:59:28 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 58486 invoked by uid 99); 4 Nov 2010 20:59:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 20:59:28 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 20:59:24 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id AC8BD23889E0; Thu, 4 Nov 2010 20:58:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031240 - in /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql: ./ BlobColumnEntity.java TestBlobColumnType.java Date: Thu, 04 Nov 2010 20:58:09 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101104205809.AC8BD23889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Thu Nov 4 20:58:09 2010 New Revision: 1031240 URL: http://svn.apache.org/viewvc?rev=1031240&view=rev Log: OPENJPA-1870 OPENJPA-740: adding testcase Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/BlobColumnEntity.java (with props) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestBlobColumnType.java (with props) Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/BlobColumnEntity.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/BlobColumnEntity.java?rev=1031240&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/BlobColumnEntity.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/BlobColumnEntity.java Thu Nov 4 20:58:09 2010 @@ -0,0 +1,105 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.blob.mysql; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Lob; + +@Entity +public class BlobColumnEntity { + @Id + private int id; + + @Lob + @Column(length = 20) + protected byte[] smallLob; + + @Lob + @Column(length = 300) + protected byte[] oldLob; + + @Lob + @Column(length = 66000) + protected byte[] medLob; + + @Lob + @Column(length = 16777216) + protected byte[] longLob; + + @Lob + protected byte[] defaultLob; + + /** + * Not suitable for all databases + */ + @Lob + @Column(columnDefinition = "BINARY(32)") + protected byte[] definedLob; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public byte[] getSmallLob() { + return smallLob; + } + + public void setSmallLob(byte[] smallLob) { + this.smallLob = smallLob; + } + + public byte[] getMedLob() { + return medLob; + } + + public void setMedLob(byte[] medLob) { + this.medLob = medLob; + } + + public byte[] getLongLob() { + return longLob; + } + + public void setLongLob(byte[] longLob) { + this.longLob = longLob; + } + + public byte[] getDefaultLob() { + return defaultLob; + } + + public void setDefaultLob(byte[] defaultLob) { + this.defaultLob = defaultLob; + } + + public byte[] getDefinedLob() { + return definedLob; + } + + public void setDefinedLob(byte[] definedLob) { + this.definedLob = definedLob; + } + +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/BlobColumnEntity.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestBlobColumnType.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestBlobColumnType.java?rev=1031240&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestBlobColumnType.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestBlobColumnType.java Thu Nov 4 20:58:09 2010 @@ -0,0 +1,107 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.blob.mysql; + +import javax.persistence.EntityManager; + +import org.apache.openjpa.jdbc.identifier.DBIdentifier; +import org.apache.openjpa.jdbc.identifier.DBIdentifier.DBIdentifierType; +import org.apache.openjpa.jdbc.meta.ClassMapping; +import org.apache.openjpa.jdbc.schema.Column; +import org.apache.openjpa.jdbc.schema.Table; +import org.apache.openjpa.jdbc.sql.MySQLDictionary; +import org.apache.openjpa.persistence.test.SingleEMFTestCase; + +/** + * Testcase for MySQL Blob types. OPENJPA-740 introduced intelligent column type for BLOBs, OPENJPA-1870 refined it a + * bit. + */ +public class TestBlobColumnType extends SingleEMFTestCase { + + private static boolean _firstRun=true; + private boolean _runTest = false; // only test with MySQL + + public void setUp() throws Exception { + + // create EMF solely to obtain a DBDictionary. + // need to do this without BlobColumnEntity.class since it contains a column definition which might + // not work with all databases. + super.setUp((Object) null); + if (!(getDBDictionary() instanceof MySQLDictionary)) { + // normal teardown will take care of the EMF. + return; + } + + // remove the EMF + tearDown(); + + _runTest = true; + super.setUp(BlobColumnEntity.class, DROP_TABLES, "openjpa.jdbc.SchemaFactory", "native"); + + if(_firstRun) { + emf.createEntityManager().close(); // trigger table creation. + _firstRun = false; + } + } + + private Column getCol(String name) { + ClassMapping mapping = getMapping(BlobColumnEntity.class); + + Table t = mapping.getTable(); + Column col = t.getColumn(DBIdentifier.newIdentifier(name, DBIdentifierType.COLUMN, true)); + assertNotNull(col); + return col; + } + + public void testSmallLob() { + if (_runTest) { + assertEquals(MySQLDictionary.tinyBlobTypeName, getCol("smallLob").getTypeIdentifier().getName()); + } + } + + public void testMedLob() { + if (_runTest) { + assertEquals(MySQLDictionary.mediumBlobTypeName, getCol("medLob").getTypeIdentifier().getName()); + } + } + + public void testLongBlob() { + if (_runTest) { + assertEquals(MySQLDictionary.longBlobTypeName, getCol("longLob").getTypeIdentifier().getName()); + } + } + + public void testOldLob() { + if (_runTest) { + assertEquals(getDBDictionary().blobTypeName, getCol("oldLob").getTypeIdentifier().getName()); + } + } + + public void testDefaultLob() { + if (_runTest) { + assertEquals(getDBDictionary().blobTypeName, getCol("defaultLob").getTypeIdentifier().getName()); + } + } + + public void testDefinedLob() { + if (_runTest) { + assertEquals("BINARY", getCol("definedLob").getTypeIdentifier().getName()); + } + } +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/blob/mysql/TestBlobColumnType.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8000-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 21:04:07 2010 Return-Path: <commits-return-8000-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 91727 invoked from network); 4 Nov 2010 21:04:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 21:04:07 -0000 Received: (qmail 65891 invoked by uid 500); 4 Nov 2010 21:04:39 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 65835 invoked by uid 500); 4 Nov 2010 21:04:38 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 65825 invoked by uid 99); 4 Nov 2010 21:04:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:04:38 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:04:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 81FC82388978; Thu, 4 Nov 2010 21:03:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031244 - in /openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/datacache/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/ openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/ Date: Thu, 04 Nov 2010 21:03:24 -0000 To: commits@openjpa.apache.org From: faywang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101104210324.81FC82388978@eris.apache.org> Author: faywang Date: Thu Nov 4 21:03:23 2010 New Revision: 1031244 URL: http://svn.apache.org/viewvc?rev=1031244&view=rev Log: OPENJPA-1810: make QueryKey distinguishable for CriteriaQuery Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryKey.java openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestCriteria.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java?rev=1031244&r1=1031243&r2=1031244&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java Thu Nov 4 21:03:23 2010 @@ -331,9 +331,10 @@ public class QueryCacheStoreQuery public ResultObjectProvider executeQuery(StoreQuery q, Object[] params, Range range) { QueryCacheStoreQuery cq = (QueryCacheStoreQuery) q; + Object parsed = cq.getDelegate().newCompilation(); QueryKey key = QueryKey.newInstance(cq.getContext(), _ex.isPacking(q), params, _candidate, _subs, range.start, - range.end); + range.end, parsed); List<Object> cached = cq.checkCache(key); if (cached != null) return new ListResultObjectProvider(cached); Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryKey.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryKey.java?rev=1031244&r1=1031243&r2=1031244&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryKey.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryKey.java Thu Nov 4 21:03:23 2010 @@ -89,7 +89,7 @@ public class QueryKey private String _candidateClassName; private boolean _subclasses; private Set _accessPathClassNames; - private String _query; + private Object _query; private boolean _ignoreChanges; private Map _params; private long _rangeStart; @@ -117,7 +117,7 @@ public class QueryKey // via API calls (candidate class, result class, etc) q.compile(); return newInstance(q, false, args, q.getCandidateType(), - q.hasSubclasses(), q.getStartRange(), q.getEndRange()); + q.hasSubclasses(), q.getStartRange(), q.getEndRange(), null); } /** @@ -128,15 +128,15 @@ public class QueryKey // via API calls (candidate class, result class, etc) q.compile(); return newInstance(q, false, args, q.getCandidateType(), - q.hasSubclasses(), q.getStartRange(), q.getEndRange()); + q.hasSubclasses(), q.getStartRange(), q.getEndRange(), null); } /** * Return a key for the given query, or null if it is not cacheable. */ static QueryKey newInstance(QueryContext q, boolean packed, Object[] args, - Class candidate, boolean subs, long startIdx, long endIdx) { - QueryKey key = createKey(q, packed, candidate, subs, startIdx, endIdx); + Class candidate, boolean subs, long startIdx, long endIdx, Object parsed) { + QueryKey key = createKey(q, packed, candidate, subs, startIdx, endIdx, parsed); if (key != null && setParams(key, q, args)) return key; return null; @@ -146,8 +146,8 @@ public class QueryKey * Return a key for the given query, or null if it is not cacheable. */ static QueryKey newInstance(QueryContext q, boolean packed, Map args, - Class candidate, boolean subs, long startIdx, long endIdx) { - QueryKey key = createKey(q, packed, candidate, subs, startIdx, endIdx); + Class candidate, boolean subs, long startIdx, long endIdx, Object parsed) { + QueryKey key = createKey(q, packed, candidate, subs, startIdx, endIdx, parsed); if (key != null && (args == null || args.isEmpty() || setParams(key, q.getStoreContext(), new HashMap(args)))) return key; @@ -160,7 +160,7 @@ public class QueryKey * class, query filter, etc. */ private static QueryKey createKey(QueryContext q, boolean packed, - Class candidateClass, boolean subclasses, long startIdx, long endIdx) { + Class candidateClass, boolean subclasses, long startIdx, long endIdx, Object parsed) { if (candidateClass == null) return null; @@ -245,6 +245,10 @@ public class QueryKey key._accessPathClassNames = accessPathClassNames; key._timeout = timeout; key._query = q.getQueryString(); + if (key._query == null) { + // this can be a criteria query + key._query = parsed; + } key._ignoreChanges = q.getIgnoreChanges(); key._rangeStart = startIdx; key._rangeEnd = endIdx; @@ -408,7 +412,7 @@ public class QueryKey && _ignoreChanges == other._ignoreChanges && _rangeStart == other._rangeStart && _rangeEnd == other._rangeEnd - && StringUtils.equals(_query, other._query) + && ObjectUtils.equals(_query, other._query) && ObjectUtils.equals(_params, other._params); } Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestCriteria.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestCriteria.java?rev=1031244&r1=1031243&r2=1031244&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestCriteria.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestCriteria.java Thu Nov 4 21:03:23 2010 @@ -21,7 +21,12 @@ package org.apache.openjpa.persistence.c import java.util.List; +import javax.persistence.EntityManager; import javax.persistence.Query; +import javax.persistence.TypedQuery; +import javax.persistence.criteria.CriteriaBuilder; +import javax.persistence.criteria.CriteriaQuery; +import javax.persistence.criteria.Root; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.query.DomainObject; @@ -57,6 +62,8 @@ public class TestCriteria extends Single public void setUp() { super.setUp(CLEAR_TABLES, "openjpa.DynamicEnhancementAgent", "false", + "openjpa.DataCache","true", + "openjpa.QueryCache","true", Account.class, Address.class, A.class, @@ -233,6 +240,28 @@ public class TestCriteria extends Single compare(jpql, d); } + public void testCount() { + + EntityManager em = emf.createEntityManager(); + em.getTransaction().begin(); + for(int i = 0;i<50;i++) + em.persist(new Department()); + em.getTransaction().commit(); + + CriteriaBuilder cb = em.getCriteriaBuilder(); + CriteriaQuery<Department> q = cb.createQuery(Department.class); + Root<Department> book = q.from(Department.class); + TypedQuery<Department> dept = em.createQuery(q); + int size = dept.getResultList().size(); + + CriteriaQuery<Long> c = cb.createQuery(Long.class); + Root<?> from = c.from(Department.class); + c.select(cb.count(from)); + TypedQuery<Long> query = em.createQuery(c); + long count = query.getSingleResult(); + assertEquals(size, count); + } + public void testGeneralCase() { DomainObject e = qb.createQueryDefinition(Employee.class); e.where(e.get("department").get("name").equal("Engineering")); Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java?rev=1031244&r1=1031243&r2=1031244&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java Thu Nov 4 21:03:23 2010 @@ -724,4 +724,10 @@ class CriteriaQueryImpl<T> implements Op return super.toString(); } } + + public boolean equals(Object other) { + if (toString().equals(other.toString())) + return true; + return false; + } } From commits-return-8002-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 21:20:47 2010 Return-Path: <commits-return-8002-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 7740 invoked from network); 4 Nov 2010 21:20:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 21:20:47 -0000 Received: (qmail 8965 invoked by uid 500); 4 Nov 2010 21:21:18 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 8901 invoked by uid 500); 4 Nov 2010 21:21:18 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8888 invoked by uid 99); 4 Nov 2010 21:21:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:21:17 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:21:16 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id C368DC0161 for <commits@openjpa.apache.org>; Thu, 4 Nov 2010 21:20:56 +0000 (UTC) Date: Thu, 4 Nov 2010 21:20:56 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <711805294.351288905656798.JavaMail.hudson@aegis> In-Reply-To: <1728858878.101288897591471.JavaMail.hudson@aegis> References: <1728858878.101288897591471.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #318 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/318/changes> Changes: [mikedd] OPENJPA-1870 OPENJPA-740: adding testcase ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk A openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\blob\mysql AU openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\blob\mysql\BlobColumnEntity.java AU openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\blob\mysql\TestBlobColumnType.java At revision 1031242 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 54366 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1031240 at timestamp: November 4, 2010 at 4:06 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_21-05-43/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_21-05-43/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_21-05-43/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 minutes 6 seconds [INFO] Finished at: Thu Nov 04 04:21:00 GMT 2010 [INFO] Final Memory: 65M/166M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8001-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 21:20:47 2010 Return-Path: <commits-return-8001-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 7749 invoked from network); 4 Nov 2010 21:20:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 21:20:47 -0000 Received: (qmail 8964 invoked by uid 500); 4 Nov 2010 21:21:18 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 8887 invoked by uid 500); 4 Nov 2010 21:21:17 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8876 invoked by uid 99); 4 Nov 2010 21:21:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:21:17 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:21:16 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 819ACC010A for <commits@openjpa.apache.org>; Thu, 4 Nov 2010 21:20:56 +0000 (UTC) Date: Thu, 4 Nov 2010 21:20:56 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1124146672.341288905656521.JavaMail.hudson@aegis> In-Reply-To: <1377776044.91288897590602.JavaMail.hudson@aegis> References: <1377776044.91288897590602.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#318?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/318/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_21-05-43/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 minutes 6 seconds [INFO] Finished at: Thu Nov 04 04:21:00 GMT 2010 [INFO] Final Memory: 65M/166M [INFO] ------------------------------------------------------------------------ From commits-return-8003-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 21:35:24 2010 Return-Path: <commits-return-8003-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 17616 invoked from network); 4 Nov 2010 21:35:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 21:35:23 -0000 Received: (qmail 30209 invoked by uid 500); 4 Nov 2010 21:35:55 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 30148 invoked by uid 500); 4 Nov 2010 21:35:54 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 30141 invoked by uid 99); 4 Nov 2010 21:35:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:35:53 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:35:53 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 78217C010A for <commits@openjpa.apache.org>; Thu, 4 Nov 2010 21:35:33 +0000 (UTC) Date: Thu, 4 Nov 2010 21:35:33 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1851898321.361288906533476.JavaMail.hudson@aegis> In-Reply-To: <1124146672.341288905656521.JavaMail.hudson@aegis> References: <1124146672.341288905656521.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#319?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/319/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_21-33-42/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 37 seconds [INFO] Finished at: Thu Nov 04 04:35:37 GMT 2010 [INFO] Final Memory: 65M/166M [INFO] ------------------------------------------------------------------------ From commits-return-8004-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 04 21:35:27 2010 Return-Path: <commits-return-8004-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 17639 invoked from network); 4 Nov 2010 21:35:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 21:35:27 -0000 Received: (qmail 30292 invoked by uid 500); 4 Nov 2010 21:35:58 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 30236 invoked by uid 500); 4 Nov 2010 21:35:58 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 30229 invoked by uid 99); 4 Nov 2010 21:35:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:35:58 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:35:55 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 15704C0161 for <commits@openjpa.apache.org>; Thu, 4 Nov 2010 21:35:34 +0000 (UTC) Date: Thu, 4 Nov 2010 21:35:34 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <349103087.371288906534086.JavaMail.hudson@aegis> In-Reply-To: <711805294.351288905656798.JavaMail.hudson@aegis> References: <711805294.351288905656798.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #319 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/319/changes> Changes: [faywang] OPENJPA-1810: make QueryKey distinguishable for CriteriaQuery ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-kernel\src\main\java\org\apache\openjpa\datacache\QueryKey.java U openjpa-kernel\src\main\java\org\apache\openjpa\datacache\QueryCacheStoreQuery.java U openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\criteria\TestCriteria.java U openjpa-persistence\src\main\java\org\apache\openjpa\persistence\criteria\CriteriaQueryImpl.java At revision 1031263 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 54374 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1031244 at timestamp: November 4, 2010 at 4:34 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_21-33-42/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-04_21-33-42/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-04_21-33-42/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 37 seconds [INFO] Finished at: Thu Nov 04 04:35:37 GMT 2010 [INFO] Final Memory: 65M/166M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8005-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 05 09:46:46 2010 Return-Path: <commits-return-8005-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 13853 invoked from network); 5 Nov 2010 09:46:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 09:46:46 -0000 Received: (qmail 45532 invoked by uid 500); 5 Nov 2010 09:47:17 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 45473 invoked by uid 500); 5 Nov 2010 09:47:16 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 45466 invoked by uid 99); 5 Nov 2010 09:47:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 09:47:15 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 09:47:11 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 870FCC010A for <commits@openjpa.apache.org>; Fri, 5 Nov 2010 09:46:51 +0000 (UTC) Date: Fri, 5 Nov 2010 09:46:51 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1109845791.1541288950411477.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk-deploy #47 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/47/changes> Changes: [faywang] OPENJPA-1810: make QueryKey distinguishable for CriteriaQuery [mikedd] OPENJPA-1870 OPENJPA-740: adding testcase [dwoods] another attempt to fix the intermitent datacache test failures as the persist() is taking 1.2 secs on some test machines [curtisr7] OPENJPA-1872: Optimize CacheMap get(..) for non-pinned usage. [mikedd] OPENJPA-1870: Check if columnDefinition was provided before overriding blob type. [dwoods] another attempt to fix the intermitent datacache test failures [mikedd] OPENJPA-1864: Adding documentation for MaxDB Dictionary (includes new section for user reported databases which we haven't verified). [curtisr7] OPENJPA-1871: Fix FindBugs reported performance problem in XMLMetaDataSerializer. Patch contributed by Guy Korland. ------------------------------------------ [...truncated 14666 lines...] [echo] running enhancer 236 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@176a26 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 272 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@176a26 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 337 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SingleEMFTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@176a26 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SingleEMFTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SingleEMFTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 362 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SliceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@176a26 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SliceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SliceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 410 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.PersistenceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@176a26 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.PersistenceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.PersistenceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 420 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.UserDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@176a26 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.UserDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.UserDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. [INFO] Executed tasks [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.slice.TestQuery 7 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 8 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 43 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 166 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 483 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4118 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11811 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 12009 ordering WARN [main] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 4 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 13 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 11 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 429 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 531 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 220 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 359 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is removed from cache excluded permanently. Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 197 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 274 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 288 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 302 ordering WARN [main] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 316 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 204 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 283 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 174 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 240 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 24 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 22 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 205 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 295 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 163 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 240 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 154 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 215 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 32 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 214 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 291 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 197 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 281 ordering WARN [main] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 313 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 141 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 239 ordering WARN [main] openjpa.Runtime - Query "select c from Car c" is removed from cache excluded permanently. Query "select c from Car c" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 246 ordering WARN [main] openjpa.Runtime - Query "select m from Manufacturer m" is removed from cache excluded permanently. Query "select m from Manufacturer m" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.116 sec Running org.apache.openjpa.slice.TestQueryMultiThreaded 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 161 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 250 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 255 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 262 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 269 ordering WARN [Thread-3] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 163 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 227 ordering WARN [Thread-7] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 158 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 250 ordering WARN [Thread-12] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 167 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 236 ordering WARN [Thread-18] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 31 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 30 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 168 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 232 ordering WARN [Thread-22] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 137 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 198 ordering WARN [Thread-27] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 145 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 231 ordering WARN [Thread-32] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 238 ordering WARN [Thread-32] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Build timed out. Aborting Process 1288944031893 is killed. [HUDSON] Recording test results [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ channel stopped [INFO] hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown [INFO] ------------------------------------------------------------------------ [INFO] Trace hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Request.call(Request.java:137) at hudson.remoting.Channel.call(Channel.java:630) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy2.isArchivingDisabled(Unknown Source) at hudson.maven.MavenBuildProxy$Filter.isArchivingDisabled(MavenBuildProxy.java:222) at hudson.maven.reporters.MavenArtifact.archive(MavenArtifact.java:192) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:107) at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:800) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:317) at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:275) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:750) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Request.abort(Request.java:257) at hudson.remoting.Channel.terminate(Channel.java:681) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:764) at hudson.remoting.Channel$ReaderThread.run(Channel.java:963) Caused by: hudson.remoting.Channel$OrderlyShutdown ... 2 more Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:58) at hudson.remoting.Command.<init>(Command.java:47) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel.close(Channel.java:805) at hudson.slaves.Channels$1.close(Channels.java:91) at hudson.maven.ProcessCache$MavenProcess.discard(ProcessCache.java:145) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:541) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1324) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 178 minutes 6 seconds [INFO] Finished at: Fri Nov 05 09:46:48 UTC 2010 [INFO] Final Memory: 137M/564M [INFO] ------------------------------------------------------------------------ From commits-return-8006-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 05 15:12:56 2010 Return-Path: <commits-return-8006-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 65892 invoked from network); 5 Nov 2010 15:12:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 15:12:56 -0000 Received: (qmail 93634 invoked by uid 500); 5 Nov 2010 15:13:28 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 93564 invoked by uid 500); 5 Nov 2010 15:13:26 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 93556 invoked by uid 99); 5 Nov 2010 15:13:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 15:13:25 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 15:13:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 365022388A66; Fri, 5 Nov 2010 15:12:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031618 - in /openjpa/branches/1.2.x: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ Date: Fri, 05 Nov 2010 15:12:07 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101105151207.365022388A66@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Fri Nov 5 15:12:06 2010 New Revision: 1031618 URL: http://svn.apache.org/viewvc?rev=1031618&view=rev Log: OPENJPA-1289 OPENJPA-1874 Handle Oracle specific XMLType column type. Added: openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java (with props) openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java (with props) Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java?rev=1031618&r1=1031617&r2=1031618&view=diff ============================================================================== --- openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java (original) +++ openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Fri Nov 5 15:12:06 2010 @@ -640,6 +640,18 @@ public class Column default: return false; } + case 2007: // Oracle-defined opaque type code for XMLType + switch (type) { + case Types.CHAR: + case Types.LONGVARCHAR: + case Types.VARCHAR: + case Types.CLOB: + case Types.BLOB: + return true; + default: + return false; + } + default: return type == getType(); } Added: openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java?rev=1031618&view=auto ============================================================================== --- openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java (added) +++ openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java Fri Nov 5 15:12:06 2010 @@ -0,0 +1,149 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.jdbc.oracle; + +import java.sql.Connection; +import java.sql.SQLException; +import java.sql.Statement; + +import javax.persistence.EntityManager; +import javax.persistence.EntityTransaction; +import javax.sql.DataSource; + +import org.apache.openjpa.jdbc.conf.JDBCConfiguration; +import org.apache.openjpa.jdbc.sql.DBDictionary; +import org.apache.openjpa.jdbc.sql.OracleDictionary; +import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; +import org.apache.openjpa.persistence.test.PersistenceTestCase; + +public class TestOracleXmlColumn extends PersistenceTestCase { + + private static String xmlData = + "<?xml version=\"1.0\" encoding=\"UTF-8\"?> " + + "<project xmlns=\"http://maven.apache.org/POM/4.0.0\" " + + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + + "xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 " + + "http://maven.apache.org/maven-v4_0_0.xsd\">" + + "</project>"; + + private boolean skipTest(DBDictionary dict) { + return !(dict instanceof OracleDictionary); + } + + public void setUp() throws SQLException { + OpenJPAEntityManagerFactorySPI emf = createEMF(); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + // the mapping tool doesn't handle creating XML columns that map to strings + // build table manually + Connection con = ((DataSource) conf.getConnectionFactory()).getConnection(); + Statement stmt = con.createStatement(); + String ddl = "DROP TABLE XmlColEntity"; + try { + stmt.execute(ddl); + con.commit(); + } catch (SQLException se) { + // assume the table did not exist. + con.rollback(); + } + + ddl = + "CREATE TABLE XmlColEntity (ID NUMBER NOT NULL, XMLCOLUMN " + dict.xmlTypeName + + ", VERSION NUMBER, PRIMARY KEY (ID))"; + stmt.execute(ddl); + String insertSql = "INSERT into XmlColEntity (ID, XMLCOLUMN, VERSION) VALUES (42, '" + xmlData + "', 1)"; + stmt.execute(insertSql); + con.commit(); + + stmt.close(); + con.close(); + emf.close(); + } + + public void testCrudXmlColumn() throws SQLException { + // This test will fail with Oracle JDBC driver version 11.2.0.1.0. + // It passes with 10.2.0.1.0 (maybe others). + OpenJPAEntityManagerFactorySPI emf = + createEMF(XmlColEntity.class, + "openjpa.jdbc.SchemaFactory", "native", + "openjpa.jdbc.SynchronizeMappings", ""); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + + XmlColEntity xce = new XmlColEntity(); + xce.setId(1); + xce.setXmlColumn(xmlData); + + tran.begin(); + em.persist(xce); + tran.commit(); + em.close(); + + em = emf.createEntityManager(); + xce = em.find(XmlColEntity.class, 1); + assertNotNull(xce); + assertEquals(xmlData, xce.getXmlColumn()); + + em.close(); + emf.close(); + } + + public void testExistingColumn() throws SQLException { + // This test will fail with Oracle JDBC driver version 11.2.0.1.0. + // It passes with 10.2.0.1.0 (maybe others). + OpenJPAEntityManagerFactorySPI emf = + createEMF(XmlColEntity.class, + "openjpa.jdbc.SchemaFactory", "native", + "openjpa.jdbc.SynchronizeMappings", ""); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + + XmlColEntity xce = em.find(XmlColEntity.class, 42); + assertNotNull(xce); + assertNotNull(xce.getXmlColumn()); + assertEquals(xmlData, xce.getXmlColumn()); + em.close(); + emf.close(); + } +} Propchange: openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java?rev=1031618&view=auto ============================================================================== --- openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java (added) +++ openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java Fri Nov 5 15:12:06 2010 @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.jdbc.oracle; + +import javax.persistence.Basic; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Lob; +import javax.persistence.Version; + +@Entity +public class XmlColEntity { + + @Id + @Column(name = "ID") + private int id; + + @Version + @Column(name = "VERSION") + private int version; + + @Lob @Basic + @Column(name = "XMLCOLUMN") + private String xmlColumn; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public int getVersion() { + return version; + } + + public void setVersion(int version) { + this.version = version; + } + + public String getXmlColumn() { + return xmlColumn; + } + + public void setXmlColumn(String xmlColumn) { + this.xmlColumn = xmlColumn; + } +} Propchange: openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8007-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 05 15:58:10 2010 Return-Path: <commits-return-8007-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 94089 invoked from network); 5 Nov 2010 15:58:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 15:58:10 -0000 Received: (qmail 81691 invoked by uid 500); 5 Nov 2010 15:58:41 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 81634 invoked by uid 500); 5 Nov 2010 15:58:41 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 81627 invoked by uid 99); 5 Nov 2010 15:58:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 15:58:41 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 15:58:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DC0CB23888EA; Fri, 5 Nov 2010 15:57:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031648 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ Date: Fri, 05 Nov 2010 15:57:26 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101105155726.DC0CB23888EA@eris.apache.org> Author: mikedd Date: Fri Nov 5 15:57:26 2010 New Revision: 1031648 URL: http://svn.apache.org/viewvc?rev=1031648&view=rev Log: OPENJPA-1874: handle Oracle XMLType columns with @Lob annotation Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java (with props) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java (with props) Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java?rev=1031648&r1=1031647&r2=1031648&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Fri Nov 5 15:57:26 2010 @@ -717,10 +717,13 @@ public class Column case Types.CHAR: case Types.LONGVARCHAR: case Types.VARCHAR: + case Types.CLOB: + case Types.BLOB: return true; default: return false; } + default: return type == getType(); } Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java?rev=1031648&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java Fri Nov 5 15:57:26 2010 @@ -0,0 +1,149 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.jdbc.oracle; + +import java.sql.Connection; +import java.sql.SQLException; +import java.sql.Statement; + +import javax.persistence.EntityManager; +import javax.persistence.EntityTransaction; +import javax.sql.DataSource; + +import org.apache.openjpa.jdbc.conf.JDBCConfiguration; +import org.apache.openjpa.jdbc.sql.DBDictionary; +import org.apache.openjpa.jdbc.sql.OracleDictionary; +import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; +import org.apache.openjpa.persistence.test.PersistenceTestCase; + +public class TestOracleXmlColumn extends PersistenceTestCase { + + private static String xmlData = + "<?xml version=\"1.0\" encoding=\"UTF-8\"?> " + + "<project xmlns=\"http://maven.apache.org/POM/4.0.0\" " + + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + + "xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 " + + "http://maven.apache.org/maven-v4_0_0.xsd\">" + + "</project>"; + + private boolean skipTest(DBDictionary dict) { + return !(dict instanceof OracleDictionary); + } + + public void setUp() throws SQLException { + OpenJPAEntityManagerFactorySPI emf = createEMF(); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + // the mapping tool doesn't handle creating XML columns that map to strings + // build table manually + Connection con = ((DataSource) conf.getConnectionFactory()).getConnection(); + Statement stmt = con.createStatement(); + String ddl = "DROP TABLE XmlColEntity"; + try { + stmt.execute(ddl); + con.commit(); + } catch (SQLException se) { + // assume the table did not exist. + con.rollback(); + } + + ddl = + "CREATE TABLE XmlColEntity (ID NUMBER NOT NULL, XMLCOLUMN " + dict.xmlTypeName + + ", VERSION NUMBER, PRIMARY KEY (ID))"; + stmt.execute(ddl); + String insertSql = "INSERT into XmlColEntity (ID, XMLCOLUMN, VERSION) VALUES (42, '" + xmlData + "', 1)"; + stmt.execute(insertSql); + con.commit(); + + stmt.close(); + con.close(); + emf.close(); + } + + public void testCrudXmlColumn() throws SQLException { + // This test will fail with Oracle JDBC driver version 11.2.0.1.0. + // It passes with 10.2.0.1.0 (maybe others). + OpenJPAEntityManagerFactorySPI emf = + createEMF(XmlColEntity.class, + "openjpa.jdbc.SchemaFactory", "native", + "openjpa.jdbc.SynchronizeMappings", ""); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + + XmlColEntity xce = new XmlColEntity(); + xce.setId(1); + xce.setXmlColumn(xmlData); + + tran.begin(); + em.persist(xce); + tran.commit(); + em.close(); + + em = emf.createEntityManager(); + xce = em.find(XmlColEntity.class, 1); + assertNotNull(xce); + assertEquals(xmlData, xce.getXmlColumn()); + + em.close(); + emf.close(); + } + + public void testExistingColumn() throws SQLException { + // This test will fail with Oracle JDBC driver version 11.2.0.1.0. + // It passes with 10.2.0.1.0 (maybe others). + OpenJPAEntityManagerFactorySPI emf = + createEMF(XmlColEntity.class, + "openjpa.jdbc.SchemaFactory", "native", + "openjpa.jdbc.SynchronizeMappings", ""); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + + XmlColEntity xce = em.find(XmlColEntity.class, 42); + assertNotNull(xce); + assertNotNull(xce.getXmlColumn()); + assertEquals(xmlData, xce.getXmlColumn()); + em.close(); + emf.close(); + } +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java?rev=1031648&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java Fri Nov 5 15:57:26 2010 @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.jdbc.oracle; + +import javax.persistence.Basic; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Lob; +import javax.persistence.Version; + +@Entity +public class XmlColEntity { + + @Id + @Column(name = "ID") + private int id; + + @Version + @Column(name = "VERSION") + private int version; + + @Lob @Basic + @Column(name = "XMLCOLUMN") + private String xmlColumn; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public int getVersion() { + return version; + } + + public void setVersion(int version) { + this.version = version; + } + + public String getXmlColumn() { + return xmlColumn; + } + + public void setXmlColumn(String xmlColumn) { + this.xmlColumn = xmlColumn; + } +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8008-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 05 16:30:04 2010 Return-Path: <commits-return-8008-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 16576 invoked from network); 5 Nov 2010 16:30:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 16:30:04 -0000 Received: (qmail 47867 invoked by uid 500); 5 Nov 2010 16:30:35 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 47806 invoked by uid 500); 5 Nov 2010 16:30:35 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 47799 invoked by uid 99); 5 Nov 2010 16:30:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 16:30:35 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 16:30:35 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 22D86C010A for <commits@openjpa.apache.org>; Fri, 5 Nov 2010 16:30:15 +0000 (UTC) Date: Fri, 5 Nov 2010 16:30:15 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1462997700.2001288974615140.JavaMail.hudson@aegis> In-Reply-To: <1851898321.361288906533476.JavaMail.hudson@aegis> References: <1851898321.361288906533476.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#320?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/320/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-05_16-09-07/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20 minutes 41 seconds [INFO] Finished at: Thu Nov 04 23:30:18 GMT 2010 [INFO] Final Memory: 64M/172M [INFO] ------------------------------------------------------------------------ From commits-return-8009-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 05 16:30:10 2010 Return-Path: <commits-return-8009-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 16644 invoked from network); 5 Nov 2010 16:30:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 16:30:09 -0000 Received: (qmail 47955 invoked by uid 500); 5 Nov 2010 16:30:41 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 47932 invoked by uid 500); 5 Nov 2010 16:30:41 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 47925 invoked by uid 99); 5 Nov 2010 16:30:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 16:30:41 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 16:30:38 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 30469C0161 for <commits@openjpa.apache.org>; Fri, 5 Nov 2010 16:30:17 +0000 (UTC) Date: Fri, 5 Nov 2010 16:30:17 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <121700889.2011288974617196.JavaMail.hudson@aegis> In-Reply-To: <349103087.371288906534086.JavaMail.hudson@aegis> References: <349103087.371288906534086.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #320 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/320/changes> Changes: [mikedd] OPENJPA-1874: handle Oracle XMLType columns with @Lob annotation ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\schema\Column.java A openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\jdbc\oracle AU openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\jdbc\oracle\TestOracleXmlColumn.java AU openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\jdbc\oracle\XmlColEntity.java At revision 1031649 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 56726 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1031648 at timestamp: November 4, 2010 at 11:11 PM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-05_16-09-07/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-05_16-09-07/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-05_16-09-07/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20 minutes 41 seconds [INFO] Finished at: Thu Nov 04 23:30:18 GMT 2010 [INFO] Final Memory: 64M/172M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8010-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 05 17:07:36 2010 Return-Path: <commits-return-8010-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 50626 invoked from network); 5 Nov 2010 17:07:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 17:07:33 -0000 Received: (qmail 36861 invoked by uid 500); 5 Nov 2010 17:08:04 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 36832 invoked by uid 500); 5 Nov 2010 17:08:04 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 36825 invoked by uid 99); 5 Nov 2010 17:08:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 17:08:04 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 17:08:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 81E7B23889E2; Fri, 5 Nov 2010 17:06:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031663 - in /openjpa/branches/1.3.x: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ Date: Fri, 05 Nov 2010 17:06:46 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101105170646.81E7B23889E2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Fri Nov 5 17:06:46 2010 New Revision: 1031663 URL: http://svn.apache.org/viewvc?rev=1031663&view=rev Log: OPENJPA-1874: handle Oracle XMLType with @Lob annotation Added: openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java (with props) openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java (with props) Modified: openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Modified: openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java?rev=1031663&r1=1031662&r2=1031663&view=diff ============================================================================== --- openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java (original) +++ openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Fri Nov 5 17:06:46 2010 @@ -647,10 +647,13 @@ public class Column case Types.CHAR: case Types.LONGVARCHAR: case Types.VARCHAR: + case Types.CLOB: + case Types.BLOB: return true; default: return false; } + default: return type == getType(); } Added: openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java?rev=1031663&view=auto ============================================================================== --- openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java (added) +++ openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java Fri Nov 5 17:06:46 2010 @@ -0,0 +1,149 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.jdbc.oracle; + +import java.sql.Connection; +import java.sql.SQLException; +import java.sql.Statement; + +import javax.persistence.EntityManager; +import javax.persistence.EntityTransaction; +import javax.sql.DataSource; + +import org.apache.openjpa.jdbc.conf.JDBCConfiguration; +import org.apache.openjpa.jdbc.sql.DBDictionary; +import org.apache.openjpa.jdbc.sql.OracleDictionary; +import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; +import org.apache.openjpa.persistence.test.PersistenceTestCase; + +public class TestOracleXmlColumn extends PersistenceTestCase { + + private static String xmlData = + "<?xml version=\"1.0\" encoding=\"UTF-8\"?> " + + "<project xmlns=\"http://maven.apache.org/POM/4.0.0\" " + + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + + "xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 " + + "http://maven.apache.org/maven-v4_0_0.xsd\">" + + "</project>"; + + private boolean skipTest(DBDictionary dict) { + return !(dict instanceof OracleDictionary); + } + + public void setUp() throws SQLException { + OpenJPAEntityManagerFactorySPI emf = createEMF(); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + // the mapping tool doesn't handle creating XML columns that map to strings + // build table manually + Connection con = ((DataSource) conf.getConnectionFactory()).getConnection(); + Statement stmt = con.createStatement(); + String ddl = "DROP TABLE XmlColEntity"; + try { + stmt.execute(ddl); + con.commit(); + } catch (SQLException se) { + // assume the table did not exist. + con.rollback(); + } + + ddl = + "CREATE TABLE XmlColEntity (ID NUMBER NOT NULL, XMLCOLUMN " + dict.xmlTypeName + + ", VERSION NUMBER, PRIMARY KEY (ID))"; + stmt.execute(ddl); + String insertSql = "INSERT into XmlColEntity (ID, XMLCOLUMN, VERSION) VALUES (42, '" + xmlData + "', 1)"; + stmt.execute(insertSql); + con.commit(); + + stmt.close(); + con.close(); + emf.close(); + } + + public void testCrudXmlColumn() throws SQLException { + // This test will fail with Oracle JDBC driver version 11.2.0.1.0. + // It passes with 10.2.0.1.0 (maybe others). + OpenJPAEntityManagerFactorySPI emf = + createEMF(XmlColEntity.class, + "openjpa.jdbc.SchemaFactory", "native", + "openjpa.jdbc.SynchronizeMappings", ""); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + + XmlColEntity xce = new XmlColEntity(); + xce.setId(1); + xce.setXmlColumn(xmlData); + + tran.begin(); + em.persist(xce); + tran.commit(); + em.close(); + + em = emf.createEntityManager(); + xce = em.find(XmlColEntity.class, 1); + assertNotNull(xce); + assertEquals(xmlData, xce.getXmlColumn()); + + em.close(); + emf.close(); + } + + public void testExistingColumn() throws SQLException { + // This test will fail with Oracle JDBC driver version 11.2.0.1.0. + // It passes with 10.2.0.1.0 (maybe others). + OpenJPAEntityManagerFactorySPI emf = + createEMF(XmlColEntity.class, + "openjpa.jdbc.SchemaFactory", "native", + "openjpa.jdbc.SynchronizeMappings", ""); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + + XmlColEntity xce = em.find(XmlColEntity.class, 42); + assertNotNull(xce); + assertNotNull(xce.getXmlColumn()); + assertEquals(xmlData, xce.getXmlColumn()); + em.close(); + emf.close(); + } +} Propchange: openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java?rev=1031663&view=auto ============================================================================== --- openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java (added) +++ openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java Fri Nov 5 17:06:46 2010 @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.jdbc.oracle; + +import javax.persistence.Basic; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Lob; +import javax.persistence.Version; + +@Entity +public class XmlColEntity { + + @Id + @Column(name = "ID") + private int id; + + @Version + @Column(name = "VERSION") + private int version; + + @Lob @Basic + @Column(name = "XMLCOLUMN") + private String xmlColumn; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public int getVersion() { + return version; + } + + public void setVersion(int version) { + this.version = version; + } + + public String getXmlColumn() { + return xmlColumn; + } + + public void setXmlColumn(String xmlColumn) { + this.xmlColumn = xmlColumn; + } +} Propchange: openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8011-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 05 18:50:55 2010 Return-Path: <commits-return-8011-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 23002 invoked from network); 5 Nov 2010 18:50:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 18:50:55 -0000 Received: (qmail 67666 invoked by uid 500); 5 Nov 2010 18:51:27 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 67637 invoked by uid 500); 5 Nov 2010 18:51:27 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 67630 invoked by uid 99); 5 Nov 2010 18:51:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 18:51:27 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 18:51:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C11582388994; Fri, 5 Nov 2010 18:50:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031710 - in /openjpa/branches/2.0.x: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ Date: Fri, 05 Nov 2010 18:50:08 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101105185008.C11582388994@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Fri Nov 5 18:50:08 2010 New Revision: 1031710 URL: http://svn.apache.org/viewvc?rev=1031710&view=rev Log: OPENJPA-1874: Handle Oracle XMLType columns with @Lob annotation Added: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java (with props) openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java (with props) Modified: openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Modified: openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java?rev=1031710&r1=1031709&r2=1031710&view=diff ============================================================================== --- openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java (original) +++ openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Fri Nov 5 18:50:08 2010 @@ -714,10 +714,13 @@ public class Column case Types.CHAR: case Types.LONGVARCHAR: case Types.VARCHAR: + case Types.CLOB: + case Types.BLOB: return true; default: return false; } + default: return type == getType(); } Added: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java?rev=1031710&view=auto ============================================================================== --- openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java (added) +++ openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java Fri Nov 5 18:50:08 2010 @@ -0,0 +1,149 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.jdbc.oracle; + +import java.sql.Connection; +import java.sql.SQLException; +import java.sql.Statement; + +import javax.persistence.EntityManager; +import javax.persistence.EntityTransaction; +import javax.sql.DataSource; + +import org.apache.openjpa.jdbc.conf.JDBCConfiguration; +import org.apache.openjpa.jdbc.sql.DBDictionary; +import org.apache.openjpa.jdbc.sql.OracleDictionary; +import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI; +import org.apache.openjpa.persistence.test.PersistenceTestCase; + +public class TestOracleXmlColumn extends PersistenceTestCase { + + private static String xmlData = + "<?xml version=\"1.0\" encoding=\"UTF-8\"?> " + + "<project xmlns=\"http://maven.apache.org/POM/4.0.0\" " + + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + + "xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 " + + "http://maven.apache.org/maven-v4_0_0.xsd\">" + + "</project>"; + + private boolean skipTest(DBDictionary dict) { + return !(dict instanceof OracleDictionary); + } + + public void setUp() throws SQLException { + OpenJPAEntityManagerFactorySPI emf = createEMF(); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + // the mapping tool doesn't handle creating XML columns that map to strings + // build table manually + Connection con = ((DataSource) conf.getConnectionFactory()).getConnection(); + Statement stmt = con.createStatement(); + String ddl = "DROP TABLE XmlColEntity"; + try { + stmt.execute(ddl); + con.commit(); + } catch (SQLException se) { + // assume the table did not exist. + con.rollback(); + } + + ddl = + "CREATE TABLE XmlColEntity (ID NUMBER NOT NULL, XMLCOLUMN " + dict.xmlTypeName + + ", VERSION NUMBER, PRIMARY KEY (ID))"; + stmt.execute(ddl); + String insertSql = "INSERT into XmlColEntity (ID, XMLCOLUMN, VERSION) VALUES (42, '" + xmlData + "', 1)"; + stmt.execute(insertSql); + con.commit(); + + stmt.close(); + con.close(); + emf.close(); + } + + public void testCrudXmlColumn() throws SQLException { + // This test will fail with Oracle JDBC driver version 11.2.0.1.0. + // It passes with 10.2.0.1.0 (maybe others). + OpenJPAEntityManagerFactorySPI emf = + createEMF(XmlColEntity.class, + "openjpa.jdbc.SchemaFactory", "native", + "openjpa.jdbc.SynchronizeMappings", ""); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + + XmlColEntity xce = new XmlColEntity(); + xce.setId(1); + xce.setXmlColumn(xmlData); + + tran.begin(); + em.persist(xce); + tran.commit(); + em.close(); + + em = emf.createEntityManager(); + xce = em.find(XmlColEntity.class, 1); + assertNotNull(xce); + assertEquals(xmlData, xce.getXmlColumn()); + + em.close(); + emf.close(); + } + + public void testExistingColumn() throws SQLException { + // This test will fail with Oracle JDBC driver version 11.2.0.1.0. + // It passes with 10.2.0.1.0 (maybe others). + OpenJPAEntityManagerFactorySPI emf = + createEMF(XmlColEntity.class, + "openjpa.jdbc.SchemaFactory", "native", + "openjpa.jdbc.SynchronizeMappings", ""); + + JDBCConfiguration conf = ((JDBCConfiguration) emf.getConfiguration()); + DBDictionary dict = conf.getDBDictionaryInstance(); + + if (skipTest(dict)) { + emf.close(); + return; + } + + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + + XmlColEntity xce = em.find(XmlColEntity.class, 42); + assertNotNull(xce); + assertNotNull(xce.getXmlColumn()); + assertEquals(xmlData, xce.getXmlColumn()); + em.close(); + emf.close(); + } +} Propchange: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java?rev=1031710&view=auto ============================================================================== --- openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java (added) +++ openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java Fri Nov 5 18:50:08 2010 @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.jdbc.oracle; + +import javax.persistence.Basic; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Lob; +import javax.persistence.Version; + +@Entity +public class XmlColEntity { + + @Id + @Column(name = "ID") + private int id; + + @Version + @Column(name = "VERSION") + private int version; + + @Lob @Basic + @Column(name = "XMLCOLUMN") + private String xmlColumn; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public int getVersion() { + return version; + } + + public void setVersion(int version) { + this.version = version; + } + + public String getXmlColumn() { + return xmlColumn; + } + + public void setXmlColumn(String xmlColumn) { + this.xmlColumn = xmlColumn; + } +} Propchange: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8012-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 05 19:59:58 2010 Return-Path: <commits-return-8012-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 71148 invoked from network); 5 Nov 2010 19:59:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 19:59:58 -0000 Received: (qmail 19559 invoked by uid 500); 5 Nov 2010 20:00:30 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 19511 invoked by uid 500); 5 Nov 2010 20:00:29 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 19504 invoked by uid 99); 5 Nov 2010 20:00:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 20:00:29 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 20:00:29 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 231E4C0161 for <commits@openjpa.apache.org>; Fri, 5 Nov 2010 20:00:08 +0000 (UTC) Date: Fri, 5 Nov 2010 20:00:08 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1299945317.2331288987208142.JavaMail.hudson@aegis> Subject: Hudson build became unstable: OpenJPA-20x-deploy #23 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/23/changes> From commits-return-8013-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 05 20:00:00 2010 Return-Path: <commits-return-8013-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 71175 invoked from network); 5 Nov 2010 19:59:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 19:59:59 -0000 Received: (qmail 19610 invoked by uid 500); 5 Nov 2010 20:00:31 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 19587 invoked by uid 500); 5 Nov 2010 20:00:31 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 19580 invoked by uid 99); 5 Nov 2010 20:00:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 20:00:31 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 20:00:29 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id C25C4C010A for <commits@openjpa.apache.org>; Fri, 5 Nov 2010 20:00:07 +0000 (UTC) Date: Fri, 5 Nov 2010 20:00:07 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1955496630.2321288987207789.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJPA-2?= =?UTF-8?Q?0x-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-persistence-jdbc/23/changes> From commits-return-8014-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 06 08:17:29 2010 Return-Path: <commits-return-8014-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 61413 invoked from network); 6 Nov 2010 08:17:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Nov 2010 08:17:29 -0000 Received: (qmail 59403 invoked by uid 500); 6 Nov 2010 08:18:00 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 59349 invoked by uid 500); 6 Nov 2010 08:17:58 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 59342 invoked by uid 99); 6 Nov 2010 08:17:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 08:17:57 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 08:17:57 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 3FAE4C010A for <commits@openjpa.apache.org>; Sat, 6 Nov 2010 08:17:36 +0000 (UTC) Date: Sat, 6 Nov 2010 08:17:36 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1570531823.2961289031456159.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJPA-tr?= =?UTF-8?Q?unk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#48?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/48/changes> From commits-return-8015-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 06 08:17:33 2010 Return-Path: <commits-return-8015-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 61428 invoked from network); 6 Nov 2010 08:17:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Nov 2010 08:17:33 -0000 Received: (qmail 59473 invoked by uid 500); 6 Nov 2010 08:18:04 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 59420 invoked by uid 500); 6 Nov 2010 08:18:04 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 59413 invoked by uid 99); 6 Nov 2010 08:18:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 08:18:04 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 08:17:58 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id EA8EEC0161 for <commits@openjpa.apache.org>; Sat, 6 Nov 2010 08:17:36 +0000 (UTC) Date: Sat, 6 Nov 2010 08:17:36 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <2001906041.2971289031456959.JavaMail.hudson@aegis> In-Reply-To: <1109845791.1541288950411477.JavaMail.hudson@aegis> References: <1109845791.1541288950411477.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk-deploy #48 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/48/changes> Changes: [mikedd] OPENJPA-1874: handle Oracle XMLType columns with @Lob annotation ------------------------------------------ [...truncated 17719 lines...] [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/ConstraintDefinitionValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderCustomizableContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$2.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$3.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$4.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$5.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$6.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$2.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/EnumerationConverter.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderDefinedContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/IOUtils.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorIdentity.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/JPATraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingRelevant.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/DefaultTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver$CacheEntry.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/SimpleTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ElementDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ConstructorDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ProcedureDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ReturnAccess.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterAccess.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/AppendValidationToList.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidatorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintViolationImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorContextImpl$ConstraintViolationBuilderImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContext.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidationListener.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Groups.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Group.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/GroupsComputer.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultMessageInterpolator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BaseAppendValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultValidationProviderResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303MetaBeanFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext$XMLMetaBeanManagerCreator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BeanDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintCached.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultConstraintValidatorFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Property.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Bean.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConfigurationImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfiguration$Properties.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfiguration.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/NestedMetaProperty.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/UnknownPropertyException.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator$Jsr303ValidationCallback.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder$ConstraintOverrides.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToBuilder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/PropertyDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToMeta.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidationProvider.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GraphBeanIdentity.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfBoolean.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfShort.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfObject.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfByte.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotNullValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForMap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForCollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmpty.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorForDate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfFloat.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/EmailValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/Email.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertFalseValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForDate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForMap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorForCalendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NullValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForCollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfLong.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertTrueValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PatternValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfDouble.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfChar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForCalendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfInt.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [INFO] Replacing original artifact with shaded artifact. [INFO] Replacing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> with <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-shaded.jar> [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT.jar [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT.jar [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-20101106.064940-94.jar 6198K uploaded (openjpa-all-2.1.0-20101106.064940-94.jar) [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'snapshot org.apache.openjpa:openjpa-all:2.1.0-SNAPSHOT' [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'artifact org.apache.openjpa:openjpa-all' [INFO] Uploading project information for openjpa-all 2.1.0-20101106.064940-94 [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-20101106.064940-94-tests.jar 20K uploaded (openjpa-all-2.1.0-20101106.064940-94-tests.jar) [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/dependency-reduced-pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-all/builds/2010-11-06_06-48-43/archive/org.apache.openjpa/openjpa-all/2.1.0-SNAPSHOT/dependency-reduced-pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-all/builds/2010-11-06_06-48-43/archive/org.apache.openjpa/openjpa-all/2.1.0-20101106.064940-94/openjpa-all-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-all/builds/2010-11-06_06-48-43/archive/org.apache.openjpa/openjpa-all/2.1.0-20101106.064940-94/openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Project Docs and Assemblies [INFO] task-segment: [clean, deploy] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [assembly:attached {execution: bin}] [INFO] Reading assembly descriptor: assembly.xml [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjpa:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjpa:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead [INFO] [assembly:attached {execution: sources}] [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-source.zip [WARNING] Artifact does not contain any legal files: apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/pom.xml> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-20101106.064940-94.pom 21K uploaded (apache-openjpa-2.1.0-20101106.064940-94.pom) [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'snapshot org.apache.openjpa:apache-openjpa:2.1.0-SNAPSHOT' [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'artifact org.apache.openjpa:apache-openjpa' [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-20101106.064940-94-binary.zip 14926K uploaded (apache-openjpa-2.1.0-20101106.064940-94-binary.zip) [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-20101106.064940-94-source.zip [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-06_06-48-43/archive/org.apache.openjpa/apache-openjpa/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-06_06-48-43/archive/org.apache.openjpa/apache-openjpa/2.1.0-20101106.064940-94/apache-openjpa-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-06_06-48-43/archive/org.apache.openjpa/apache-openjpa/2.1.0-20101106.064940-94/apache-openjpa-2.1.0-SNAPSHOT-binary.zip [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-06_06-48-43/archive/org.apache.openjpa/apache-openjpa/2.1.0-20101106.064940-94/apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Java heap space [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2786) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94) at sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:61) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:492) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:457) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:411) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 88 minutes 43 seconds [INFO] Finished at: Sat Nov 06 08:17:35 UTC 2010 [INFO] Final Memory: 360M/1236M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8016-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 06 17:25:02 2010 Return-Path: <commits-return-8016-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 67877 invoked from network); 6 Nov 2010 17:25:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Nov 2010 17:25:02 -0000 Received: (qmail 41815 invoked by uid 500); 6 Nov 2010 17:25:33 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 41770 invoked by uid 500); 6 Nov 2010 17:25:33 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 41763 invoked by uid 99); 6 Nov 2010 17:25:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 17:25:33 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 17:25:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1B6D423889E7; Sat, 6 Nov 2010 17:24:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1032116 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/ openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/ Date: Sat, 06 Nov 2010 17:24:17 -0000 To: commits@openjpa.apache.org From: faywang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101106172418.1B6D423889E7@eris.apache.org> Author: faywang Date: Sat Nov 6 17:24:17 2010 New Revision: 1032116 URL: http://svn.apache.org/viewvc?rev=1032116&view=rev Log: OPENJPA-1762: lock join table when extended pessimistic scope is used Added: openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java (with props) openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/PhoneNumber.java (with props) openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/TestLocking.java (with props) Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/ContainerFieldStrategy.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/MapTableFieldStrategy.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java?rev=1032116&r1=1032115&r2=1032116&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java Sat Nov 6 17:24:17 2010 @@ -26,6 +26,10 @@ import java.util.ArrayList; import java.util.List; import org.apache.openjpa.jdbc.meta.ClassMapping; +import org.apache.openjpa.jdbc.meta.FieldMapping; +import org.apache.openjpa.jdbc.meta.Strategy; +import org.apache.openjpa.jdbc.meta.strats.ContainerFieldStrategy; +import org.apache.openjpa.jdbc.schema.ForeignKey; import org.apache.openjpa.jdbc.sql.DBDictionary; import org.apache.openjpa.jdbc.sql.SQLBuffer; import org.apache.openjpa.jdbc.sql.SQLFactory; @@ -124,6 +128,7 @@ public class PessimisticLockManager ClassMapping mapping = (ClassMapping) sm.getMetaData(); List<SQLBuffer> sqls = getLockRows(dict, id, mapping, fetch, _store.getSQLFactory()); + lockJoinTables(sqls, dict, id, mapping, fetch, _store.getSQLFactory()); ensureStoreManagerTransaction(); Connection conn = _store.getConnection(); @@ -163,6 +168,21 @@ public class PessimisticLockManager sqls.add(select.toSelect(true, fetch)); return sqls; } + + protected void lockJoinTables(List<SQLBuffer> sqls, DBDictionary dict, Object id, ClassMapping mapping, + JDBCFetchConfiguration fetch, SQLFactory factory) { + FieldMapping[] fms = mapping.getFieldMappings(); + for (int i = 0; i < fms.length; i++) { + Strategy strat = fms[i].getStrategy(); + if (strat instanceof ContainerFieldStrategy) { + ForeignKey fk = ((ContainerFieldStrategy)strat).getJoinForeignKey(); + Select select = factory.newSelect(); + select.select(fk.getColumns()); + select.whereForeignKey(fk, id, fms[i].getDefiningMapping(), _store); + sqls.add(select.toSelect(true, fetch)); + } + } + } /** * Enforce that we have an actual transaction in progress so that we can Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/ContainerFieldStrategy.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/ContainerFieldStrategy.java?rev=1032116&r1=1032115&r2=1032116&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/ContainerFieldStrategy.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/ContainerFieldStrategy.java Sat Nov 6 17:24:17 2010 @@ -77,7 +77,7 @@ public abstract class ContainerFieldStra appendSize(sql, sel, joins); } - protected abstract ForeignKey getJoinForeignKey(); + public abstract ForeignKey getJoinForeignKey(); public void appendSize(SQLBuffer sql, Select sel, Joins joins) { DBDictionary dict = field.getMappingRepository().getDBDictionary(); Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/MapTableFieldStrategy.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/MapTableFieldStrategy.java?rev=1032116&r1=1032115&r2=1032116&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/MapTableFieldStrategy.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/MapTableFieldStrategy.java Sat Nov 6 17:24:17 2010 @@ -182,7 +182,7 @@ public abstract class MapTableFieldStrat return field.join(joins, forceOuter, true); } - protected ForeignKey getJoinForeignKey() { + public ForeignKey getJoinForeignKey() { return field.getJoinForeignKey(); } Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java?rev=1032116&r1=1032115&r2=1032116&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java Sat Nov 6 17:24:17 2010 @@ -597,7 +597,7 @@ public abstract class StoreCollectionFie return loadElement(null, store, fetch, res, joins); } - protected ForeignKey getJoinForeignKey() { + public ForeignKey getJoinForeignKey() { return getJoinForeignKey(getDefaultElementMapping(false)); } Added: openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java?rev=1032116&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java (added) +++ openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java Sat Nov 6 17:24:17 2010 @@ -0,0 +1,98 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.lockmgr; + +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.util.List; + +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToMany; +import javax.persistence.ManyToOne; + + +@Entity +public class Person implements Externalizable { + + private int id; + + private String firstName; + private String lastName; + private List<PhoneNumber> phoneNumbers; + + @Id + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + @ManyToMany(mappedBy = "owners") + public List<PhoneNumber> getPhoneNumbers(){ + return phoneNumbers; + } + + public void setPhoneNumbers(List<PhoneNumber> numbers){ + phoneNumbers = numbers; + } + + public String toString() { + return this.getClass().getName() + '@' + + Integer.toHexString(System.identityHashCode(this)) + "[id=" + + getId() + "] first=" + getFirstName() + + ", last=" + getLastName() + " phone numbers="+phoneNumbers.toString(); + } + + public void readExternal(ObjectInput in) throws IOException, + ClassNotFoundException { + id = in.readInt(); + firstName = (String) in.readObject(); + lastName = (String) in.readObject(); + phoneNumbers = (List<PhoneNumber>) in.readObject(); + } + + public void writeExternal(ObjectOutput out) throws IOException { + out.writeInt(id); + out.writeObject(firstName); + out.writeObject(lastName); + out.writeObject(phoneNumbers); + } +} Propchange: openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java ------------------------------------------------------------------------------ svn:eol-sytle = native Added: openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/PhoneNumber.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/PhoneNumber.java?rev=1032116&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/PhoneNumber.java (added) +++ openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/PhoneNumber.java Sat Nov 6 17:24:17 2010 @@ -0,0 +1,53 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.lockmgr; + +import java.io.Serializable; +import java.util.List; + +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToMany; + +@Entity +public class PhoneNumber implements Serializable { + private static final long serialVersionUID = 6918497432632022604L; + + PhoneNumber() { + } + + public PhoneNumber(String p) { + number = p; + } + + @Id + String number; + + @ManyToMany + List<Person> owners; + + public void setOwners(List<Person> o) { + owners = o; + } + + @Override + public String toString() { + return number; + } +} Propchange: openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/PhoneNumber.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/TestLocking.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/TestLocking.java?rev=1032116&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/TestLocking.java (added) +++ openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/TestLocking.java Sat Nov 6 17:24:17 2010 @@ -0,0 +1,127 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.lockmgr; + +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.persistence.LockModeType; +import javax.persistence.PessimisticLockScope; + +import org.apache.openjpa.persistence.OpenJPAEntityManagerSPI; +import org.apache.openjpa.persistence.test.SQLListenerTestCase; + +public class TestLocking extends SQLListenerTestCase { + String _phone = "5075555555"; + + public void setUp() { + super.setUp(CLEAR_TABLES, Person.class, PhoneNumber.class + // ,"openjpa.Log", "SQL=trace" + ); + populate(); + } + + public void testExtendedLockScope() throws Exception { + Map<String, Object> props = new HashMap<String, Object>(); + props.put("javax.persistence.lock.scope", PessimisticLockScope.EXTENDED); + + OpenJPAEntityManagerSPI em1 = emf.createEntityManager(); + OpenJPAEntityManagerSPI em2 = emf.createEntityManager(); + CommitterThread committer = new CommitterThread(em2); + + em1.getTransaction().begin(); + Person e1 = em1.find(Person.class, 1); + assertEquals(1, e1.getPhoneNumbers().size()); + + // This SHOULD lock Employee with id=1 AND the join table. + // + // pg 86 + // Element collections and relationships owned by the entity that are contained in join tables will be + // locked if the javax.persistence.lock.scope property is specified with a value of + // PessimisticLockScope.EXTENDED. The state of entities referenced by such relationships will + // not be locked (unless those entities are explicitly locked). This property may be passed as an argument + // to the methods of the EntityManager, Query, and TypedQuery interfaces that allow lock modes + // to be specified or used with the NamedQuery annotation. + + em1.refresh(e1, LockModeType.PESSIMISTIC_FORCE_INCREMENT, props); + + // Kick off the committer thread + committer.start(); + + // Make sure to sleep at least for 5 seconds AFTER the committer calls commit + while (System.currentTimeMillis() - committer.sleepStartTime < 5000) { + Thread.sleep(5000); + } + // The committer should still be waiting because the em1.refresh(...) call should have locked the join table and + // the remove can't complete + assertFalse(committer.commitComplete); + em1.getTransaction().commit(); + em1.close(); + // wait for child thread to finish + committer.join(); + } + + private class CommitterThread extends Thread { + OpenJPAEntityManagerSPI _em2; + boolean inCommit = false; + boolean commitComplete = false; + long sleepStartTime = Long.MAX_VALUE; + + public CommitterThread(OpenJPAEntityManagerSPI e) { + _em2 = e; + } + + @Override + public void run() { + _em2.getTransaction().begin(); + PhoneNumber phoneNumber = _em2.find(PhoneNumber.class, _phone); + _em2.remove(phoneNumber); + inCommit = true; + sleepStartTime = System.currentTimeMillis(); + _em2.getTransaction().commit(); + commitComplete = true; + _em2.close(); + } + } + + private void populate() { + OpenJPAEntityManagerSPI em = emf.createEntityManager(); + em.getTransaction().begin(); + + PhoneNumber p = new PhoneNumber(_phone); + List<PhoneNumber> numbers = Arrays.asList(new PhoneNumber[] { p }); + + Person e1 = new Person(); + e1.setId(1); + e1.setPhoneNumbers(numbers); + Person e2 = new Person(); + e2.setId(2); + e2.setPhoneNumbers(numbers); + + p.setOwners(Arrays.asList(new Person[] { e1, e2 })); + em.persist(e1); + em.persist(e2); + em.persist(p); + + em.getTransaction().commit(); + em.close(); + } +} Propchange: openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/TestLocking.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8017-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 06 17:54:38 2010 Return-Path: <commits-return-8017-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 78812 invoked from network); 6 Nov 2010 17:54:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Nov 2010 17:54:38 -0000 Received: (qmail 72517 invoked by uid 500); 6 Nov 2010 17:55:10 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 72455 invoked by uid 500); 6 Nov 2010 17:55:09 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 72448 invoked by uid 99); 6 Nov 2010 17:55:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 17:55:09 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 17:55:08 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 92F57C0161 for <commits@openjpa.apache.org>; Sat, 6 Nov 2010 17:54:48 +0000 (UTC) Date: Sat, 6 Nov 2010 17:54:48 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <331540729.3231289066088601.JavaMail.hudson@aegis> In-Reply-To: <121700889.2011288974617196.JavaMail.hudson@aegis> References: <121700889.2011288974617196.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #321 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/321/changes> Changes: [faywang] OPENJPA-1762: lock join table when extended pessimistic scope is used ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\kernel\PessimisticLockManager.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\meta\strats\StoreCollectionFieldStrategy.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\meta\strats\ContainerFieldStrategy.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\meta\strats\MapTableFieldStrategy.java AU openjpa-persistence-locking\src\test\java\org\apache\openjpa\persistence\lockmgr\Person.java AU openjpa-persistence-locking\src\test\java\org\apache\openjpa\persistence\lockmgr\PhoneNumber.java AU openjpa-persistence-locking\src\test\java\org\apache\openjpa\persistence\lockmgr\TestLocking.java At revision 1032118 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 59156 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1032116 at timestamp: November 6, 2010 at 12:39 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-06_17-38-10/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-06_17-38-10/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-06_17-38-10/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16 minutes 20 seconds [INFO] Finished at: Sat Nov 06 00:54:51 GMT 2010 [INFO] Final Memory: 65M/165M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8018-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 06 17:54:40 2010 Return-Path: <commits-return-8018-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 78836 invoked from network); 6 Nov 2010 17:54:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Nov 2010 17:54:40 -0000 Received: (qmail 72581 invoked by uid 500); 6 Nov 2010 17:55:11 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 72528 invoked by uid 500); 6 Nov 2010 17:55:11 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 72521 invoked by uid 99); 6 Nov 2010 17:55:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 17:55:11 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Nov 2010 17:55:09 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id E82BBC010A for <commits@openjpa.apache.org>; Sat, 6 Nov 2010 17:54:47 +0000 (UTC) Date: Sat, 6 Nov 2010 17:54:47 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1251368620.3221289066087867.JavaMail.hudson@aegis> In-Reply-To: <1462997700.2001288974615140.JavaMail.hudson@aegis> References: <1462997700.2001288974615140.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#321?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/321/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-06_17-38-10/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16 minutes 20 seconds [INFO] Finished at: Sat Nov 06 00:54:51 GMT 2010 [INFO] Final Memory: 65M/165M [INFO] ------------------------------------------------------------------------ From commits-return-8019-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 07 08:10:51 2010 Return-Path: <commits-return-8019-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 59809 invoked from network); 7 Nov 2010 08:10:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Nov 2010 08:10:51 -0000 Received: (qmail 18783 invoked by uid 500); 7 Nov 2010 08:11:23 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 18717 invoked by uid 500); 7 Nov 2010 08:11:21 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 18706 invoked by uid 99); 7 Nov 2010 08:11:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 08:11:20 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 08:11:20 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id BC152C010A for <commits@openjpa.apache.org>; Sun, 7 Nov 2010 08:10:59 +0000 (UTC) Date: Sun, 7 Nov 2010 08:10:59 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1336438523.3831289117459725.JavaMail.hudson@aegis> In-Reply-To: <1570531823.2961289031456159.JavaMail.hudson@aegis> References: <1570531823.2961289031456159.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJPA-t?= =?UTF-8?Q?runk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#49?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/49/> From commits-return-8020-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 07 08:10:52 2010 Return-Path: <commits-return-8020-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 59830 invoked from network); 7 Nov 2010 08:10:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Nov 2010 08:10:52 -0000 Received: (qmail 18855 invoked by uid 500); 7 Nov 2010 08:11:24 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 18797 invoked by uid 500); 7 Nov 2010 08:11:23 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 18790 invoked by uid 99); 7 Nov 2010 08:11:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 08:11:23 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 08:11:21 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 5EB9FC0161 for <commits@openjpa.apache.org>; Sun, 7 Nov 2010 08:11:00 +0000 (UTC) Date: Sun, 7 Nov 2010 08:11:00 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <712050121.3841289117460352.JavaMail.hudson@aegis> In-Reply-To: <2001906041.2971289031456959.JavaMail.hudson@aegis> References: <2001906041.2971289031456959.JavaMail.hudson@aegis> Subject: Hudson build is back to normal : OpenJPA-trunk-deploy #49 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/49/changes> From commits-return-8021-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 07 17:22:21 2010 Return-Path: <commits-return-8021-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 72254 invoked from network); 7 Nov 2010 17:22:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Nov 2010 17:22:21 -0000 Received: (qmail 98741 invoked by uid 500); 7 Nov 2010 17:22:53 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 98694 invoked by uid 500); 7 Nov 2010 17:22:52 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 98687 invoked by uid 99); 7 Nov 2010 17:22:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 17:22:52 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 17:22:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9265123889E0; Sun, 7 Nov 2010 17:21:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1032316 - /openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml Date: Sun, 07 Nov 2010 17:21:35 -0000 To: commits@openjpa.apache.org From: mtylenda@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101107172135.9265123889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mtylenda Date: Sun Nov 7 17:21:35 2010 New Revision: 1032316 URL: http://svn.apache.org/viewvc?rev=1032316&view=rev Log: OPENJPA-1837: Revert the statement about XML column as the mentioned limitation does exist in that case. Modified: openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml Modified: openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml?rev=1032316&r1=1032315&r2=1032316&view=diff ============================================================================== --- openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml (original) +++ openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml Sun Nov 7 17:21:35 2010 @@ -1273,22 +1273,22 @@ openjpa.ConnectionRetainMode: always Mapping persistent attributes to <link linkend="ref_guide_xmlmapping">XML columns</link> requires a JDBC 4 compliant driver if XML strings are longer than 4000 bytes, as counted in database. Otherwise an <literal>ORA-01461: can bind a LONG value only for insert into a LONG column</literal> -error may result. This limitation is removed in Oracle jdbc driver 11.2.0.x. +error may result. </para> </listitem> <listitem> <para> If Oracle dictionary property <literal>MaxEmbeddedBlobSize</literal> or <literal>MaxEmbeddedClobSize</literal> is set to some limit (i.e. not -1) and embedded collection -with blob/clob attribute is used, a +with BLOB/CLOB attribute is used, a <literal>"org.apache.openjpa.persistence.ArgumentException: "x.y.z.EmbedOwner.embedCollection<element:class x.y.z.EmbedValue>" is mapped as embedded, but embedded field "x.y.z.EmbedOwner.embedCollection.x.y.z.EmbedValue.blob" is not embeddable. Embedded element/key/value types are limited to simple fields and direct relations to other -persistent types"</literal> error may result. To overcome this limitation, either use jdbc driver +persistent types"</literal> error may result. To overcome this limitation, either use JDBC driver 11.2.0.x.0 (or later version) or set both <literal>MaxEmbeddedBlobSize</literal> and -<literal>MaxEmbeddedClobSize</literal> oracle dictiionary properties to -1. +<literal>MaxEmbeddedClobSize</literal> properties to -1. </para> </listitem> </itemizedlist> From commits-return-8022-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 07 17:29:39 2010 Return-Path: <commits-return-8022-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 76399 invoked from network); 7 Nov 2010 17:29:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Nov 2010 17:29:39 -0000 Received: (qmail 9786 invoked by uid 500); 7 Nov 2010 17:30:11 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 9759 invoked by uid 500); 7 Nov 2010 17:30:11 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 9752 invoked by uid 99); 7 Nov 2010 17:30:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 17:30:11 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 17:30:09 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9505D23889E0; Sun, 7 Nov 2010 17:28:54 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1032321 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java Date: Sun, 07 Nov 2010 17:28:54 -0000 To: commits@openjpa.apache.org From: mtylenda@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101107172854.9505D23889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mtylenda Date: Sun Nov 7 17:28:54 2010 New Revision: 1032321 URL: http://svn.apache.org/viewvc?rev=1032321&view=rev Log: OPENJPA-1864: Fix the class comment. Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java?rev=1032321&r1=1032320&r2=1032321&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java Sun Nov 7 17:28:54 2010 @@ -19,8 +19,8 @@ package org.apache.openjpa.jdbc.sql; /** - * Database dictionary for using SAP's MaxDB Dictionary. Currently just a placeholder, the behavior does not differ from - * <code> org.apache.openjpa.jdbc.sql.Dictionary</code> + * Database dictionary for using SAP's MaxDB. Currently just a placeholder, the behavior does not differ from + * <code>org.apache.openjpa.jdbc.sql.DBDictionary</code> * */ public class MaxDBDictionary extends DBDictionary { From commits-return-8023-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 07 17:58:51 2010 Return-Path: <commits-return-8023-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 86206 invoked from network); 7 Nov 2010 17:58:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Nov 2010 17:58:51 -0000 Received: (qmail 42197 invoked by uid 500); 7 Nov 2010 17:59:22 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 42152 invoked by uid 500); 7 Nov 2010 17:59:22 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 42140 invoked by uid 99); 7 Nov 2010 17:59:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 17:59:22 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 17:59:20 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 47206C010A for <commits@openjpa.apache.org>; Sun, 7 Nov 2010 17:58:59 +0000 (UTC) Date: Sun, 7 Nov 2010 17:58:59 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <270319277.3991289152739172.JavaMail.hudson@aegis> In-Reply-To: <1251368620.3221289066087867.JavaMail.hudson@aegis> References: <1251368620.3221289066087867.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#322?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/322/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-07_17-40-32/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18 minutes 6 seconds [INFO] Finished at: Sun Nov 07 00:59:02 GMT 2010 [INFO] Final Memory: 65M/174M [INFO] ------------------------------------------------------------------------ From commits-return-8024-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 07 17:58:52 2010 Return-Path: <commits-return-8024-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 86228 invoked from network); 7 Nov 2010 17:58:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Nov 2010 17:58:52 -0000 Received: (qmail 42242 invoked by uid 500); 7 Nov 2010 17:59:24 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 42222 invoked by uid 500); 7 Nov 2010 17:59:24 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 42215 invoked by uid 99); 7 Nov 2010 17:59:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 17:59:24 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 17:59:21 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id E3762C0161 for <commits@openjpa.apache.org>; Sun, 7 Nov 2010 17:58:59 +0000 (UTC) Date: Sun, 7 Nov 2010 17:58:59 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1125619789.4001289152739930.JavaMail.hudson@aegis> In-Reply-To: <331540729.3231289066088601.JavaMail.hudson@aegis> References: <331540729.3231289066088601.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #322 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/322/changes> Changes: [mtylenda] OPENJPA-1864: Fix the class comment. [mtylenda] OPENJPA-1837: Revert the statement about XML column as the mentioned limitation does exist in that case. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\MaxDBDictionary.java U openjpa-project\src\doc\manual\supported_databases.xml At revision 1032323 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 59575 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1032321 at timestamp: November 7, 2010 at 12:42 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-07_17-40-32/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-07_17-40-32/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-07_17-40-32/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18 minutes 6 seconds [INFO] Finished at: Sun Nov 07 00:59:02 GMT 2010 [INFO] Final Memory: 65M/174M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8025-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 09:46:44 2010 Return-Path: <commits-return-8025-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 98311 invoked from network); 8 Nov 2010 09:46:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 09:46:44 -0000 Received: (qmail 8252 invoked by uid 500); 8 Nov 2010 09:47:15 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 8194 invoked by uid 500); 8 Nov 2010 09:47:14 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8183 invoked by uid 99); 8 Nov 2010 09:47:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 09:47:13 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 09:47:13 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id B29AEC010A for <commits@openjpa.apache.org>; Mon, 8 Nov 2010 09:46:52 +0000 (UTC) Date: Mon, 8 Nov 2010 09:46:52 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1208611184.4411289209612585.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJPA-tr?= =?UTF-8?Q?unk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/50/> From commits-return-8026-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 09:46:51 2010 Return-Path: <commits-return-8026-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 98350 invoked from network); 8 Nov 2010 09:46:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 09:46:51 -0000 Received: (qmail 8335 invoked by uid 500); 8 Nov 2010 09:47:22 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 8281 invoked by uid 500); 8 Nov 2010 09:47:22 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8274 invoked by uid 99); 8 Nov 2010 09:47:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 09:47:22 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 09:47:16 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id D9D79C0161 for <commits@openjpa.apache.org>; Mon, 8 Nov 2010 09:46:54 +0000 (UTC) Date: Mon, 8 Nov 2010 09:46:54 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <928056025.4421289209614891.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk-deploy #50 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/50/changes> Changes: [mtylenda] OPENJPA-1864: Fix the class comment. [mtylenda] OPENJPA-1837: Revert the statement about XML column as the mentioned limitation does exist in that case. ------------------------------------------ [...truncated 15289 lines...] [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'artifact org.apache.openjpa:openjpa-xmlstore' [INFO] Uploading project information for openjpa-xmlstore 2.1.0-20101108.065451-98 [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/openjpa-xmlstore-2.1.0-20101108.065451-98-tests.jar 75K uploaded (openjpa-xmlstore-2.1.0-20101108.065451-98-tests.jar) [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-xmlstore/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-08_06-53-47/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-08_06-53-47/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-20101108.065451-98/openjpa-xmlstore-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-08_06-53-47/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-20101108.065451-98/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Slice [INFO] task-segment: [clean, deploy] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Starting audit... Audit done. [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 31 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/classes> [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 22 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/test-classes> [INFO] [antrun:run {execution: default}] [INFO] Executing tasks enhance: enhance.all.entities: [echo] running enhancer 261 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SingleEMFTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@fa2387 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SingleEMFTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SingleEMFTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 290 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.PersistenceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@fa2387 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.PersistenceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.PersistenceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 331 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SliceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@fa2387 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SliceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SliceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 358 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.UserDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@fa2387 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.UserDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.UserDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 381 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@fa2387 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 423 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@fa2387 has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. [INFO] Executed tasks [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.slice.TestQuery 4 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 6 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 39 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 163 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 489 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6556 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 20669 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 20874 ordering WARN [main] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 10 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 431 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 541 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 216 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 389 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is removed from cache excluded permanently. Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 4 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 215 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 340 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 352 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 363 ordering WARN [main] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 380 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 195 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 301 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 183 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 265 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 242 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 338 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 176 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 296 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 174 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 258 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 153 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 255 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 178 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 278 ordering WARN [main] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 309 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 142 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 262 ordering WARN [main] openjpa.Runtime - Query "select c from Car c" is removed from cache excluded permanently. Query "select c from Car c" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 272 ordering WARN [main] openjpa.Runtime - Query "select m from Manufacturer m" is removed from cache excluded permanently. Query "select m from Manufacturer m" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 25.22 sec Running org.apache.openjpa.slice.TestQueryMultiThreaded 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 172 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 306 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 310 ordering WARN [Thread-4] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 314 ordering WARN [Thread-4] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 316 ordering WARN [Thread-4] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1034 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 1181 ordering WARN [Thread-7] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 155 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 246 ordering WARN [Thread-12] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 172 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 257 ordering WARN [Thread-18] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 135 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 218 ordering WARN [Thread-22] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 142 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 234 ordering WARN [Thread-27] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 161 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 258 ordering WARN [Thread-32] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 263 ordering WARN [Thread-32] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Build timed out. Aborting Process 1289203429372 is killed. [HUDSON] Recording test resultsSending e-mails to: commits@openjpa.apache.org [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to call isArchivingDisabled. Invalid object ID 23 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.IllegalStateException: Unable to call isArchivingDisabled. Invalid object ID 23 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:268) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 172 minutes 54 seconds [INFO] Finished at: Mon Nov 08 09:46:52 UTC 2010 [INFO] Final Memory: 108M/563M [INFO] ------------------------------------------------------------------------ channel stopped From commits-return-8027-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 17:34:25 2010 Return-Path: <commits-return-8027-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 56592 invoked from network); 8 Nov 2010 17:34:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 17:34:24 -0000 Received: (qmail 65026 invoked by uid 500); 8 Nov 2010 17:34:56 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 64969 invoked by uid 500); 8 Nov 2010 17:34:55 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 64962 invoked by uid 99); 8 Nov 2010 17:34:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 17:34:55 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 17:34:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7F60B23889EB; Mon, 8 Nov 2010 17:33:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1032646 - in /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc: schema/Table.java sql/OracleDictionary.java Date: Mon, 08 Nov 2010 17:33:41 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101108173341.7F60B23889EB@eris.apache.org> Author: mikedd Date: Mon Nov 8 17:33:41 2010 New Revision: 1032646 URL: http://svn.apache.org/viewvc?rev=1032646&view=rev Log: OPENJPA-1877: Detect XMLType column for Oracle and treat as XML Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java?rev=1032646&r1=1032645&r2=1032646&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java Mon Nov 8 17:33:41 2010 @@ -468,6 +468,7 @@ public class Table copy.setSize(col.getSize()); copy.setDecimalDigits(col.getDecimalDigits()); copy.setAutoAssigned(col.isAutoAssigned()); + copy.setXML(col.isXML()); return copy; } Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java?rev=1032646&r1=1032645&r2=1032646&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java Mon Nov 8 17:33:41 2010 @@ -732,6 +732,9 @@ public class OracleDictionary cols[i].setType(Types.VARCHAR); else if ("NCHAR".equalsIgnoreCase(typeName)) cols[i].setType(Types.CHAR); + else if ("XMLTYPE".equalsIgnoreCase(typeName)) { + cols[i].setXML(true); + } } return cols; } From commits-return-8028-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 18:02:45 2010 Return-Path: <commits-return-8028-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 66482 invoked from network); 8 Nov 2010 18:02:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 18:02:45 -0000 Received: (qmail 19045 invoked by uid 500); 8 Nov 2010 18:03:17 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 18995 invoked by uid 500); 8 Nov 2010 18:03:16 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 18987 invoked by uid 99); 8 Nov 2010 18:03:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 18:03:14 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 18:03:14 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 04F7DC0161 for <commits@openjpa.apache.org>; Mon, 8 Nov 2010 18:02:54 +0000 (UTC) Date: Mon, 8 Nov 2010 18:02:53 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1870656976.4881289239374018.JavaMail.hudson@aegis> In-Reply-To: <1125619789.4001289152739930.JavaMail.hudson@aegis> References: <1125619789.4001289152739930.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #323 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/323/> ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk ERROR: Failed to update https://svn.apache.org/repos/asf/openjpa/trunk org.tmatesoft.svn.core.SVNException: svn: Software caused connection abort: recv failed svn: PROPFIND request failed on '/repos/asf/openjpa/trunk' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.findStartingProperties(DAVUtil.java:136) at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getVCCPath(DAVUtil.java:172) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.runReport(DAVRepository.java:1256) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.update(DAVRepository.java:820) at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:564) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:401) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:635) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:596) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source) at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.readPlainLine(HTTPParser.java:69) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.readLine(HTTPParser.java:51) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPParser.parseStatus(HTTPParser.java:39) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readHeader(HTTPConnection.java:197) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:175) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:351) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:275) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:263) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doPropfind(DAVConnection.java:126) at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getProperties(DAVUtil.java:73) at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getResourceProperties(DAVUtil.java:79) at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getStartingProperties(DAVUtil.java:103) at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.findStartingProperties(DAVUtil.java:125) ... 18 more From commits-return-8029-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 19:03:06 2010 Return-Path: <commits-return-8029-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 2776 invoked from network); 8 Nov 2010 19:03:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 19:03:06 -0000 Received: (qmail 95975 invoked by uid 500); 8 Nov 2010 19:03:37 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 95928 invoked by uid 500); 8 Nov 2010 19:03:37 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 95921 invoked by uid 99); 8 Nov 2010 19:03:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 19:03:37 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 19:03:35 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 0A174C010A for <commits@openjpa.apache.org>; Mon, 8 Nov 2010 19:03:14 +0000 (UTC) Date: Mon, 8 Nov 2010 19:03:13 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <2096303021.4931289242993945.JavaMail.hudson@aegis> In-Reply-To: <270319277.3991289152739172.JavaMail.hudson@aegis> References: <270319277.3991289152739172.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#324?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/324/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-08_18-42-52/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 minutes 57 seconds [INFO] Finished at: Mon Nov 08 02:03:12 GMT 2010 [INFO] Final Memory: 64M/163M [INFO] ------------------------------------------------------------------------ From commits-return-8030-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 19:03:08 2010 Return-Path: <commits-return-8030-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 2804 invoked from network); 8 Nov 2010 19:03:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 19:03:08 -0000 Received: (qmail 96043 invoked by uid 500); 8 Nov 2010 19:03:40 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 96001 invoked by uid 500); 8 Nov 2010 19:03:40 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 95994 invoked by uid 99); 8 Nov 2010 19:03:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 19:03:40 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 19:03:37 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 161EBC0161 for <commits@openjpa.apache.org>; Mon, 8 Nov 2010 19:03:16 +0000 (UTC) Date: Mon, 8 Nov 2010 19:03:15 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <56026477.4941289242996089.JavaMail.hudson@aegis> In-Reply-To: <1870656976.4881289239374018.JavaMail.hudson@aegis> References: <1870656976.4881289239374018.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #324 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/324/> ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\sql\OracleDictionary.java U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\schema\Table.java At revision 1032661 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. no revision recorded for https://svn.apache.org/repos/asf/openjpa/trunk in the previous build Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 59947 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1032646 at timestamp: November 8, 2010 at 1:44 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-08_18-42-52/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-08_18-42-52/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-08_18-42-52/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 minutes 57 seconds [INFO] Finished at: Mon Nov 08 02:03:12 GMT 2010 [INFO] Final Memory: 64M/163M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8031-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 19:46:40 2010 Return-Path: <commits-return-8031-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 26220 invoked from network); 8 Nov 2010 19:46:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 19:46:40 -0000 Received: (qmail 50871 invoked by uid 500); 8 Nov 2010 19:47:11 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 50821 invoked by uid 500); 8 Nov 2010 19:47:11 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 50803 invoked by uid 99); 8 Nov 2010 19:47:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 19:47:11 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 19:47:10 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 25C9323889EB; Mon, 8 Nov 2010 19:45:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1032678 - in /openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc: schema/Table.java sql/OracleDictionary.java Date: Mon, 08 Nov 2010 19:45:57 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101108194557.25C9323889EB@eris.apache.org> Author: mikedd Date: Mon Nov 8 19:45:56 2010 New Revision: 1032678 URL: http://svn.apache.org/viewvc?rev=1032678&view=rev Log: OPENJPA-1877: Detect XMLType column for Oracle and treat as XML. Modified: openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java Modified: openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java?rev=1032678&r1=1032677&r2=1032678&view=diff ============================================================================== --- openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java (original) +++ openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java Mon Nov 8 19:45:56 2010 @@ -465,6 +465,7 @@ public class Table copy.setSize(col.getSize()); copy.setDecimalDigits(col.getDecimalDigits()); copy.setAutoAssigned(col.isAutoAssigned()); + copy.setXML(col.isXML()); return copy; } Modified: openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java?rev=1032678&r1=1032677&r2=1032678&view=diff ============================================================================== --- openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java (original) +++ openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java Mon Nov 8 19:45:56 2010 @@ -684,6 +684,9 @@ public class OracleDictionary cols[i].setType(Types.VARCHAR); else if ("NCHAR".equalsIgnoreCase(typeName)) cols[i].setType(Types.CHAR); + else if ("XMLTYPE".equalsIgnoreCase(typeName)) { + cols[i].setXML(true); + } } return cols; } From commits-return-8032-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 20:11:29 2010 Return-Path: <commits-return-8032-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 47660 invoked from network); 8 Nov 2010 20:11:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 20:11:29 -0000 Received: (qmail 5105 invoked by uid 500); 8 Nov 2010 20:12:00 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 5044 invoked by uid 500); 8 Nov 2010 20:12:00 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 5037 invoked by uid 99); 8 Nov 2010 20:12:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 20:12:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_FRT_STOCK2 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 20:11:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 48BF423889C5; Mon, 8 Nov 2010 20:10:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1032686 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java Date: Mon, 08 Nov 2010 20:10:46 -0000 To: commits@openjpa.apache.org From: faywang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101108201046.48BF423889C5@eris.apache.org> Author: faywang Date: Mon Nov 8 20:10:45 2010 New Revision: 1032686 URL: http://svn.apache.org/viewvc?rev=1032686&view=rev Log: OPENJPA-1762: lock join table when pessimistic scope is set to EXTENDED Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java?rev=1032686&r1=1032685&r2=1032686&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PessimisticLockManager.java Mon Nov 8 20:10:45 2010 @@ -34,6 +34,7 @@ import org.apache.openjpa.jdbc.sql.DBDic import org.apache.openjpa.jdbc.sql.SQLBuffer; import org.apache.openjpa.jdbc.sql.SQLFactory; import org.apache.openjpa.jdbc.sql.Select; +import org.apache.openjpa.kernel.LockScopes; import org.apache.openjpa.kernel.MixedLockLevels; import org.apache.openjpa.kernel.OpenJPAStateManager; import org.apache.openjpa.kernel.StoreContext; @@ -128,7 +129,8 @@ public class PessimisticLockManager ClassMapping mapping = (ClassMapping) sm.getMetaData(); List<SQLBuffer> sqls = getLockRows(dict, id, mapping, fetch, _store.getSQLFactory()); - lockJoinTables(sqls, dict, id, mapping, fetch, _store.getSQLFactory()); + if (ctx.getFetchConfiguration().getLockScope() == LockScopes.LOCKSCOPE_EXTENDED) + lockJoinTables(sqls, dict, id, mapping, fetch, _store.getSQLFactory()); ensureStoreManagerTransaction(); Connection conn = _store.getConnection(); Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java?rev=1032686&r1=1032685&r2=1032686&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java Mon Nov 8 20:10:45 2010 @@ -43,6 +43,7 @@ import javax.persistence.CacheStoreMode; import javax.persistence.EntityManager; import javax.persistence.FlushModeType; import javax.persistence.LockModeType; +import javax.persistence.PessimisticLockScope; import javax.persistence.Query; import javax.persistence.TypedQuery; import javax.persistence.criteria.CriteriaQuery; @@ -1682,8 +1683,14 @@ public class EntityManagerImpl LockModeType lock, boolean requiresTxn) { // handle properties in map first if (properties != null) { - for (Map.Entry<String, Object> entry : properties.entrySet()) - fetch.setHint(entry.getKey(), entry.getValue()); + for (Map.Entry<String, Object> entry : properties.entrySet()) { + String key = entry.getKey(); + Object value = entry.getValue(); + if (key.equals("javax.persistence.lock.scope")) { + fetch.setLockScope((PessimisticLockScope)value); + } else + fetch.setHint(key, value); + } } // override with the specific lockMode, if needed. if (lock != null && lock != LockModeType.NONE) { From commits-return-8033-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 20:43:42 2010 Return-Path: <commits-return-8033-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 63728 invoked from network); 8 Nov 2010 20:43:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 20:43:42 -0000 Received: (qmail 64474 invoked by uid 500); 8 Nov 2010 20:44:13 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 64422 invoked by uid 500); 8 Nov 2010 20:44:13 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 64414 invoked by uid 99); 8 Nov 2010 20:44:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 20:44:13 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 20:44:13 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id EEC57C010A for <commits@openjpa.apache.org>; Mon, 8 Nov 2010 20:43:52 +0000 (UTC) Date: Mon, 8 Nov 2010 20:43:52 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <615713513.5011289249032976.JavaMail.hudson@aegis> In-Reply-To: <2096303021.4931289242993945.JavaMail.hudson@aegis> References: <2096303021.4931289242993945.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#325?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/325/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-08_20-40-49/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 47 seconds [INFO] Finished at: Mon Nov 08 03:43:56 GMT 2010 [INFO] Final Memory: 65M/166M [INFO] ------------------------------------------------------------------------ From commits-return-8034-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 20:43:43 2010 Return-Path: <commits-return-8034-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 63755 invoked from network); 8 Nov 2010 20:43:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 20:43:43 -0000 Received: (qmail 64515 invoked by uid 500); 8 Nov 2010 20:44:15 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 64495 invoked by uid 500); 8 Nov 2010 20:44:15 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 64488 invoked by uid 99); 8 Nov 2010 20:44:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 20:44:15 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 20:44:14 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 3AAD8C0161 for <commits@openjpa.apache.org>; Mon, 8 Nov 2010 20:43:54 +0000 (UTC) Date: Mon, 8 Nov 2010 20:43:54 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1011018520.5021289249034239.JavaMail.hudson@aegis> In-Reply-To: <56026477.4941289242996089.JavaMail.hudson@aegis> References: <56026477.4941289242996089.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #325 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/325/changes> Changes: [faywang] OPENJPA-1762: lock join table when pessimistic scope is set to EXTENDED ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-jdbc\src\main\java\org\apache\openjpa\jdbc\kernel\PessimisticLockManager.java U openjpa-persistence\src\main\java\org\apache\openjpa\persistence\EntityManagerImpl.java At revision 1032693 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 59973 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1032686 at timestamp: November 8, 2010 at 3:41 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-08_20-40-49/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-08_20-40-49/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-08_20-40-49/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 47 seconds [INFO] Finished at: Mon Nov 08 03:43:56 GMT 2010 [INFO] Final Memory: 65M/166M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8035-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 08 22:39:11 2010 Return-Path: <commits-return-8035-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 22006 invoked from network); 8 Nov 2010 22:39:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 22:39:11 -0000 Received: (qmail 22163 invoked by uid 500); 8 Nov 2010 22:39:42 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 22122 invoked by uid 500); 8 Nov 2010 22:39:42 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 22115 invoked by uid 99); 8 Nov 2010 22:39:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 22:39:42 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 22:39:39 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 205BC2388A32; Mon, 8 Nov 2010 22:38:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1032775 - in /openjpa/branches/1.3.x: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/ openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ Date: Mon, 08 Nov 2010 22:38:25 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101108223825.205BC2388A32@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Mon Nov 8 22:38:24 2010 New Revision: 1032775 URL: http://svn.apache.org/viewvc?rev=1032775&view=rev Log: OPENJPA-1877: Detect XMLType column for Oracle and treat as XML Modified: openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java Modified: openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java?rev=1032775&r1=1032774&r2=1032775&view=diff ============================================================================== --- openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java (original) +++ openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java Mon Nov 8 22:38:24 2010 @@ -366,6 +366,7 @@ public class Table copy.setSize(col.getSize()); copy.setDecimalDigits(col.getDecimalDigits()); copy.setAutoAssigned(col.isAutoAssigned()); + copy.setXML(col.isXML()); return copy; } Modified: openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java?rev=1032775&r1=1032774&r2=1032775&view=diff ============================================================================== --- openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java (original) +++ openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java Mon Nov 8 22:38:24 2010 @@ -658,6 +658,9 @@ public class OracleDictionary cols[i].setType(Types.VARCHAR); else if ("NCHAR".equalsIgnoreCase(cols[i].getTypeName())) cols[i].setType(Types.CHAR); + else if ("XMLTYPE".equalsIgnoreCase(cols[i].getTypeName())) { + cols[i].setXML(true); + } } return cols; } Modified: openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java?rev=1032775&r1=1032774&r2=1032775&view=diff ============================================================================== --- openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java (original) +++ openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java Mon Nov 8 22:38:24 2010 @@ -111,12 +111,12 @@ public class TestOracleXmlColumn extends tran.commit(); em.close(); - em = emf.createEntityManager(); - xce = em.find(XmlColEntity.class, 1); - assertNotNull(xce); - assertEquals(xmlData, xce.getXmlColumn()); + // em = emf.createEntityManager(); + // xce = em.find(XmlColEntity.class, 1); + // assertNotNull(xce); + // assertEquals(xmlData, xce.getXmlColumn()); + // em.close(); - em.close(); emf.close(); } @@ -139,11 +139,11 @@ public class TestOracleXmlColumn extends EntityManager em = emf.createEntityManager(); EntityTransaction tran = em.getTransaction(); - XmlColEntity xce = em.find(XmlColEntity.class, 42); - assertNotNull(xce); - assertNotNull(xce.getXmlColumn()); - assertEquals(xmlData, xce.getXmlColumn()); - em.close(); + // XmlColEntity xce = em.find(XmlColEntity.class, 42); + // assertNotNull(xce); + // assertNotNull(xce.getXmlColumn()); + // assertEquals(xmlData, xce.getXmlColumn()); + // em.close(); emf.close(); } } From commits-return-8036-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 09 00:02:39 2010 Return-Path: <commits-return-8036-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 59901 invoked from network); 9 Nov 2010 00:02:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 00:02:39 -0000 Received: (qmail 58628 invoked by uid 500); 9 Nov 2010 00:03:10 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 58582 invoked by uid 500); 9 Nov 2010 00:03:10 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 58575 invoked by uid 99); 9 Nov 2010 00:03:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:03:10 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:03:08 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 7224FC010A for <commits@openjpa.apache.org>; Tue, 9 Nov 2010 00:02:47 +0000 (UTC) Date: Tue, 9 Nov 2010 00:02:47 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1979774009.5121289260967466.JavaMail.hudson@aegis> In-Reply-To: <1955496630.2321288987207789.JavaMail.hudson@aegis> References: <1955496630.2321288987207789.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJPA-?= =?UTF-8?Q?20x-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-persistence-jdbc/24/> From commits-return-8037-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 09 00:02:39 2010 Return-Path: <commits-return-8037-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 59919 invoked from network); 9 Nov 2010 00:02:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 00:02:39 -0000 Received: (qmail 58704 invoked by uid 500); 9 Nov 2010 00:03:11 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 58652 invoked by uid 500); 9 Nov 2010 00:03:11 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 58645 invoked by uid 99); 9 Nov 2010 00:03:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:03:11 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:03:08 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 0731AC0161 for <commits@openjpa.apache.org>; Tue, 9 Nov 2010 00:02:48 +0000 (UTC) Date: Tue, 9 Nov 2010 00:02:47 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <859826284.5131289260967980.JavaMail.hudson@aegis> In-Reply-To: <1299945317.2331288987208142.JavaMail.hudson@aegis> References: <1299945317.2331288987208142.JavaMail.hudson@aegis> Subject: Hudson build is back to stable : OpenJPA-20x-deploy #24 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/24/changes> From commits-return-8038-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 09 00:06:48 2010 Return-Path: <commits-return-8038-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 68958 invoked from network); 9 Nov 2010 00:06:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 00:06:47 -0000 Received: (qmail 60815 invoked by uid 500); 9 Nov 2010 00:07:19 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 60792 invoked by uid 500); 9 Nov 2010 00:07:19 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 60785 invoked by uid 99); 9 Nov 2010 00:07:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:07:19 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:07:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1EA7A238890B; Tue, 9 Nov 2010 00:06:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1032791 - /openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java Date: Tue, 09 Nov 2010 00:06:05 -0000 To: commits@openjpa.apache.org From: faywang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101109000605.1EA7A238890B@eris.apache.org> Author: faywang Date: Tue Nov 9 00:06:04 2010 New Revision: 1032791 URL: http://svn.apache.org/viewvc?rev=1032791&view=rev Log: OPENJPA-1762: fix test case problem Modified: openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java Modified: openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java?rev=1032791&r1=1032790&r2=1032791&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java (original) +++ openjpa/trunk/openjpa-persistence-locking/src/test/java/org/apache/openjpa/persistence/lockmgr/Person.java Tue Nov 9 00:06:04 2010 @@ -26,12 +26,12 @@ import java.util.List; import javax.persistence.Entity; import javax.persistence.Id; -import javax.persistence.JoinColumn; import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; +import javax.persistence.Table; @Entity +@Table(name="LOCK_PSN") public class Person implements Externalizable { private int id; From commits-return-8039-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 09 00:43:11 2010 Return-Path: <commits-return-8039-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 86844 invoked from network); 9 Nov 2010 00:43:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 00:43:11 -0000 Received: (qmail 95078 invoked by uid 500); 9 Nov 2010 00:43:43 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 95058 invoked by uid 500); 9 Nov 2010 00:43:42 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 95051 invoked by uid 99); 9 Nov 2010 00:43:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:43:42 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:43:40 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 97BA7C010A for <commits@openjpa.apache.org>; Tue, 9 Nov 2010 00:43:19 +0000 (UTC) Date: Tue, 9 Nov 2010 00:43:19 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1581704512.5151289263399582.JavaMail.hudson@aegis> In-Reply-To: <615713513.5011289249032976.JavaMail.hudson@aegis> References: <615713513.5011289249032976.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#326?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/326/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-09_00-41-07/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 54 seconds [INFO] Finished at: Mon Nov 08 07:43:23 GMT 2010 [INFO] Final Memory: 65M/166M [INFO] ------------------------------------------------------------------------ From commits-return-8040-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 09 00:43:14 2010 Return-Path: <commits-return-8040-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 86879 invoked from network); 9 Nov 2010 00:43:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 00:43:14 -0000 Received: (qmail 95181 invoked by uid 500); 9 Nov 2010 00:43:46 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 95131 invoked by uid 500); 9 Nov 2010 00:43:45 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 95124 invoked by uid 99); 9 Nov 2010 00:43:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:43:45 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 00:43:43 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id CD605C0161 for <commits@openjpa.apache.org>; Tue, 9 Nov 2010 00:43:21 +0000 (UTC) Date: Tue, 9 Nov 2010 00:43:21 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <522211921.5161289263401840.JavaMail.hudson@aegis> In-Reply-To: <1011018520.5021289249034239.JavaMail.hudson@aegis> References: <1011018520.5021289249034239.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #326 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/326/changes> Changes: [faywang] OPENJPA-1762: fix test case problem ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-persistence-locking\src\test\java\org\apache\openjpa\persistence\lockmgr\Person.java At revision 1032795 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 60028 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1032791 at timestamp: November 8, 2010 at 7:41 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-09_00-41-07/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-09_00-41-07/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-09_00-41-07/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 54 seconds [INFO] Finished at: Mon Nov 08 07:43:23 GMT 2010 [INFO] Final Memory: 65M/166M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8041-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 09 08:51:24 2010 Return-Path: <commits-return-8041-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 83980 invoked from network); 9 Nov 2010 08:51:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 08:51:23 -0000 Received: (qmail 60727 invoked by uid 500); 9 Nov 2010 08:51:55 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 60669 invoked by uid 500); 9 Nov 2010 08:51:54 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 60662 invoked by uid 99); 9 Nov 2010 08:51:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 08:51:53 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 08:51:52 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 4B5A8C010A for <commits@openjpa.apache.org>; Tue, 9 Nov 2010 08:51:32 +0000 (UTC) Date: Tue, 9 Nov 2010 08:51:32 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1320941314.5641289292692282.JavaMail.hudson@aegis> In-Reply-To: <1208611184.4411289209612585.JavaMail.hudson@aegis> References: <1208611184.4411289209612585.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_still_unstable:_OpenJPA-t?= =?UTF-8?Q?runk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/51/> From commits-return-8042-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 09 08:51:24 2010 Return-Path: <commits-return-8042-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 83998 invoked from network); 9 Nov 2010 08:51:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 08:51:24 -0000 Received: (qmail 60794 invoked by uid 500); 9 Nov 2010 08:51:56 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 60740 invoked by uid 500); 9 Nov 2010 08:51:55 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 60733 invoked by uid 99); 9 Nov 2010 08:51:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 08:51:55 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 08:51:53 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 8CF0FC0161 for <commits@openjpa.apache.org>; Tue, 9 Nov 2010 08:51:33 +0000 (UTC) Date: Tue, 9 Nov 2010 08:51:33 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1152674481.5651289292693576.JavaMail.hudson@aegis> In-Reply-To: <928056025.4421289209614891.JavaMail.hudson@aegis> References: <928056025.4421289209614891.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk-deploy #51 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/51/changes> Changes: [faywang] OPENJPA-1762: fix test case problem [faywang] OPENJPA-1762: lock join table when pessimistic scope is set to EXTENDED [mikedd] OPENJPA-1877: Detect XMLType column for Oracle and treat as XML ------------------------------------------ [...truncated 17617 lines...] [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/ConstraintDefinitionValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderCustomizableContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$2.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$3.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$4.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$5.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$6.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$2.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/EnumerationConverter.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderDefinedContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/IOUtils.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorIdentity.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/JPATraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingRelevant.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/DefaultTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver$CacheEntry.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/SimpleTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ElementDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ConstructorDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ProcedureDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ReturnAccess.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterAccess.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/AppendValidationToList.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidatorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintViolationImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorContextImpl$ConstraintViolationBuilderImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContext.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidationListener.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Groups.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Group.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/GroupsComputer.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultMessageInterpolator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BaseAppendValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultValidationProviderResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303MetaBeanFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext$XMLMetaBeanManagerCreator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BeanDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintCached.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultConstraintValidatorFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Property.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Bean.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConfigurationImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfiguration$Properties.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfiguration.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/NestedMetaProperty.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/UnknownPropertyException.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator$Jsr303ValidationCallback.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder$ConstraintOverrides.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToBuilder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/PropertyDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToMeta.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidationProvider.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GraphBeanIdentity.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfBoolean.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfShort.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfObject.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfByte.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotNullValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForMap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForCollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmpty.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorForDate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfFloat.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/EmailValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/Email.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertFalseValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForDate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForMap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorForCalendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NullValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForCollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfLong.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertTrueValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PatternValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfDouble.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfChar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForCalendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfInt.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [INFO] Replacing original artifact with shaded artifact. [INFO] Replacing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> with <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-shaded.jar> [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT.jar [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT.jar [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-20101109.071937-96.jar 6199K uploaded (openjpa-all-2.1.0-20101109.071937-96.jar) [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'snapshot org.apache.openjpa:openjpa-all:2.1.0-SNAPSHOT' [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'artifact org.apache.openjpa:openjpa-all' [INFO] Uploading project information for openjpa-all 2.1.0-20101109.071937-96 [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-20101109.071937-96-tests.jar 20K uploaded (openjpa-all-2.1.0-20101109.071937-96-tests.jar) [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/dependency-reduced-pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-all/builds/2010-11-09_07-18-47/archive/org.apache.openjpa/openjpa-all/2.1.0-SNAPSHOT/dependency-reduced-pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-all/builds/2010-11-09_07-18-47/archive/org.apache.openjpa/openjpa-all/2.1.0-20101109.071937-96/openjpa-all-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-all/builds/2010-11-09_07-18-47/archive/org.apache.openjpa/openjpa-all/2.1.0-20101109.071937-96/openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Project Docs and Assemblies [INFO] task-segment: [clean, deploy] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [assembly:attached {execution: bin}] [INFO] Reading assembly descriptor: assembly.xml [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjpa:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjpa:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead [INFO] [assembly:attached {execution: sources}] [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-source.zip [WARNING] Artifact does not contain any legal files: apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/pom.xml> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-20101109.071937-96.pom 21K uploaded (apache-openjpa-2.1.0-20101109.071937-96.pom) [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'snapshot org.apache.openjpa:apache-openjpa:2.1.0-SNAPSHOT' [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'artifact org.apache.openjpa:apache-openjpa' [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-20101109.071937-96-binary.zip 14928K uploaded (apache-openjpa-2.1.0-20101109.071937-96-binary.zip) [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-20101109.071937-96-source.zip [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-09_07-18-47/archive/org.apache.openjpa/apache-openjpa/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-09_07-18-47/archive/org.apache.openjpa/apache-openjpa/2.1.0-20101109.071937-96/apache-openjpa-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-09_07-18-47/archive/org.apache.openjpa/apache-openjpa/2.1.0-20101109.071937-96/apache-openjpa-2.1.0-SNAPSHOT-binary.zip [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-09_07-18-47/archive/org.apache.openjpa/apache-openjpa/2.1.0-20101109.071937-96/apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Java heap space [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2786) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94) at sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:61) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:492) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:457) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:411) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 92 minutes 34 seconds [INFO] Finished at: Tue Nov 09 08:51:31 UTC 2010 [INFO] Final Memory: 377M/1118M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8043-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 14:13:59 2010 Return-Path: <commits-return-8043-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 36326 invoked from network); 10 Nov 2010 14:13:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 14:13:59 -0000 Received: (qmail 8477 invoked by uid 500); 10 Nov 2010 14:14:30 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 8420 invoked by uid 500); 10 Nov 2010 14:14:29 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8110 invoked by uid 99); 10 Nov 2010 14:14:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 14:14:28 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 14:14:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 63AD223889E1; Wed, 10 Nov 2010 14:13:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1033480 - in /openjpa/trunk/openjpa-kernel/src/main: java/org/apache/openjpa/enhance/PCClassFileTransformer.java resources/org/apache/openjpa/enhance/localizer.properties Date: Wed, 10 Nov 2010 14:13:11 -0000 To: commits@openjpa.apache.org From: kwsutter@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101110141311.63AD223889E1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kwsutter Date: Wed Nov 10 14:13:10 2010 New Revision: 1033480 URL: http://svn.apache.org/viewvc?rev=1033480&view=rev Log: OPENJPA-1881. Creating a new "completion" trace message for the enhancement processing. Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java?rev=1033480&r1=1033479&r2=1033480&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java Wed Nov 10 14:13:10 2010 @@ -113,14 +113,14 @@ public class PCClassFileTransformer if (className == null) { return null; } - // prevent re-entrant calls, which can occur if the enhanceing + // prevent re-entrant calls, which can occur if the enhancing // loader is used to also load OpenJPA libraries; this is to prevent // recursive enhancement attempts for internal openjpa libraries if (_transforming) return null; _transforming = true; - + return transform0(className, redef, bytes); } @@ -131,7 +131,8 @@ public class PCClassFileTransformer */ private byte[] transform0(String className, Class redef, byte[] bytes) throws IllegalClassFormatException { - + + byte[] returnBytes = null; try { Boolean enhance = needsEnhance(className, redef, bytes); if (enhance != null && _log.isTraceEnabled()) @@ -149,7 +150,8 @@ public class PCClassFileTransformer if (enhancer.run() == PCEnhancer.ENHANCE_NONE) return null; - return enhancer.getPCBytecode().toByteArray(); + returnBytes = enhancer.getPCBytecode().toByteArray(); + return returnBytes; } catch (Throwable t) { _log.warn(_loc.get("cft-exception-thrown", className), t); if (t instanceof RuntimeException) @@ -159,6 +161,9 @@ public class PCClassFileTransformer throw new GeneralException(t); } finally { _transforming = false; + if (returnBytes != null && _log.isTraceEnabled()) + _log.trace(_loc.get("runtime-enhance-complete", className, + bytes.length, returnBytes.length)); } } Modified: openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties?rev=1033480&r1=1033479&r2=1033480&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties (original) +++ openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/enhance/localizer.properties Wed Nov 10 14:13:10 2010 @@ -25,6 +25,7 @@ bad-field: Missing field for property "{ reflect-security: Unable to access "{0}" via reflection. Make sure OpenJPA \ has the "suppressAccessChecks" permission. needs-runtime-enhance: "{0}" requires runtime enhancement: {1} +runtime-enhance-complete: Enhancement for "{0}" completed. Class size: [{1}/{2}] runtime-enhance-pcclasses: You have enabled runtime enhancement, but have not \ specified the set of persistent classes. OpenJPA must look for metadata \ for every loaded class, which might increase class load times significantly. From commits-return-8044-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 15:09:24 2010 Return-Path: <commits-return-8044-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 68024 invoked from network); 10 Nov 2010 15:09:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 15:09:24 -0000 Received: (qmail 11671 invoked by uid 500); 10 Nov 2010 15:09:54 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 11218 invoked by uid 500); 10 Nov 2010 15:09:53 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 10924 invoked by uid 99); 10 Nov 2010 15:09:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 15:09:53 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 15:09:50 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id A6710C0164 for <commits@openjpa.apache.org>; Wed, 10 Nov 2010 15:09:29 +0000 (UTC) Date: Wed, 10 Nov 2010 15:09:29 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1021245856.7101289401769599.JavaMail.hudson@aegis> In-Reply-To: <1581704512.5151289263399582.JavaMail.hudson@aegis> References: <1581704512.5151289263399582.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#327?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/327/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-10_14-49-47/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 minutes 19 seconds [INFO] Finished at: Tue Nov 09 22:09:34 GMT 2010 [INFO] Final Memory: 64M/176M [INFO] ------------------------------------------------------------------------ From commits-return-8045-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 15:09:25 2010 Return-Path: <commits-return-8045-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 68103 invoked from network); 10 Nov 2010 15:09:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 15:09:25 -0000 Received: (qmail 12399 invoked by uid 500); 10 Nov 2010 15:09:56 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 12358 invoked by uid 500); 10 Nov 2010 15:09:56 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 12350 invoked by uid 99); 10 Nov 2010 15:09:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 15:09:56 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 15:09:53 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 3E94BC0165 for <commits@openjpa.apache.org>; Wed, 10 Nov 2010 15:09:32 +0000 (UTC) Date: Wed, 10 Nov 2010 15:09:32 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <436651218.7111289401772255.JavaMail.hudson@aegis> In-Reply-To: <522211921.5161289263401840.JavaMail.hudson@aegis> References: <522211921.5161289263401840.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #327 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/327/changes> Changes: [kwsutter] OPENJPA-1881. Creating a new "completion" trace message for the enhancement processing. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-kernel\src\main\java\org\apache\openjpa\enhance\PCClassFileTransformer.java U openjpa-kernel\src\main\resources\org\apache\openjpa\enhance\localizer.properties At revision 1033490 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 64914 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1033480 at timestamp: November 9, 2010 at 9:52 PM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-10_14-49-47/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-10_14-49-47/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-10_14-49-47/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 minutes 19 seconds [INFO] Finished at: Tue Nov 09 22:09:34 GMT 2010 [INFO] Final Memory: 64M/176M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8046-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 18:35:23 2010 Return-Path: <commits-return-8046-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 97086 invoked from network); 10 Nov 2010 18:35:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 18:35:23 -0000 Received: (qmail 29168 invoked by uid 500); 10 Nov 2010 18:35:55 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 29115 invoked by uid 500); 10 Nov 2010 18:35:54 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 29102 invoked by uid 99); 10 Nov 2010 18:35:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 18:35:54 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 18:35:51 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 92AFE2388A2C; Wed, 10 Nov 2010 18:34:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1033637 - in /openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheStoreManager.java Date: Wed, 10 Nov 2010 18:34:35 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101110183435.92AFE2388A2C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Wed Nov 10 18:34:35 2010 New Revision: 1033637 URL: http://svn.apache.org/viewvc?rev=1033637&view=rev Log: OPENJPA-1882: Fix DataCacheStoreManager NPE. Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheStoreManager.java (with props) Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java?rev=1033637&r1=1033636&r2=1033637&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java Wed Nov 10 18:34:35 2010 @@ -281,9 +281,9 @@ public class DataCacheStoreManager public boolean exists(OpenJPAStateManager sm, Object edata) { DataCache cache = _mgr.selectCache(sm); - CacheStatistics stats = cache.getStatistics(); + CacheStatistics stats = (cache == null) ? null : cache.getStatistics(); if (cache != null && !isLocking(null) && cache.contains(sm.getObjectId())){ - if (stats.isEnabled()) { + if (stats != null && stats.isEnabled()) { // delay this call ONLY if stats collection is enabled Class<?> cls = sm.getMetaData().getDescribedType(); ((CacheStatisticsSPI)stats).newGet(cls, false); @@ -291,7 +291,7 @@ public class DataCacheStoreManager return true; } // If isLocking(null)==true && cache.contains(..) == true... probably shouldn't count? - if (stats.isEnabled()) { + if (stats != null && stats.isEnabled()) { // delay this call ONLY if stats collection is enabled Class<?> cls = sm.getMetaData().getDescribedType(); ((CacheStatisticsSPI)stats).newGet(cls, false); @@ -322,14 +322,13 @@ public class DataCacheStoreManager public boolean syncVersion(OpenJPAStateManager sm, Object edata) { DataCache cache = _mgr.selectCache(sm); FetchConfiguration fc = sm.getContext().getFetchConfiguration(); - CacheStatistics stats = cache.getStatistics(); + CacheStatistics stats = (cache == null) ? null : cache.getStatistics(); if (cache == null || sm.isEmbedded() || fc.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS) { - if(stats.isEnabled()){ - ((CacheStatisticsSPI)stats).newGet(sm.getMetaData().getDescribedType(), false); + if (stats != null && stats.isEnabled()) { + ((CacheStatisticsSPI) stats).newGet(sm.getMetaData().getDescribedType(), false); } return super.syncVersion(sm, edata); } - DataCachePCData data; Object version = null; data = cache.get(sm.getObjectId()); @@ -338,7 +337,7 @@ public class DataCacheStoreManager // if we have a cached version update from there if (version != null) { - if(stats.isEnabled()){ + if (stats != null && stats.isEnabled()) { ((CacheStatisticsSPI)stats).newGet(data.getType(), true); } if (!version.equals(sm.getVersion())) { Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheStoreManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheStoreManager.java?rev=1033637&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheStoreManager.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheStoreManager.java Wed Nov 10 18:34:35 2010 @@ -0,0 +1,82 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.datacache; + +import javax.persistence.EntityManager; + +import org.apache.openjpa.datacache.DataCacheManager; +import org.apache.openjpa.datacache.DataCacheStoreManager; +import org.apache.openjpa.enhance.PersistenceCapable; +import org.apache.openjpa.kernel.DelegatingStoreManager; +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.persistence.EntityManagerImpl; +import org.apache.openjpa.persistence.test.SingleEMFTestCase; + +/** + * + * This test was added for OPENJPA-1882. + * <p> + * When caching is enabled and a given type isn't being cached, make sure calling exists/syncVersion with that type + * doesn't result in a NPE. + * + */ +public class TestDataCacheStoreManager extends SingleEMFTestCase { + Object[] p = + new Object[] { CLEAR_TABLES, CachedEntityStatistics.class, "openjpa.DataCache", "true(EnableStatistics=true)", + "openjpa.QueryCache", "true", }; + + private EntityManager em; + private DataCacheStoreManager dsm; + private DataCacheManager dcm; + private OpenJPAStateManager sm; + + public void setUp() { + super.setUp(p); + + em = emf.createEntityManager(); + dcm = emf.getConfiguration().getDataCacheManagerInstance(); + dsm = + (DataCacheStoreManager) ((DelegatingStoreManager) ((EntityManagerImpl) em).getBroker().getStoreManager()) + .getDelegate(); + + em.getTransaction().begin(); + CachedEntityStatistics p = new CachedEntityStatistics(); + em.persist(p); + em.getTransaction().commit(); + + dcm.stopCaching(CachedEntityStatistics.class.getName()); + + sm = (OpenJPAStateManager) ((PersistenceCapable) p).pcGetStateManager(); + } + + public void tearDown() throws Exception { + dcm.startCaching(CachedEntityStatistics.class.getName()); + em.close(); + + super.tearDown(); + } + + public void testExists() { + dsm.exists(sm, null); + } + + public void testsyncVersion() { + dsm.syncVersion(sm, null); + } +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheStoreManager.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8047-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 19:18:34 2010 Return-Path: <commits-return-8047-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 23264 invoked from network); 10 Nov 2010 19:18:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 19:18:33 -0000 Received: (qmail 15579 invoked by uid 500); 10 Nov 2010 19:19:05 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 15526 invoked by uid 500); 10 Nov 2010 19:19:05 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 15504 invoked by uid 99); 10 Nov 2010 19:19:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 19:19:05 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 19:19:04 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id D741EC0164 for <commits@openjpa.apache.org>; Wed, 10 Nov 2010 19:18:43 +0000 (UTC) Date: Wed, 10 Nov 2010 19:18:43 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1204997971.7241289416723807.JavaMail.hudson@aegis> In-Reply-To: <1021245856.7101289401769599.JavaMail.hudson@aegis> References: <1021245856.7101289401769599.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#328?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/328/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-10_19-15-38/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 44 seconds [INFO] Finished at: Wed Nov 10 02:18:48 GMT 2010 [INFO] Final Memory: 65M/176M [INFO] ------------------------------------------------------------------------ From commits-return-8048-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 19:18:34 2010 Return-Path: <commits-return-8048-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 23285 invoked from network); 10 Nov 2010 19:18:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 19:18:34 -0000 Received: (qmail 15616 invoked by uid 500); 10 Nov 2010 19:19:05 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 15597 invoked by uid 500); 10 Nov 2010 19:19:05 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 15590 invoked by uid 99); 10 Nov 2010 19:19:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 19:19:05 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 19:19:04 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id B6DDFC0165 for <commits@openjpa.apache.org>; Wed, 10 Nov 2010 19:18:44 +0000 (UTC) Date: Wed, 10 Nov 2010 19:18:44 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <133778173.7251289416724739.JavaMail.hudson@aegis> In-Reply-To: <436651218.7111289401772255.JavaMail.hudson@aegis> References: <436651218.7111289401772255.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #328 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/328/changes> Changes: [curtisr7] OPENJPA-1882: Fix DataCacheStoreManager NPE. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-kernel\src\main\java\org\apache\openjpa\datacache\DataCacheStoreManager.java AU openjpa-persistence-jdbc\src\test\java\org\apache\openjpa\persistence\datacache\TestDataCacheStoreManager.java At revision 1033642 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 65096 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1033637 at timestamp: November 10, 2010 at 2:16 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-10_19-15-38/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-10_19-15-38/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-10_19-15-38/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 44 seconds [INFO] Finished at: Wed Nov 10 02:18:48 GMT 2010 [INFO] Final Memory: 65M/176M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8049-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 20:56:06 2010 Return-Path: <commits-return-8049-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 60056 invoked from network); 10 Nov 2010 20:56:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 20:56:06 -0000 Received: (qmail 1510 invoked by uid 500); 10 Nov 2010 20:56:34 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 1450 invoked by uid 500); 10 Nov 2010 20:56:34 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 1376 invoked by uid 99); 10 Nov 2010 20:56:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 20:56:34 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 20:56:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C9BEF23889EA; Wed, 10 Nov 2010 20:55:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1033704 - /openjpa/tools/trunk/openjpa-tools/src/main/java/org/apache/openjpa/jconsole/DataCacheStatistic.java Date: Wed, 10 Nov 2010 20:55:17 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101110205517.C9BEF23889EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Wed Nov 10 20:55:17 2010 New Revision: 1033704 URL: http://svn.apache.org/viewvc?rev=1033704&view=rev Log: OPENJPA-1844: Fix hit and read columns in jconsole plugin. Modified: openjpa/tools/trunk/openjpa-tools/src/main/java/org/apache/openjpa/jconsole/DataCacheStatistic.java Modified: openjpa/tools/trunk/openjpa-tools/src/main/java/org/apache/openjpa/jconsole/DataCacheStatistic.java URL: http://svn.apache.org/viewvc/openjpa/tools/trunk/openjpa-tools/src/main/java/org/apache/openjpa/jconsole/DataCacheStatistic.java?rev=1033704&r1=1033703&r2=1033704&view=diff ============================================================================== --- openjpa/tools/trunk/openjpa-tools/src/main/java/org/apache/openjpa/jconsole/DataCacheStatistic.java (original) +++ openjpa/tools/trunk/openjpa-tools/src/main/java/org/apache/openjpa/jconsole/DataCacheStatistic.java Wed Nov 10 20:55:17 2010 @@ -55,12 +55,12 @@ public class DataCacheStatistic { public long getReads(String cls) { long[] res = _stats.get(cls); - return (res == null) ? 0 : res[1]; + return (res == null) ? 0 : res[0]; } public long getHits(String cls) { long[] res = _stats.get(cls); - return (res == null) ? 0 : res[0]; + return (res == null) ? 0 : res[1]; } public long getWrites(String cls) { From commits-return-8050-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 20:57:13 2010 Return-Path: <commits-return-8050-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 60385 invoked from network); 10 Nov 2010 20:57:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 20:57:13 -0000 Received: (qmail 5261 invoked by uid 500); 10 Nov 2010 20:57:45 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 5236 invoked by uid 500); 10 Nov 2010 20:57:45 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 5229 invoked by uid 99); 10 Nov 2010 20:57:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 20:57:45 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 20:57:44 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 05E99238890B; Wed, 10 Nov 2010 20:56:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1033705 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/DataCacheInstrument.java Date: Wed, 10 Nov 2010 20:56:30 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101110205631.05E99238890B@eris.apache.org> Author: curtisr7 Date: Wed Nov 10 20:56:30 2010 New Revision: 1033705 URL: http://svn.apache.org/viewvc?rev=1033705&view=rev Log: OPENJPA-1844: Update javadoc for DataCacheInstrument. Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/DataCacheInstrument.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/DataCacheInstrument.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/DataCacheInstrument.java?rev=1033705&r1=1033704&r2=1033705&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/DataCacheInstrument.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/instrumentation/DataCacheInstrument.java Wed Nov 10 20:56:30 2010 @@ -133,7 +133,7 @@ public interface DataCacheInstrument { /** * Returns the CacheStatistics for the cache. * The format for this map is: - * Type(String) => Enabled(Boolean),Hit(Long),Read(Long),Write(Long) + * Type(String) => Enabled(Boolean),Read(Long),Hit(Long),Write(Long) */ public Map<String, long[]> getCacheStatistics(); From commits-return-8051-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 21:18:32 2010 Return-Path: <commits-return-8051-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 78952 invoked from network); 10 Nov 2010 21:18:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 21:18:31 -0000 Received: (qmail 38337 invoked by uid 500); 10 Nov 2010 21:19:02 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 38300 invoked by uid 500); 10 Nov 2010 21:19:02 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 38293 invoked by uid 99); 10 Nov 2010 21:19:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 21:19:02 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 21:19:01 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 8D1A3C0165 for <commits@openjpa.apache.org>; Wed, 10 Nov 2010 21:18:41 +0000 (UTC) Date: Wed, 10 Nov 2010 21:18:41 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1544083068.7311289423921576.JavaMail.hudson@aegis> In-Reply-To: <133778173.7251289416724739.JavaMail.hudson@aegis> References: <133778173.7251289416724739.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #329 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/329/changes> Changes: [curtisr7] OPENJPA-1844: Update javadoc for DataCacheInstrument. ------------------------------------------ Started by an SCM change Building remotely on windows1 Updating https://svn.apache.org/repos/asf/openjpa/trunk U openjpa-kernel\src\main\java\org\apache\openjpa\instrumentation\DataCacheInstrument.java At revision 1033708 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. Parsing POMs [trunk] $ c:\hudson\tools\java\latest-1.6-64/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\maven\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hudson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-interceptor.jar 65174 c:\hudson\hudson-slave\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===> channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Examples - Simple [INFO] OpenJPA Examples - image-gallery [INFO] OpenJPA Examples - OpenBooks [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - SLF4JLogFactory [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] OpenJPA Integration Tests - JMX Platform MBeans [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildNumber: 1033705 at timestamp: November 10, 2010 at 4:16 AM [INFO] Executing: cmd.exe /X /C "svn --non-interactive info" [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk> [INFO] Storing buildScmBranch: trunk [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk\pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-10_21-16-26/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving C:\Users\hudson\.m2\repository\org\apache\openjpa\openjpa-parent\2.1.0-SNAPSHOT\openjpa-parent-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-10_21-16-26/archive/org.apache.openjpa/openjpa-parent/2.1.0-SNAPSHOT/openjpa-parent-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-10_21-16-26/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 5 seconds [INFO] Finished at: Wed Nov 10 04:18:45 GMT 2010 [INFO] Final Memory: 65M/160M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8052-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 21:18:33 2010 Return-Path: <commits-return-8052-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 78976 invoked from network); 10 Nov 2010 21:18:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 21:18:33 -0000 Received: (qmail 38409 invoked by uid 500); 10 Nov 2010 21:19:04 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 38392 invoked by uid 500); 10 Nov 2010 21:19:04 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 38385 invoked by uid 99); 10 Nov 2010 21:19:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 21:19:04 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 21:19:02 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id F21C5C0164 for <commits@openjpa.apache.org>; Wed, 10 Nov 2010 21:18:40 +0000 (UTC) Date: Wed, 10 Nov 2010 21:18:40 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1421548606.7301289423920903.JavaMail.hudson@aegis> In-Reply-To: <1204997971.7241289416723807.JavaMail.hudson@aegis> References: <1204997971.7241289416723807.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Utilities_Library_#329?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/329/> ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Utilities Library [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target (included: [**], excluded: []) [HUDSON] Archiving C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\pom.xml to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-lib/builds/2010-11-10_21-16-26/archive/org.apache.openjpa/openjpa-lib/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to delete directory: C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target. Reason: Unable to delete file C:\hudson\hudson-slave\workspace\OpenJPA-trunk\trunk\openjpa-lib\target\openjpa-lib-2.1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 5 seconds [INFO] Finished at: Wed Nov 10 04:18:45 GMT 2010 [INFO] Final Memory: 65M/160M [INFO] ------------------------------------------------------------------------ From commits-return-8053-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 10 23:53:53 2010 Return-Path: <commits-return-8053-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 61379 invoked from network); 10 Nov 2010 23:53:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 23:53:53 -0000 Received: (qmail 63591 invoked by uid 500); 10 Nov 2010 23:54:24 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 63544 invoked by uid 500); 10 Nov 2010 23:54:24 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 63536 invoked by uid 99); 10 Nov 2010 23:54:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 23:54:24 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 23:54:22 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 0BF41C0164 for <commits@openjpa.apache.org>; Wed, 10 Nov 2010 23:54:01 +0000 (UTC) Date: Wed, 10 Nov 2010 23:54:01 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1754828598.7491289433241035.JavaMail.hudson@aegis> In-Reply-To: <2038257518.16451288375667348.JavaMail.hudson@aegis> References: <2038257518.16451288375667348.JavaMail.hudson@aegis> Subject: Hudson build is back to normal : OpenJPA-Tools-trunk #22 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-Tools-trunk/22/changes> From commits-return-8054-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 11 10:12:23 2010 Return-Path: <commits-return-8054-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 56904 invoked from network); 11 Nov 2010 10:12:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 10:12:22 -0000 Received: (qmail 6406 invoked by uid 500); 11 Nov 2010 10:12:54 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 6353 invoked by uid 500); 11 Nov 2010 10:12:53 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 6344 invoked by uid 99); 11 Nov 2010 10:12:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 10:12:52 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 10:12:52 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 19A2CC0165 for <commits@openjpa.apache.org>; Thu, 11 Nov 2010 10:12:32 +0000 (UTC) Date: Thu, 11 Nov 2010 10:12:32 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <379955235.7951289470352104.JavaMail.hudson@aegis> In-Reply-To: <1152674481.5651289292693576.JavaMail.hudson@aegis> References: <1152674481.5651289292693576.JavaMail.hudson@aegis> Subject: Hudson build is back to normal : OpenJPA-trunk-deploy #52 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/52/changes> From commits-return-8055-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 11 10:12:23 2010 Return-Path: <commits-return-8055-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 56925 invoked from network); 11 Nov 2010 10:12:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 10:12:23 -0000 Received: (qmail 6483 invoked by uid 500); 11 Nov 2010 10:12:54 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 6426 invoked by uid 500); 11 Nov 2010 10:12:54 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 6416 invoked by uid 99); 11 Nov 2010 10:12:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 10:12:54 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 10:12:52 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 0E291C0164 for <commits@openjpa.apache.org>; Thu, 11 Nov 2010 10:12:31 +0000 (UTC) Date: Thu, 11 Nov 2010 10:12:30 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <2016260352.7941289470350936.JavaMail.hudson@aegis> In-Reply-To: <1320941314.5641289292692282.JavaMail.hudson@aegis> References: <1320941314.5641289292692282.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJPA-t?= =?UTF-8?Q?runk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#52?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/52/changes> From commits-return-8056-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 11 23:17:51 2010 Return-Path: <commits-return-8056-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 89243 invoked from network); 11 Nov 2010 23:17:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 23:17:51 -0000 Received: (qmail 94251 invoked by uid 500); 11 Nov 2010 23:18:22 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 94194 invoked by uid 500); 11 Nov 2010 23:18:22 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 94187 invoked by uid 99); 11 Nov 2010 23:18:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 23:18:21 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 23:18:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EB24023889BB; Thu, 11 Nov 2010 23:17:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1034196 - /openjpa/branches/1.2.x/openjpa-all/pom.xml Date: Thu, 11 Nov 2010 23:17:07 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101111231707.EB24023889BB@eris.apache.org> Author: mikedd Date: Thu Nov 11 23:17:07 2010 New Revision: 1034196 URL: http://svn.apache.org/viewvc?rev=1034196&view=rev Log: exclude testcases from openjpa-all.jar Modified: openjpa/branches/1.2.x/openjpa-all/pom.xml Modified: openjpa/branches/1.2.x/openjpa-all/pom.xml URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-all/pom.xml?rev=1034196&r1=1034195&r2=1034196&view=diff ============================================================================== --- openjpa/branches/1.2.x/openjpa-all/pom.xml (original) +++ openjpa/branches/1.2.x/openjpa-all/pom.xml Thu Nov 11 23:17:07 2010 @@ -54,6 +54,7 @@ <fileset dir="${basedir}/.."> <include name="*/target/openjpa-*.jar" /> <exclude name="*/target/openjpa-examples-*.jar" /> + <exclude name="**/*test*.jar"/> <exclude name="**/*-sources.jar" /> <exclude name="**/*-javadoc.jar" /> </fileset> From commits-return-8057-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 12 22:10:26 2010 Return-Path: <commits-return-8057-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 60263 invoked from network); 12 Nov 2010 22:10:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Nov 2010 22:10:26 -0000 Received: (qmail 43345 invoked by uid 500); 12 Nov 2010 22:10:57 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 43298 invoked by uid 500); 12 Nov 2010 22:10:57 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 43291 invoked by uid 99); 12 Nov 2010 22:10:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 22:10:57 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 22:10:56 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D34E823889EA; Fri, 12 Nov 2010 22:09:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1034583 - /openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java Date: Fri, 12 Nov 2010 22:09:42 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101112220942.D34E823889EA@eris.apache.org> Author: mikedd Date: Fri Nov 12 22:09:42 2010 New Revision: 1034583 URL: http://svn.apache.org/viewvc?rev=1034583&view=rev Log: OPENJPA-1790: Added Proxy for concurrent maps. Submitted By: Heath Thomann, ported from Jody's patch for trunk Modified: openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java Modified: openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java?rev=1034583&r1=1034582&r2=1034583&view=diff ============================================================================== --- openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java (original) +++ openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java Fri Nov 12 22:09:42 2010 @@ -59,6 +59,8 @@ import org.apache.openjpa.lib.util.Optio import org.apache.openjpa.lib.util.concurrent.NullSafeConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; + import serp.bytecode.BCClass; import serp.bytecode.BCField; import serp.bytecode.BCMethod; @@ -560,7 +562,9 @@ public class ProxyManagerImpl delegateConstructors(bc, type); addProxyMethods(bc, false); addProxyMapMethods(bc, type); - proxyRecognizedMethods(bc, type, ProxyMaps.class, ProxyMap.class); + Class<? extends ProxyMaps> mapProxyClassType = + ConcurrentMap.class.isAssignableFrom(type) ? ProxyConcurrentMaps.class : ProxyMaps.class; + proxyRecognizedMethods(bc, type, mapProxyClassType, ProxyMap.class); proxySetters(bc, type); addWriteReplaceMethod(bc, runtime); return bc; From commits-return-8058-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 12 22:11:04 2010 Return-Path: <commits-return-8058-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 60452 invoked from network); 12 Nov 2010 22:11:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Nov 2010 22:11:04 -0000 Received: (qmail 43608 invoked by uid 500); 12 Nov 2010 22:11:36 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 43580 invoked by uid 500); 12 Nov 2010 22:11:36 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 43555 invoked by uid 99); 12 Nov 2010 22:11:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 22:11:36 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 22:11:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 225FF23889E7; Fri, 12 Nov 2010 22:10:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1034584 - in /openjpa/branches/2.0.x: openjpa-kernel/src/main/java/org/apache/openjpa/util/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ Date: Fri, 12 Nov 2010 22:10:13 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101112221013.225FF23889E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Fri Nov 12 22:10:12 2010 New Revision: 1034584 URL: http://svn.apache.org/viewvc?rev=1034584&view=rev Log: OPENJPA-1790: Added Proxy for concurrent maps. Submitted By: Heath Thomann, ported from Jody's patch for trunk Added: openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyConcurrentMaps.java (with props) openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityLeft.java (with props) openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityRight.java (with props) openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestConcurrentMap.java (with props) Added: openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyConcurrentMaps.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyConcurrentMaps.java?rev=1034584&view=auto ============================================================================== --- openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyConcurrentMaps.java (added) +++ openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyConcurrentMaps.java Fri Nov 12 22:10:12 2010 @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.util; + +import java.util.Map; + +/** + * Utility methods used by concurrent map proxies. + * + */ +public class ProxyConcurrentMaps extends ProxyMaps { + + /** + * Call before invoking {@link Map#remove} on super. + */ + public static boolean beforeRemove(ProxyMap map, Object key, Object value) { + dirty(map, false); + return map.containsKey(key); + } + + /** + * Call after invoking {@link Map#remove} on super. + * + * @param ret the return value from the super's method + * @param before the return value from {@link #beforeRemove} + * @return the value to return from {@link Map#remove} + */ + public static boolean afterRemove(ProxyMap map, Object key, Object value, boolean ret, + boolean before) { + if (before) { + if (map.getChangeTracker() != null) { + ((MapChangeTracker) map.getChangeTracker()).removed(key, ret); + } + removed(map, key, true); + removed(map, ret, false); + } + return ret; + } +} Propchange: openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyConcurrentMaps.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityLeft.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityLeft.java?rev=1034584&view=auto ============================================================================== --- openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityLeft.java (added) +++ openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityLeft.java Fri Nov 12 22:10:12 2010 @@ -0,0 +1,64 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.relations; + +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToOne; + +@Entity +public class ConcurrentEntityLeft { + @Id + private int id; + + private String strData; + + @ManyToOne + @JoinColumn(name="right_id", referencedColumnName="id") + private ConcurrentEntityRight rightEntity; + + public ConcurrentEntityLeft() { + + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getStrData() { + return strData; + } + + public void setStrData(String strData) { + this.strData = strData; + } + + public ConcurrentEntityRight getRightEntity() { + return rightEntity; + } + + public void setRightEntity(ConcurrentEntityRight rightEntity) { + this.rightEntity = rightEntity; + } +} Propchange: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityLeft.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityRight.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityRight.java?rev=1034584&view=auto ============================================================================== --- openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityRight.java (added) +++ openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityRight.java Fri Nov 12 22:10:12 2010 @@ -0,0 +1,64 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.relations; + +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.MapKey; +import javax.persistence.OneToMany; + +@Entity +public class ConcurrentEntityRight { + @Id + private int id; + + private String strData; + + @OneToMany(mappedBy="rightEntity", targetEntity=ConcurrentEntityLeft.class, + cascade={javax.persistence.CascadeType.ALL}) + @MapKey(name="strData") + private Map<String, ConcurrentEntityLeft> leftEntityMap; + + public ConcurrentEntityRight() { + leftEntityMap = new ConcurrentHashMap<String, ConcurrentEntityLeft>(); + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getStrData() { + return strData; + } + + public void setStrData(String strData) { + this.strData = strData; + } + + public Map<String, ConcurrentEntityLeft> getLeftEntityMap() { + return leftEntityMap; + } +} Propchange: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityRight.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestConcurrentMap.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestConcurrentMap.java?rev=1034584&view=auto ============================================================================== --- openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestConcurrentMap.java (added) +++ openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestConcurrentMap.java Fri Nov 12 22:10:12 2010 @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.relations; + +import org.apache.openjpa.persistence.test.SingleEMTestCase; + +public class TestConcurrentMap extends SingleEMTestCase { + public void setUp() { + setUp(ConcurrentEntityLeft.class, ConcurrentEntityRight.class, + CLEAR_TABLES); + } + + public void testConcurrentMap001() { + em.getTransaction().begin(); + + ConcurrentEntityLeft left = new ConcurrentEntityLeft(); + left.setId(1); + left.setStrData("Lefty"); + + ConcurrentEntityRight right = new ConcurrentEntityRight(); + right.setId(1); + right.setStrData("Poncho"); + + em.persist(left); + em.persist(right); + + left.setRightEntity(right); + right.getLeftEntityMap().put(left.getStrData(), left); + + em.getTransaction().commit(); + } +} Propchange: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestConcurrentMap.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8059-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 13 08:46:07 2010 Return-Path: <commits-return-8059-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 28380 invoked from network); 13 Nov 2010 08:46:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 08:46:06 -0000 Received: (qmail 71191 invoked by uid 500); 13 Nov 2010 08:46:38 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 71131 invoked by uid 500); 13 Nov 2010 08:46:38 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 71117 invoked by uid 99); 13 Nov 2010 08:46:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 08:46:37 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 08:46:34 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 078ADC0164 for <commits@openjpa.apache.org>; Sat, 13 Nov 2010 08:46:13 +0000 (UTC) Date: Sat, 13 Nov 2010 08:46:12 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1040176903.9791289637972969.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-2?= =?UTF-8?Q?0x-deploy_=C2=BB_OpenJPA_Parent_POM_#25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/25/> ------------------------------------------ <===[HUDSON REMOTING CAPACITY]===>channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/ws/pom.xml> clean deploy [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, deploy] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/ws/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: /bin/sh -c cd <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/ws/> && svn --non-interactive info [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/ws/> [INFO] Storing buildNumber: 1034584 at timestamp: November 13, 2010 at 8:35 AM [INFO] Executing: /bin/sh -c cd <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/ws/> && svn --non-interactive info [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/ws/> [INFO] Storing buildScmBranch: branches/2.0.x [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/ws/pom.xml> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-parent/2.0.2-SNAPSHOT/openjpa-parent-2.0.2-SNAPSHOT.pom [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-parent/2.0.2-SNAPSHOT/openjpa-parent-2.0.2-20101113.083601-23.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/ws/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-20x-deploy/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-13_08-35-14/archive/org.apache.openjpa/openjpa-parent/2.0.2-SNAPSHOT/pom.xml [HUDSON] Archiving /home/hudson/.m2/repository/org/apache/openjpa/openjpa-parent/2.0.2-SNAPSHOT/openjpa-parent-2.0.2-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-20x-deploy/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-13_08-35-14/archive/org.apache.openjpa/openjpa-parent/2.0.2-20101113.083601-23/openjpa-parent-2.0.2-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Failed to transfer file: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-parent/2.0.2-SNAPSHOT/openjpa-parent-2.0.2-20101113.083601-23.pom. Return code is: 502 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10 minutes 48 seconds [INFO] Finished at: Sat Nov 13 08:46:12 UTC 2010 [INFO] Final Memory: 47M/403M [INFO] ------------------------------------------------------------------------ From commits-return-8060-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 13 08:46:07 2010 Return-Path: <commits-return-8060-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 28398 invoked from network); 13 Nov 2010 08:46:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 08:46:07 -0000 Received: (qmail 71218 invoked by uid 500); 13 Nov 2010 08:46:38 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 71169 invoked by uid 500); 13 Nov 2010 08:46:38 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 71120 invoked by uid 99); 13 Nov 2010 08:46:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 08:46:37 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 08:46:34 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 4E468C0165 for <commits@openjpa.apache.org>; Sat, 13 Nov 2010 08:46:13 +0000 (UTC) Date: Sat, 13 Nov 2010 08:46:13 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1168572147.9801289637973319.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-20x-deploy #25 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/25/changes> Changes: [mikedd] OPENJPA-1790: Added Proxy for concurrent maps. Submitted By: Heath Thomann, ported from Jody's patch for trunk [mikedd] OPENJPA-1790: Added Proxy for concurrent maps. Submitted By: Heath Thomann, ported from Jody's patch for trunk ------------------------------------------ Started by an SCM change Building remotely on ubuntu1 Updating https://svn.apache.org/repos/asf/openjpa/branches/2.0.x U openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/OracleDictionary.java U openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java AU openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyConcurrentMaps.java U openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java AU openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityRight.java AU openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestConcurrentMap.java AU openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/ConcurrentEntityLeft.java At revision 1034700 Parsing POMs [2.0.x] $ /home/hudson/tools/java/latest1.6/bin/java -Xmx1024m -XX:MaxPermSize=256m -cp /home/hudson/hudson-slave/maven-agent.jar:/home/hudson/tools/maven/apache-maven-2.2.1/boot/classworlds-1.1.jar hudson.maven.agent.Main /home/hudson/tools/maven/apache-maven-2.2.1 /home/hudson/hudson-slave/slave.jar /home/hudson/hudson-slave/maven-interceptor.jar 51669 /home/hudson/hudson-slave/maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===>channel started Executing Maven: -B -f <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/ws/2.0.x/pom.xml> clean deploy [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO] OpenJPA Persistence Locking Tests [INFO] OpenJPA XML Store [INFO] OpenJPA Slice [INFO] OpenJPA Aggregate Jar [INFO] OpenJPA Aggregate Jar with Dependencies [INFO] OpenJPA Project Docs and Assemblies [INFO] OpenJPA Examples [INFO] OpenJPA Integration Tests [INFO] OpenJPA Integration Tests - Daytrader [INFO] OpenJPA Integration Tests - Examples [INFO] OpenJPA Integration Tests - JPA TCK [INFO] OpenJPA Integration Tests - Bean Validation [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Parent POM [INFO] task-segment: [clean, deploy] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/ws/2.0.x/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: /bin/sh -c cd <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/ws/2.0.x> && svn --non-interactive info [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/ws/2.0.x> [INFO] Storing buildNumber: 1034584 at timestamp: November 13, 2010 at 8:35 AM [INFO] Executing: /bin/sh -c cd <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/ws/2.0.x> && svn --non-interactive info [INFO] Working directory: <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/ws/2.0.x> [INFO] Storing buildScmBranch: branches/2.0.x [INFO] [enforcer:enforce {execution: default}] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] Parent project loaded from repository. [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/ws/2.0.x/pom.xml> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-parent/2.0.2-SNAPSHOT/openjpa-parent-2.0.2-SNAPSHOT.pom [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-parent/2.0.2-SNAPSHOT/openjpa-parent-2.0.2-20101113.083601-23.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/ws/2.0.x/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-20x-deploy/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-13_08-35-14/archive/org.apache.openjpa/openjpa-parent/2.0.2-SNAPSHOT/pom.xml [HUDSON] Archiving /home/hudson/.m2/repository/org/apache/openjpa/openjpa-parent/2.0.2-SNAPSHOT/openjpa-parent-2.0.2-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-20x-deploy/modules/org.apache.openjpa$openjpa-parent/builds/2010-11-13_08-35-14/archive/org.apache.openjpa/openjpa-parent/2.0.2-20101113.083601-23/openjpa-parent-2.0.2-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error deploying artifact: Failed to transfer file: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-parent/2.0.2-SNAPSHOT/openjpa-parent-2.0.2-20101113.083601-23.pom. Return code is: 502 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10 minutes 48 seconds [INFO] Finished at: Sat Nov 13 08:46:12 UTC 2010 [INFO] Final Memory: 47M/403M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8061-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 13 10:57:35 2010 Return-Path: <commits-return-8061-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 70520 invoked from network); 13 Nov 2010 10:57:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 10:57:35 -0000 Received: (qmail 24967 invoked by uid 500); 13 Nov 2010 10:58:06 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 24910 invoked by uid 500); 13 Nov 2010 10:58:06 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 24903 invoked by uid 99); 13 Nov 2010 10:58:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 10:58:05 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 10:58:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CED1C23889C5; Sat, 13 Nov 2010 10:56:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1034728 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java Date: Sat, 13 Nov 2010 10:56:47 -0000 To: commits@openjpa.apache.org From: mtylenda@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101113105647.CED1C23889C5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mtylenda Date: Sat Nov 13 10:56:47 2010 New Revision: 1034728 URL: http://svn.apache.org/viewvc?rev=1034728&view=rev Log: OPENJPA-1863: Update HSQLDictionary for HSQLDB 2.0 - patch provided by Georgi Naplatanov with slight modifications. Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java?rev=1034728&r1=1034727&r2=1034728&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java Sat Nov 13 10:56:47 2010 @@ -39,10 +39,9 @@ import org.apache.openjpa.util.OpenJPAEx import org.apache.openjpa.util.ReferentialIntegrityException; /** - * Dictionary for Hypersonic SQL database. + * Dictionary for HyperSQL (HSQLDB) database. */ -public class HSQLDictionary - extends DBDictionary { +public class HSQLDictionary extends DBDictionary { /** * Sets whether HSQL should use "CREATED CACHED TABLE" rather than @@ -50,6 +49,8 @@ public class HSQLDictionary */ public boolean cacheTables = false; + private int dbMajorVersion; + private SQLBuffer _oneBuffer = new SQLBuffer(this).append("1"); public HSQLDictionary() { @@ -80,8 +81,6 @@ public class HSQLDictionary rangePosition = RANGE_PRE_DISTINCT; supportsDeferredConstraints = false; - useGetObjectForBlobs = true; - blobTypeName = "VARBINARY"; doubleTypeName = "NUMERIC"; supportsNullTableForGetPrimaryKeys = true; @@ -98,6 +97,39 @@ public class HSQLDictionary })); } + /** + * Determine HSQLDB version and configure itself accordingly. + */ + @Override + public void connectedConfiguration(Connection conn) throws SQLException { + super.connectedConfiguration(conn); + + determineHSQLDBVersion(conn) ; + + if (dbMajorVersion == 1) { + blobTypeName = "VARBINARY"; + useGetObjectForBlobs = true; + } + } + + /** + * Determine HSQLDB version either by using JDBC 3 method or, if it + * is not available, by parsing the value returned by + * {@linkplain DatabaseMetaData#getDatabaseProductVersion()}. + */ + protected void determineHSQLDBVersion(Connection con) throws SQLException { + DatabaseMetaData metaData = con.getMetaData(); + + if (isJDBC3) { + dbMajorVersion = metaData.getDatabaseMajorVersion(); + } else { + // String is like "2.0.0" + String productVersion = metaData.getDatabaseProductVersion(); + String[] version = productVersion.split("\\.") ; + dbMajorVersion = Integer.parseInt(version[0]) ; + } + } + @Override public int getJDBCType(int metaTypeCode, boolean lob) { int type = super.getJDBCType(metaTypeCode, lob); @@ -112,6 +144,9 @@ public class HSQLDictionary @Override public int getPreferredType(int type) { + if (dbMajorVersion > 1) { + return super.getPreferredType(type); + } switch (type) { case Types.CLOB: return Types.VARCHAR; From commits-return-8062-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 13 13:37:19 2010 Return-Path: <commits-return-8062-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 39447 invoked from network); 13 Nov 2010 13:37:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 13:37:19 -0000 Received: (qmail 9840 invoked by uid 500); 13 Nov 2010 13:37:50 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 9780 invoked by uid 500); 13 Nov 2010 13:37:50 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 9765 invoked by uid 99); 13 Nov 2010 13:37:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 13:37:49 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 13:37:48 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id CB4A6C0165 for <commits@openjpa.apache.org>; Sat, 13 Nov 2010 13:37:28 +0000 (UTC) Date: Sat, 13 Nov 2010 13:37:28 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <418993417.10081289655448831.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_unstable:_OpenJPA-t?= =?UTF-8?Q?runk_=C2=BB_OpenJPA_Persistence_JDBC_#330?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/330/> From commits-return-8063-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 13 13:37:19 2010 Return-Path: <commits-return-8063-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 39464 invoked from network); 13 Nov 2010 13:37:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 13:37:19 -0000 Received: (qmail 9901 invoked by uid 500); 13 Nov 2010 13:37:51 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 9835 invoked by uid 500); 13 Nov 2010 13:37:50 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 9766 invoked by uid 99); 13 Nov 2010 13:37:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 13:37:49 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 13:37:49 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id BF8DFC0164 for <commits@openjpa.apache.org>; Sat, 13 Nov 2010 13:37:28 +0000 (UTC) Date: Sat, 13 Nov 2010 13:37:28 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1937649884.10071289655448715.JavaMail.hudson@aegis> In-Reply-To: <1421548606.7301289423920903.JavaMail.hudson@aegis> References: <1421548606.7301289423920903.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_normal_:_OpenJP?= =?UTF-8?Q?A-trunk_=C2=BB_OpenJPA_Utilities_Library_#330?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-lib/330/> From commits-return-8064-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 13 13:37:22 2010 Return-Path: <commits-return-8064-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 39502 invoked from network); 13 Nov 2010 13:37:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 13:37:22 -0000 Received: (qmail 9947 invoked by uid 500); 13 Nov 2010 13:37:53 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 9920 invoked by uid 500); 13 Nov 2010 13:37:53 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 9913 invoked by uid 99); 13 Nov 2010 13:37:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 13:37:53 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 13:37:50 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 2CCB4C0166 for <commits@openjpa.apache.org>; Sat, 13 Nov 2010 13:37:30 +0000 (UTC) Date: Sat, 13 Nov 2010 13:37:30 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1048849997.10091289655450182.JavaMail.hudson@aegis> In-Reply-To: <1544083068.7311289423921576.JavaMail.hudson@aegis> References: <1544083068.7311289423921576.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #330 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/330/changes> Changes: [mtylenda] OPENJPA-1863: Update HSQLDictionary for HSQLDB 2.0 - patch provided by Georgi Naplatanov with slight modifications. ------------------------------------------ [...truncated 22997 lines...] [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeContextBuilderImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/PathImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/ConstraintDefinitionValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderCustomizableContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$2.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$3.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$4.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$5.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$6.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$2.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/EnumerationConverter.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderDefinedContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/IOUtils.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorIdentity.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/JPATraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingRelevant.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/DefaultTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver$CacheEntry.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/SimpleTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ElementDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ConstructorDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ProcedureDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ReturnAccess.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterAccess.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/AppendValidationToList.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidatorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintViolationImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorContextImpl$ConstraintViolationBuilderImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContext.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidationListener.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Groups.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Group.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/GroupsComputer.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultMessageInterpolator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BaseAppendValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultValidationProviderResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303MetaBeanFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext$XMLMetaBeanManagerCreator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BeanDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintCached.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultConstraintValidatorFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Property.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Bean.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConfigurationImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfiguration$Properties.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfiguration.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/NestedMetaProperty.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/UnknownPropertyException.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator$Jsr303ValidationCallback.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder$ConstraintOverrides.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToBuilder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/PropertyDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToMeta.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidationProvider.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GraphBeanIdentity.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfBoolean.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfShort.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfObject.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfByte.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotNullValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForMap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForCollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmpty.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorForDate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfFloat.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/EmailValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/Email.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertFalseValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForDate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForMap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorForCalendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NullValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForCollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfLong.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertTrueValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PatternValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfDouble.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfChar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForCalendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfInt.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [INFO] Replacing original artifact with shaded artifact. [INFO] Replacing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> with <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-shaded.jar> [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT.jar [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT.jar [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT-tests.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-all/dependency-reduced-pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-all/builds/2010-11-13_12-22-15/archive/org.apache.openjpa/openjpa-all/2.1.0-SNAPSHOT/dependency-reduced-pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-all/builds/2010-11-13_12-22-15/archive/org.apache.openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-all/builds/2010-11-13_12-22-15/archive/org.apache.openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Project Docs and Assemblies [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [assembly:attached {execution: bin}] [INFO] Reading assembly descriptor: assembly.xml [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjpa:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjpa:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead [INFO] [assembly:attached {execution: sources}] [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-source.zip [WARNING] Artifact does not contain any legal files: apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-project/pom.xml> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-source.zip [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-project/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-13_12-22-15/archive/org.apache.openjpa/apache-openjpa/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-13_12-22-15/archive/org.apache.openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-13_12-22-15/archive/org.apache.openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-binary.zip [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-13_12-22-15/archive/org.apache.openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-source.zip Build timed out. Aborting Sending e-mails to: commits@openjpa.apache.org Sending e-mails to: commits@openjpa.apache.org [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown [INFO] ------------------------------------------------------------------------ [INFO] Trace hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Request.call(Request.java:137) at hudson.remoting.Channel.call(Channel.java:630) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy2.isArchivingDisabled(Unknown Source) at hudson.maven.MavenBuildProxy$Filter.isArchivingDisabled(MavenBuildProxy.java:222) at hudson.maven.reporters.MavenArtifact.archive(MavenArtifact.java:192) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:107) at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:800) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:317) at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:275) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:750) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) channel stopped Caused by: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Request.abort(Request.java:257) at hudson.remoting.Channel.terminate(Channel.java:681) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:764) at hudson.remoting.Channel$ReaderThread.run(Channel.java:963) Caused by: hudson.remoting.Channel$OrderlyShutdown ... 2 more Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:58) at hudson.remoting.Command.<init>(Command.java:47) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel.close(Channel.java:805) at hudson.slaves.Channels$1.close(Channels.java:91) at hudson.maven.ProcessCache$MavenProcess.discard(ProcessCache.java:145) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:541) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1324) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 75 minutes 4 seconds [INFO] Finished at: Sat Nov 13 13:37:28 UTC 2010 [INFO] Final Memory: 107M/514M [INFO] ------------------------------------------------------------------------ From commits-return-8065-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 13 17:09:54 2010 Return-Path: <commits-return-8065-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 26585 invoked from network); 13 Nov 2010 17:09:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 17:09:54 -0000 Received: (qmail 60425 invoked by uid 500); 13 Nov 2010 17:10:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 60380 invoked by uid 500); 13 Nov 2010 17:10:25 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 60373 invoked by uid 99); 13 Nov 2010 17:10:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 17:10:24 +0000 X-ASF-Spam-Status: No, hits=-1994.3 required=10.0 tests=ALL_TRUSTED,HTML_MESSAGE,MIME_HTML_ONLY 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; Sat, 13 Nov 2010 17:10:21 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oADHA0dR029735 for <commits@openjpa.apache.org>; Sat, 13 Nov 2010 17:10:00 GMT Date: Sat, 13 Nov 2010 12:10:00 -0500 (EST) From: confluence@apache.org To: commits@openjpa.apache.org Message-ID: <27763334.6164.1289668200153.JavaMail.confluence@thor> Subject: [CONF] OpenJPA > SampleTemplate MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Auto-Submitted: auto-generated X-Virus-Checked: Checked by ClamAV on apache.org <html> <head> <base href="https://cwiki.apache.org/confluence"> <link rel="stylesheet" href="/confluence/s/1810/9/5/_/styles/combined.css?spaceKey=openjpa&forWysiwyg=true" type="text/css"> </head> <body style="background: white;" bgcolor="white" class="email-body"> <div id="pageContent"> <div id="notificationFormat"> <div class="wiki-content"> <div class="email"> <h2><a href="https://cwiki.apache.org/confluence/display/openjpa/SampleTemplate">SampleTemplate</a></h2> <h4>Page <b>added</b> by <a href="https://cwiki.apache.org/confluence/display/~ppoddar@apache.org">Pinaki Poddar</a> </h4> <br/> <div class="notificationGreySide"> <h1><a name="SampleTemplate-AtemplateforOpenJPASamples"></a>A template for OpenJPA Samples</h1> <h2><a name="SampleTemplate-Introduction"></a>Introduction</h2> <p> A paragraph describing the basic purpose of the presented sample. In general, the purpose of a sample could be, but not limited to,</p> <ul> <li>to highlight some new feature introduced in a release (e.g. Bean Validation or Criteria API)</li> <li>to describe wiring between frameworks e.g. JSF and JPA, GWT and JPA</li> <li>to demonstrate operation within a container e.g. OSgi, Spring, Tomcat or JEE</li> <li>a combination of the above</li> </ul> <p>For example, <br/> "this sample demonstrates usage of new Bean Validation API in a multi-tier web application" <br/> or "this sample integrates client-side Google Web Toolkit architecture with sever-side JPA application".<br/> The functional features of the samples such as "This OpenBooks example can be used to place order and browse books" – are not that important in this context but can be mentioned.</p> <h2><a name="SampleTemplate-Installation"></a>Installation</h2> <p> State the availability of the sample. </p> <p> Is the distribution available as a downloadable archieve? If packaged in an archieve, all source code, build instructions must be available in the distribution itself. A <tt>README.txt</tt> should be inside and outside the distribution.</p> <p> Is the sample to be checked out from code repository? In such cases, building the sample should be done with Ant or Maven. Prefer Ant to make the dependencies and steps more visible. </p> <p> The steps in this section should be clear and concise for an user to follow them to build, deploy and run the samples. </p> <h2><a name="SampleTemplate-Environment"></a>Environment</h2> <p> Enumerate the software artifacts required to build, deploy and run the sample. The artifacts should be categorized into build time and run time dependencies. </p> <h2><a name="SampleTemplate-Configuration"></a>Configuration</h2> <p> Often building a sample will require the user to configure dependencies (such as OpenJPA libraries or JDBC Driver), for his/her local environment.<br/> The ANT build scripts for a sample must accept configurable properties via <tt>build.properties</tt> or similar configurable mechanics. The properties configuration file itself should be documented to explain the dependencies and how the build script use them. Maven based build scripts can make these dependencies more implicit and saves the user to explicitly satisfy such dependencies. However, ANT based builds are preferred over Maven for the samples, so that the build steps and dependencies are made more visible to the user.</p> <h2><a name="SampleTemplate-BestPractices"></a>Best Practices</h2> <p> The samples, besides demonstration of a feature, are a suitable vehicle of showing good development practices in JPA application programming model such as persistent domain modeling or architectural practices. It is recommended that such best practices be mentioned in several places: </p> <ul> <li>in the source code</li> <li>build scripts</li> <li>a separate document that enumerates them in one place.</li> </ul> <h2><a name="SampleTemplate-Caveats"></a>Caveats</h2> <p> The complete develop-build-run cycle of a sample will often bring out the special considerations. For example, reported common errors in deployment in a container and their remedies or certain undesirable usage patterns. The description of a sample should highlight these special considerations rather than making the exercise appear as a series of perfectly easy steps. The caveats can be further highlighted by linking them to relevant JIRA issues or forum discussions or external blogs etc. </p> <p>...</p> </div> <div id="commentsSection" class="wiki-content pageSection"> <div style="float: right;"> <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action" class="grey">Change Notification Preferences</a> </div> <a href="https://cwiki.apache.org/confluence/display/openjpa/SampleTemplate">View Online</a> | <a href="https://cwiki.apache.org/confluence/display/openjpa/SampleTemplate?showComments=true&showCommentArea=true#addcomment">Add Comment</a> </div> </div> </div> </div> </div> </body> </html> From commits-return-8066-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 13 21:26:40 2010 Return-Path: <commits-return-8066-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 28098 invoked from network); 13 Nov 2010 21:26:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 21:26:39 -0000 Received: (qmail 6892 invoked by uid 500); 13 Nov 2010 21:27:11 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 6843 invoked by uid 500); 13 Nov 2010 21:27:11 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 6836 invoked by uid 99); 13 Nov 2010 21:27:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 21:27:10 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 21:27:10 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 245DFC0164 for <commits@openjpa.apache.org>; Sat, 13 Nov 2010 21:26:50 +0000 (UTC) Date: Sat, 13 Nov 2010 21:26:50 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <175153802.10311289683610066.JavaMail.hudson@aegis> In-Reply-To: <1040176903.9791289637972969.JavaMail.hudson@aegis> References: <1040176903.9791289637972969.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_normal_:_OpenJ?= =?UTF-8?Q?PA-20x-deploy_=C2=BB_OpenJPA_Parent_POM_#26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/org.apache.openjpa$openjpa-parent/26/> From commits-return-8067-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 13 21:26:40 2010 Return-Path: <commits-return-8067-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 28128 invoked from network); 13 Nov 2010 21:26:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 21:26:40 -0000 Received: (qmail 6941 invoked by uid 500); 13 Nov 2010 21:27:11 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 6919 invoked by uid 500); 13 Nov 2010 21:27:11 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 6912 invoked by uid 99); 13 Nov 2010 21:27:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 21:27:11 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 21:27:11 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 573E0C0165 for <commits@openjpa.apache.org>; Sat, 13 Nov 2010 21:26:51 +0000 (UTC) Date: Sat, 13 Nov 2010 21:26:51 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1144971912.10321289683611356.JavaMail.hudson@aegis> In-Reply-To: <1168572147.9801289637973319.JavaMail.hudson@aegis> References: <1168572147.9801289637973319.JavaMail.hudson@aegis> Subject: Hudson build is back to normal : OpenJPA-20x-deploy #26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-20x-deploy/26/> From commits-return-8068-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 14 10:15:12 2010 Return-Path: <commits-return-8068-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 25970 invoked from network); 14 Nov 2010 10:15:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Nov 2010 10:15:12 -0000 Received: (qmail 85147 invoked by uid 500); 14 Nov 2010 10:15:44 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 85091 invoked by uid 500); 14 Nov 2010 10:15:43 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 85084 invoked by uid 99); 14 Nov 2010 10:15:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Nov 2010 10:15:42 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Nov 2010 10:15:42 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id B6CF5C0164 for <commits@openjpa.apache.org>; Sun, 14 Nov 2010 10:15:21 +0000 (UTC) Date: Sun, 14 Nov 2010 10:15:21 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1351899761.10781289729721595.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJPA-tr?= =?UTF-8?Q?unk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/53/> From commits-return-8069-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 14 10:15:22 2010 Return-Path: <commits-return-8069-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 25999 invoked from network); 14 Nov 2010 10:15:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Nov 2010 10:15:22 -0000 Received: (qmail 85245 invoked by uid 500); 14 Nov 2010 10:15:53 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 85191 invoked by uid 500); 14 Nov 2010 10:15:53 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 85183 invoked by uid 99); 14 Nov 2010 10:15:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Nov 2010 10:15:53 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Nov 2010 10:15:47 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id F1B28C0165 for <commits@openjpa.apache.org>; Sun, 14 Nov 2010 10:15:25 +0000 (UTC) Date: Sun, 14 Nov 2010 10:15:25 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1030395171.10791289729725988.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk-deploy #53 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/53/changes> Changes: [mtylenda] OPENJPA-1863: Update HSQLDictionary for HSQLDB 2.0 - patch provided by Georgi Naplatanov with slight modifications. ------------------------------------------ [...truncated 14695 lines...] [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'artifact org.apache.openjpa:openjpa-xmlstore' [INFO] Uploading project information for openjpa-xmlstore 2.1.0-20101114.073347-101 [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/openjpa-xmlstore-2.1.0-20101114.073347-101-tests.jar 75K uploaded (openjpa-xmlstore-2.1.0-20101114.073347-101-tests.jar) [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-xmlstore/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-14_07-32-56/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-14_07-32-56/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-20101114.073347-101/openjpa-xmlstore-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-14_07-32-56/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-20101114.073347-101/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Slice [INFO] task-segment: [clean, deploy] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Starting audit... Audit done. [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 31 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/classes> [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 22 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/test-classes> [INFO] [antrun:run {execution: default}] [INFO] Executing tasks enhance: enhance.all.entities: [echo] running enhancer 237 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.UserDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@19f63ac has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.UserDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.UserDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 243 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SliceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@19f63ac has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SliceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SliceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 253 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.PersistenceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@19f63ac has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.PersistenceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.PersistenceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 321 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@19f63ac has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 404 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SingleEMFTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@19f63ac has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SingleEMFTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SingleEMFTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 422 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@19f63ac has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. [INFO] Executed tasks [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.slice.TestQuery 5 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 6 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 39 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 167 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 486 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4344 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12201 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 12425 ordering WARN [main] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 13 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 10 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 403 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 504 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 220 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 361 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is removed from cache excluded permanently. Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 4 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 230 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 349 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 363 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 376 ordering WARN [main] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 393 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 196 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 296 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 10 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 210 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 289 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 172 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 303 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 166 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 242 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 155 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 239 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 182 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 278 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 168 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 262 ordering WARN [main] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 292 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 178 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 289 ordering WARN [main] openjpa.Runtime - Query "select c from Car c" is removed from cache excluded permanently. Query "select c from Car c" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 297 ordering WARN [main] openjpa.Runtime - Query "select m from Manufacturer m" is removed from cache excluded permanently. Query "select m from Manufacturer m" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.635 sec Running org.apache.openjpa.slice.TestQueryMultiThreaded 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 166 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 264 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 269 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 275 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 282 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 138 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 210 ordering WARN [Thread-7] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 47 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 188 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 262 ordering WARN [Thread-12] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 140 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 208 ordering WARN [Thread-17] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 134 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 205 ordering WARN [Thread-22] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 136 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 211 ordering WARN [Thread-27] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 131 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 212 ordering WARN [Thread-32] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 218 ordering WARN [Thread-32] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Build timed out. Aborting Process 1289724091122 is killed. Sending e-mails to: commits@openjpa.apache.org [HUDSON] Recording test results [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to call isArchivingDisabled. Invalid object ID 23 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.IllegalStateException: Unable to call isArchivingDisabled. Invalid object ID 23 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:268) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 162 minutes 15 seconds [INFO] Finished at: Sun Nov 14 10:15:21 UTC 2010 [INFO] Final Memory: 140M/639M [INFO] ------------------------------------------------------------------------ channel stopped From commits-return-8070-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 16 20:00:58 2010 Return-Path: <commits-return-8070-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 97771 invoked from network); 16 Nov 2010 20:00:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 20:00:58 -0000 Received: (qmail 89187 invoked by uid 500); 16 Nov 2010 20:01:29 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 89132 invoked by uid 500); 16 Nov 2010 20:01:29 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 89121 invoked by uid 99); 16 Nov 2010 20:01:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 20:01:29 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 20:01:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 12D712388A9B; Tue, 16 Nov 2010 20:00:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1035770 - in /openjpa/branches/1.2.x: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ Date: Tue, 16 Nov 2010 20:00:12 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101116200012.12D712388A9B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Tue Nov 16 20:00:11 2010 New Revision: 1035770 URL: http://svn.apache.org/viewvc?rev=1035770&view=rev Log: Undo rev 1031618 temporarily Removed: openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java?rev=1035770&r1=1035769&r2=1035770&view=diff ============================================================================== --- openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java (original) +++ openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Tue Nov 16 20:00:11 2010 @@ -640,18 +640,6 @@ public class Column default: return false; } - case 2007: // Oracle-defined opaque type code for XMLType - switch (type) { - case Types.CHAR: - case Types.LONGVARCHAR: - case Types.VARCHAR: - case Types.CLOB: - case Types.BLOB: - return true; - default: - return false; - } - default: return type == getType(); } From commits-return-8071-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 16 20:34:06 2010 Return-Path: <commits-return-8071-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 18335 invoked from network); 16 Nov 2010 20:34:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 20:34:06 -0000 Received: (qmail 34138 invoked by uid 500); 16 Nov 2010 20:34:38 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 34079 invoked by uid 500); 16 Nov 2010 20:34:37 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 34072 invoked by uid 99); 16 Nov 2010 20:34:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 20:34:37 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 20:34:35 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 29B8FC0164 for <commits@openjpa.apache.org>; Tue, 16 Nov 2010 20:34:15 +0000 (UTC) Date: Tue, 16 Nov 2010 20:34:14 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <574429936.1991289939655054.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-12x #12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable See <https://hudson.apache.org/hudson/job/OpenJPA-12x/12/changes> Changes: [mikedd] Undo rev 1031618 temporarily ------------------------------------------ [...truncated 3054 lines...] A openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\pe= rsistence\query\common\apps A openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\pe= rsistence\query\common\apps\META-INF AU openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\pe= rsistence\query\common\apps\META-INF\persistence.xml A openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\pe= rsistence\xmlmapping A openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\pe= rsistence\xmlmapping\query A openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\pe= rsistence\xmlmapping\query\TestXMLCustomerOrder.oracle A openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\pe= rsistence\xmlmapping\query\TestXMLCustomerOrder.sqlserver A openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\pe= rsistence\xmlmapping\query\TestXMLCustomerOrder.db2 A openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\li= b A openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\li= b\conf AU openjpa-persistence-jdbc\src\test\resources\org\apache\openjpa\li= b\conf\product-derivations-load.xml A openjpa-persistence-jdbc\src\test\resources\j2.security.test.poli= cy A openjpa-persistence-jdbc\src\main A openjpa-persistence-jdbc\src\main\java A openjpa-persistence-jdbc\src\main\java\org A openjpa-persistence-jdbc\src\main\java\org\apache A openjpa-persistence-jdbc\src\main\java\org\apache\openjpa A openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence A openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ForeignKeyAction.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyClassCriteria.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\LRSSizeAlgorithm.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\VersionColumn.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XJoinColumn.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\AnnotationPersistenceMappingParser.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementForeignKey.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\MappingOverrides.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\Columns.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\Nonpolymorphic.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\DataStoreIdColumn.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XMappingOverride.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyJoinColumn.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XJoinColumns.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyColumns.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\DiscriminatorStrategy.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\FetchDirection.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XEmbeddedMapping.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\JDBCPersistenceProductDerivation.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementClassCriteria.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementColumn.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XSecondaryTables.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementJoinColumns.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XMLPersistenceMappingSerializer.java A openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\package.html AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementEmbeddedMapping.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XTable.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyIndex.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\NonpolymorphicType.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\AnnotationPersistenceMappingSerializer.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\PersistenceMappingFactory.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ClassCriteria.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\IsolationLevel.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementNonpolymorphic.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\MappingOverride.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\FetchMode.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\SubclassFetchMode.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\Strategy.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\EmbeddedMapping.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\Unique.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\VersionStrategy.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\JDBCFetchPlanImpl.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyJoinColumns.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyForeignKey.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyEmbeddedMapping.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementIndex.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\VersionColumns.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\JDBCFetchPlan.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementJoinColumn.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XSecondaryTable.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\OrderColumn.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ContainerTable.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ResultSetType.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ForeignKey.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\EagerFetchMode.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyColumn.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\JoinSyntax.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XMappingOverrides.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\Index.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyStrategy.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementStrategy.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\MappingTag.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\PersistenceMappingDefaults.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\KeyNonpolymorphic.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\ElementColumns.java AU openjpa-persistence-jdbc\src\main\java\org\apache\openjpa\persist= ence\jdbc\XMLPersistenceMappingParser.java A openjpa-persistence-jdbc\src\main\ant AU openjpa-persistence-jdbc\src\main\ant\enhancer.xml A openjpa-persistence-jdbc\src\main\resources A openjpa-persistence-jdbc\src\main\resources\META-INF A openjpa-persistence-jdbc\src\main\resources\META-INF\services A openjpa-persistence-jdbc\src\main\resources\META-INF\services\org= .apache.openjpa.lib.conf.ProductDerivation A openjpa-persistence-jdbc\src\main\resources\org A openjpa-persistence-jdbc\src\main\resources\org\apache A openjpa-persistence-jdbc\src\main\resources\org\apache\openjpa A openjpa-persistence-jdbc\src\main\resources\org\apache\openjpa\pe= rsistence A openjpa-persistence-jdbc\src\main\resources\org\apache\openjpa\pe= rsistence\jdbc AU openjpa-persistence-jdbc\src\main\resources\org\apache\openjpa\pe= rsistence\jdbc\localizer.properties AU openjpa-persistence-jdbc\pom.xml A openjpa-persistence A openjpa-persistence\src A openjpa-persistence\src\test A openjpa-persistence\src\test\java A openjpa-persistence\src\test\java\org A openjpa-persistence\src\test\java\org\apache A openjpa-persistence\src\test\java\org\apache\openjpa A openjpa-persistence\src\test\java\org\apache\openjpa\persistence AU openjpa-persistence\src\test\java\org\apache\openjpa\persistence\= TestEnumToKernelConstantMappings.java A openjpa-persistence\src\main A openjpa-persistence\src\main\java A openjpa-persistence\src\main\java\org A openjpa-persistence\src\main\java\org\apache A openjpa-persistence\src\main\java\org\apache\openjpa A openjpa-persistence\src\main\java\org\apache\openjpa\persistence AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= XMLPersistenceMetaDataSerializer.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= Persistent.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= DetachedState.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistenceException.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= FetchPlan.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= FetchGroup.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= Dependent.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= InvalidStateException.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= Factory.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistenceStrategy.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= ManagedInterface.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistenceMetaDataFactory.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= AnnotationPersistenceXMLMetaDataParser.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= MetaDataParsers.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= EntityManagerFactoryImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistenceUnitInfoImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= RestoreStateType.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= QueryOperationType.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= EntityManagerImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= ExtentImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= AnnotationPersistenceMetaDataParser.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= JPAFacadeHelper.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistentMap.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= NonUniqueResultException.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= DataStoreId.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= ConnectionRetainMode.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= Extent.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= RollbackException.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistenceProductDerivation.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= OpenJPAEntityManagerFactory.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= MetaDataTag.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= ReadOnly.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= FetchAttribute.java A openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= package.html AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= Type.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= QueryImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= OpenJPAEntityManagerFactorySPI.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= FetchGroups.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= EntityExistsException.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= DetachStateType.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= EntityManagerFactoryValue.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= DataCache.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= OpenJPAQuerySPI.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= ArgumentException.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= CallbackMode.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= OpenJPAPersistence.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= StoreCacheImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= ExternalValues.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= TransactionRequiredException.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= EntityNotFoundException.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= GeneratorImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= QueryResultCacheImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= AnnotationPersistenceMetaDataSerializer.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= KeyDependent.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= UpdateAction.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= StoreCache.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= AnnotationBuilder.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= AutoClearType.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistenceProviderImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= XMLPersistenceMetaDataParser.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= AutoDetachType.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= OpenJPAEntityManager.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= Generator.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistenceExceptions.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= QueryResultCache.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= KeyType.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistenceListenerAdapter.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= ElementType.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= OpenJPAEntityTransaction.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= OpenJPAEntityManagerSPI.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= LRS.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= LoadFetchGroup.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= InverseLogical.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= OptimisticLockException.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= Externalizer.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistentCollection.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= PersistenceMetaDataDefaults.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= ElementDependent.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= OpenJPAQuery.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= FetchPlanImpl.java AU openjpa-persistence\src\main\java\org\apache\openjpa\persistence\= NoResultException.java A openjpa-persistence\src\main\resources A openjpa-persistence\src\main\resources\META-INF A openjpa-persistence\src\main\resources\META-INF\services A openjpa-persistence\src\main\resources\META-INF\services\org.apac= he.openjpa.lib.conf.ProductDerivation A openjpa-persistence\src\main\resources\META-INF\services\javax.pe= rsistence.spi.PersistenceProvider A openjpa-persistence\src\main\resources\org A openjpa-persistence\src\main\resources\org\apache A openjpa-persistence\src\main\resources\org\apache\openjpa A openjpa-persistence\src\main\resources\org\apache\openjpa\persist= ence AU openjpa-persistence\src\main\resources\org\apache\openjpa\persist= ence\localizer.properties A openjpa-persistence\src\main\resources\org\apache\openjpa\persist= ence\orm-xsd.rsrc A openjpa-persistence\src\main\resources\org\apache\openjpa\persist= ence\persistence-xsd.rsrc AU openjpa-persistence\pom.xml U . At revision 1035780 WARNING: clock of the subversion server appears to be out of sync. This can= result in inconsistent check out behavior. Parsing POMs [1.2.x] $ c:\hudson\tools\java\latest-1.5-64/bin/java -Xmx1024m -XX:MaxPerm= Size=3D256m -cp c:\hudson\hudson-slave\maven-agent.jar;c:\hudson\tools\mave= n\apache-maven-2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main c:\hu= dson\tools\maven\apache-maven-2.2.1 C:\Users\hudson\AppData\LocalLow\Sun\Ja= va\Deployment\cache\6.0\11\186ce08b-3b0b3d36 c:\hudson\hudson-slave\maven-i= nterceptor.jar 52952 c:\hudson\hudson-slave\maven2.1-interceptor.jar ERROR: Processing failed due to a bug in the code. Please report this to us= ers@hudson.dev.java.net java.lang.reflect.UndeclaredThrowableException =09at hudson.maven.$Proxy23.accept(Unknown Source) =09at hudson.maven.MavenProcessFactory.newProcess(MavenProcessFactory.java:= 220) =09at hudson.maven.ProcessCache.get(ProcessCache.java:231) =09at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild= .java:502) =09at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) =09at hudson.model.Run.run(Run.java:1324) =09at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349) =09at hudson.model.ResourceController.execute(ResourceController.java:88) =09at hudson.model.Executor.run(Executor.java:139) Caused by: java.lang.InterruptedException =09at java.lang.Object.wait(Native Method) =09at hudson.remoting.Request.call(Request.java:122) =09at hudson.remoting.Channel.call(Channel.java:630) =09at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandle= r.java:158) =09... 9 more project=3Dhudson.maven.MavenModuleSet@29f3f6e7[OpenJPA-12x] project.getModules()=3D[hudson.maven.MavenModule@fb728a9[OpenJPA-12x/org.ap= ache.openjpa:apache-openjpa], hudson.maven.MavenModule@163f4c24[OpenJPA-12x= /org.apache.openjpa:openjpa], hudson.maven.MavenModule@d0472ac[OpenJPA-12x/= org.apache.openjpa:openjpa-examples], hudson.maven.MavenModule@35f42649[Ope= nJPA-12x/org.apache.openjpa:openjpa-integration], hudson.maven.MavenModule@= 22c13eca[OpenJPA-12x/org.apache.openjpa:openjpa-integration-examples], huds= on.maven.MavenModule@639e24a1[OpenJPA-12x/org.apache.openjpa:openjpa-integr= ation-tck], hudson.maven.MavenModule@65536eb4[OpenJPA-12x/org.apache.openjp= a:openjpa-jdbc], hudson.maven.MavenModule@27d9954b[OpenJPA-12x/org.apache.o= penjpa:openjpa-kernel], hudson.maven.MavenModule@f964ca1[OpenJPA-12x/org.ap= ache.openjpa:openjpa-lib], hudson.maven.MavenModule@613bd203[OpenJPA-12x/or= g.apache.openjpa:openjpa-parent], hudson.maven.MavenModule@1b0fa7ff[OpenJPA= -12x/org.apache.openjpa:openjpa-persistence], hudson.maven.MavenModule@4d85= 67b6[OpenJPA-12x/org.apache.openjpa:openjpa-persistence-jdbc], hudson.maven= .MavenModule@248c46b[OpenJPA-12x/org.apache.openjpa:openjpa-slice], hudson.= maven.MavenModule@784222a[OpenJPA-12x/org.apache.openjpa:openjpa-xmlstore]] project.getRootModule()=3Dhudson.maven.MavenModule@613bd203[OpenJPA-12x/org= .apache.openjpa:openjpa-parent] FATAL: null java.lang.reflect.UndeclaredThrowableException =09at hudson.maven.$Proxy23.accept(Unknown Source) =09at hudson.maven.MavenProcessFactory.newProcess(MavenProcessFactory.java:= 220) =09at hudson.maven.ProcessCache.get(ProcessCache.java:231) =09at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild= .java:502) =09at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) =09at hudson.model.Run.run(Run.java:1324) =09at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349) =09at hudson.model.ResourceController.execute(ResourceController.java:88) =09at hudson.model.Executor.run(Executor.java:139) Caused by: java.lang.InterruptedException =09at java.lang.Object.wait(Native Method) =09at hudson.remoting.Request.call(Request.java:122) =09at hudson.remoting.Channel.call(Channel.java:630) =09at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandle= r.java:158) =09... 9 more From commits-return-8072-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 16 22:13:02 2010 Return-Path: <commits-return-8072-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 70588 invoked from network); 16 Nov 2010 22:13:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 22:13:02 -0000 Received: (qmail 81633 invoked by uid 500); 16 Nov 2010 22:13:33 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 81617 invoked by uid 500); 16 Nov 2010 22:13:33 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 81610 invoked by uid 99); 16 Nov 2010 22:13:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:13:33 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:13:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0AFAB23889E9; Tue, 16 Nov 2010 22:12:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1035834 - in /openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/ Date: Tue, 16 Nov 2010 22:12:18 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101116221219.0AFAB23889E9@eris.apache.org> Author: curtisr7 Date: Tue Nov 16 22:12:18 2010 New Revision: 1035834 URL: http://svn.apache.org/viewvc?rev=1035834&view=rev Log: OPENJPA-1886: Remove query parameters when tracing. Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestParameterLogging.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java?rev=1035834&r1=1035833&r2=1035834&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Tue Nov 16 22:12:18 2010 @@ -287,6 +287,9 @@ public class BrokerImpl "RetainState", })); } + + private boolean _printParameters = false; + private static final String PRINT_PARAMETERS_CONFIG_STR = "PrintParameters"; /** * Set the persistence manager's authentication. This is the first @@ -378,6 +381,9 @@ public class BrokerImpl _instm.start(InstrumentationLevel.BROKER, this); } + _printParameters = + Boolean.parseBoolean(Configurations.parseProperties(_conf.getConnectionFactoryProperties()).getProperty( + PRINT_PARAMETERS_CONFIG_STR, "false")); // synch with the global transaction in progress, if any if (_factory.syncWithManagedTransaction(this, false)) beginInternal(); @@ -4707,6 +4713,12 @@ public class BrokerImpl } /** + * @return The value of openjpa.ConnectionFactoryProperties.PrintParameters. Default is false. + */ + public boolean getPrintParameters() { + return _printParameters; + } + /** * Transactional cache that holds soft refs to clean instances. */ static class TransactionalCache Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java?rev=1035834&r1=1035833&r2=1035834&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java Tue Nov 16 22:12:18 2010 @@ -130,6 +130,7 @@ public class QueryImpl private transient final Collection<RemoveOnCloseResultList> _resultLists = new ReferenceHashSet(ReferenceHashSet.WEAK); + private boolean _printParameters = false; /** * Construct a query managed by the given broker. */ @@ -140,7 +141,7 @@ public class QueryImpl _fc = (FetchConfiguration) broker.getFetchConfiguration().clone(); _log = broker.getConfiguration().getLog(OpenJPAConfiguration.LOG_QUERY); _storeQuery.setContext(this); - + _printParameters = _broker.getPrintParameters(); if (_broker != null && _broker.getMultithreaded()) _lock = new ReentrantLock(); } @@ -1195,16 +1196,19 @@ public class QueryImpl /** * Trace log that the query is executing. */ - private void logExecution(int op, Map<?, ?> params) { + private void logExecution(int op, Map<Object, Object> params) { String s = _query; if (StringUtils.isEmpty(s)) s = toString(); String msg = "executing-query"; - if (!params.isEmpty()) - msg += "-with-params"; + if (params.isEmpty() == false) { + msg = "executing-query-with-params"; + } - _log.trace(_loc.get(msg, s, params)); + // If we aren't supposed to print parameters, replace values with '?' + Object p = (_printParameters) ? params : "?"; + _log.trace(_loc.get(msg, s, p)); } /** Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestParameterLogging.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestParameterLogging.java?rev=1035834&r1=1035833&r2=1035834&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestParameterLogging.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestParameterLogging.java Tue Nov 16 22:12:18 2010 @@ -18,6 +18,8 @@ */ package org.apache.openjpa.persistence.exception; +import java.util.ArrayList; +import java.util.List; import java.util.regex.Pattern; import javax.persistence.EntityManager; @@ -25,12 +27,18 @@ import javax.persistence.EntityManagerFa import javax.persistence.EntityTransaction; import javax.persistence.RollbackException; +import org.apache.openjpa.lib.log.AbstractLog; +import org.apache.openjpa.lib.log.Log; +import org.apache.openjpa.lib.log.LogFactory; import org.apache.openjpa.persistence.test.AbstractPersistenceTestCase; -public class TestParameterLogging extends AbstractPersistenceTestCase { - +public class TestParameterLogging extends AbstractPersistenceTestCase implements LogFactory { String _regex = ".*params=.*1,.*]"; - + private static final String ID = Integer.toString(Integer.MIN_VALUE); + public void tearDown() throws Exception { + super.tearDown(); + messages.clear(); + } /* * Persist the same row twice in the same transaction - will throw an exception with the failing SQL statement */ @@ -100,4 +108,81 @@ public class TestParameterLogging extend nested = nested.getCause(); } } + + public void testDefaultPrintParameters() { + queryCachePrintParametersLogic(null); + } + + public void testPrintParametersTrue() { + queryCachePrintParametersLogic(true); + } + + public void testPrintParametersFalse() { + queryCachePrintParametersLogic(false); + } + + private void queryCachePrintParametersLogic(Boolean printParameters){ + Object[] props = null; + if (printParameters == null) { + props = + new Object[] { PObject.class, CLEAR_TABLES, "openjpa.DataCache", "true", + "openjpa.Log", "org.apache.openjpa.persistence.exception.TestParameterLogging" }; + } else { + props = + new Object[] { PObject.class, CLEAR_TABLES, "openjpa.DataCache", "true", + "openjpa.Log", "org.apache.openjpa.persistence.exception.TestParameterLogging", + "openjpa.ConnectionFactoryProperties", "PrintParameters=" + printParameters.booleanValue() }; + } + EntityManagerFactory emf = createEMF(props); + EntityManager em = emf.createEntityManager(); + String queryStr = "SELECT c FROM PObject c WHERE c.id=:id"; + em.createQuery(queryStr).setParameter("id", Integer.MIN_VALUE).getResultList(); + em.createQuery(queryStr).setParameter("id", Integer.MIN_VALUE).getResultList(); + boolean expected = (printParameters == null) ? false : printParameters.booleanValue(); + boolean actual = false; + + // Look through all trace messages for the ID before doing asserts + for (String s : messages) { + actual |= s.contains(ID); + } + + assertEquals(expected, actual); + } + + // Start LogFactory implementation + // This is static so both the test and the logger share + private static List<String> messages = new ArrayList<String>(); + public Log getLog(String channel) { + return new AbstractLog() { + + protected boolean isEnabled(short logLevel) { + return true; + } + + @Override + public void trace(Object message) { + messages.add(message.toString()); + } + + protected void log(short type, String message, Throwable t) { + messages.add(message); + } + + @Override + public void error(Object message) { + messages.add(message.toString()); + } + @Override + public void warn(Object message) { + // TODO Auto-generated method stub + super.warn(message.toString()); + } + @Override + public void info(Object message) { + messages.add(message.toString()); + } + }; + } + + // End LogFactory implementation } From commits-return-8073-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 16 22:36:31 2010 Return-Path: <commits-return-8073-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 78780 invoked from network); 16 Nov 2010 22:36:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 22:36:31 -0000 Received: (qmail 24915 invoked by uid 500); 16 Nov 2010 22:37:03 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 24893 invoked by uid 500); 16 Nov 2010 22:37:03 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 24886 invoked by uid 99); 16 Nov 2010 22:37:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:37:02 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:36:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BDA2723889EB; Tue, 16 Nov 2010 22:35:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1035848 [2/2] - /openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ Date: Tue, 16 Nov 2010 22:35:41 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101116223541.BDA2723889EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,74 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.IOException; +import java.io.PrintWriter; +import java.net.HttpURLConnection; +import java.util.Arrays; +import java.util.Map; + +import javax.servlet.http.HttpServletResponse; + + +/** + * @author Pinaki Poddar + * + */ +public class PropertiesCommand extends AbstractCommand { + + @Override + public String getAction() { + return "properties"; + } + + /* (non-Javadoc) + * @see org.apache.openjpa.persistence.jest.JESTCommand#process(org.apache.openjpa.persistence.jest.JPAServletContext) + */ + @Override + public void process(JPAServletContext ctx) throws ErrorFormatter, IOException { + HttpServletResponse response = ctx.getResponse(); + response.setContentType("text/html"); + PrintWriter writer = response.getWriter(); + response.setStatus(HttpURLConnection.HTTP_OK); + Map<String,Object> properties = ctx.getPersistenceContext().getProperties(); + writer.println("<html><body>"); + writer.println("Configuration Properties for Persistent Unit [" + ctx.getPersistenceUnitName() + "]<p>"); + HTMLTable table = new HTMLTable(); + for (Map.Entry<String,Object> entry : properties.entrySet()) { + if (entry.getKey().indexOf('.') == -1) continue; + Object value = entry.getValue(); + String v = ""; + if (value != null) { + if (value.getClass().isArray()) { + v = Arrays.toString((Object[])value); + } else { + v = value.toString(); + } + } + HTMLTable.Row row = table.newRow(); + row.setColumn(0, entry.getKey()); + row.setColumn(1, v); + } + table.write(writer); + writer.println("</body></html>"); + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,74 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.Collections; +import java.util.Map; +import java.util.Set; +import java.util.TreeMap; + +/** + * A factory for a specific type of objects registered by a key. + * The client registers a type indexed by name. The type must have a no-argument constructor. + * The client can get a new instance of the registered type. + * + * @author Pinaki Poddar + * + */ +public class PrototypeFactory<T> { + private Map<String, Class<? extends T>> _registry = new TreeMap<String, Class<? extends T>>(); + private Class<? extends T> _default; + + /** + * Register + * @param key + * @param prototype + */ + public void register(String key, Class<? extends T> prototype) { + _registry.put(key, prototype); + } + + public T newInstance(String name) { + return _registry.containsKey(name) ? newInstance(_registry.get(name)) : getDefault(); + } + + public void setDefault(Class<? extends T> def) { + _default = def; + } + + public Set<String> getRegisteredKeys() { + return Collections.unmodifiableSet(_registry.keySet()); + } + + private T getDefault() { + if (_default != null) + return newInstance(_default); + else + throw new RuntimeException(); + } + + private T newInstance(Class<? extends T> type) { + try { + return type.newInstance(); + } catch (Exception e) { + throw new RuntimeException(); + } + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,81 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.net.HttpURLConnection; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +import javax.persistence.EntityManager; +import javax.persistence.Query; + +/** + * @author Pinaki Poddar + * + */ +public class QueryCommand extends AbstractCommand { + private static final List<String> _mandatoryArgs = Arrays.asList("q"); + private static final List<String> _validQualifiers = Arrays.asList("format", "plan", "named", "single", + "first", "max"); + + public String getAction() { + return "query"; + } + + @Override + protected Collection<String> getMandatoryArguments() { + return _mandatoryArgs; + } + + @Override + protected int getMinimumArguments() { + return 0; + } + + protected Collection<String> getValidQualifiers() { + return _validQualifiers; + } + + @Override + public void process(JPAServletContext ctx) throws ErrorFormatter { + String spec = getMandatoryArgument("q"); + try { + EntityManager em = ctx.getPersistenceContext(); + Query query = isBooleanQualifier("named") ? em.createNamedQuery(spec) : em.createQuery(spec); + if (hasQualifier("first")) + query.setFirstResult(Integer.parseInt(getQualifier("first"))); + if (hasQualifier("max")) + query.setMaxResults(Integer.parseInt(getQualifier("max"))); + + Map<String, String> args = getArguments(); + for (Map.Entry<String, String> entry : args.entrySet()) { + query.setParameter(entry.getKey(), entry.getValue()); + } + ctx.getObjectFormatter(this) + .encode(ctx.toStateManager(isBooleanQualifier("single") + ? Collections.singleton(query.getSingleResult()) : query.getResultList()), ctx); + } catch (Exception e) { + throw new ErrorFormatter(e, _loc.get("query-execution-error", spec)); + } + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,95 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.HttpURLConnection; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + + +/** + * A <em>default</em> command that interprets the URI as a resource. + * The context root is implicitly resolved to a resource named <code>index.html</code> + * + * @author Pinaki Poddar + * + */ +public class ResourceCommand extends AbstractCommand { + private String _resource; + private static final String CONTEXT_ROOT = "/"; + private static final String ROOT_RESOURCE = "/index.html"; + private static final String RESOURCE_PATH = ResourceCommand.class.getPackage().getName().replace('.', '/'); + + public String getAction() { + return ""; + } + + public void parse(HttpServletRequest request) { + super.parse(request); + String path = request.getServletPath(); + if (CONTEXT_ROOT.equals(path)) + path = ROOT_RESOURCE; + _resource = RESOURCE_PATH + path; + } + + @Override + public void validate(HttpServletRequest request) { + + } + + + public void process(JPAServletContext ctx) throws ErrorFormatter { + HttpServletRequest request = ctx.getRequest(); + HttpServletResponse response = ctx.getResponse(); + response.setHeader("Cache-Control", "public"); + ClassLoader loader = getClass().getClassLoader(); + InputStream in = loader.getResourceAsStream(_resource); + if (in == null) { + in = request.getSession().getServletContext().getResourceAsStream(_resource); + if (in == null) { + throw new ErrorFormatter(_loc.get("resource-not-found", _resource), HttpURLConnection.HTTP_NOT_FOUND); + } + } + try { + String mimeType = request.getSession().getServletContext().getMimeType(_resource); + response.setContentType(mimeType); + OutputStream out = response.getOutputStream(); + if (mimeType.startsWith("image/")) { + byte[] b = new byte[1024]; + int i = 0; + for (int l = 0; (l = in.read(b)) != -1;) { + out.write(b, 0, l); + i += l; + } + response.setContentLength(i); + } else { + for (int c = 0; (c = in.read()) != -1;) { + out.write((char)c); + } + } + } catch (IOException e) { + throw new ErrorFormatter(e); + } + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,486 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.BufferedReader; +import java.io.CharArrayWriter; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.Reader; +import java.net.HttpURLConnection; +import java.util.Arrays; +import java.util.BitSet; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import javax.persistence.metamodel.Attribute; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.transform.OutputKeys; +import javax.xml.transform.Transformer; +import javax.xml.transform.TransformerException; +import javax.xml.transform.TransformerFactory; +import javax.xml.transform.dom.DOMSource; +import javax.xml.transform.stream.StreamResult; + +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.kernel.StoreContext; +import org.apache.openjpa.meta.ClassMetaData; +import org.apache.openjpa.meta.FieldMetaData; +import org.apache.openjpa.meta.JavaTypes; +import org.apache.openjpa.meta.ValueMetaData; +import org.apache.openjpa.persistence.meta.Members; +import org.apache.openjpa.util.InternalException; +import org.w3c.dom.CDATASection; +import org.w3c.dom.Document; +import org.w3c.dom.Element; + +/** + * Marshals a root instance and its persistent closure as an XML element. + * The closure is resolved against the persistence context that contains the root instance. + * The XML document adheres to the <code>jest-instance.xsd</code> schema. + * + * @author Pinaki Poddar + * + */ +public class XMLFormatter implements ObjectFormatter { + public static final String MIME_TYPE = "text/xml"; + /** + * The element/attribute tags declared in <code>jest-instance.xsd</code> XML schema. + */ + public static final String ELEMENT_NULL_REF = "null"; + public static final String ELEMENT_ROOT = "instances"; + public static final String ELEMENT_INSTANCE = "instance"; + public static final String ELEMENT_REF = "ref"; + public static final String ELEMENT_BASIC = "basic"; + public static final String ELEMENT_LOB = "lob"; + public static final String ELEMENT_SINGULAR = "singular"; + public static final String ELEMENT_COLLECTION = "collection"; + public static final String ELEMENT_MAP = "map"; + public static final String ELEMENT_MEMBER = "member"; + public static final String ELEMENT_ENTRY = "entry"; + public static final String ELEMENT_ENTRY_KEY = "key"; + public static final String ELEMENT_ENTRY_VALUE = "value"; + + public static final String ATTR_TYPE = "type"; + public static final String ATTR_ID = "id"; + public static final String ATTR_NAME = "name"; + public static final String ATTR_NULL = "null"; + public static final String ATTR_MEMBER_TYPE = "member-type"; + public static final String ATTR_KEY_TYPE = "key-type"; + public static final String ATTR_VALUE_TYPE = "value-type"; + + public static final InputStream _xsd; + static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema"; + static final String W3C_XML_SCHEMA_INSTANCE = "http://www.w3.org/2001/XMLSchema-instance"; + static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource"; + static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage"; + static final String JEST_INSTANCE_XSD = "jest-instance.xsd"; + static final String JEST_INSTANCE_XSD_PATH = "META-INF/" + JEST_INSTANCE_XSD; + + private static final DocumentBuilder _builder; + private static final Transformer _transformer; + + static { + try { + _builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + _transformer = TransformerFactory.newInstance().newTransformer(); + _xsd = Thread.currentThread().getContextClassLoader().getResourceAsStream(JEST_INSTANCE_XSD_PATH); + _transformer.setOutputProperty(OutputKeys.METHOD, "xml"); + _transformer.setOutputProperty(OutputKeys.INDENT, "yes"); + _transformer.setOutputProperty(OutputKeys.STANDALONE, "no"); + _transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); + _transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2"); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + + /** + * Gets the content type of the response. + */ + public String getMimeType() { + return MIME_TYPE; + } + + /* (non-Javadoc) + * @see org.apache.openjpa.persistence.jest.ObjectFormatter#encode(java.lang.Object, + * javax.servlet.ServletResponse, org.apache.openjpa.persistence.jest.JPAServletContext) + */ + @Override + public void encode(Object obj, JPAServletContext ctx) { + if (obj instanceof OpenJPAStateManager) { + Document doc = encodeManagedInstance((OpenJPAStateManager)obj, ctx); + try { + _transformer.transform(new DOMSource(doc), new StreamResult(ctx.getResponse().getWriter())); + } catch (Exception ex) { + throw new ErrorFormatter(ex); + } + } else { + throw new IllegalArgumentException(obj + " is not a managed instance"); + } + } + + @Override + public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException { + try { + Document doc = encodeManagedInstances((Collection<OpenJPAStateManager>)objs, ctx); + _transformer.transform(new DOMSource(doc), new StreamResult(ctx.getResponse().getWriter())); + } catch (Exception e) { + throw new IllegalArgumentException(objs + " is not a managed instance"); + } + + } + + /** + * Encodes a single managed instance in to a XML document according to JEST XML Schema. + * + */ + protected Document encodeManagedInstance(final OpenJPAStateManager sm, JPAServletContext jtx) { + return encodeManagedInstances(Collections.singleton(sm), jtx); + } + + /** + * Encodes the given managed instance into a new XML element as a child of the given parent node. + * + * @param sm a managed instance, can be null. + * @param parent the parent node to which the new node be attached. + */ + protected Element encodeManagedInstance(final OpenJPAStateManager sm, Element parent, JPAServletContext jtx) { + return encodeManagedInstance(sm, parent, new HashSet<OpenJPAStateManager>(), jtx); + } + + /** + * Encodes the given collection of managed instance into a new XML document according to JEST XML Schema. + * + * @param sm a managed instance, can be null. + * @param parent the parent node to which the new node be attached. + */ + protected Document encodeManagedInstances(final Collection<OpenJPAStateManager> sms, JPAServletContext jtx) { + Document doc = _builder.newDocument(); + Element root = doc.createElement(ELEMENT_ROOT); + doc.appendChild(root); + if (sms != null) { + for (OpenJPAStateManager sm : sms) { + encodeManagedInstance(sm, root, new HashSet<OpenJPAStateManager>(), jtx); + } + } + addSchemaToRoot(doc); + return doc; + } + + + /** + * Encodes the closure of a persistent instance into a XML element. + * + * @param sm the managed instance to be encoded. Can be null. + * @param parent the parent XML element to which the new XML element be added. Must not be null. Must be + * owned by a document. + * @param visited the persistent instances that had been encoded already. Must not be null or immutable. + * + * @return the new element. The element has been appended as a child to the given parent in this method. + */ + private Element encodeManagedInstance(final OpenJPAStateManager sm, final Element parent, + final Set<OpenJPAStateManager> visited, JPAServletContext jtx) { + if (parent == null) + throw new InternalException(_loc.get("format-xml-null-parent")); + Document doc = parent.getOwnerDocument(); + if (doc == null) + throw new InternalException(_loc.get("format-xml-null-doc")); + if (visited == null) + throw new InternalException(_loc.get("format-xml-null-closure")); + + if (sm == null) { + Element nullRef = doc.createElement(ELEMENT_NULL_REF); + parent.appendChild(nullRef); + return nullRef; + } + boolean ref = !visited.add(sm); + Element root = doc.createElement(ref ? ELEMENT_REF : ELEMENT_INSTANCE); + parent.appendChild(root); + root.setAttribute(ATTR_ID, ior(sm)); + if (ref) + return root; + + Element child = null; + BitSet loaded = sm.getLoaded(); + StoreContext ctx = (StoreContext)sm.getGenericContext(); + List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(sm.getMetaData(), + jtx.getPersistenceContext().getMetamodel()); + for (int i = 0; i < attrs.size(); child = null, i++) { + FieldMetaData fmd = ((Members.Member<?, ?>) attrs.get(i)).fmd; + if (!loaded.get(fmd.getIndex())) + continue; + Object value = sm.fetch(fmd.getIndex()); + switch (fmd.getDeclaredTypeCode()) { + case JavaTypes.BOOLEAN: + case JavaTypes.BYTE: + case JavaTypes.CHAR: + case JavaTypes.DOUBLE: + case JavaTypes.FLOAT: + case JavaTypes.INT: + case JavaTypes.LONG: + case JavaTypes.SHORT: + + case JavaTypes.BOOLEAN_OBJ: + case JavaTypes.BYTE_OBJ: + case JavaTypes.CHAR_OBJ: + case JavaTypes.DOUBLE_OBJ: + case JavaTypes.FLOAT_OBJ: + case JavaTypes.INT_OBJ: + case JavaTypes.LONG_OBJ: + case JavaTypes.SHORT_OBJ: + + case JavaTypes.BIGDECIMAL: + case JavaTypes.BIGINTEGER: + case JavaTypes.DATE: + case JavaTypes.NUMBER: + case JavaTypes.CALENDAR: + case JavaTypes.LOCALE: + case JavaTypes.STRING: + case JavaTypes.ENUM: + child = doc.createElement(ELEMENT_BASIC); + child.setAttribute(ATTR_NAME, fmd.getName()); + if (value == null) { + encodeNull(child); + } else { + encodeBasic(child, value, fmd.getDeclaredType()); + } + break; + + case JavaTypes.OID: + child = doc.createElement(ELEMENT_REF); + child.setAttribute(ATTR_NAME, fmd.getName()); + if (value == null) { + encodeNull(child); + } else { + encodeBasic(child, value, fmd.getDeclaredType()); + } + break; + + case JavaTypes.PC: + child = doc.createElement(ELEMENT_SINGULAR); + child.setAttribute(ATTR_NAME, fmd.getName()); + child.setAttribute(ATTR_TYPE, typeOf(fmd)); + OpenJPAStateManager other = ctx.getStateManager(value); + encodeManagedInstance(other, child, visited, jtx); + break; + + case JavaTypes.ARRAY: + Object[] values = (Object[])value; + value = Arrays.asList(values); + // no break; + case JavaTypes.COLLECTION: + child = doc.createElement(ELEMENT_COLLECTION); + child.setAttribute(ATTR_NAME, fmd.getName()); + child.setAttribute(ATTR_TYPE, typeOf(fmd)); + child.setAttribute(ATTR_MEMBER_TYPE, typeOf(fmd.getElement().getDeclaredType())); + if (value == null) { + encodeNull(child); + break; + } + Collection<?> members = (Collection<?>)value; + boolean basic = fmd.getElement().getTypeMetaData() == null; + for (Object o : members) { + Element member = doc.createElement(ELEMENT_MEMBER); + child.appendChild(member); + if (o == null) { + encodeNull(member); + } else { + if (basic) { + encodeBasic(member, o, o.getClass()); + } else { + encodeManagedInstance(ctx.getStateManager(o), member, visited, jtx); + } + } + } + break; + case JavaTypes.MAP: + child = doc.createElement(ELEMENT_MAP); + child.setAttribute(ATTR_NAME, fmd.getName()); + child.setAttribute(ATTR_TYPE, typeOf(fmd)); + child.setAttribute(ATTR_KEY_TYPE, typeOf(fmd.getElement().getDeclaredType())); + child.setAttribute(ATTR_VALUE_TYPE, typeOf(fmd.getValue().getDeclaredType())); + if (value == null) { + encodeNull(child); + break; + } + Set<Map.Entry> entries = ((Map)value).entrySet(); + boolean basicKey = fmd.getElement().getTypeMetaData() == null; + boolean basicValue = fmd.getValue().getTypeMetaData() == null; + for (Map.Entry<?,?> e : entries) { + Element entry = doc.createElement(ELEMENT_ENTRY); + Element entryKey = doc.createElement(ELEMENT_ENTRY_KEY); + Element entryValue = doc.createElement(ELEMENT_ENTRY_VALUE); + entry.appendChild(entryKey); + entry.appendChild(entryValue); + child.appendChild(entry); + if (e.getKey() == null) { + encodeNull(entryKey); + } else { + if (basicKey) { + encodeBasic(entryKey, e.getKey(), e.getKey().getClass()); + } else { + encodeManagedInstance(ctx.getStateManager(e.getKey()), entryKey, visited, jtx); + } + } + if (e.getValue() == null) { + encodeNull(entryValue); + } else { + if (basicValue) { + encodeBasic(entryValue, e.getValue(), e.getValue().getClass()); + } else { + encodeManagedInstance(ctx.getStateManager(e.getValue()), entryValue, visited, jtx); + } + } + } + break; + + case JavaTypes.INPUT_STREAM: + case JavaTypes.INPUT_READER: + child = doc.createElement(ELEMENT_LOB); + child.setAttribute(ATTR_NAME, fmd.getName()); + child.setAttribute(ATTR_TYPE, typeOf(fmd)); + if (value == null) { + encodeNull(child); + } else { + CDATASection data = doc.createCDATASection(streamToString(value)); + child.appendChild(data); + } + break; + + case JavaTypes.PC_UNTYPED: + case JavaTypes.OBJECT: + System.err.println("Not handled " + fmd.getName() + " of type " + fmd.getDeclaredType()); + } + + if (child != null) { + root.appendChild(child); + } + } + return root; + } + + /** + * Sets the given value element as null. The <code>null</code> attribute is set to true. + * + * @param element the XML element to be set + */ + void encodeNull(Element element) { + element.setAttribute(ATTR_NULL, "true"); + } + + + /** + * Sets the given value element. The <code>type</code> is set to the given runtime type. + * String form of the given object is set as the text content. + * + * @param element the XML element to be set + * @param obj value of the element. Never null. + */ + private void encodeBasic(Element element, Object obj, Class<?> runtimeType) { + element.setAttribute(ATTR_TYPE, typeOf(runtimeType)); + element.setTextContent(obj.toString()); + } + + + + /** + * Convert the given stream (either an InutStream or a Reader) to a String + * to be included in CDATA section of a XML document. + * + * @param value the field value to be converted. Can not be null + * @return + */ + String streamToString(Object value) { + Reader reader = null; + if (value instanceof InputStream) { + reader = new BufferedReader(new InputStreamReader((InputStream)value)); + } else if (value instanceof Reader) { + reader = (Reader)value; + } else { + throw new RuntimeException(); + } + CharArrayWriter writer = new CharArrayWriter(); + try { + for (int c; (c = reader.read()) != -1;) { + writer.write(c); + } + } catch (IOException ex) { + throw new RuntimeException(ex); + } + return writer.toString(); + } + + void addSchemaToRoot(Document doc) { + Element root = doc.getDocumentElement(); + String[] nvpairs = new String[] { + "xmlns:xsi", W3C_XML_SCHEMA_INSTANCE, + "xsi:noNamespaceSchemaLocation", JEST_INSTANCE_XSD, + "version", "1.0", + }; + for (int i = 0; i < nvpairs.length; i += 2) { + root.setAttribute(nvpairs[i], nvpairs[i+1]); + } + } + + /* (non-Javadoc) + * @see org.apache.openjpa.persistence.jest.ObjectFormatter#configure(java.lang.String, java.lang.Object) + */ + @Override + public void configure(String key, Object value) { + // TODO Auto-generated method stub + + } + + + String ior(OpenJPAStateManager sm) { + return typeOf(sm)+"-"+sm.getObjectId().toString(); + } + + String typeOf(OpenJPAStateManager sm) { + return sm.getMetaData().getDescribedType().getSimpleName(); + } + + String typeOf(Class<?> cls) { + return cls.getSimpleName(); + } + + String typeOf(ClassMetaData meta) { + return meta.getDescribedType().getSimpleName(); + } + + String typeOf(ValueMetaData vm) { + if (vm.getTypeMetaData() == null) + return typeOf(vm.getType()); + return typeOf(vm.getTypeMetaData()); + } + + String typeOf(FieldMetaData fmd) { + return fmd.getType().getSimpleName(); + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java ------------------------------------------------------------------------------ svn:mime-type = text/plain From commits-return-8074-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 16 22:36:35 2010 Return-Path: <commits-return-8074-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 78830 invoked from network); 16 Nov 2010 22:36:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 22:36:35 -0000 Received: (qmail 25057 invoked by uid 500); 16 Nov 2010 22:37:06 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 25028 invoked by uid 500); 16 Nov 2010 22:37:06 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 25021 invoked by uid 99); 16 Nov 2010 22:37:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:37:06 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:36:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B954423889E7; Tue, 16 Nov 2010 22:35:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1035848 [1/2] - /openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ Date: Tue, 16 Nov 2010 22:35:41 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101116223541.B954423889E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Tue Nov 16 22:35:40 2010 New Revision: 1035848 URL: http://svn.apache.org/viewvc?rev=1035848&view=rev Log: JEST Servlet Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTable.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java - copied, changed from r1028521, openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ServerContext.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSON.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObject.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java (with props) Removed: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ServerContext.java Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,218 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.IOException; +import java.io.PrintWriter; +import java.net.HttpURLConnection; +import java.net.URLDecoder; +import java.util.Collection; +import java.util.Collections; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * The abstract base class for all commands available to JEST. + * + * @author Pinaki Poddar + * + */ +abstract class AbstractCommand implements JESTCommand { + private static final Collection<String> EMPTY_LIST = Collections.emptySet(); + private static final String PATH_SEPARATOR = "/"; + private static final char EQUAL = '='; + + private Set<String> _mandatoryArguments = null; + private Set<String> _validArguments = null; + + private Map<String, String> _qualifiers = new HashMap<String, String>(); + private Map<String, String> _args = new HashMap<String, String>(); + private Map<String, String> _margs = new HashMap<String, String>(); + + public String getMandatoryArgument(String key) { + return get(key, _margs); + } + + public String getArgument(String key) { + return get(key, _args); + } + + public boolean hasArgument(String key) { + return has(key, _args); + } + + public Map<String, String> getArguments() { + return _args; + } + + public String getQualifier(String key) { + return get(key, _qualifiers); + } + + public boolean hasQualifier(String key) { + return has(key, _qualifiers); + } + + public boolean isBooleanQualifier(String key) { + return "true".equals(getQualifier(key)); + } + + public Map<String, String> getQualifiers() { + return _qualifiers; + } + + /** + * Parses HTTP Request for the qualifier and argument of a command. + * <br> + * Each servlet path segment, except the first (which is the command name itself), is a qualifier. + * Each qualifier can be either a key or a key-value pair separated by a = sign. + * <br> + * Each request parameter key-value pair is an argument. A concrete command may specify mandatory + * arguments (e.g. <code>type</code> must be mandatory argument for <code>find</code> command, + * or <code>q</code> for <code>query</code>. The mandatory arguments, if any, are <em>not</em> captured + * in the argument list. + * <br> + * The qualifiers and arguments are immutable after parse. + */ + public void parse(HttpServletRequest request) { + String path = request.getServletPath().substring(1); + String[] segments = path.split(PATH_SEPARATOR); + for (int i = 1; i < segments.length; i++) { + String segment = segments[i]; + int idx = segment.indexOf(EQUAL); + if (idx == -1) { + _qualifiers.put(segment, null); + } else { + _qualifiers.put(segment.substring(0, idx), segment.substring(idx+1)); + } + } + _qualifiers = Collections.unmodifiableMap(_qualifiers); + + Enumeration<?> names = request.getParameterNames(); + Collection<String> mandatoryArgs = getMandatoryArguments(); + + while (names.hasMoreElements()) { + String key = names.nextElement().toString(); + put(key, request.getParameter(key), mandatoryArgs.contains(key) ? _margs : _args); + } + _args = Collections.unmodifiableMap(_args); + _margs = Collections.unmodifiableMap(_margs); + + validate(request); + } + + /** + * Gets the mandatory arguments. + * + * @return empty list by default. + */ + protected Collection<String> getMandatoryArguments() { + return EMPTY_LIST; + } + + /** + * Gets the minimum number of arguments excluding the mandatory arguments. + * + * @return zero by default. + */ + protected int getMinimumArguments() { + return 0; + } + + /** + * Gets the valid qualifiers. + * + * @return empty list by default. + */ + protected Collection<String> getValidQualifiers() { + return EMPTY_LIST; + } + + /** + * Called post-parse to validate this command has requisite qualifiers and arguments. + */ + protected void validate(HttpServletRequest request) { + Collection<String> validQualifiers = getValidQualifiers(); + for (String key : _qualifiers.keySet()) { + if (!validQualifiers.contains(key)) { + throw new ErrorFormatter(_loc.get("parse-invalid-qualifier", getAction(), key, validQualifiers), + HttpURLConnection.HTTP_BAD_REQUEST); + } + } + Collection<String> mandatoryArgs = getMandatoryArguments(); + for (String key : mandatoryArgs) { + if (request.getParameter(key) == null) { + throw new ErrorFormatter(_loc.get("parse-missing-mandatory-argument", getAction(), key, + request.getParameterMap().keySet()), HttpURLConnection.HTTP_BAD_REQUEST); + } + } + if (_args.size() < getMinimumArguments()) { + throw new ErrorFormatter(_loc.get("parse-less-argument", getAction(), _args.keySet(), + getMinimumArguments()), HttpURLConnection.HTTP_BAD_REQUEST); + } + } + + private String get(String key, Map<String,String> map) { + return map.get(key); + } + + private String put(String key, String value, Map<String,String> map) { + return map.put(key, value); + } + + private boolean has(String key, Map<String,String> map) { + return map.containsKey(key); + } + + + public void debug(HttpServletRequest request, HttpServletResponse response, JPAServletContext ctx) + throws IOException { + response.setContentType("text/plain"); + PrintWriter writer = response.getWriter(); + + writer.println("URI = [" + request.getRequestURI() + "]"); + writer.println("URL = [" + request.getRequestURL() + "]"); + writer.println("Servlet Path = [" + request.getServletPath() + "]"); // this is one we need + writer.println("Context Path = [" + request.getContextPath() + "]"); + writer.println("Translated Path = [" + request.getPathTranslated() + "]");// not decoded + writer.println("Path Info = [" + request.getPathInfo() + "]");// decoded + String query = request.getQueryString(); + if (query != null) { + query = URLDecoder.decode(request.getQueryString(),"UTF-8"); + } + writer.println("Query = [" + query + "]"); // and this one + int i = 0; + for (Map.Entry<String, String> e : _qualifiers.entrySet()) { + writer.println("Qualifier [" + i + "] = [" + e.getKey() + ": " + e.getValue() + "]"); + i++; + } + i = 0; + for (Map.Entry<String, String> e : _args.entrySet()) { + writer.println("Parameter [" + i + "] = [" + e.getKey() + ": " + e.getValue() + "]"); + i++; + } + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,154 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.List; + +import javax.persistence.metamodel.Attribute; +import javax.persistence.metamodel.ManagedType; +import javax.persistence.metamodel.Metamodel; +import javax.persistence.metamodel.SingularAttribute; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.transform.OutputKeys; +import javax.xml.transform.Transformer; +import javax.xml.transform.TransformerFactory; +import javax.xml.transform.dom.DOMSource; +import javax.xml.transform.stream.StreamResult; + +import org.w3c.dom.Document; +import org.w3c.dom.Element; + +/** + * Marshals a JPA meta-model as an XML document. + * + * @author Pinaki Poddar + * + */ +public class DomainCommand extends AbstractCommand { + /** + * The element/attribute tags declared in <code>jest-instance.xsd</code> XML schema. + */ + public static final String ELEMENT_ROOT = "metamodel"; + public static final String ELEMENT_NULL_REF = "null"; + public static final String ELEMENT_INSTANCE = "instance"; + public static final String ELEMENT_REF = "ref"; + public static final String ELEMENT_BASIC = "basic"; + public static final String ELEMENT_LOB = "lob"; + public static final String ELEMENT_SINGULAR = "singular"; + public static final String ELEMENT_COLLECTION = "collection"; + public static final String ELEMENT_MAP = "map"; + public static final String ELEMENT_MEMBER = "member"; + public static final String ELEMENT_ENTRY = "entry"; + public static final String ELEMENT_ENTRY_KEY = "key"; + public static final String ELEMENT_ENTRY_VALUE = "value"; + + public static final String ATTR_TYPE = "type"; + public static final String ATTR_ID = "id"; + public static final String ATTR_VERSION = "version"; + public static final String ATTR_NAME = "name"; + public static final String ATTR_NULL = "null"; + public static final String ATTR_MEMBER_TYPE = "member-type"; + public static final String ATTR_KEY_TYPE = "key-type"; + public static final String ATTR_VALUE_TYPE = "value-type"; + + static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema"; + static final String W3C_XML_SCHEMA_INSTANCE = "http://www.w3.org/2001/XMLSchema-instance"; + static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource"; + static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage"; + + private static final DocumentBuilder _builder; + private static final Transformer _transformer; + + static { + try { + _builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + _transformer = TransformerFactory.newInstance().newTransformer(); + _transformer.setOutputProperty(OutputKeys.METHOD, "xml"); + _transformer.setOutputProperty(OutputKeys.INDENT, "yes"); + _transformer.setOutputProperty(OutputKeys.STANDALONE, "no"); + _transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); + _transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2"); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + public String getAction() { + return "domain"; + } + + public void process(JPAServletContext ctx) throws ErrorFormatter { + Document doc = encode(ctx.getPersistenceContext().getMetamodel()); + try { + _transformer.transform(new DOMSource(doc), new StreamResult(ctx.getResponse().getOutputStream())); + } catch (Exception e) { + throw new ErrorFormatter(e); + } + } + + + void addSchemaToRoot(Document doc) { + Element root = doc.getDocumentElement(); + String[] nvpairs = new String[] { + "xmlns:xsi", W3C_XML_SCHEMA_INSTANCE, + "version", "1.0", + }; + for (int i = 0; i < nvpairs.length; i += 2) { + root.setAttribute(nvpairs[i], nvpairs[i+1]); + } + } + + public Document encode(Metamodel model) { + Document doc = _builder.newDocument(); + Element root = doc.createElement(ELEMENT_ROOT); + doc.appendChild(root); + for (ManagedType<?> t : model.getManagedTypes()) { + encode(t, root); + } + return doc; + } + + void encode(ManagedType<?> type, Element parent) { + Document doc = parent.getOwnerDocument(); + Element root = doc.createElement(type.getPersistenceType().toString().toLowerCase()); + parent.appendChild(root); + root.setAttribute(ATTR_NAME, type.getJavaType().getSimpleName()); + List<Attribute<?,?>> attributes = MetamodelHelper.getAttributesInOrder(type); + for (Attribute<?,?> a : attributes) { + String tag = null; + if (a instanceof SingularAttribute) { + SingularAttribute<?, ?> sa = (SingularAttribute<?, ?>)a; + if (sa.isId()) { + tag = ATTR_ID; + } else if (sa.isVersion()) { + tag = ATTR_VERSION; + } + } else { + tag = a.getPersistentAttributeType().toString().toLowerCase().replace('_', '-'); + } + Element child = doc.createElement(tag); + root.appendChild(child); + child.setAttribute(ATTR_TYPE, a.getJavaType().getSimpleName()); + child.setTextContent(a.getName()); + } + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,83 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.IOException; +import java.io.PrintWriter; +import java.net.HttpURLConnection; + +import javax.servlet.http.HttpServletResponse; + +import org.apache.openjpa.lib.util.Localizer.Message; + +/** + * Specialized RuntimException thrown by JEST commands. + * The exception can be serialized to the output stream of a HTTP Servlet response as a HTML page. + * + * @author Pinaki Poddar + * + */ +@SuppressWarnings("serial") +public class ErrorFormatter extends RuntimeException { + private final int _errorCode; + + public ErrorFormatter(Throwable error) { + this(error, HttpURLConnection.HTTP_INTERNAL_ERROR); + } + + public ErrorFormatter(Throwable error, int errorCode) { + super(error); + this._errorCode = errorCode; + } + + public ErrorFormatter(Message message, int errorCode) { + super(message.toString()); + this._errorCode = errorCode; + } + + public ErrorFormatter(Throwable error, Message message) { + this(error, message, HttpURLConnection.HTTP_INTERNAL_ERROR); + } + + public ErrorFormatter(Throwable error, Message message, int errorCode) { + super(message.toString(), error); + this._errorCode = errorCode; + } + + + public void printStackTrace(HttpServletResponse response) throws IOException { + response.setContentType("text/html"); + response.setStatus(_errorCode); + PrintWriter writer = response.getWriter(); + writer.println("<html><body>"); + writer.println("<span style='color:red;font-weight:bold;font-size:1.5em'>HTTP Error " + + _errorCode + "</span><p>"); + writer.println("<span style='color:red'>Error Message: "+ getLocalizedMessage() + "</span><p>"); + writer.println("<br>Error Stack Trace:<br><pre>"); + if (getCause() == null) { + printStackTrace(writer); + } else { + getCause().printStackTrace(writer); + } + writer.println("</pre><br>"); + writer.println("</body></html>"); + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,87 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.net.HttpURLConnection; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + +import javax.persistence.EntityManager; +import javax.servlet.http.HttpServletRequest; + +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.meta.ClassMetaData; +import org.apache.openjpa.util.ApplicationIds; + + +/** + * @author Pinaki Poddar + * + */ +public class FindCommand extends AbstractCommand { + private static final List<String> _mandatoryArgs = Arrays.asList("type"); + private static final List<String> _validQualifiers = Arrays.asList("format", "plan"); + + public String getAction() { + return "find"; + } + + @Override + protected Collection<String> getMandatoryArguments() { + return _mandatoryArgs; + } + + @Override + protected int getMinimumArguments() { + return 1; + } + + protected Collection<String> getValidQualifiers() { + return _validQualifiers; + } + + @Override + public void process(JPAServletContext ctx) throws ErrorFormatter { + EntityManager em = ctx.getPersistenceContext(); + String type = getMandatoryArgument("type"); + ClassMetaData meta = ctx.resolve(type); + Map<String,String> parameters = getArguments(); + Object[] pks = new Object[parameters.size()]; + Iterator<Map.Entry<String,String>> params = parameters.entrySet().iterator(); + for (int i = 0; i < parameters.size(); i++) { + pks[i] = params.next().getKey(); + } + Object oid = ApplicationIds.fromPKValues(pks, meta); + Object pc = em.find(meta.getDescribedType(), oid); + if (pc != null) { + OpenJPAStateManager sm = ctx.toStateManager(pc); + ObjectFormatter formatter = ctx.getObjectFormatter(this); + ctx.getResponse().setContentType(formatter.getMimeType()); + formatter.encode(sm, ctx); + } else { + throw new ErrorFormatter(_loc.get("entity-not-found", type, Arrays.toString(pks)), + HttpURLConnection.HTTP_NOT_FOUND); + } + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTable.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTable.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTable.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTable.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,168 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; + +/** + * @author Pinaki Poddar + * + */ +public class HTMLTable { + protected final Header _header; + protected String _border; + protected List<Row> _rows = new ArrayList<Row>(); + + public HTMLTable() { + _header = new Header(this); + } + + public Header getHeader() { + return _header; + } + + public Column addColumn(String colName) { + return _header.addColumn(colName); + } + + public Row newRow() { + Row row = new Row(this); + add(row); + return row; + } + + public void add(Row row) { + _rows.add(row); + } + + public void write(PrintWriter writer) { + writer.println("<table>"); + _header.write(writer); + for (Row row : _rows) { + row.write(writer); + } + writer.println("</table>"); + } + + public class Header implements Iterable<Column>{ + protected final HTMLTable _table; + protected List<Column> _columns = new ArrayList<Column>(); + + public Header(HTMLTable t) { + _table = t; + } + + public Column addColumn(String name) { + Column col = new Column(name); + _columns.add(col); + return col; + } + + public void write(PrintWriter writer) { + writer.println("<tr>"); + for (Column col : _columns) { + writer.print("<th>"); + writer.print(col.getHeading()); + writer.print("</th>"); + } + writer.println("</th>"); + } + + public Iterator<Column> iterator() { + return _columns.iterator(); + } + } + + public class Row { + protected final HTMLTable _table; + protected List<Object> _data = new ArrayList<Object>(); + + public Row(HTMLTable _table) { + super(); + this._table = _table; + } + + public Row setNextColumn(Object v) { + _data.add(v); + return this; + } + + public Row setColumn(int i, Object v) { + if (i < _data.size()) { + _data.set(i, v); + } else { + for (int j = _data.size(); j < i; j++) { + _data.add(null); + } + _data.add(v); + } + return this; + } + + public void write(PrintWriter writer) { + writer.println("<tr>"); + int i = 0; + for (Column col : _table.getHeader()) { + col.write(writer, _data.get(i)); + i++; + } + writer.println("</tr>"); + } + + } + + public static class Column { + protected String _heading; + protected int _width; + + public Column(String h) { + this(h, 20); + } + + public Column(String h, int w) { + _heading = h; + _width = w; + } + + public String getHeading() { + return _heading; + } + + public int getWidth() { + return _width; + } + + public void write(PrintWriter writer) { + write(writer, _heading); + } + + public void write(PrintWriter writer, Object data) { + writer.print("<td>"); + writer.print(data); + writer.print("</td>"); + } + + } + + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTable.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTable.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,94 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.IOException; +import java.util.Map; + +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; + +import org.apache.openjpa.lib.util.Localizer; + +/** + * Interface for JEST commands. A JEST command denotes a JPA operation such as <code>find</code>, + * <code>query</code> or <code>domain</code>. Besides signifying a JPA operation, a command may have + * zero or more qualifiers and arguments. + * <br> + * A qualifier qualifies the action to be performed. For example, a <code>query</code> command may be qualified + * to return a single instance as its result, or limit its result to first 20 instances etc. + * <br> + * An argument is an argument to the target JPA method. For example, <code>find</code> command has + * arguments for the type of the instance and the primary key. A <code>query</code> command has the + * query string as its argument. + * <p> + * A concrete command instance is an outcome of parsing a {@link HttpServletRequest request}. + * The {@link HttpServletRequest#getServletPath() servlet path} segments are parsed for qualifiers. + * The {@link HttpServletRequest#getQueryString() query string} is parsed for the arguments. + * <p> + * A JEST command often attaches special semantics to a standard URI syntax. For example, all JEST + * URI enforces that the first segment of a servlet path denotes the command moniker e.g. the URI<br> + * <code>http://www.jpa.com/jest/find/plan=myPlan?type=Person&1234</code><br> + * with context root <code>http://www.jpa.com/jest</code> has the servlet path <code>/find/plan=myPlan</code> + * and query string <code>type=Person&1234</code>. + * <br> + * The first path segment <code>find</code> will determine that the command is to <em>find</em> a + * persistent entity of type <code>Person</code> and primary key <code>1234</code> using a fetch plan + * named <code>myPlan</code>. + * + * @author Pinaki Poddar + * + */ +public interface JESTCommand { + public static final Localizer _loc = Localizer.forPackage(JESTCommand.class); + + public String getAction(); + /** + * Parse the given request to populate qualifiers and parameters of this command. + * A command can interpret and consume certain path segments or parameters of the + * original request. During {@link #process(ServletRequest, ServletResponse, JPAServletContext) processing} + * phase, the parameters and qualifiers are accessed from the parsed command itself rather than + * from the + * + * @param request a HTTP request + */ + public void parse(HttpServletRequest request); + + /** + * Accessors for this command's arguments and qualifiers. + * @return + * @exception IllegalStateException if accessed prior to parsing. + */ + public Map<String,String> getArguments(); + public String getArgument(String key); + public boolean hasArgument(String key); + public Map<String,String> getQualifiers(); + public String getQualifier(String key); + public boolean hasQualifier(String key); + + /** + * Process the given request and write the output on to the given response in the given context. + * @param ctx the operational context. + * @throws ErrorFormatter TODO + * + */ + public void process(JPAServletContext ctx) throws ErrorFormatter, IOException; +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,140 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import javax.servlet.ServletContext; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.apache.openjpa.conf.OpenJPAConfiguration; +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.kernel.StoreContext; +import org.apache.openjpa.lib.log.Log; +import org.apache.openjpa.meta.ClassMetaData; +import org.apache.openjpa.meta.MetaDataRepository; +import org.apache.openjpa.persistence.JPAFacadeHelper; +import org.apache.openjpa.persistence.OpenJPAEntityManager; + +/** + * An operational context combines a {@link ServletContext servlet context} and a {@link JPAServletContext persistence + * context}. + * + * @author Pinaki Poddar + * + */ +public class JESTContext implements JPAServletContext { + private final String _unit; + private final OpenJPAEntityManager _em; + private final HttpServletRequest _request; + private final HttpServletResponse _response; + protected MetaDataRepository _repos; + protected ObjectFormatter _formatter; + protected Log _log; + protected static PrototypeFactory<ObjectFormatter> _ff = new PrototypeFactory<ObjectFormatter>(); + protected static PrototypeFactory<JESTCommand> _cf = new PrototypeFactory<JESTCommand>(); + + static { + _cf.register("find", FindCommand.class); + _cf.register("query", QueryCommand.class); + _cf.register("domain", DomainCommand.class); + _cf.register("properties", PropertiesCommand.class); + _cf.setDefault(ResourceCommand.class); + + _ff.register("xml", XMLFormatter.class); + _ff.register("json", JSONObjectFormatter.class); + + } + + public JESTContext(String unit, OpenJPAEntityManager em, HttpServletRequest request, HttpServletResponse response) { + _unit = unit; + _em = em; + _request = request; + _response = response; + OpenJPAConfiguration conf = _em.getConfiguration(); + _log = conf.getLog("JEST"); + _repos = conf.getMetaDataRepositoryInstance(); + } + + public String getPersistenceUnitName() { + return _unit; + } + + public OpenJPAEntityManager getPersistenceContext() { + return _em; + } + + public HttpServletRequest getRequest() { + return _request; + } + + public HttpServletResponse getResponse() { + return _response; + } + + public JESTCommand getCommand() { + String path = _request.getServletPath().substring(1); + int idx = path.indexOf('/'); + String action = idx == -1 ? path : path.substring(0, idx); + JESTCommand command = _cf.newInstance(action); + command.parse(_request); + + return command; + } + + public ObjectFormatter getObjectFormatter(JESTCommand command) { + if (_formatter == null) { + String format = command.getQualifier("format"); + if (format == null) { + format = _request.getSession().getServletContext().getInitParameter("response.format"); + if (format == null) + return new XMLFormatter(); + } + _formatter = _ff.newInstance(format); + } + return _formatter; + } + + public ClassMetaData resolve(String alias) { + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + return _repos.getMetaData(alias, loader, true); + } + + public OpenJPAStateManager toStateManager(Object obj) { + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); + return broker.getStateManager(obj); + } + + public List<OpenJPAStateManager> toStateManager(Collection<?> objects) { + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); + List<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); + for (Object o : objects) { + sms.add(broker.getStateManager(o)); + } + return sms; + } + + public Log getLog() { + return _log; + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,128 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +import javax.persistence.Persistence; +import javax.servlet.ServletConfig; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.apache.openjpa.kernel.AbstractBrokerFactory; +import org.apache.openjpa.kernel.BrokerFactory; +import org.apache.openjpa.persistence.JPAFacadeHelper; +import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; + +/** + * A specialized HTTP servlet to interpret HTTP requests as Java Persistent API commands + * on a running persistence unit. The persistence unit is identified by the name of the + * unit and is supplied to this servlet during its initialization. The persistent unit + * must be visible by this servlet within its classloader scope i.e. the web application + * using OpenJPA as a persistence provider must specify this servlet in its web application + * descriptor <code>WEB-INF/web.xml</code>. + * <p> + * The response carries the Java objects in a stringified format. The format can be + * <code>HTML</code>, <code>XML</code> or <code>JSON</code> and can be controlled + * both <em>globally</em> i.e. via the initialization parameters in <code><init-param></code> + * clause or <em>locally</em> per request basis via <code>format=xml|html|json</code> encoded + * in the path expression of the Request URI. + * <p> + * + * @author Pinaki Poddar + * + */ +@SuppressWarnings("serial") +public class JESTServlet extends HttpServlet { + private String _unit; + private OpenJPAEntityManagerFactory _emf; + + /** + * Initialization of the servlet recognizes following optional parameters + * <br> + * <table border="1" cellspacing="10"> + * <tr><td>persistence.unit</td><td>name of the persistence unit</td></tr> + * <tr><td>response.format</td><td>default format for the response</td></tr> + * </table> + */ + public void init(ServletConfig config) throws ServletException { + super.init(config); + _unit = config.getInitParameter("persistence.unit"); + if (_unit == null) _unit = getServletName(); + initPersistenceUnit(_unit); + } + + /** + * Peeks into the servlet path of the request to create appropriate {@link JESTCommand JEST command}. + * Passes the request on to the command which is responsible for generating a response. + */ + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + try { + JPAServletContext ctx = new JESTContext(_unit,_emf.createEntityManager(), request, response); + JESTCommand command = ctx.getCommand(); + command.process(ctx); + } catch (Exception e) { + handleError(e, response); + } + } + + void initPersistenceUnit(String unit) throws ServletException { + Map<String, Object> pconfig = new HashMap<String, Object>(); + pconfig.put("openjpa.EntityManagerFactoryPool", "true"); + if (Persistence.createEntityManagerFactory(unit, pconfig) == null) { + throw new ServletException("Can not create persistence unit [" + unit + "]"); + } + BrokerFactory bf = AbstractBrokerFactory.getPooledFactoryForKey(unit); + if (bf == null) { + throw new ServletException("Can not get pooled internal persistence unit [" + unit + "]"); + } + _emf = (OpenJPAEntityManagerFactory)bf.getUserObject(JPAFacadeHelper.EMF_KEY); + if (_emf == null) { + throw new ServletException("Can not get user object from pooled internal persistence unit [" + unit + "]"); + } + } + + void handleError(Throwable t, HttpServletResponse response) throws IOException { + if (t instanceof ErrorFormatter) { + ((ErrorFormatter)t).printStackTrace(response); + } else { + new ErrorFormatter(t).printStackTrace(response); + } + } + + /** + + + + + + Response domain(ServerContext server, OutputStream out) throws Exception { + return new DomainResponse(this, server, _emf.getMetamodel(), out); + } + + + +*/ +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Copied: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java (from r1028521, openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ServerContext.java) URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java?p2=openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java&p1=openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ServerContext.java&r1=1028521&r2=1035848&rev=1035848&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ServerContext.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java Tue Nov 16 22:35:40 2010 @@ -19,19 +19,49 @@ package org.apache.openjpa.persistence.jest; -import org.apache.openjpa.lib.log.Log; -import org.apache.openjpa.meta.ClassMetaData; -import org.apache.openjpa.persistence.EntityManagerFactoryImpl; +import java.util.Collection; +import javax.servlet.ServletContext; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.lib.log.Log; +import org.apache.openjpa.meta.ClassMetaData; +import org.apache.openjpa.persistence.OpenJPAEntityManager; /** - * + * An operating context provides a {@link EntityManage persistence context} and utility functions within + * which all JEST commands execute. + * * @author Pinaki Poddar * */ -public interface ServerContext { - public EntityManagerFactoryImpl getPersistenceUnit(); - public Log getLog(); +public interface JPAServletContext { + /** + * Get the persistence context of the operational context. + * + */ + public String getPersistenceUnitName(); + public OpenJPAEntityManager getPersistenceContext(); + public HttpServletRequest getRequest(); + public HttpServletResponse getResponse(); + public JESTCommand getCommand(); + + /** + * Resolve the given alias to meta-data of the persistent type. + * @param alias a moniker for the Java type. It can be fully qualified type name or entity name + * or simple name of the actual persistent Java class. + * + * @return meta-data for the given name. + * @exception raises runtime exception if the given name can not be identified to a persistent + * Java type. + */ public ClassMetaData resolve(String alias); + + public ObjectFormatter getObjectFormatter(JESTCommand command); + + public OpenJPAStateManager toStateManager(Object obj); + public Collection<OpenJPAStateManager> toStateManager(Collection<?> objs); + public Log getLog(); } Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSON.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSON.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSON.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSON.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,54 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +/** + * A generic interface for a JSON encoded instance. + * + * @author Pinaki Poddar + * + */ +public interface JSON { + /** + * Render into a string buffer. + * + * @param level level at which this instance is being rendered + * @return a mutable buffer + */ + public StringBuilder asString(int level); + + public static final char FIELD_SEPARATOR = ','; + public static final char MEMBER_SEPARATOR = ','; + public static final char VALUE_SEPARATOR = ':'; + public static final char IOR_SEPARTOR = '-'; + public static final char QUOTE = '"'; + public static final char SPACE = ' '; + public static final char OBJECT_START = '{'; + public static final char OBJECT_END = '}'; + public static final char ARRAY_START = '['; + public static final char ARRAY_END = ']'; + + public static final String NEWLINE = "\r\n"; + public static final String NULL_LITERAL = "null"; + public static final String REF_MARKER = "$ref"; + public static final String ID_MARKER = "$id"; + public static final String ARRAY_EMPTY = "[]"; + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSON.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSON.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObject.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObject.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObject.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObject.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,225 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +/** + * A JSON instance for persistence. + * <br> + * Persistent instances have a persistent identity that extends beyond the process lifetime unlike other common + * identity such as {@linkplain System#identityHashCode(Object) identity hash code} for a Java instance in a JVM. + * <br> + * A JSONObject instance must need such a persistent identity. + * + * @author Pinaki Poddar + * + */ +public class JSONObject implements JSON { + private final String _type; + private final String _id; + private final boolean _ref; + private final Map<String, Object> _values; + + public JSONObject(String type, Object id, boolean ref) { + _type = type; + _id = id.toString(); + _ref = ref; + _values = new LinkedHashMap<String, Object>(); + } + + public void set(String key, Object value) { + _values.put(key, value); + } + + public void write(PrintWriter writer) { + writer.println(toString()); + } + public String toString() { + return asString(0).toString(); + } + + public StringBuilder asString(int indent) { + StringBuilder buf = new StringBuilder().append(OBJECT_START); + buf.append(encodeField(_ref ? REF_MARKER : ID_MARKER, ior(), 0)); + if (_ref) { + return buf.append(OBJECT_END); + } + StringBuilder tab = newIndent(indent+1); + for (Map.Entry<String, Object> e : _values.entrySet()) { + buf.append(FIELD_SEPARATOR).append(NEWLINE); + buf.append(tab).append(encodeField(e.getKey(), e.getValue(), indent+1)); + } + buf.append(NEWLINE) + .append(newIndent(indent)) + .append(OBJECT_END); + return buf; + } + + /** + * Encoding a JSON field is a quoted field name, followed by a :, followed by a value (which itself can be JSON) + * @param field + * @param value + * @param indent + * @return + */ + private static StringBuilder encodeField(String field, Object value, int indent) { + return new StringBuilder() + .append(quoteFieldName(field)) + .append(VALUE_SEPARATOR) + .append(quoteFieldValue(value, indent)); + } + + private static StringBuilder newIndent(int indent) { + char[] tabs = new char[indent*4]; + Arrays.fill(tabs, SPACE); + return new StringBuilder().append(tabs); + } + + + StringBuilder ior() { + return new StringBuilder(_type).append('-').append(_id); + } + + private static StringBuilder quoteFieldName(String s) { + return new StringBuilder().append(QUOTE).append(s).append(QUOTE); + } + + /** + * Creates a StringBuilder for the given value. + * If the value is null, outputs <code>null</code> without quote + * If the value is Number, outputs the value without quote + * If the value is JSON, outputs the string rendition of value + * Otherwise quoted value + * @param o + * @return + */ + private static StringBuilder quoteFieldValue(Object o, int indent) { + if (o == null) return new StringBuilder(NULL_LITERAL); + if (o instanceof Number) return new StringBuilder(o.toString()); + if (o instanceof JSON) return ((JSON)o).asString(indent); + return quoted(o.toString()); + } + + private static StringBuilder quoted(Object o) { + if (o == null) return new StringBuilder(NULL_LITERAL); + return new StringBuilder().append(QUOTE).append(o.toString()).append(QUOTE); + } + + public static class Array implements JSON { + private List<Object> _members = new ArrayList<Object>(); + + public void add(Object o) { + _members.add(o); + } + public String toString() { + return asString(0).toString(); + } + + public StringBuilder asString(int indent) { + StringBuilder buf = new StringBuilder().append(ARRAY_START); + StringBuilder tab = JSONObject.newIndent(indent+1); + for (Object o : _members) { + if (buf.length() > 1) buf.append(MEMBER_SEPARATOR); + buf.append(NEWLINE); + if (o instanceof JSON) + buf.append(tab).append(((JSON)o).asString(indent+1)); + else + buf.append(tab).append(o); + } + buf.append(NEWLINE) + .append(JSONObject.newIndent(indent)) + .append(ARRAY_END); + + return buf; + } + } + + public static class KVMap implements JSON { + private Map<Object,Object> _entries = new LinkedHashMap<Object,Object>(); + + public void put(Object k, Object v) { + _entries.put(k,v); + } + + public String toString() { + return asString(0).toString(); + } + + public StringBuilder asString(int indent) { + StringBuilder buf = new StringBuilder().append(ARRAY_START); + StringBuilder tab = JSONObject.newIndent(indent+1); + for (Map.Entry<Object, Object> e : _entries.entrySet()) { + if (buf.length()>1) buf.append(MEMBER_SEPARATOR); + buf.append(NEWLINE); + Object key = e.getKey(); + if (key instanceof JSON) + buf.append(tab).append(((JSON)key).asString(indent+1)); + else + buf.append(tab).append(key); + buf.append(VALUE_SEPARATOR); + Object value = e.getValue(); + if (value instanceof JSON) + buf.append(((JSON)value).asString(indent+2)); + else + buf.append(value); + + } + buf.append(NEWLINE) + .append(JSONObject.newIndent(indent)) + .append(ARRAY_END); + return buf; + } + } + + public static void main(String[] args) throws Exception { + JSONObject o = new JSONObject("Person", 1234, false); + JSONObject r = new JSONObject("Person", 1234, true); + JSONObject f = new JSONObject("Person", 2345, false); + Array a = new Array(); + a.add(f); + a.add(3456); + a.add(null); + a.add(r); + a.add(null); + KVMap map = new KVMap(); + map.put("k1", r); + map.put("k2", f); + map.put("k3", null); + map.put("k4", 3456); + map.put(null, 6789); + + f.set("name", "Mary"); + f.set("age", 30); + f.set("friend", r); + o.set("name", "John"); + o.set("age", 20); + o.set("friend", f); + o.set("friends", a); + o.set("map", map); + + System.err.println(o); + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObject.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObject.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,317 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.BufferedReader; +import java.io.CharArrayWriter; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.PrintWriter; +import java.io.Reader; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.BitSet; +import java.util.Collection; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import javax.persistence.metamodel.Attribute; +import javax.servlet.http.HttpServletResponse; + +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.kernel.StoreContext; +import org.apache.openjpa.meta.ClassMetaData; +import org.apache.openjpa.meta.FieldMetaData; +import org.apache.openjpa.meta.JavaTypes; +import org.apache.openjpa.meta.ValueMetaData; +import org.apache.openjpa.persistence.meta.Members; + +/** + * Marshals a root instance and its persistent closure as JSON object. + * The closure is resolved against the persistence context that contains the root instance. + * The JSON format introduces a $id and $ref to address reference that pure JSON does not. + * + * @author Pinaki Poddar + * + */ +public class JSONObjectFormatter implements ObjectFormatter { + + public static final String MIME_TYPE = "application/json"; + + public String getMimeType() { + return MIME_TYPE; + } + + public void encode(Object obj, JPAServletContext ctx) { + if (obj instanceof OpenJPAStateManager) { + try { + JSONObject result = encodeManagedInstance((OpenJPAStateManager)obj, ctx); + PrintWriter writer = ctx.getResponse().getWriter(); + writer.println(result.toString()); + } catch (Exception e) { + throw new ErrorFormatter(e); + } + } else { + throw new RuntimeException(this + " does not know how to encode " + obj); + } + return; + } + + public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException { + Collection<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); + for (Object obj : objs) { + if (obj instanceof OpenJPAStateManager) { + sms.add((OpenJPAStateManager)obj); + } else { + throw new RuntimeException(this + " does not know how to encode " + obj); + } + } + JSONObject.Array result = encodeManagedInstances(sms, ctx); + PrintWriter writer = ctx.getResponse().getWriter(); + writer.println(result.toString()); + } + + /** + * Encodes the given managed instance into a new XML element as a child of the given parent node. + * + * @param sm a managed instance, can be null. + * @param parent the parent node to which the new node be attached. + */ + private JSONObject encodeManagedInstance(final OpenJPAStateManager sm, JPAServletContext ctx) { + return encodeManagedInstance(sm, new HashSet<OpenJPAStateManager>(), 0, false, ctx); + } + + private JSONObject.Array encodeManagedInstances(final Collection<OpenJPAStateManager> sms, JPAServletContext ctx) { + JSONObject.Array result = new JSONObject.Array(); + for (OpenJPAStateManager sm : sms) { + result.add(encodeManagedInstance(sm, new HashSet<OpenJPAStateManager>(), 0, false, ctx)); + } + return result; + } + + + /** + * Encodes the closure of a persistent instance into a XML element. + * + * @param sm the managed instance to be encoded. Can be null. + * @param parent the parent XML element to which the new XML element be added. Must not be null. Must be + * owned by a document. + * @param visited the persistent instances that had been encoded already. Must not be null or immutable. + * + * @return the new element. The element has been appended as a child to the given parent in this method. + */ + private JSONObject encodeManagedInstance(final OpenJPAStateManager sm, final Set<OpenJPAStateManager> visited, + int indent, boolean indentPara, JPAServletContext jtx) { + if (visited == null) { + throw new IllegalArgumentException("null closure for encoder"); + } + if (sm == null) { + return null; + } + + boolean ref = !visited.add(sm); + JSONObject root = new JSONObject(typeOf(sm), sm.getObjectId(), ref);; + if (ref) { + return root; + } + + BitSet loaded = sm.getLoaded(); + StoreContext ctx = (StoreContext)sm.getGenericContext(); + List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(sm.getMetaData(), + jtx.getPersistenceContext().getMetamodel()); + int n = 0; + for (int i = 0; i < attrs.size(); i++) { + FieldMetaData fmd = ((Members.Member<?, ?>) attrs.get(i)).fmd; + if (!loaded.get(fmd.getIndex())) + continue; + Object value = sm.fetch(fmd.getIndex()); + switch (fmd.getDeclaredTypeCode()) { + case JavaTypes.BOOLEAN: + case JavaTypes.BYTE: + case JavaTypes.CHAR: + case JavaTypes.DOUBLE: + case JavaTypes.FLOAT: + case JavaTypes.INT: + case JavaTypes.LONG: + case JavaTypes.SHORT: + + case JavaTypes.BOOLEAN_OBJ: + case JavaTypes.BYTE_OBJ: + case JavaTypes.CHAR_OBJ: + case JavaTypes.DOUBLE_OBJ: + case JavaTypes.FLOAT_OBJ: + case JavaTypes.INT_OBJ: + case JavaTypes.LONG_OBJ: + case JavaTypes.SHORT_OBJ: + + case JavaTypes.BIGDECIMAL: + case JavaTypes.BIGINTEGER: + case JavaTypes.DATE: + case JavaTypes.NUMBER: + case JavaTypes.CALENDAR: + case JavaTypes.LOCALE: + case JavaTypes.STRING: + case JavaTypes.ENUM: + root.set(fmd.getName(),value); + break; + + case JavaTypes.PC: + if (value == null) { + root.set(fmd.getName(), null); + } else { + root.set(fmd.getName(),encodeManagedInstance(ctx.getStateManager(value), visited, + indent+1, false, jtx)); + } + break; + + case JavaTypes.ARRAY: + Object[] values = (Object[])value; + value = Arrays.asList(values); + // no break; + case JavaTypes.COLLECTION: + if (value == null) { + root.set(fmd.getName(), null); + break; + } + Collection<?> members = (Collection<?>)value; + JSONObject.Array array = new JSONObject.Array(); + root.set(fmd.getName(), array); + if (members.isEmpty()) { + break; + } + boolean basic = fmd.getElement().getTypeMetaData() == null; + for (Object o : members) { + if (o == null) { + array.add(null); + } else { + if (basic) { + array.add(o); + } else { + array.add(encodeManagedInstance(ctx.getStateManager(o), visited, indent+1, true, jtx)); + } + } + } + break; + case JavaTypes.MAP: + if (value == null) { + root.set(fmd.getName(), null); + break; + } + Set<Map.Entry> entries = ((Map)value).entrySet(); + JSONObject.KVMap map = new JSONObject.KVMap(); + root.set(fmd.getName(), map); + if (entries.isEmpty()) { + break; + } + + boolean basicKey = fmd.getElement().getTypeMetaData() == null; + boolean basicValue = fmd.getValue().getTypeMetaData() == null; + for (Map.Entry<?,?> e : entries) { + Object k = e.getKey(); + Object v = e.getValue(); + if (!basicKey) { + k = encodeManagedInstance(ctx.getStateManager(k), visited, indent+1, true, jtx); + } + if (!basicValue) { + v = encodeManagedInstance(ctx.getStateManager(e.getValue()), visited, + indent+1, false, jtx); + } + map.put(k,v); + } + break; + + case JavaTypes.INPUT_STREAM: + case JavaTypes.INPUT_READER: + root.set(fmd.getName(), streamToString(value)); + break; + + case JavaTypes.PC_UNTYPED: + case JavaTypes.OBJECT: + case JavaTypes.OID: + root.set(fmd.getName(), "***UNSUPPORTED***"); + } + } + return root; + } + + + String typeOf(OpenJPAStateManager sm) { + return sm.getMetaData().getDescribedType().getSimpleName(); + } + +// String typeOf(Class<?> cls) { +// return cls.getSimpleName(); +// } +// +// String typeOf(ClassMetaData meta) { +// return meta.getDescribedType().getSimpleName(); +// } +// +// String typeOf(ValueMetaData vm) { +// if (vm.getTypeMetaData() == null) +// return typeOf(vm.getType()); +// return typeOf(vm.getTypeMetaData()); +// } +// +// String typeOf(FieldMetaData fmd) { +// return fmd.getType().getSimpleName(); +// } + + + /** + * Convert the given stream (either an InutStream or a Reader) to a String + * to be included in CDATA section of a XML document. + * + * @param value the field value to be converted. Can not be null + * @return + */ + String streamToString(Object value) { + Reader reader = null; + if (value instanceof InputStream) { + reader = new BufferedReader(new InputStreamReader((InputStream)value)); + } else if (value instanceof Reader) { + reader = (Reader)value; + } else { + throw new RuntimeException(); + } + CharArrayWriter writer = new CharArrayWriter(); + try { + for (int c; (c = reader.read()) != -1;) { + writer.write(c); + } + } catch (IOException ex) { + throw new RuntimeException(ex); + } + return writer.toString(); + } + + + /* (non-Javadoc) + * @see org.apache.openjpa.persistence.jest.ObjectFormatter#configure(java.lang.String, java.lang.Object) + */ + @Override + public void configure(String key, Object value) { + // TODO Auto-generated method stub + + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java?rev=1035848&r1=1035847&r2=1035848&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java Tue Nov 16 22:35:40 2010 @@ -27,13 +27,11 @@ import java.util.List; import java.util.Map; import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; import javax.persistence.metamodel.ManagedType; import javax.persistence.metamodel.Metamodel; import javax.persistence.metamodel.SingularAttribute; import org.apache.openjpa.meta.ClassMetaData; -import org.apache.openjpa.meta.FieldMetaData; import org.apache.openjpa.persistence.meta.MetamodelImpl; /** @@ -41,19 +39,13 @@ import org.apache.openjpa.persistence.me * */ public class MetamodelHelper { - private MetamodelImpl _model; - private Map<ManagedType<?>, List<Attribute<?, ?>>> _attrs = new HashMap<ManagedType<?>, List<Attribute<?,?>>>(); - public MetamodelHelper(MetamodelImpl model) { - _model = model; + public static List<Attribute<?,?>> getAttributesInOrder(Class<?> cls, Metamodel model) { + return getAttributesInOrder(model.managedType(cls)); } - public List<Attribute<?,?>> getAttributesInOrder(Class<?> cls) { - return getAttributesInOrder(_model.managedType(cls)); - } - - public List<Attribute<?,?>> getAttributesInOrder(ClassMetaData meta) { - return getAttributesInOrder(meta.getDescribedType()); + public static List<Attribute<?,?>> getAttributesInOrder(ClassMetaData meta, Metamodel model) { + return getAttributesInOrder(meta.getDescribedType(), model); } /** @@ -61,13 +53,9 @@ public class MetamodelHelper { * @param type * @return */ - public List<Attribute<?,?>> getAttributesInOrder(ManagedType<?> type) { - List<Attribute<?,?>> attrs = _attrs.get(type); - if (attrs != null) - return attrs; + public static List<Attribute<?,?>> getAttributesInOrder(ManagedType<?> type) { List<Attribute<?,?>> list = new ArrayList<Attribute<?,?>>(type.getAttributes()); Collections.sort(list, new AttributeComparator()); - _attrs.put(type, list); return list; } Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java?rev=1035848&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java Tue Nov 16 22:35:40 2010 @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.IOException; +import java.util.Collection; + +import javax.servlet.http.HttpServletResponse; + +import org.apache.openjpa.lib.util.Localizer; + +/** + * Encodes a managed persistence object graph to an output stream of a HTTP response. + * Each concrete formatter type is registered with {@linkplain ObjectFormatterFactory} + * and must have a no-argument constructor. + * + * @author Pinaki Poddar + * + */ +public interface ObjectFormatter { + public static final Localizer _loc = Localizer.forPackage(ObjectFormatter.class); + + /** + * Gets the mime type produced by this formatter. + */ + public String getMimeType(); + + /** + * Configures this formatter by a name-value pair. + */ + public void configure(String key, Object value); + + /** + * Format the given object in the given context. + * + * @param obj the object to be formatted. + * @param response the output stream + * @param ctx the operational context + */ + public void encode(Object obj, JPAServletContext ctx); + + /** + * Format the given collection of objects in the given context. + * + * @param objs the collection of objects to be formatted. + * @param response the output stream + * @param ctx the operational context + * @throws IOException + */ + public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException; +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java ------------------------------------------------------------------------------ svn:mime-type = text/plain From commits-return-8075-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 16 22:41:39 2010 Return-Path: <commits-return-8075-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 80293 invoked from network); 16 Nov 2010 22:41:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 22:41:39 -0000 Received: (qmail 35518 invoked by uid 500); 16 Nov 2010 22:42:10 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 35465 invoked by uid 500); 16 Nov 2010 22:42:10 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 35411 invoked by uid 99); 16 Nov 2010 22:42:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:42:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:42:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5C8D023889E7; Tue, 16 Nov 2010 22:40:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1035850 - in /openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest: ./ images/ Date: Tue, 16 Nov 2010 22:40:51 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101116224051.5C8D023889E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Tue Nov 16 22:40:50 2010 New Revision: 1035850 URL: http://svn.apache.org/viewvc?rev=1035850&view=rev Log: JEST Servlet Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/domain.jpg (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/find.jpg (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/monitor.jpg (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/properties.jpg (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/query2.png (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/showhide.js (with props) Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/domain.jpg URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/domain.jpg?rev=1035850&view=auto ============================================================================== Binary file - no diff available. Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/domain.jpg ------------------------------------------------------------------------------ svn:mime-type = image/jpeg Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/find.jpg URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/find.jpg?rev=1035850&view=auto ============================================================================== Binary file - no diff available. Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/find.jpg ------------------------------------------------------------------------------ svn:mime-type = image/jpeg Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/monitor.jpg URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/monitor.jpg?rev=1035850&view=auto ============================================================================== Binary file - no diff available. Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/monitor.jpg ------------------------------------------------------------------------------ svn:mime-type = image/jpeg Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/properties.jpg URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/properties.jpg?rev=1035850&view=auto ============================================================================== Binary file - no diff available. Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/properties.jpg ------------------------------------------------------------------------------ svn:mime-type = image/jpeg Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/query2.png URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/query2.png?rev=1035850&view=auto ============================================================================== Binary file - no diff available. Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/images/query2.png ------------------------------------------------------------------------------ svn:mime-type = image/png Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html?rev=1035850&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html Tue Nov 16 22:40:50 2010 @@ -0,0 +1,129 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<html> +<head> +<script language="javascript" type="text/javascript" src="showhide.js"> +</script> +<LINK href="jest.css" rel="stylesheet" type="text/css"> +</head> +<body> + +<h1>JEST: REST on OpenJPA</h1> + +<div id="home" style="display:block;"> + +<p>JEST provides RESTful access to an OpenJPA-based application. +The usage and state representation for JEST are described in + <a href="http://openjpa.apache.org/jest.html" target="_blank">OpenJPA web site.</a> +<p> +</div> + +<!-- the hard-coded argument to switchid() JavaScript method refers to the + div ids in this document. They also are hard-coded in switchhide.js. + There must be better way to do this in JavaScript, but not me :) + --> +<table cellspacing="20"> +<tr> + <td><img alt="Deploy" src="images/monitor.jpg" width="100" height="100"></td> + <td><img alt="Find" src="images/find.jpg" width="100" height="100"></td> + <td><img alt="Query" src="images/query2.png" width="100" height="100"></td> + <td><img alt="Browse" src="images/domain.jpg" width="100" height="100"></td> + <td><img alt="View" src="images/properties.jpg" width="100" height="100"></td> +</tr> +<tr> + <td><a href="javascript:switchid('deploy');">Deploy</a> </td> + <td><a href="javascript:switchid('find');">find instances</a></td> + <td><a href="javascript:switchid('query');">query objects</a> </td> + <td><a href="javascript:switchid('browse');">browse domain</a></td> + <td><a href="javascript:switchid('properties');">view properties</a></td> +</tr> +</table> + +<div id="deploy" style="display:none;"> + You can deploy JEST as a servlet in a web application. + <hr> + For example, following definition in <code>WEB-INF/web.xml</code> will enable JEST to + operate on a persistence unit named <code>jest</code> + <br> +<pre> +<span style="color:green;font-weight:bold"><servlet> + <servlet-name><span style="color:blue">jest</span></servlet-name> + <servlet-class><span style="color:blue;font-weight:bold">org.apache.openjpa.persistence.jest.JESTServlet</span></servlet-class> +</servlet> +<servlet-mapping> + <servlet-name><span style="color:blue">jest</span></servlet-name> + <url-pattern><span style="color:blue">/</span></url-pattern> +</servlet-mapping> +</span> +</pre> + You can reach JEST servlet deployed in a servlet container running on localhost at port 8080 by + <code>http://localhost:8080/jest/</code> + <br> + <p> + <a href="http://openjpa.apache.org/jest-usage.html" target="_blank">more...</a> +</div> + +<div id="find" style="display:none;"> + You can find persistent objects by simple or compound primary key. + <hr> + For example, <br> + <code class="url">http://www.jpa.com/jest/find?type=Person&12345</code> + <br> + will find a <code>Person</code> with primary key <code>12345</code>. + <p> + <a href="http://openjpa.apache.org/jest-syntax.html" target="_blank">more...</a> +</div> + +<div id="query" style="display:none;"> + You can execute JPQL or named query with parameters. + <hr> + For example, <br> + <code class="url">http://www.jpa.com/jest/query?q=select p from Person p where p.name=:name&name=John</code> + <br> + will find a <code>Person</code> whose name is <code>John</code>. + <p> + + <a href="http://openjpa.apache.org/jest-syntax.html" target="_blank">more...</a> +</div> + +<div id="browse" style="display:none;"> + You can display the persistent domain model. + <hr> + For example, <br> + <code class="url">http://www.jpa.com/jest/domain</code> + <br> + will display the persistent domain model. + <p> + <a href="http://openjpa.apache.org/jest-syntax.html" target="_blank">more...</a> +</div> + +<div id="properties" style="display:none;"> + You can view the configuration properties of the persistence unit. + <hr> + For example, <br> + <code class="url">http://www.jpa.com/jest/properties</code> + <br> + will display the configuration properties of the persistence unit. + <p> + + <a href="http://openjpa.apache.org/jest-syntax.html" target="_blank">more...</a> +</div> + +</body> +</html> Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css?rev=1035850&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css Tue Nov 16 22:40:50 2010 @@ -0,0 +1,35 @@ +.open { + display:block; +} +.close { + display:none; +} + +p { + font-size:1.2em; +} +LI { + font-size:1.2em; +} + + +div { + background-color:#F0F0F0; + width:60em; + border:1px solid black; + padding:2em 4em 2em 2em; +} + +table { + padding:1em 10em 2m 10em; +} + +a { + target:_blank; +} + +.url { + color:blue; + font-weight:bold; + font-family:"Courier New", Arial; +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties?rev=1035850&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties Tue Nov 16 22:40:50 2010 @@ -0,0 +1,43 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +server-starting: Starting {0} ... +server-request: Received new client request at {0} +server-reconfigured: Server is reconfigured at port {0} +server-failed: {0} at port {1} failed to start. Error message {2} +request-read:Reading request from client {0} +request-read-error:Error while reading request from client {0} +request-status-line: Request [{0}] from client {1} +request-bad-status:Can not determine Protocol or Method from request [{0}] from client {1} +request-bad-protocol: JEST can not process protocol [{0}]. Currently JEST processes only HTTP protocol. +request-bad-method: JEST can not process HTTP method [{0}]. Currently JEST supports only {1} request. +request-unrecognized: JEST does not recognize HTTP method [{0}]. Currently JEST supports only {1} request. + + +resource-not-found: Can not locate resource {0}. <br>This can happen for wrong URI syntax. See \ +<A href="http://openjpa.apache.org/jest-syntax.html" target="_blank">JEST URI Help page</A> for correct syntax. + +query-execution-error: Error executing query "{0}". See stacktrace for details. +parse-invalid-qualifier: {0} command does not recognize "{1}" as a qualifier. Valid qualifiers are {2}. +parse-missing-mandatory-argument: {0} command must have "{1}" argument. Available arguments are {2}. +parse-less-argument: {0} command must have at least {2} argument. Available arguments are {1}. +# ---------------------------------------------------------------------- +# Format related error +# ---------------------------------------------------------------------- +format-xml-null-parent: A null XML parent element encountered during serialization +format-xml-null-doc: Given parent element is not part of XML document +format-xml-null-closure: Set of visited instances can not be null for serialization \ No newline at end of file Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/showhide.js URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/showhide.js?rev=1035850&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/showhide.js (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/showhide.js Tue Nov 16 22:40:50 2010 @@ -0,0 +1,64 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** --------------------------------------------------------------------------- + * A simple JavaScript that shows/hides specific divisions identified by name + * --------------------------------------------------------------------------- + */ + +/** + * The identifiers of every element to be shown or hidden. + */ +var ids=new Array('deploy','find','query','browse', 'properties'); + +/** + * Show the division identified by the given id, and hide all others + */ +function switchid(id){ + hideallids(); + showdiv(id); +} + +/** + * Hide all divisions listed. + */ +function hideallids(){ + for (var i=0; i<ids.length; i++){ + hidediv(ids[i]); + } +} + +/** + * Hide an element with a specified id + */ +function hidediv(id) { + if (document.getElementById) { + document.getElementById(id).style.display = 'none'; + } +} + +/** + * show an element with a specified id + * + */ +function showdiv(id) { + if (document.getElementById) { // DOM3 = IE5, NS6 + document.getElementById(id).style.display = 'block'; + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/showhide.js ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8076-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 00:39:02 2010 Return-Path: <commits-return-8076-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 52723 invoked from network); 17 Nov 2010 00:39:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 00:39:01 -0000 Received: (qmail 57447 invoked by uid 500); 17 Nov 2010 00:39:33 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 57393 invoked by uid 500); 17 Nov 2010 00:39:33 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 57386 invoked by uid 99); 17 Nov 2010 00:39:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 00:39:33 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 00:39:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 50237238897A; Wed, 17 Nov 2010 00:38:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1035884 - in /openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ openjpa-persistence/src/main/java/org/apache/openjpa/persistence/ Date: Wed, 17 Nov 2010 00:38:18 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101117003818.50237238897A@eris.apache.org> Author: ppoddar Date: Wed Nov 17 00:38:17 2010 New Revision: 1035884 URL: http://svn.apache.org/viewvc?rev=1035884&view=rev Log: OPENJPA-1889: Relax binding query parameter type checks for enums Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryHints.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/HintHandler.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAQuery.java openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java?rev=1035884&r1=1035883&r2=1035884&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java Wed Nov 17 00:38:17 2010 @@ -328,6 +328,8 @@ public class Filters { } catch (IllegalArgumentException e) { } + } else if (o instanceof String && type.isEnum()) { + return Enum.valueOf((Class<Enum>)type, o.toString()); } } if (!num) Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryHints.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryHints.java?rev=1035884&r1=1035883&r2=1035884&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryHints.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryHints.java Wed Nov 17 00:38:17 2010 @@ -43,8 +43,7 @@ public interface QueryHints { * to count number of parameters assuming that all <code>?</code> characters * designate a bind parameter. This assumption makes the parse faster. */ - public static final String HINT_PARAM_MARKER_IN_QUERY = - "openjpa.hint.ParameterMarkerInQuery"; + public static final String HINT_PARAM_MARKER_IN_QUERY = "openjpa.hint.ParameterMarkerInQuery"; /** * A directive to invalidate any prepared SQL that might have been cached @@ -61,8 +60,7 @@ public interface QueryHints { * * @see #HINT_IGNORE_PREPARED_QUERY */ - public static final String HINT_INVALIDATE_PREPARED_QUERY = - "openjpa.hint.InvalidatePreparedQuery"; + public static final String HINT_INVALIDATE_PREPARED_QUERY = "openjpa.hint.InvalidatePreparedQuery"; /** * A directive to ignore any prepared SQL that might have been cached @@ -80,8 +78,7 @@ public interface QueryHints { * * @see #HINT_INVALIDATE_PREPARED_QUERY */ - public static final String HINT_IGNORE_PREPARED_QUERY = - "openjpa.hint.IgnorePreparedQuery"; + public static final String HINT_IGNORE_PREPARED_QUERY = "openjpa.hint.IgnorePreparedQuery"; /** * A directive to ignore any cached finder query for find() operation. @@ -92,12 +89,17 @@ public interface QueryHints { /** * A directive to invalidate any cached finder query. */ - public static final String HINT_INVALIDATE_FINDER = - "openjpa.hint.InvalidateFinder"; + public static final String HINT_INVALIDATE_FINDER = "openjpa.hint.InvalidateFinder"; /** * A directive to overwrite a cached finder query by a new query. */ public static final String HINT_RECACHE_FINDER = "openjpa.hint.RecacheFinder"; + + /** + * A boolean directive to relax checking of binding parameter value and the predicate + * it binds to. + */ + public static final String HINT_RELAX_BIND_PARAM_TYPE_CHECK = "openjpa.hint.RelaxParameterTypeChecking"; } Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/HintHandler.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/HintHandler.java?rev=1035884&r1=1035883&r2=1035884&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/HintHandler.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/HintHandler.java Wed Nov 17 00:38:17 2010 @@ -150,6 +150,8 @@ public class HintHandler { if (value instanceof String) value = Boolean.valueOf((String) value); owner.setSubclasses(((Boolean) value).booleanValue()); + } else if (QueryHints.HINT_RELAX_BIND_PARAM_TYPE_CHECK.equals(key)) { + owner.setRelaxBindParameterTypeChecking(value); } else if (QueryHints.HINT_FILTER_LISTENER.equals(key)) { owner.addFilterListener(Filters.hintToFilterListener(value, loader)); } else if (QueryHints.HINT_FILTER_LISTENERS.equals(key)) { Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAQuery.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAQuery.java?rev=1035884&r1=1035883&r2=1035884&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAQuery.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAQuery.java Wed Nov 17 00:38:17 2010 @@ -25,9 +25,11 @@ import java.util.Map; import java.util.Set; import javax.persistence.FlushModeType; +import javax.persistence.Query; import javax.persistence.TemporalType; import javax.persistence.TypedQuery; +import org.apache.openjpa.kernel.Filters; import org.apache.openjpa.kernel.QueryFlushModes; import org.apache.openjpa.kernel.QueryHints; import org.apache.openjpa.kernel.QueryOperations; @@ -177,19 +179,39 @@ public interface OpenJPAQuery<X> extends public OpenJPAQuery<X> setParameter(String name, Object value); - public OpenJPAQuery<X> setParameter(String name, Date value, - TemporalType temporalType); + public OpenJPAQuery<X> setParameter(String name, Date value, TemporalType temporalType); - public OpenJPAQuery<X> setParameter(String name, Calendar value, - TemporalType temporalType); + public OpenJPAQuery<X> setParameter(String name, Calendar value, TemporalType temporalType); public OpenJPAQuery<X> setParameter(int position, Object value); - public OpenJPAQuery<X> setParameter(int position, Date value, - TemporalType temporalType); + public OpenJPAQuery<X> setParameter(int position, Date value, TemporalType temporalType); - public OpenJPAQuery<X> setParameter(int position, Calendar value, - TemporalType temporalType); + public OpenJPAQuery<X> setParameter(int position, Calendar value, TemporalType temporalType); + + /** + * Sets whether the type of user-supplied bind parameter value and the type of target persistent + * property they bind to are checked with strong or weak constraint. + * <br> + * The same can be set via {@link Query#setHint(String, Object) hint} without puncturing standard + * JPA API. + * + * @see Filters#canConvert(Class, Class, boolean) + * @see Filters#convert(Object, Class, boolean) + * + * @param hint a String or Boolean value. + */ + public void setRelaxBindParameterTypeChecking(Object hint); + + /** + * Gets whether the type of user-supplied bind parameter value and the type of target persistent + * property they bind to are checked with strong or weak constraint. + * + * @return the booelan state. False by default, i.e. the type of a bind parameter value is checked + * strongly against the target property type. + */ + public boolean getRelaxBindParameterTypeChecking(); + public OpenJPAQuery<X> setFlushMode(FlushModeType flushMode); @@ -233,29 +255,25 @@ public interface OpenJPAQuery<X> extends * @deprecated cast to {@link QueryImpl} instead. This * method pierces the published-API boundary, as does the SPI cast. */ - public OpenJPAQuery<X> addFilterListener( - org.apache.openjpa.kernel.exps.FilterListener listener); + public OpenJPAQuery<X> addFilterListener(org.apache.openjpa.kernel.exps.FilterListener listener); /** * @deprecated cast to {@link QueryImpl} instead. This * method pierces the published-API boundary, as does the SPI cast. */ - public OpenJPAQuery<X> removeFilterListener( - org.apache.openjpa.kernel.exps.FilterListener listener); + public OpenJPAQuery<X> removeFilterListener(org.apache.openjpa.kernel.exps.FilterListener listener); /** * @deprecated cast to {@link QueryImpl} instead. This * method pierces the published-API boundary, as does the SPI cast. */ - public OpenJPAQuery<X> addAggregateListener( - org.apache.openjpa.kernel.exps.AggregateListener listener); + public OpenJPAQuery<X> addAggregateListener(org.apache.openjpa.kernel.exps.AggregateListener listener); /** * @deprecated cast to {@link QueryImpl} instead. This * method pierces the published-API boundary, as does the SPI cast. */ - public OpenJPAQuery<X> removeAggregateListener( - org.apache.openjpa.kernel.exps.AggregateListener listener); + public OpenJPAQuery<X> removeAggregateListener(org.apache.openjpa.kernel.exps.AggregateListener listener); /** * Gets hints supported by this query. Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java?rev=1035884&r1=1035883&r2=1035884&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java Wed Nov 17 00:38:17 2010 @@ -54,6 +54,7 @@ import org.apache.openjpa.kernel.FetchCo import org.apache.openjpa.kernel.Filters; import org.apache.openjpa.kernel.PreparedQuery; import org.apache.openjpa.kernel.PreparedQueryCache; +import org.apache.openjpa.kernel.QueryHints; import org.apache.openjpa.kernel.QueryLanguages; import org.apache.openjpa.kernel.QueryOperations; import org.apache.openjpa.kernel.QueryStatistics; @@ -91,7 +92,8 @@ public class QueryImpl<X> implements Ope private String _id; private transient ReentrantLock _lock = null; private HintHandler _hintHandler; - + private boolean _relaxBindParameterTypeChecking; + /** * Constructor; supply factory exception translator and delegate. * @@ -253,6 +255,20 @@ public class QueryImpl<X> implements Ope _query.setRange(start, start + max); return this; } + + public boolean getRelaxBindParameterTypeChecking() { + return _relaxBindParameterTypeChecking; + } + + public void setRelaxBindParameterTypeChecking(Object value) { + if (value != null) { + if (value instanceof String) { + _relaxBindParameterTypeChecking = "true".equalsIgnoreCase(value.toString()); + } else if (value instanceof Boolean) { + _relaxBindParameterTypeChecking = ((Boolean)value).booleanValue(); + } + } + } public OpenJPAQuery<X> compile() { _em.assertNotCloseInvoked(); @@ -323,7 +339,7 @@ public class QueryImpl<X> implements Ope */ public X getSingleResult() { _em.assertNotCloseInvoked(); - setHint("openjpa.hint.OptimizeResultCount", 1); // for DB2 optimization + setHint(QueryHints.HINT_RESULT_COUNT, 1); // for DB2 optimization List result = getResultList(); if (result == null || result.isEmpty()) throw new NoResultException(_loc.get("no-result", getQueryString()) @@ -1042,10 +1058,10 @@ public class QueryImpl<X> implements Ope * Validates if the parameter can accept the value by its type. */ void bindValue(Parameter<?> param, Object value) { - assertValueAssignable(param, value); + Object bindVal = assertValueAssignable(param, value); if (_boundParams == null) _boundParams = new HashMap<Parameter<?>, Object>(); - _boundParams.put(param, value); + _boundParams.put(param, bindVal); } public OpenJPAQuery<X> setParameter(String name, Calendar value, TemporalType type) { @@ -1078,15 +1094,33 @@ public class QueryImpl<X> implements Ope } } - void assertValueAssignable(Parameter<?> param, Object v) { + /** + * Convert the given value to match the given parameter type, if possible. + * + * @param param a query parameter + * @param v a user-supplied value for the parameter + */ + Object assertValueAssignable(Parameter<?> param, Object v) { + Class<?> expectedType = param.getParameterType(); if (v == null) { - if (param.getParameterType().isPrimitive()) + if (expectedType.isPrimitive()) throw new IllegalArgumentException(_loc.get("param-null-primitive", param).getMessage()); - return; + return v; } - if (!Filters.canConvert(v.getClass(), param.getParameterType(), true)) { - throw new IllegalArgumentException(_loc.get("param-type-mismatch", new Object[]{ - param, getQueryString(), v, v.getClass().getName(), param.getParameterType().getName()}).getMessage()); + if (getRelaxBindParameterTypeChecking()) { + try { + return Filters.convert(v, expectedType); + } catch (Exception e) { + throw new IllegalArgumentException(_loc.get("param-type-mismatch", new Object[]{ + param, getQueryString(), v, v.getClass().getName(), expectedType.getName()}).getMessage()); + } + } else { + if (!Filters.canConvert(v.getClass(), expectedType, true)) { + throw new IllegalArgumentException(_loc.get("param-type-mismatch", new Object[]{ + param, getQueryString(), v, v.getClass().getName(), expectedType.getName()}).getMessage()); + } else { + return v; + } } } From commits-return-8077-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 04:55:14 2010 Return-Path: <commits-return-8077-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 48578 invoked from network); 17 Nov 2010 04:55:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 04:55:14 -0000 Received: (qmail 31983 invoked by uid 500); 17 Nov 2010 04:55:45 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 31929 invoked by uid 500); 17 Nov 2010 04:55:45 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 31914 invoked by uid 99); 17 Nov 2010 04:55:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 04:55:44 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 04:55:42 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id E0D05C0164 for <commits@openjpa.apache.org>; Wed, 17 Nov 2010 04:55:20 +0000 (UTC) Date: Wed, 17 Nov 2010 04:55:20 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1080302505.2461289969720810.JavaMail.hudson@aegis> In-Reply-To: <418993417.10081289655448831.JavaMail.hudson@aegis> References: <418993417.10081289655448831.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJP?= =?UTF-8?Q?A-trunk_=C2=BB_OpenJPA_Persistence_JDBC_#331?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/331/changes> From commits-return-8078-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 04:55:20 2010 Return-Path: <commits-return-8078-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 48608 invoked from network); 17 Nov 2010 04:55:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 04:55:19 -0000 Received: (qmail 32061 invoked by uid 500); 17 Nov 2010 04:55:51 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 32006 invoked by uid 500); 17 Nov 2010 04:55:51 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 31999 invoked by uid 99); 17 Nov 2010 04:55:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 04:55:51 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 04:55:45 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 83B9DC0167 for <commits@openjpa.apache.org>; Wed, 17 Nov 2010 04:55:23 +0000 (UTC) Date: Wed, 17 Nov 2010 04:55:23 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <719654305.2471289969723538.JavaMail.hudson@aegis> In-Reply-To: <1048849997.10091289655450182.JavaMail.hudson@aegis> References: <1048849997.10091289655450182.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #331 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/331/changes> Changes: [ppoddar] OPENJPA-1889: Relax binding query parameter type checks for enums [curtisr7] OPENJPA-1886: Remove query parameters when tracing. ------------------------------------------ [...truncated 14564 lines...] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/openjpa-xmlstore-2.1.0-SNAPSHOT.jar [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-xmlstore/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-17_03-31-35/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-17_03-31-35/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/openjpa-xmlstore-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-17_03-31-35/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Slice [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-slice/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Starting audit... Audit done. [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 31 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-slice/target/classes> [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 22 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-slice/target/test-classes> [INFO] [antrun:run {execution: default}] [INFO] Executing tasks enhance: enhance.all.entities: [echo] running enhancer 248 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.UserDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@1c8f29b has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.UserDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.UserDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 329 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.PersistenceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@1c8f29b has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.PersistenceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.PersistenceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 361 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SliceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@1c8f29b has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SliceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SliceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 397 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SingleEMFTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@1c8f29b has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SingleEMFTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SingleEMFTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 421 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@1c8f29b has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 425 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@1c8f29b has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. [INFO] Executed tasks [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-slice/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.slice.TestQuery 5 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 6 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 41 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 173 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 505 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4611 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12637 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 12863 ordering WARN [main] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 10 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 412 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 510 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 4 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 221 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 363 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is removed from cache excluded permanently. Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 32 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 30 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 224 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 315 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 325 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 337 ordering WARN [main] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 351 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 190 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 284 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 181 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 272 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 190 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 270 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 166 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 262 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 158 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 242 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 147 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 237 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 150 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 253 ordering WARN [main] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 286 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 141 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 251 ordering WARN [main] openjpa.Runtime - Query "select c from Car c" is removed from cache excluded permanently. Query "select c from Car c" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 258 ordering WARN [main] openjpa.Runtime - Query "select m from Manufacturer m" is removed from cache excluded permanently. Query "select m from Manufacturer m" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.948 sec Running org.apache.openjpa.slice.TestQueryMultiThreaded 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 173 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 283 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 329 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 337 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 342 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 142 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 201 ordering WARN [Thread-7] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 150 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 213 ordering WARN [Thread-12] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 153 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 211 ordering WARN [Thread-17] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 132 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 192 ordering WARN [Thread-22] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 132 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 197 ordering WARN [Thread-27] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 193 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 278 ordering WARN [Thread-32] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 282 ordering WARN [Thread-32] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Build timed out. Aborting Sending e-mails to: commits@openjpa.apache.org Process 1289968432901 is killed. [HUDSON] Recording test results [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to call isArchivingDisabled. Invalid object ID 23 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.IllegalStateException: Unable to call isArchivingDisabled. Invalid object ID 23 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:268) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 83 minutes 36 seconds [INFO] Finished at: Wed Nov 17 04:55:21 UTC 2010 [INFO] Final Memory: 137M/565M [INFO] ------------------------------------------------------------------------ channel stopped From commits-return-8079-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 10:02:06 2010 Return-Path: <commits-return-8079-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 738 invoked from network); 17 Nov 2010 10:02:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 10:02:06 -0000 Received: (qmail 26198 invoked by uid 500); 17 Nov 2010 10:02:37 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 26123 invoked by uid 500); 17 Nov 2010 10:02:35 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 26116 invoked by uid 99); 17 Nov 2010 10:02:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 10:02:34 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 10:02:34 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id DBF43C0164 for <commits@openjpa.apache.org>; Wed, 17 Nov 2010 10:02:13 +0000 (UTC) Date: Wed, 17 Nov 2010 10:02:13 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1801987118.2861289988133828.JavaMail.hudson@aegis> In-Reply-To: <1351899761.10781289729721595.JavaMail.hudson@aegis> References: <1351899761.10781289729721595.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_still_unstable:_OpenJPA-t?= =?UTF-8?Q?runk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#54?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/changes> From commits-return-8080-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 10:02:07 2010 Return-Path: <commits-return-8080-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 756 invoked from network); 17 Nov 2010 10:02:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 10:02:06 -0000 Received: (qmail 26267 invoked by uid 500); 17 Nov 2010 10:02:38 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 26193 invoked by uid 500); 17 Nov 2010 10:02:37 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 26127 invoked by uid 99); 17 Nov 2010 10:02:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 10:02:37 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 10:02:35 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id DCB37C0167 for <commits@openjpa.apache.org>; Wed, 17 Nov 2010 10:02:13 +0000 (UTC) Date: Wed, 17 Nov 2010 10:02:13 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <35618585.2871289988133903.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_normal_:_Ope?= =?UTF-8?Q?nJPA-trunk-deploy_=C2=BB_OpenJPA_Slice_#54?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-slice/54/> From commits-return-8081-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 10:02:07 2010 Return-Path: <commits-return-8081-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 766 invoked from network); 17 Nov 2010 10:02:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 10:02:06 -0000 Received: (qmail 26325 invoked by uid 500); 17 Nov 2010 10:02:38 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 26210 invoked by uid 500); 17 Nov 2010 10:02:38 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 26191 invoked by uid 99); 17 Nov 2010 10:02:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 10:02:37 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 10:02:35 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 70135C0168 for <commits@openjpa.apache.org>; Wed, 17 Nov 2010 10:02:14 +0000 (UTC) Date: Wed, 17 Nov 2010 10:02:14 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <653811878.2881289988134438.JavaMail.hudson@aegis> In-Reply-To: <1030395171.10791289729725988.JavaMail.hudson@aegis> References: <1030395171.10791289729725988.JavaMail.hudson@aegis> Subject: Hudson build is unstable: OpenJPA-trunk-deploy #54 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/54/changes> From commits-return-8082-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 16:24:21 2010 Return-Path: <commits-return-8082-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 9881 invoked from network); 17 Nov 2010 16:24:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 16:24:21 -0000 Received: (qmail 3365 invoked by uid 500); 17 Nov 2010 16:24:53 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 3312 invoked by uid 500); 17 Nov 2010 16:24:51 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 3299 invoked by uid 99); 17 Nov 2010 16:24:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 16:24:50 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 16:24:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7189B23889E1; Wed, 17 Nov 2010 16:23:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036096 - /openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ Date: Wed, 17 Nov 2010 16:23:36 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101117162336.7189B23889E1@eris.apache.org> Author: ppoddar Date: Wed Nov 17 16:23:35 2010 New Revision: 1036096 URL: http://svn.apache.org/viewvc?rev=1036096&view=rev Log: OPENJPA-1859: Remove plain vanilla remote access Removed: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractResponse.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorResponse.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/GETRequest.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ImageResponse.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTRequest.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTResponse.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONEncoder.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Request.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/RequestFactory.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/RequestHandler.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceResponse.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Server.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLEncoder.java From commits-return-8083-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 16:25:13 2010 Return-Path: <commits-return-8083-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 10051 invoked from network); 17 Nov 2010 16:25:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 16:25:13 -0000 Received: (qmail 4250 invoked by uid 500); 17 Nov 2010 16:25:44 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 4208 invoked by uid 500); 17 Nov 2010 16:25:44 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 4201 invoked by uid 99); 17 Nov 2010 16:25:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 16:25:44 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 16:25:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2720823889E1; Wed, 17 Nov 2010 16:24:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036097 - /openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java Date: Wed, 17 Nov 2010 16:24:30 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101117162430.2720823889E1@eris.apache.org> Author: ppoddar Date: Wed Nov 17 16:24:29 2010 New Revision: 1036097 URL: http://svn.apache.org/viewvc?rev=1036097&view=rev Log: OPENJPA-1859: Remove plain vanilla remote access Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java?rev=1036097&r1=1036096&r2=1036097&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java Wed Nov 17 16:24:29 2010 @@ -45,7 +45,6 @@ import org.apache.openjpa.lib.util.Close import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.persistence.criteria.CriteriaBuilderImpl; import org.apache.openjpa.persistence.criteria.OpenJPACriteriaBuilder; -import org.apache.openjpa.persistence.jest.Server; import org.apache.openjpa.persistence.meta.MetamodelImpl; import org.apache.openjpa.persistence.query.OpenJPAQueryBuilder; import org.apache.openjpa.persistence.query.QueryBuilderImpl; @@ -70,7 +69,6 @@ public class EntityManagerFactoryImpl private transient StoreCache _cache = null; private transient QueryResultCache _queryCache = null; private transient MetamodelImpl _metaModel; - private transient Server _remoteAccess = null; /** * Default constructor provided for auto-instantiation. @@ -98,7 +96,6 @@ public class EntityManagerFactoryImpl */ public void setBrokerFactory(BrokerFactory factory) { _factory = new DelegatingBrokerFactory(factory, PersistenceExceptions.TRANSLATOR); - configureRemoteAccess(getConfiguration()); } public OpenJPAConfiguration getConfiguration() { @@ -273,10 +270,6 @@ public class EntityManagerFactoryImpl if (log.isTraceEnabled()) { log.trace(this + ".close() invoked."); } - if (_remoteAccess != null) { - _remoteAccess.stop(); - _remoteAccess = null; - } _factory.close(); } @@ -402,40 +395,4 @@ public class EntityManagerFactoryImpl } } } - - /** - * Configures this unit for remote access. - */ - protected void configureRemoteAccess(OpenJPAConfiguration conf) { - Value value = conf.getValue("RemoteAccess"); - if (value == null) { - return; - } - String props = value.getString(); - if (props == null) - return; - try { - _remoteAccess = new Server(); - _remoteAccess.setContext(this); - Configurations.configureInstance(_remoteAccess, conf, props); - conf.removeValue(value); - if (!_remoteAccess.start()) { - _remoteAccess = null; - } - } catch (Exception ex) { - Log log = _factory.getConfiguration().getLog(OpenJPAConfiguration.LOG_RUNTIME); - if (log != null) { - log.error(_loc.get("remote-start-error"), ex); - } - } - } - - /** - * Affirms if this unit is accessible remotely. - */ - public boolean allowsRemoteAccess() { - return _remoteAccess != null; - } - - } From commits-return-8084-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 19:54:21 2010 Return-Path: <commits-return-8084-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 22658 invoked from network); 17 Nov 2010 19:54:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 19:54:21 -0000 Received: (qmail 65239 invoked by uid 500); 17 Nov 2010 19:54:52 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 65192 invoked by uid 500); 17 Nov 2010 19:54:52 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 65185 invoked by uid 99); 17 Nov 2010 19:54:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 19:54:52 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 19:54:51 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3193F23889E1; Wed, 17 Nov 2010 19:53:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036184 - in /openjpa/branches/1.2.x: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ Date: Wed, 17 Nov 2010 19:53:38 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101117195338.3193F23889E1@eris.apache.org> Author: mikedd Date: Wed Nov 17 19:53:37 2010 New Revision: 1036184 URL: http://svn.apache.org/viewvc?rev=1036184&view=rev Log: OPENJPA-1289 OPENJPA-1874 redo rev 1035770 Added: openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ - copied from r1035769, openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/ openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java - copied unchanged from r1035769, openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/TestOracleXmlColumn.java openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java - copied unchanged from r1035769, openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/oracle/XmlColEntity.java Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java?rev=1036184&r1=1036183&r2=1036184&view=diff ============================================================================== --- openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java (original) +++ openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Column.java Wed Nov 17 19:53:37 2010 @@ -640,6 +640,18 @@ public class Column default: return false; } + case 2007: // Oracle-defined opaque type code for XMLType + switch (type) { + case Types.CHAR: + case Types.LONGVARCHAR: + case Types.VARCHAR: + case Types.CLOB: + case Types.BLOB: + return true; + default: + return false; + } + default: return type == getType(); } From commits-return-8085-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 21:10:17 2010 Return-Path: <commits-return-8085-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 73096 invoked from network); 17 Nov 2010 21:10:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 21:10:17 -0000 Received: (qmail 8989 invoked by uid 500); 17 Nov 2010 21:10:48 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 8935 invoked by uid 500); 17 Nov 2010 21:10:48 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8928 invoked by uid 99); 17 Nov 2010 21:10:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 21:10:48 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 21:10:46 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 6C71BC0164 for <commits@openjpa.apache.org>; Wed, 17 Nov 2010 21:10:25 +0000 (UTC) Date: Wed, 17 Nov 2010 21:10:25 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <513654421.3301290028225411.JavaMail.hudson@aegis> In-Reply-To: <574429936.1991289939655054.JavaMail.hudson@aegis> References: <574429936.1991289939655054.JavaMail.hudson@aegis> Subject: Hudson build is back to normal : OpenJPA-12x #13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-12x/13/changes> From commits-return-8086-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 21:56:04 2010 Return-Path: <commits-return-8086-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 93818 invoked from network); 17 Nov 2010 21:56:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 21:56:04 -0000 Received: (qmail 96148 invoked by uid 500); 17 Nov 2010 21:56:35 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 96122 invoked by uid 500); 17 Nov 2010 21:56:35 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 96114 invoked by uid 99); 17 Nov 2010 21:56:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 21:56:35 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 21:56:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id AD32E23889E1; Wed, 17 Nov 2010 21:55:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036244 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java Date: Wed, 17 Nov 2010 21:55:21 -0000 To: commits@openjpa.apache.org From: faywang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101117215521.AD32E23889E1@eris.apache.org> Author: faywang Date: Wed Nov 17 21:55:21 2010 New Revision: 1036244 URL: http://svn.apache.org/viewvc?rev=1036244&view=rev Log: OPENJPA-1890: fix NPE when an embeddable is set to a managed entity more than once Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java?rev=1036244&r1=1036243&r2=1036244&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/SingleFieldManager.java Wed Nov 17 21:55:21 2010 @@ -311,8 +311,11 @@ class SingleFieldManager // works on external value if ((immediate || fmd.isEmbeddedPC()) && fmd.getCascadeDelete() == ValueMetaData.CASCADE_IMMEDIATE) { - if (fmd.isEmbeddedPC() && deref) - dereferenceEmbedDependent(_broker.getStateManagerImpl(objval, false)); + if (fmd.isEmbeddedPC() && deref) { + StateManagerImpl sm = _broker.getStateManagerImpl(objval, false); + if (sm != null) + dereferenceEmbedDependent(sm); + } delete(fmd, objval, call); } else if (fmd.getCascadeDelete() == ValueMetaData.CASCADE_AUTO) From commits-return-8087-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 17 23:38:00 2010 Return-Path: <commits-return-8087-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 66893 invoked from network); 17 Nov 2010 23:38:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 23:38:00 -0000 Received: (qmail 67120 invoked by uid 500); 17 Nov 2010 23:38:32 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 67066 invoked by uid 500); 17 Nov 2010 23:38:32 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 67059 invoked by uid 99); 17 Nov 2010 23:38:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 23:38:32 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 23:38:31 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 75650C0164 for <commits@openjpa.apache.org>; Wed, 17 Nov 2010 23:38:11 +0000 (UTC) Date: Wed, 17 Nov 2010 23:38:11 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1225641464.3521290037091392.JavaMail.hudson@aegis> In-Reply-To: <719654305.2471289969723538.JavaMail.hudson@aegis> References: <719654305.2471289969723538.JavaMail.hudson@aegis> Subject: Hudson build is back to normal : OpenJPA-trunk #332 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/332/changes> From commits-return-8088-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 18 08:29:53 2010 Return-Path: <commits-return-8088-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 1529 invoked from network); 18 Nov 2010 08:29:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 08:29:53 -0000 Received: (qmail 41040 invoked by uid 500); 18 Nov 2010 08:30:24 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 40983 invoked by uid 500); 18 Nov 2010 08:30:24 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 40969 invoked by uid 99); 18 Nov 2010 08:30:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 08:30:23 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 08:30:21 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 77DB1C0164 for <commits@openjpa.apache.org>; Thu, 18 Nov 2010 08:30:00 +0000 (UTC) Date: Thu, 18 Nov 2010 08:30:00 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <309992592.3891290069000361.JavaMail.hudson@aegis> In-Reply-To: <1801987118.2861289988133828.JavaMail.hudson@aegis> References: <1801987118.2861289988133828.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJPA-t?= =?UTF-8?Q?runk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#55?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/55/> From commits-return-8089-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 18 08:29:53 2010 Return-Path: <commits-return-8089-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 1546 invoked from network); 18 Nov 2010 08:29:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 08:29:53 -0000 Received: (qmail 41062 invoked by uid 500); 18 Nov 2010 08:30:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 41039 invoked by uid 500); 18 Nov 2010 08:30:24 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 40975 invoked by uid 99); 18 Nov 2010 08:30:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 08:30:24 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 08:30:22 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 4B98BC0167 for <commits@openjpa.apache.org>; Thu, 18 Nov 2010 08:30:01 +0000 (UTC) Date: Thu, 18 Nov 2010 08:30:01 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <92330878.3901290069001298.JavaMail.hudson@aegis> In-Reply-To: <653811878.2881289988134438.JavaMail.hudson@aegis> References: <653811878.2881289988134438.JavaMail.hudson@aegis> Subject: Hudson build is back to stable : OpenJPA-trunk-deploy #55 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/55/changes> From commits-return-8090-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 18 22:51:33 2010 Return-Path: <commits-return-8090-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 60164 invoked from network); 18 Nov 2010 22:51:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 22:51:33 -0000 Received: (qmail 55283 invoked by uid 500); 18 Nov 2010 22:52:05 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 55233 invoked by uid 500); 18 Nov 2010 22:52:05 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 55226 invoked by uid 99); 18 Nov 2010 22:52:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 22:52:04 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 22:52:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5EF7B23889EA; Thu, 18 Nov 2010 22:50:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036666 - /openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd Date: Thu, 18 Nov 2010 22:50:47 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101118225047.5EF7B23889EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Thu Nov 18 22:50:47 2010 New Revision: 1036666 URL: http://svn.apache.org/viewvc?rev=1036666&view=rev Log: OPENJPA-1859: Add XML instance schema Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd (with props) Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd?rev=1036666&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd Thu Nov 18 22:50:47 2010 @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor + license agreements. See the NOTICE file distributed with this work for additional + information regarding copyright ownership. The ASF licenses this file to + you under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required + by applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS + OF ANY KIND, either express or implied. See the License for the specific + language governing permissions and limitations under the License. --> +<!-- ========================================================================= --> +<!-- Schema for serialized persistence instance. --> +<!-- ========================================================================= --> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + attributeFormDefault="unqualified" elementFormDefault="qualified" + version="1.0"> + + <xsd:annotation> + <xsd:documentation><![CDATA[ + Describes closure of managed persistence instance. + Each instance is described by all its loaded persistent attribute. + The related instances are resolved within the document root. + Document root represents zero or more instances. + + The file must be named "jest-instance.xsd". + ]]> + </xsd:documentation> + </xsd:annotation> + + <!-- The root element of the document contains zero or more instances --> + <xsd:element name="instances"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="instance" maxOccurs="unbounded" type="instance-type" /> + </xsd:sequence> + <xsd:attribute name="version" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + + <!-- The root element for a single instance --> + <xsd:complexType name="instance-type"> + <xsd:sequence> + <xsd:element name="basic" type="basic-attr-type" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="lob" type="lob-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="embedded" type="instance-type" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="singular" type="singular-attr-type" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="collection" type="collection-attr-type" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="map" type="map-attr-type" minOccurs="0" maxOccurs="unbounded" /> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID" use="required" /> + </xsd:complexType> + + <!-- A reference to another instance within the same(?) document --> + <xsd:complexType name="ref-type"> + <xsd:attribute name="id" type="xsd:IDREF" /> + </xsd:complexType> + + <!-- A null reference --> + <xsd:complexType name="ref-null"> + </xsd:complexType> + + <!-- Basic Attribute has a name and its runtime type --> + <!-- non-null value appears as text content. --> + <!-- null value appears as attribute with empty text . --> + <xsd:complexType name="basic-attr-type"> + <xsd:simpleContent> + <xsd:extension base="xsd:string"> + <xsd:attribute name="name" type="xsd:string" use="required" /> + <xsd:attribute name="type" type="xsd:string" use="required" /> + <xsd:attribute name="null" type="xsd:boolean" /> + </xsd:extension> + </xsd:simpleContent> + </xsd:complexType> + + <!-- Large Binary Objects (LOB) represented as hex array --> + <xsd:complexType name="lob-attr-type"> + <xsd:simpleContent> + <xsd:extension base="xsd:hexBinary"> + <xsd:attribute name="name" type="xsd:string" use="required" /> + <xsd:attribute name="type" type="xsd:string" use="required" /> + <xsd:attribute name="null" type="xsd:boolean" /> + </xsd:extension> + </xsd:simpleContent> + </xsd:complexType> + + <!-- Singular attribute is a reference to another instance or a null reference. --> + <xsd:complexType name="singular-attr-type"> + <xsd:choice> + <xsd:element name="null" type="ref-null" /> + <xsd:element name="ref" type="ref-type" /> + </xsd:choice> + <xsd:attribute name="name" type="xsd:string" use="required" /> + <xsd:attribute name="type" type="xsd:string" use="required" /> + </xsd:complexType> + + <!-- Collection attributes list their members with their runtime type --> + <!-- Members can be basic or other managed instance --> + <xsd:complexType name="collection-attr-type"> + <xsd:sequence> + <xsd:element name="member" type="member-type" minOccurs="0" + maxOccurs="unbounded" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + <xsd:attribute name="type" type="xsd:string" use="required" /> + <xsd:attribute name="member-type" type="xsd:string" use="required" /> + </xsd:complexType> + + <!-- Map attributes list their entries with runtime type of key and value --> + <!-- Both key and value can be independently basic or other managed instance --> + <xsd:complexType name="map-attr-type"> + <xsd:sequence> + <xsd:element name="entry" type="entry-type" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + <xsd:attribute name="type" type="xsd:string" use="required" /> + <xsd:attribute name="key-type" type="xsd:string" use="required" /> + <xsd:attribute name="value-type" type="xsd:string" use="required" /> + </xsd:complexType> + + <!-- Value of a member of basic type. --> + <xsd:complexType name="basic-value-type"> + <xsd:simpleContent> + <xsd:extension base="xsd:string"> + <xsd:attribute name="null" type="xsd:boolean" /> + </xsd:extension> + </xsd:simpleContent> + </xsd:complexType> + + <!-- Value of a member of a collection/map --> + <xsd:complexType name="member-type"> + <xsd:choice> + <xsd:element name="basic" type="basic-value-type" /> + <xsd:element name="null" type="ref-null" /> + <xsd:element name="ref" type="ref-type" /> + </xsd:choice> + </xsd:complexType> + + <!-- Denotes entry of a map element --> + <xsd:complexType name="entry-type"> + <xsd:sequence> + <xsd:element name="key" type="member-type" minOccurs="1" maxOccurs="1" /> + <xsd:element name="value" type="member-type" minOccurs="1" maxOccurs="1" /> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema> Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd ------------------------------------------------------------------------------ svn:mime-type = text/plain From commits-return-8091-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 18 22:52:51 2010 Return-Path: <commits-return-8091-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 60597 invoked from network); 18 Nov 2010 22:52:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 22:52:51 -0000 Received: (qmail 56071 invoked by uid 500); 18 Nov 2010 22:53:23 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 56048 invoked by uid 500); 18 Nov 2010 22:53:23 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 56041 invoked by uid 99); 18 Nov 2010 22:53:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 22:53:23 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 22:53:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C6D332388A43; Thu, 18 Nov 2010 22:52:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036668 - in /openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest: DomainCommand.java JSONObjectFormatter.java XMLFormatter.java Date: Thu, 18 Nov 2010 22:52:07 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101118225207.C6D332388A43@eris.apache.org> Author: ppoddar Date: Thu Nov 18 22:52:07 2010 New Revision: 1036668 URL: http://svn.apache.org/viewvc?rev=1036668&view=rev Log: OPENJPA-1859: Change to flatter XML schema Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java?rev=1036668&r1=1036667&r2=1036668&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java Thu Nov 18 22:52:07 2010 @@ -22,6 +22,7 @@ package org.apache.openjpa.persistence.j import java.util.List; import javax.persistence.metamodel.Attribute; +import javax.persistence.metamodel.Attribute.PersistentAttributeType; import javax.persistence.metamodel.ManagedType; import javax.persistence.metamodel.Metamodel; import javax.persistence.metamodel.SingularAttribute; @@ -33,6 +34,7 @@ import javax.xml.transform.TransformerFa import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; +import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -140,14 +142,17 @@ public class DomainCommand extends Abstr tag = ATTR_ID; } else if (sa.isVersion()) { tag = ATTR_VERSION; - } - } else { + } + } + if (tag == null) { tag = a.getPersistentAttributeType().toString().toLowerCase().replace('_', '-'); } + Element child = doc.createElement(tag); root.appendChild(child); child.setAttribute(ATTR_TYPE, a.getJavaType().getSimpleName()); child.setTextContent(a.getName()); + } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java?rev=1036668&r1=1036667&r2=1036668&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java Thu Nov 18 22:52:07 2010 @@ -36,6 +36,7 @@ import java.util.Map; import java.util.Set; import javax.persistence.metamodel.Attribute; +import javax.persistence.metamodel.Metamodel; import javax.servlet.http.HttpServletResponse; import org.apache.openjpa.kernel.OpenJPAStateManager; @@ -65,7 +66,8 @@ public class JSONObjectFormatter impleme public void encode(Object obj, JPAServletContext ctx) { if (obj instanceof OpenJPAStateManager) { try { - JSONObject result = encodeManagedInstance((OpenJPAStateManager)obj, ctx); + JSONObject result = encodeManagedInstance((OpenJPAStateManager)obj, + ctx.getPersistenceContext().getMetamodel()); PrintWriter writer = ctx.getResponse().getWriter(); writer.println(result.toString()); } catch (Exception e) { @@ -86,7 +88,7 @@ public class JSONObjectFormatter impleme throw new RuntimeException(this + " does not know how to encode " + obj); } } - JSONObject.Array result = encodeManagedInstances(sms, ctx); + JSONObject.Array result = encodeManagedInstances(sms, ctx.getPersistenceContext().getMetamodel()); PrintWriter writer = ctx.getResponse().getWriter(); writer.println(result.toString()); } @@ -97,14 +99,14 @@ public class JSONObjectFormatter impleme * @param sm a managed instance, can be null. * @param parent the parent node to which the new node be attached. */ - private JSONObject encodeManagedInstance(final OpenJPAStateManager sm, JPAServletContext ctx) { - return encodeManagedInstance(sm, new HashSet<OpenJPAStateManager>(), 0, false, ctx); + private JSONObject encodeManagedInstance(final OpenJPAStateManager sm, Metamodel model) { + return encodeManagedInstance(sm, new HashSet<OpenJPAStateManager>(), 0, false, model); } - private JSONObject.Array encodeManagedInstances(final Collection<OpenJPAStateManager> sms, JPAServletContext ctx) { + private JSONObject.Array encodeManagedInstances(final Collection<OpenJPAStateManager> sms, Metamodel model) { JSONObject.Array result = new JSONObject.Array(); for (OpenJPAStateManager sm : sms) { - result.add(encodeManagedInstance(sm, new HashSet<OpenJPAStateManager>(), 0, false, ctx)); + result.add(encodeManagedInstance(sm, new HashSet<OpenJPAStateManager>(), 0, false, model)); } return result; } @@ -121,7 +123,7 @@ public class JSONObjectFormatter impleme * @return the new element. The element has been appended as a child to the given parent in this method. */ private JSONObject encodeManagedInstance(final OpenJPAStateManager sm, final Set<OpenJPAStateManager> visited, - int indent, boolean indentPara, JPAServletContext jtx) { + int indent, boolean indentPara, Metamodel model) { if (visited == null) { throw new IllegalArgumentException("null closure for encoder"); } @@ -137,8 +139,8 @@ public class JSONObjectFormatter impleme BitSet loaded = sm.getLoaded(); StoreContext ctx = (StoreContext)sm.getGenericContext(); - List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(sm.getMetaData(), - jtx.getPersistenceContext().getMetamodel()); + List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(sm.getMetaData(), model); + int n = 0; for (int i = 0; i < attrs.size(); i++) { FieldMetaData fmd = ((Members.Member<?, ?>) attrs.get(i)).fmd; @@ -180,7 +182,7 @@ public class JSONObjectFormatter impleme root.set(fmd.getName(), null); } else { root.set(fmd.getName(),encodeManagedInstance(ctx.getStateManager(value), visited, - indent+1, false, jtx)); + indent+1, false, model)); } break; @@ -207,7 +209,8 @@ public class JSONObjectFormatter impleme if (basic) { array.add(o); } else { - array.add(encodeManagedInstance(ctx.getStateManager(o), visited, indent+1, true, jtx)); + array.add(encodeManagedInstance(ctx.getStateManager(o), visited, indent+1, true, + model)); } } } @@ -230,11 +233,11 @@ public class JSONObjectFormatter impleme Object k = e.getKey(); Object v = e.getValue(); if (!basicKey) { - k = encodeManagedInstance(ctx.getStateManager(k), visited, indent+1, true, jtx); + k = encodeManagedInstance(ctx.getStateManager(k), visited, indent+1, true, model); } if (!basicValue) { v = encodeManagedInstance(ctx.getStateManager(e.getValue()), visited, - indent+1, false, jtx); + indent+1, false, model); } map.put(k,v); } @@ -259,24 +262,6 @@ public class JSONObjectFormatter impleme return sm.getMetaData().getDescribedType().getSimpleName(); } -// String typeOf(Class<?> cls) { -// return cls.getSimpleName(); -// } -// -// String typeOf(ClassMetaData meta) { -// return meta.getDescribedType().getSimpleName(); -// } -// -// String typeOf(ValueMetaData vm) { -// if (vm.getTypeMetaData() == null) -// return typeOf(vm.getType()); -// return typeOf(vm.getTypeMetaData()); -// } -// -// String typeOf(FieldMetaData fmd) { -// return fmd.getType().getSimpleName(); -// } - /** * Convert the given stream (either an InutStream or a Reader) to a String @@ -306,12 +291,6 @@ public class JSONObjectFormatter impleme } - /* (non-Javadoc) - * @see org.apache.openjpa.persistence.jest.ObjectFormatter#configure(java.lang.String, java.lang.Object) - */ - @Override public void configure(String key, Object value) { - // TODO Auto-generated method stub - } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java?rev=1036668&r1=1036667&r2=1036668&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Thu Nov 18 22:52:07 2010 @@ -24,7 +24,9 @@ import java.io.CharArrayWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; +import java.io.PrintWriter; import java.io.Reader; +import java.io.Writer; import java.net.HttpURLConnection; import java.util.Arrays; import java.util.BitSet; @@ -36,14 +38,23 @@ import java.util.Map; import java.util.Set; import javax.persistence.metamodel.Attribute; +import javax.persistence.metamodel.Metamodel; +import javax.xml.XMLConstants; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform.OutputKeys; +import javax.xml.transform.Source; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; +import javax.xml.transform.stream.StreamSource; +import javax.xml.validation.Schema; +import javax.xml.validation.SchemaFactory; +import javax.xml.validation.Validator; + +import junit.framework.Assert; import org.apache.openjpa.kernel.OpenJPAStateManager; import org.apache.openjpa.kernel.StoreContext; @@ -92,23 +103,26 @@ public class XMLFormatter implements Obj public static final String ATTR_KEY_TYPE = "key-type"; public static final String ATTR_VALUE_TYPE = "value-type"; - public static final InputStream _xsd; static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema"; - static final String W3C_XML_SCHEMA_INSTANCE = "http://www.w3.org/2001/XMLSchema-instance"; static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource"; static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage"; static final String JEST_INSTANCE_XSD = "jest-instance.xsd"; - static final String JEST_INSTANCE_XSD_PATH = "META-INF/" + JEST_INSTANCE_XSD; + public static final Schema _xsd; private static final DocumentBuilder _builder; - private static final Transformer _transformer; + private static final Transformer _transformer; static { try { _builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); _transformer = TransformerFactory.newInstance().newTransformer(); - _xsd = Thread.currentThread().getContextClassLoader().getResourceAsStream(JEST_INSTANCE_XSD_PATH); + SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); + InputStream in = XMLFormatter.class.getResourceAsStream(JEST_INSTANCE_XSD); + Source schemaFile = new StreamSource(in); + _xsd = factory.newSchema(schemaFile); + _transformer.setOutputProperty(OutputKeys.METHOD, "xml"); + _transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); _transformer.setOutputProperty(OutputKeys.INDENT, "yes"); _transformer.setOutputProperty(OutputKeys.STANDALONE, "no"); _transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); @@ -126,14 +140,10 @@ public class XMLFormatter implements Obj return MIME_TYPE; } - /* (non-Javadoc) - * @see org.apache.openjpa.persistence.jest.ObjectFormatter#encode(java.lang.Object, - * javax.servlet.ServletResponse, org.apache.openjpa.persistence.jest.JPAServletContext) - */ @Override public void encode(Object obj, JPAServletContext ctx) { if (obj instanceof OpenJPAStateManager) { - Document doc = encodeManagedInstance((OpenJPAStateManager)obj, ctx); + Document doc = encodeManagedInstance((OpenJPAStateManager)obj, ctx.getPersistenceContext().getMetamodel()); try { _transformer.transform(new DOMSource(doc), new StreamResult(ctx.getResponse().getWriter())); } catch (Exception ex) { @@ -147,20 +157,24 @@ public class XMLFormatter implements Obj @Override public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException { try { - Document doc = encodeManagedInstances((Collection<OpenJPAStateManager>)objs, ctx); - _transformer.transform(new DOMSource(doc), new StreamResult(ctx.getResponse().getWriter())); + Metamodel model = ctx.getPersistenceContext().getMetamodel(); + Document doc = encodeManagedInstances((Collection<OpenJPAStateManager>)objs, model); + write(doc, ctx.getResponse().getWriter()); } catch (Exception e) { throw new IllegalArgumentException(objs + " is not a managed instance"); } - + } + + public void write(Document doc, Writer writer) throws Exception { + _transformer.transform(new DOMSource(doc), new StreamResult(writer)); } /** * Encodes a single managed instance in to a XML document according to JEST XML Schema. * */ - protected Document encodeManagedInstance(final OpenJPAStateManager sm, JPAServletContext jtx) { - return encodeManagedInstances(Collections.singleton(sm), jtx); + public Document encodeManagedInstance(final OpenJPAStateManager sm, Metamodel model) { + return encodeManagedInstances(Collections.singleton(sm), model); } /** @@ -169,8 +183,10 @@ public class XMLFormatter implements Obj * @param sm a managed instance, can be null. * @param parent the parent node to which the new node be attached. */ - protected Element encodeManagedInstance(final OpenJPAStateManager sm, Element parent, JPAServletContext jtx) { - return encodeManagedInstance(sm, parent, new HashSet<OpenJPAStateManager>(), jtx); + public Element encodeManagedInstance(final OpenJPAStateManager sm, Element parent, Metamodel model) { + Set<OpenJPAStateManager> visited = new HashSet<OpenJPAStateManager>(); + Set<OpenJPAStateManager> futures = new HashSet<OpenJPAStateManager>(); + return encodeManagedInstance(sm, parent, visited, futures, false, model); } /** @@ -179,13 +195,22 @@ public class XMLFormatter implements Obj * @param sm a managed instance, can be null. * @param parent the parent node to which the new node be attached. */ - protected Document encodeManagedInstances(final Collection<OpenJPAStateManager> sms, JPAServletContext jtx) { + public Document encodeManagedInstances(final Collection<OpenJPAStateManager> sms, Metamodel model) { Document doc = _builder.newDocument(); Element root = doc.createElement(ELEMENT_ROOT); doc.appendChild(root); if (sms != null) { + Set<OpenJPAStateManager> visited = new HashSet<OpenJPAStateManager>(); + Set<OpenJPAStateManager> futures = new HashSet<OpenJPAStateManager>(); for (OpenJPAStateManager sm : sms) { - encodeManagedInstance(sm, root, new HashSet<OpenJPAStateManager>(), jtx); + encodeManagedInstance(sm, root, visited, futures, false, model); + } + while (!futures.isEmpty()) { + Set<OpenJPAStateManager> newFutures = new HashSet<OpenJPAStateManager>(); + for (OpenJPAStateManager sm : futures) { + encodeManagedInstance(sm, root, visited, newFutures, false, model); + } + futures = newFutures; } } addSchemaToRoot(doc); @@ -204,7 +229,8 @@ public class XMLFormatter implements Obj * @return the new element. The element has been appended as a child to the given parent in this method. */ private Element encodeManagedInstance(final OpenJPAStateManager sm, final Element parent, - final Set<OpenJPAStateManager> visited, JPAServletContext jtx) { + final Set<OpenJPAStateManager> visited, final Set<OpenJPAStateManager> futures, boolean isRef, + Metamodel model) { if (parent == null) throw new InternalException(_loc.get("format-xml-null-parent")); Document doc = parent.getOwnerDocument(); @@ -218,18 +244,34 @@ public class XMLFormatter implements Obj parent.appendChild(nullRef); return nullRef; } - boolean ref = !visited.add(sm); - Element root = doc.createElement(ref ? ELEMENT_REF : ELEMENT_INSTANCE); + boolean isVisited = visited.contains(sm); + System.err.println("SM " + ior(sm) + (isVisited ? " visited " : " ") + (isRef ? " isRef" : "")); + if (isRef) { + if (!isVisited) { + futures.add(sm); + System.err.println("SM " + ior(sm) + " added to " + futures.size() + " future"); + } + Element root = doc.createElement(ELEMENT_REF); + parent.appendChild(root); + root.setAttribute(ATTR_ID, ior(sm)); + return root; + } else if (isVisited) { + return null; +// System.err.println("SM " + ior(sm) + " visited before"); +// Element root = doc.createElement(ELEMENT_REF); +// parent.appendChild(root); +// root.setAttribute(ATTR_ID, ior(sm)); +// return root; + } + // Neither a ref nor visited before + visited.add(sm); + Element root = doc.createElement(ELEMENT_INSTANCE); parent.appendChild(root); root.setAttribute(ATTR_ID, ior(sm)); - if (ref) - return root; - Element child = null; BitSet loaded = sm.getLoaded(); StoreContext ctx = (StoreContext)sm.getGenericContext(); - List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(sm.getMetaData(), - jtx.getPersistenceContext().getMetamodel()); + List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(sm.getMetaData(), model); for (int i = 0; i < attrs.size(); child = null, i++) { FieldMetaData fmd = ((Members.Member<?, ?>) attrs.get(i)).fmd; if (!loaded.get(fmd.getIndex())) @@ -286,7 +328,7 @@ public class XMLFormatter implements Obj child.setAttribute(ATTR_NAME, fmd.getName()); child.setAttribute(ATTR_TYPE, typeOf(fmd)); OpenJPAStateManager other = ctx.getStateManager(value); - encodeManagedInstance(other, child, visited, jtx); + encodeManagedInstance(other, child, visited, futures, true, model); break; case JavaTypes.ARRAY: @@ -313,7 +355,7 @@ public class XMLFormatter implements Obj if (basic) { encodeBasic(member, o, o.getClass()); } else { - encodeManagedInstance(ctx.getStateManager(o), member, visited, jtx); + encodeManagedInstance(ctx.getStateManager(o), member, visited, futures, true, model); } } } @@ -344,7 +386,8 @@ public class XMLFormatter implements Obj if (basicKey) { encodeBasic(entryKey, e.getKey(), e.getKey().getClass()); } else { - encodeManagedInstance(ctx.getStateManager(e.getKey()), entryKey, visited, jtx); + encodeManagedInstance(ctx.getStateManager(e.getKey()), entryKey, visited, futures, true, + model); } } if (e.getValue() == null) { @@ -353,7 +396,8 @@ public class XMLFormatter implements Obj if (basicValue) { encodeBasic(entryValue, e.getValue(), e.getValue().getClass()); } else { - encodeManagedInstance(ctx.getStateManager(e.getValue()), entryValue, visited, jtx); + encodeManagedInstance(ctx.getStateManager(e.getValue()), entryValue, visited, futures, + true, model); } } } @@ -389,7 +433,7 @@ public class XMLFormatter implements Obj * * @param element the XML element to be set */ - void encodeNull(Element element) { + private void encodeNull(Element element) { element.setAttribute(ATTR_NULL, "true"); } @@ -415,7 +459,7 @@ public class XMLFormatter implements Obj * @param value the field value to be converted. Can not be null * @return */ - String streamToString(Object value) { + private String streamToString(Object value) { Reader reader = null; if (value instanceof InputStream) { reader = new BufferedReader(new InputStreamReader((InputStream)value)); @@ -437,28 +481,30 @@ public class XMLFormatter implements Obj void addSchemaToRoot(Document doc) { Element root = doc.getDocumentElement(); + String[] nvpairs = new String[] { - "xmlns:xsi", W3C_XML_SCHEMA_INSTANCE, - "xsi:noNamespaceSchemaLocation", JEST_INSTANCE_XSD, + "xmlns:xsi", XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI, +// "xsi:noNamespaceSchemaLocation", JEST_INSTANCE_XSD, "version", "1.0", }; for (int i = 0; i < nvpairs.length; i += 2) { root.setAttribute(nvpairs[i], nvpairs[i+1]); } } + + void validate(Document doc) throws Exception { + Validator validator = _xsd.newValidator(); + validator.validate(new DOMSource(doc)); + } + + - /* (non-Javadoc) - * @see org.apache.openjpa.persistence.jest.ObjectFormatter#configure(java.lang.String, java.lang.Object) - */ - @Override public void configure(String key, Object value) { - // TODO Auto-generated method stub - } String ior(OpenJPAStateManager sm) { - return typeOf(sm)+"-"+sm.getObjectId().toString(); + return typeOf(sm) + "-" + sm.getObjectId(); } String typeOf(OpenJPAStateManager sm) { @@ -482,5 +528,4 @@ public class XMLFormatter implements Obj String typeOf(FieldMetaData fmd) { return fmd.getType().getSimpleName(); } - } From commits-return-8092-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 18 23:07:12 2010 Return-Path: <commits-return-8092-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 75034 invoked from network); 18 Nov 2010 23:07:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 23:07:12 -0000 Received: (qmail 79023 invoked by uid 500); 18 Nov 2010 23:07:43 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 79005 invoked by uid 500); 18 Nov 2010 23:07:43 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 78998 invoked by uid 99); 18 Nov 2010 23:07:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 23:07:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 23:07:39 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3176E23889EA; Thu, 18 Nov 2010 23:06:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036673 - in /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest: ./ Actor.java DataLoader.java LocalJESTTest.java Movie.java TestRelaxQueryParameterType.java Date: Thu, 18 Nov 2010 23:06:24 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101118230624.3176E23889EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Thu Nov 18 23:06:23 2010 New Revision: 1036673 URL: http://svn.apache.org/viewvc?rev=1036673&view=rev Log: OPENJPA-1859: Add few encoding tests Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java (with props) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java (with props) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java (with props) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java (with props) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRelaxQueryParameterType.java (with props) Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java?rev=1036673&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java Thu Nov 18 23:06:23 2010 @@ -0,0 +1,102 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.Date; +import java.util.HashSet; +import java.util.Set; + +import javax.persistence.CascadeType; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToOne; +import javax.persistence.OneToMany; +import javax.persistence.OneToOne; + +/** + * A persistent entity with singular and plural association to test JEST object marshalling. + * + * @author Pinaki Poddar + * + */ +@Entity +public class Actor { + public static enum Gender {Male, Female}; + @Id + private String id; + private String firstName; + private String lastName; + private Gender gender; + private Date dob; + @OneToOne + private Actor partner; + @OneToMany + private Set<Movie> movies; + + protected Actor() { + + } + + public Actor(String id, String firstName, String lastName, Gender gender, Date dob) { + super(); + this.id = id; + this.firstName = firstName; + this.lastName = lastName; + this.gender = gender; + this.dob = dob; + } + + public String getId() { + return id; + } + + public String getFirstName() { + return firstName; + } + + public String getLastName() { + return lastName; + } + + public Gender getGender() { + return gender; + } + + public Date getDob() { + return dob; + } + public Actor getPartner() { + return partner; + } + + public void setPartner(Actor partner) { + this.partner = partner; + } + + public Set<Movie> getMovies() { + return movies; + } + + public void addMovie(Movie movie) { + if (movies == null) + movies = new HashSet<Movie>(); + movies.add(movie); + } +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java?rev=1036673&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java Thu Nov 18 23:06:23 2010 @@ -0,0 +1,130 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Random; + +import javax.persistence.EntityManager; + +/** + * Loads some example Actor-Movie data. + * + * @author Pinaki Poddar + * + */ +public class DataLoader { + @SuppressWarnings("deprecation") + public static Object[][] ACTOR_DATA = { + new Object[] {"m01", "Robert", "Redford", Actor.Gender.Male, new Date(1950, 1, 12)}, + new Object[] {"m02", "Robert", "De Niro", Actor.Gender.Male, new Date(1940, 4, 14)}, + new Object[] {"m03", "Al", "Pacino", Actor.Gender.Male, new Date(1950, 1, 12)}, + new Object[] {"m04", "Brad", "Pitt", Actor.Gender.Male, new Date(1940, 4, 14)}, + new Object[] {"m05", "Clint", "Eastwood",Actor.Gender.Male, new Date(1950, 1, 12)}, + + new Object[] {"f01", "Meryl", "Streep", Actor.Gender.Female, new Date(1940, 4, 14)}, + new Object[] {"f02", "Anglina", "Jolie", Actor.Gender.Female, new Date(1950, 1, 12)}, + new Object[] {"f03", "Goldie", "Hawn", Actor.Gender.Female, new Date(1940, 4, 14)}, + new Object[] {"f04", "Diane", "Keaton", Actor.Gender.Female, new Date(1950, 1, 12)}, + new Object[] {"f05", "Catherine", "Hepburn", Actor.Gender.Female, new Date(1940, 4, 14)}, + }; + + public static Object[][] MOVIE_DATA = { + new Object[] {"One flew over the cuckoo's nest", 1980}, + new Object[] {"Everyone Says I Love You", 1980}, + new Object[] {"Where Eagles Dare", 1980}, + new Object[] {"Fight Club", 1980}, + new Object[] {"Horse Whisperer", 1980}, + }; + + public void populate(EntityManager em) throws Exception { + Long count = em.createQuery("select count(m) from Movie m", Long.class).getSingleResult(); + if (count != null && count.longValue() > 0) { + System.err.println("Found " + count + " Movie records in the database"); + return; + } + + + List<Actor> actors = createActors(); + List<Movie> movies = createMovies(); + linkActorAndMovie(actors, movies); + makePartner(actors); + em.getTransaction().begin(); + for (Actor a : actors) { + em.persist(a); + } + for (Movie m : movies) { + em.persist(m); + } + em.getTransaction().commit(); + } + + List<Actor> createActors() { + List<Actor> actors = new ArrayList<Actor>(); + for (Object[] a : ACTOR_DATA) { + Actor actor = new Actor((String)a[0], (String)a[1], (String)a[2], (Actor.Gender)a[3], (Date)a[4]); + actors.add(actor); + } + return actors; + } + + List<Movie> createMovies() { + List<Movie> movies = new ArrayList<Movie>(); + for (Object[] m : MOVIE_DATA) { + Movie movie = new Movie((String)m[0], (Integer)m[1]); + movies.add(movie); + } + return movies; + } + + void linkActorAndMovie(List<Actor> actors, List<Movie> movies) { + for (Actor a : actors) { + int n = rng.nextInt(movies.size()); + for (int i = 0; i < n; i++) { + Movie m = random(movies); + a.addMovie(m); + m.addActor(a); + } + } + } + + void makePartner(List<Actor> actors) { + for (Actor p : actors) { + if (p.getPartner() != null) + continue; + Actor f = random(actors); + if (f.getPartner() == null && p.getGender() != f.getGender()) { + p.setPartner(f); + f.setPartner(p); + } + } + } + + /** + * Select a random element from the given list. + */ + private <T> T random(List<T> list) { + return list.get(rng.nextInt(list.size())); + } + + private static Random rng = new Random(); +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java?rev=1036673&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java Thu Nov 18 23:06:23 2010 @@ -0,0 +1,149 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + + +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import javax.persistence.EntityManager; +import javax.persistence.EntityManagerFactory; +import javax.persistence.Persistence; +import javax.persistence.Query; +import javax.persistence.metamodel.Metamodel; +import javax.xml.validation.Schema; + +import junit.framework.Assert; + +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.kernel.StoreContext; +import org.apache.openjpa.persistence.JPAFacadeHelper; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.w3c.dom.Document; + +/** + * Base class for testing JEST outside a container. + * + * @author Pinaki Poddar + * + */ +public class LocalJESTTest { + private static EntityManagerFactory _emf; + private static Metamodel _model; + private EntityManager _em; + + + @BeforeClass + public static void setUpBeforeClass() throws Exception { + _emf = Persistence.createEntityManagerFactory("jest"); + _model = _emf.getMetamodel(); + + new DataLoader().populate(_emf.createEntityManager()); + + } + + @AfterClass + public static void tearDownAfterClass() throws Exception { + _emf.close(); + } + + @Before + public void setUp() throws Exception { + _em = _emf.createEntityManager(); + _em.getTransaction().begin(); + } + + @After + public void tearDown() throws Exception { + _em.getTransaction().rollback(); + _em.close(); + } + + @Test + public void testUnitIsAvaliable() { + Assert.assertNotNull(_emf); + } + @Test + public void testModelIsAvaliable() { + Assert.assertNotNull(_model); + Assert.assertFalse(_model.getManagedTypes().isEmpty()); + } + + @Test + public void testXMLEncoderForColllection() { + encodeAndValidateQueryResult("select m from Movie m", false); + } + + @Test + public void testXMLEncoderForInstance() { + encodeAndValidateQueryResult("select m from Movie m where m.title = '" + DataLoader.MOVIE_DATA[1][0] + "'", + true); + } + + @Test + public void testDomainModelEncoder() { + DomainCommand formatter = new DomainCommand(); + Document doc = formatter.encode(_model); + try { + new XMLFormatter().write(doc, new PrintWriter(System.err)); + } catch (Exception e) { + e.printStackTrace(); + Assert.fail(); + } + } + + void encodeAndValidateQueryResult(String jpql, boolean single) { + XMLFormatter formatter = new XMLFormatter(); + Query query = _em.createQuery(jpql); + Document doc = null; + if (single) + doc = formatter.encodeManagedInstance(toStateManager(query.getSingleResult()), _model); + else + doc = formatter.encodeManagedInstances(toStateManager(query.getResultList()), _model); + try { + formatter.write(doc, new PrintWriter(System.err)); + formatter.validate(doc); + } catch (Exception e) { + e.printStackTrace(); + Assert.fail(e.getMessage()); + } + } + + OpenJPAStateManager toStateManager(Object obj) { + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); + return broker.getStateManager(obj); + } + + List<OpenJPAStateManager> toStateManager(Collection<?> objects) { + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); + List<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); + for (Object o : objects) { + sms.add(broker.getStateManager(o)); + } + return sms; + } + +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java?rev=1036673&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java Thu Nov 18 23:06:23 2010 @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.HashSet; +import java.util.Set; + +import javax.persistence.Entity; +import javax.persistence.FetchType; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.OneToMany; + +/** + * @author Pinaki Poddar + * + */ + +@Entity +public class Movie { + @Id + @GeneratedValue + private long id; + private String title; + private int year; + @OneToMany(fetch=FetchType.EAGER) + private Set<Actor> actors; + + protected Movie() { + + } + public Movie(String title, int year) { + super(); + this.title = title; + this.year = year; + } + + public long getId() { + return id; + } + + public String getTitle() { + return title; + } + + public void addActor(Actor a) { + if (actors == null) + actors = new HashSet<Actor>(); + actors.add(a); + } + + public Set<Actor> getActors() { + return actors; + } + + public int getYear() { + return year; + } + +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRelaxQueryParameterType.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRelaxQueryParameterType.java?rev=1036673&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRelaxQueryParameterType.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRelaxQueryParameterType.java Thu Nov 18 23:06:23 2010 @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import org.apache.openjpa.kernel.Filters; + +import junit.framework.TestCase; + +/** + * @author Pinaki Poddar + * + */ +public class TestRelaxQueryParameterType extends TestCase { + public static enum Gender {MALE, FEMALE}; + public void testValidStringToEnum() { + Filters.convert("MALE", Gender.class); + } + public void testInvalidStringToEnum() { + Filters.convert("M", Gender.class); + } +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRelaxQueryParameterType.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRelaxQueryParameterType.java ------------------------------------------------------------------------------ svn:mime-type = text/plain From commits-return-8093-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 18 23:44:56 2010 Return-Path: <commits-return-8093-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 86198 invoked from network); 18 Nov 2010 23:44:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 23:44:55 -0000 Received: (qmail 15005 invoked by uid 500); 18 Nov 2010 23:45:27 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 14984 invoked by uid 500); 18 Nov 2010 23:45:27 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 14976 invoked by uid 99); 18 Nov 2010 23:45:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 23:45:27 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 23:45:25 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 6C494C0164 for <commits@openjpa.apache.org>; Thu, 18 Nov 2010 23:45:05 +0000 (UTC) Date: Thu, 18 Nov 2010 23:45:05 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1728517651.4451290123905442.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #333 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/333/changes> Changes: [ppoddar] OPENJPA-1859: Add few encoding tests ------------------------------------------ [...truncated 5703 lines...] [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 357 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/target/classes> [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/src/test/resources> [INFO] Copying 3 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 5 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/target/test-classes> [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.jdbc.sql.identifier.TestDBIdentifiers Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec Running org.apache.openjpa.jdbc.meta.TestMappingDefaultsImpl 9 INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.OracleDictionary". Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.215 sec Running org.apache.openjpa.jdbc.sql.TestMySQLDictionary Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.194 sec Running org.apache.openjpa.jdbc.kernel.TestUpdateManagerFlushException Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running org.apache.openjpa.jdbc.sql.TestDictionaryFactory Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Results : Tests run: 11, Failures: 0, Errors: 0, Skipped: 0 [HUDSON] Recording test results [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/target/openjpa-jdbc-2.1.0-SNAPSHOT.jar> [INFO] [jar:jar {execution: default-jar}] [INFO] [jar:test-jar {execution: attach-tests}] [INFO] Building jar: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/target/openjpa-jdbc-2.1.0-SNAPSHOT-tests.jar> [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: openjpa-jdbc-2.1.0-SNAPSHOT.jar [INFO] Checking legal files in: openjpa-jdbc-2.1.0-SNAPSHOT-tests.jar [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/target/openjpa-jdbc-2.1.0-SNAPSHOT.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-jdbc/2.1.0-SNAPSHOT/openjpa-jdbc-2.1.0-SNAPSHOT.jar [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/target/openjpa-jdbc-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-jdbc/2.1.0-SNAPSHOT/openjpa-jdbc-2.1.0-SNAPSHOT-tests.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-jdbc/builds/2010-11-18_23-42-56/archive/org.apache.openjpa/openjpa-jdbc/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/target/openjpa-jdbc-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-jdbc/builds/2010-11-18_23-42-56/archive/org.apache.openjpa/openjpa-jdbc/2.1.0-SNAPSHOT/openjpa-jdbc-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-jdbc/target/openjpa-jdbc-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-jdbc/builds/2010-11-18_23-42-56/archive/org.apache.openjpa/openjpa-jdbc/2.1.0-SNAPSHOT/openjpa-jdbc-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Persistence [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Starting audit... Audit done. [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 11 resources [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 232 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/target/classes> [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] Copying 3 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 2 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/target/test-classes> [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.persistence.TestEnumToKernelConstantMappings Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec Running org.apache.openjpa.persistence.TestPersistenceProductDerivation Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.347 sec Results : Tests run: 12, Failures: 0, Errors: 0, Skipped: 0 [HUDSON] Recording test results [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/target/openjpa-persistence-2.1.0-SNAPSHOT.jar> [INFO] [jar:jar {execution: default-jar}] [INFO] [jar:test-jar {execution: attach-tests}] [INFO] Building jar: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/target/openjpa-persistence-2.1.0-SNAPSHOT-tests.jar> [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: openjpa-persistence-2.1.0-SNAPSHOT.jar [INFO] Checking legal files in: openjpa-persistence-2.1.0-SNAPSHOT-tests.jar [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/target/openjpa-persistence-2.1.0-SNAPSHOT.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-persistence/2.1.0-SNAPSHOT/openjpa-persistence-2.1.0-SNAPSHOT.jar [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/target/openjpa-persistence-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-persistence/2.1.0-SNAPSHOT/openjpa-persistence-2.1.0-SNAPSHOT-tests.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-persistence/builds/2010-11-18_23-42-56/archive/org.apache.openjpa/openjpa-persistence/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/target/openjpa-persistence-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-persistence/builds/2010-11-18_23-42-56/archive/org.apache.openjpa/openjpa-persistence/2.1.0-SNAPSHOT/openjpa-persistence-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence/target/openjpa-persistence-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-persistence/builds/2010-11-18_23-42-56/archive/org.apache.openjpa/openjpa-persistence/2.1.0-SNAPSHOT/openjpa-persistence-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Persistence JDBC [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Starting audit... Audit done. [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 65 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/classes> [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 93 resources [INFO] Copying 3 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 2466 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/test-classes> [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[40,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[41,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[42,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[43,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[44,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[59,5] cannot find symbol symbol : class BeforeClass location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[68,5] cannot find symbol symbol : class AfterClass location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[73,5] cannot find symbol symbol : class Before location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[79,5] cannot find symbol symbol : class After location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[85,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[89,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[95,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[100,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[106,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[108,8] cannot find symbol symbol : class DomainCommand location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[108,38] cannot find symbol symbol : class DomainCommand location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[111,16] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[119,8] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[119,37] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest [INFO] 19 errors [INFO] ------------------------------------------------------------- [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-persistence-jdbc/builds/2010-11-18_23-42-56/archive/org.apache.openjpa/openjpa-persistence-jdbc/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[40,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[41,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[42,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[43,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[44,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[59,5] cannot find symbol symbol : class BeforeClass location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[68,5] cannot find symbol symbol : class AfterClass location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[73,5] cannot find symbol symbol : class Before location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[79,5] cannot find symbol symbol : class After location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[85,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[89,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[95,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[100,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[106,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[108,8] cannot find symbol symbol : class DomainCommand location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[108,38] cannot find symbol symbol : class DomainCommand location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[111,16] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[119,8] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[119,37] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 58 seconds [INFO] Finished at: Thu Nov 18 23:45:03 UTC 2010 [INFO] Final Memory: 102M/493M [INFO] ------------------------------------------------------------------------ Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8094-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Thu Nov 18 23:44:57 2010 Return-Path: <commits-return-8094-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 86227 invoked from network); 18 Nov 2010 23:44:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 23:44:57 -0000 Received: (qmail 15089 invoked by uid 500); 18 Nov 2010 23:45:29 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 15063 invoked by uid 500); 18 Nov 2010 23:45:29 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 15056 invoked by uid 99); 18 Nov 2010 23:45:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 23:45:29 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 23:45:25 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 655D4C0162 for <commits@openjpa.apache.org>; Thu, 18 Nov 2010 23:45:04 +0000 (UTC) Date: Thu, 18 Nov 2010 23:45:04 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <2118810985.4441290123904273.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Build_failed_in_Hudson:_OpenJPA-tr?= =?UTF-8?Q?unk_=C2=BB_OpenJPA_Persistence_JDBC_#333?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/333/changes> Changes: [ppoddar] OPENJPA-1859: Add few encoding tests ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Persistence JDBC [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Starting audit... Audit done. [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 65 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/target/classes> [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 93 resources [INFO] Copying 3 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 2466 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/target/test-classes> [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[40,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[41,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[42,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[43,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[44,16] package org.junit does not exist [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[59,5] cannot find symbol symbol : class BeforeClass location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[68,5] cannot find symbol symbol : class AfterClass location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[73,5] cannot find symbol symbol : class Before location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[79,5] cannot find symbol symbol : class After location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[85,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[89,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[95,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[100,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[106,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[108,8] cannot find symbol symbol : class DomainCommand location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[108,38] cannot find symbol symbol : class DomainCommand location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[111,16] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[119,8] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest [ERROR] <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[119,37] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest [INFO] 19 errors [INFO] ------------------------------------------------------------- [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-persistence-jdbc/builds/2010-11-18_23-42-56/archive/org.apache.openjpa/openjpa-persistence-jdbc/2.1.0-SNAPSHOT/pom.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[40,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[41,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[42,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[43,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[44,16] package org.junit does not exist <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[59,5] cannot find symbol symbol : class BeforeClass location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[68,5] cannot find symbol symbol : class AfterClass location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[73,5] cannot find symbol symbol : class Before location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[79,5] cannot find symbol symbol : class After location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[85,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[89,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[95,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[100,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[106,5] cannot find symbol symbol : class Test location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[108,8] cannot find symbol symbol : class DomainCommand location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[108,38] cannot find symbol symbol : class DomainCommand location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[111,16] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[119,8] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/ws/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java>:[119,37] cannot find symbol symbol : class XMLFormatter location: class org.apache.openjpa.persistence.jest.LocalJESTTest [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 58 seconds [INFO] Finished at: Thu Nov 18 23:45:03 UTC 2010 [INFO] Final Memory: 102M/493M [INFO] ------------------------------------------------------------------------ From commits-return-8095-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 02:56:32 2010 Return-Path: <commits-return-8095-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 70290 invoked from network); 19 Nov 2010 02:56:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 02:56:32 -0000 Received: (qmail 57576 invoked by uid 500); 19 Nov 2010 02:57:03 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 57517 invoked by uid 500); 19 Nov 2010 02:57:03 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 57510 invoked by uid 99); 19 Nov 2010 02:57:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 02:57:03 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 02:57:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E0D4823889E0; Fri, 19 Nov 2010 02:55:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036721 - in /openjpa: sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/jest/ trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/ Date: Fri, 19 Nov 2010 02:55:45 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101119025545.E0D4823889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Fri Nov 19 02:55:45 2010 New Revision: 1036721 URL: http://svn.apache.org/viewvc?rev=1036721&view=rev Log: Move jest tests to sandbox A https://svn.apache.org/repos/asf/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/jest D https://svn.apache.org/repos/asf/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/jest/ (props changed) - copied from r1036720, openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/ Removed: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/ Propchange: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/jest/ ------------------------------------------------------------------------------ --- svn:mergeinfo (added) +++ svn:mergeinfo Fri Nov 19 02:55:45 2010 @@ -0,0 +1 @@ +/openjpa/branches/1.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest:736493 From commits-return-8096-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 03:58:59 2010 Return-Path: <commits-return-8096-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 92865 invoked from network); 19 Nov 2010 03:58:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 03:58:59 -0000 Received: (qmail 2495 invoked by uid 500); 19 Nov 2010 03:59:31 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 2478 invoked by uid 500); 19 Nov 2010 03:59:30 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 2471 invoked by uid 99); 19 Nov 2010 03:59:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 03:59:30 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 03:59:27 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 141BA23889E0; Fri, 19 Nov 2010 03:58:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036730 - in /openjpa/sandboxes/jest: openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/jest/ openjpa-persistence/src/main/java/org/apache... Date: Fri, 19 Nov 2010 03:58:13 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101119035813.141BA23889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Fri Nov 19 03:58:12 2010 New Revision: 1036730 URL: http://svn.apache.org/viewvc?rev=1036730&view=rev Log: OPENJPA-1859: remove deprecated classes Removed: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/JObject.java openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/SchemaErrorDetector.java openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestObjectEncoding.java openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestRequestParsing.java openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/jest/ Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java?rev=1036730&r1=1036729&r2=1036730&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java Fri Nov 19 03:58:12 2010 @@ -39,9 +39,6 @@ public class PropertiesCommand extends A return "properties"; } - /* (non-Javadoc) - * @see org.apache.openjpa.persistence.jest.JESTCommand#process(org.apache.openjpa.persistence.jest.JPAServletContext) - */ @Override public void process(JPAServletContext ctx) throws ErrorFormatter, IOException { HttpServletResponse response = ctx.getResponse(); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java?rev=1036730&r1=1036729&r2=1036730&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Fri Nov 19 03:58:12 2010 @@ -145,7 +145,7 @@ public class XMLFormatter implements Obj if (obj instanceof OpenJPAStateManager) { Document doc = encodeManagedInstance((OpenJPAStateManager)obj, ctx.getPersistenceContext().getMetamodel()); try { - _transformer.transform(new DOMSource(doc), new StreamResult(ctx.getResponse().getWriter())); + write(doc, ctx.getResponse().getWriter()); } catch (Exception ex) { throw new ErrorFormatter(ex); } @@ -242,6 +242,7 @@ public class XMLFormatter implements Obj if (sm == null) { Element nullRef = doc.createElement(ELEMENT_NULL_REF); parent.appendChild(nullRef); + nullRef.setTextContent(" "); return nullRef; } boolean isVisited = visited.contains(sm); @@ -254,14 +255,10 @@ public class XMLFormatter implements Obj Element root = doc.createElement(ELEMENT_REF); parent.appendChild(root); root.setAttribute(ATTR_ID, ior(sm)); + root.setTextContent(" "); return root; } else if (isVisited) { return null; -// System.err.println("SM " + ior(sm) + " visited before"); -// Element root = doc.createElement(ELEMENT_REF); -// parent.appendChild(root); -// root.setAttribute(ATTR_ID, ior(sm)); -// return root; } // Neither a ref nor visited before visited.add(sm); @@ -386,8 +383,8 @@ public class XMLFormatter implements Obj if (basicKey) { encodeBasic(entryKey, e.getKey(), e.getKey().getClass()); } else { - encodeManagedInstance(ctx.getStateManager(e.getKey()), entryKey, visited, futures, true, - model); + encodeManagedInstance(ctx.getStateManager(e.getKey()), entryKey, visited, futures, + true, model); } } if (e.getValue() == null) { From commits-return-8097-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 03:59:54 2010 Return-Path: <commits-return-8097-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 92977 invoked from network); 19 Nov 2010 03:59:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 03:59:54 -0000 Received: (qmail 2722 invoked by uid 500); 19 Nov 2010 04:00:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 2698 invoked by uid 500); 19 Nov 2010 04:00:25 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 2690 invoked by uid 99); 19 Nov 2010 04:00:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:00:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:00:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2EA9023889E0; Fri, 19 Nov 2010 03:59:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036731 - in /openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest: Actor.java DataLoader.java LocalJESTTest.java Movie.java Date: Fri, 19 Nov 2010 03:59:06 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101119035906.2EA9023889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Fri Nov 19 03:59:05 2010 New Revision: 1036731 URL: http://svn.apache.org/viewvc?rev=1036731&view=rev Log: OPENJPA-1859: Add tests Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java (with props) openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java (with props) openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java (with props) openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java (with props) Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java?rev=1036731&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java Fri Nov 19 03:59:05 2010 @@ -0,0 +1,102 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.Date; +import java.util.HashSet; +import java.util.Set; + +import javax.persistence.CascadeType; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.ManyToOne; +import javax.persistence.OneToMany; +import javax.persistence.OneToOne; + +/** + * A persistent entity with singular and plural association to test JEST object marshalling. + * + * @author Pinaki Poddar + * + */ +@Entity +public class Actor { + public static enum Gender {Male, Female}; + @Id + private String id; + private String firstName; + private String lastName; + private Gender gender; + private Date dob; + @OneToOne + private Actor partner; + @OneToMany + private Set<Movie> movies; + + protected Actor() { + + } + + public Actor(String id, String firstName, String lastName, Gender gender, Date dob) { + super(); + this.id = id; + this.firstName = firstName; + this.lastName = lastName; + this.gender = gender; + this.dob = dob; + } + + public String getId() { + return id; + } + + public String getFirstName() { + return firstName; + } + + public String getLastName() { + return lastName; + } + + public Gender getGender() { + return gender; + } + + public Date getDob() { + return dob; + } + public Actor getPartner() { + return partner; + } + + public void setPartner(Actor partner) { + this.partner = partner; + } + + public Set<Movie> getMovies() { + return movies; + } + + public void addMovie(Movie movie) { + if (movies == null) + movies = new HashSet<Movie>(); + movies.add(movie); + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Actor.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java?rev=1036731&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java Fri Nov 19 03:59:05 2010 @@ -0,0 +1,130 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Random; + +import javax.persistence.EntityManager; + +/** + * Loads some example Actor-Movie data. + * + * @author Pinaki Poddar + * + */ +public class DataLoader { + @SuppressWarnings("deprecation") + public static Object[][] ACTOR_DATA = { + new Object[] {"m01", "Robert", "Redford", Actor.Gender.Male, new Date(1950, 1, 12)}, + new Object[] {"m02", "Robert", "De Niro", Actor.Gender.Male, new Date(1940, 4, 14)}, + new Object[] {"m03", "Al", "Pacino", Actor.Gender.Male, new Date(1950, 1, 12)}, + new Object[] {"m04", "Brad", "Pitt", Actor.Gender.Male, new Date(1940, 4, 14)}, + new Object[] {"m05", "Clint", "Eastwood",Actor.Gender.Male, new Date(1950, 1, 12)}, + + new Object[] {"f01", "Meryl", "Streep", Actor.Gender.Female, new Date(1940, 4, 14)}, + new Object[] {"f02", "Anglina", "Jolie", Actor.Gender.Female, new Date(1950, 1, 12)}, + new Object[] {"f03", "Goldie", "Hawn", Actor.Gender.Female, new Date(1940, 4, 14)}, + new Object[] {"f04", "Diane", "Keaton", Actor.Gender.Female, new Date(1950, 1, 12)}, + new Object[] {"f05", "Catherine", "Hepburn", Actor.Gender.Female, new Date(1940, 4, 14)}, + }; + + public static Object[][] MOVIE_DATA = { + new Object[] {"One flew over the cuckoo's nest", 1980}, + new Object[] {"Everyone Says I Love You", 1980}, + new Object[] {"Where Eagles Dare", 1980}, + new Object[] {"Fight Club", 1980}, + new Object[] {"Horse Whisperer", 1980}, + }; + + public void populate(EntityManager em) throws Exception { + Long count = em.createQuery("select count(m) from Movie m", Long.class).getSingleResult(); + if (count != null && count.longValue() > 0) { + System.err.println("Found " + count + " Movie records in the database"); + return; + } + + + List<Actor> actors = createActors(); + List<Movie> movies = createMovies(); + linkActorAndMovie(actors, movies); + makePartner(actors); + em.getTransaction().begin(); + for (Actor a : actors) { + em.persist(a); + } + for (Movie m : movies) { + em.persist(m); + } + em.getTransaction().commit(); + } + + List<Actor> createActors() { + List<Actor> actors = new ArrayList<Actor>(); + for (Object[] a : ACTOR_DATA) { + Actor actor = new Actor((String)a[0], (String)a[1], (String)a[2], (Actor.Gender)a[3], (Date)a[4]); + actors.add(actor); + } + return actors; + } + + List<Movie> createMovies() { + List<Movie> movies = new ArrayList<Movie>(); + for (Object[] m : MOVIE_DATA) { + Movie movie = new Movie((String)m[0], (Integer)m[1]); + movies.add(movie); + } + return movies; + } + + void linkActorAndMovie(List<Actor> actors, List<Movie> movies) { + for (Actor a : actors) { + int n = rng.nextInt(movies.size()); + for (int i = 0; i < n; i++) { + Movie m = random(movies); + a.addMovie(m); + m.addActor(a); + } + } + } + + void makePartner(List<Actor> actors) { + for (Actor p : actors) { + if (p.getPartner() != null) + continue; + Actor f = random(actors); + if (f.getPartner() == null && p.getGender() != f.getGender()) { + p.setPartner(f); + f.setPartner(p); + } + } + } + + /** + * Select a random element from the given list. + */ + private <T> T random(List<T> list) { + return list.get(rng.nextInt(list.size())); + } + + private static Random rng = new Random(); +} Propchange: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java?rev=1036731&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java Fri Nov 19 03:59:05 2010 @@ -0,0 +1,135 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + + +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import javax.persistence.EntityManager; +import javax.persistence.EntityManagerFactory; +import javax.persistence.Persistence; +import javax.persistence.Query; +import javax.persistence.metamodel.Metamodel; + +import junit.framework.Assert; + +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.kernel.StoreContext; +import org.apache.openjpa.persistence.JPAFacadeHelper; +import org.w3c.dom.Document; + +/** + * Base class for testing JEST outside a container. + * + * @author Pinaki Poddar + * + */ +public class LocalJESTTest { + private static EntityManagerFactory _emf; + private static Metamodel _model; + private EntityManager _em; + + + public static void setUpBeforeClass() throws Exception { + _emf = Persistence.createEntityManagerFactory("jest"); + _model = _emf.getMetamodel(); + + new DataLoader().populate(_emf.createEntityManager()); + + } + + public static void tearDownAfterClass() throws Exception { + _emf.close(); + } + + public void setUp() throws Exception { + _em = _emf.createEntityManager(); + _em.getTransaction().begin(); + } + + public void tearDown() throws Exception { + _em.getTransaction().rollback(); + _em.close(); + } + + public void testUnitIsAvaliable() { + Assert.assertNotNull(_emf); + } + + public void testModelIsAvaliable() { + Assert.assertNotNull(_model); + Assert.assertFalse(_model.getManagedTypes().isEmpty()); + } + + public void testXMLEncoderForColllection() { + encodeAndValidateQueryResult("select m from Movie m", false); + } + + public void testXMLEncoderForInstance() { + encodeAndValidateQueryResult("select m from Movie m where m.title = '" + DataLoader.MOVIE_DATA[1][0] + "'", + true); + } + + public void testDomainModelEncoder() { + DomainCommand formatter = new DomainCommand(); + Document doc = formatter.encode(_model); + try { + new XMLFormatter().write(doc, new PrintWriter(System.err)); + } catch (Exception e) { + e.printStackTrace(); + Assert.fail(); + } + } + + void encodeAndValidateQueryResult(String jpql, boolean single) { + XMLFormatter formatter = new XMLFormatter(); + Query query = _em.createQuery(jpql); + Document doc = null; + if (single) + doc = formatter.encodeManagedInstance(toStateManager(query.getSingleResult()), _model); + else + doc = formatter.encodeManagedInstances(toStateManager(query.getResultList()), _model); + try { + formatter.write(doc, new PrintWriter(System.err)); + formatter.validate(doc); + } catch (Exception e) { + e.printStackTrace(); + Assert.fail(e.getMessage()); + } + } + + OpenJPAStateManager toStateManager(Object obj) { + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); + return broker.getStateManager(obj); + } + + List<OpenJPAStateManager> toStateManager(Collection<?> objects) { + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); + List<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); + for (Object o : objects) { + sms.add(broker.getStateManager(o)); + } + return sms; + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java?rev=1036731&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java Fri Nov 19 03:59:05 2010 @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.HashSet; +import java.util.Set; + +import javax.persistence.Entity; +import javax.persistence.FetchType; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.OneToMany; + +/** + * @author Pinaki Poddar + * + */ + +@Entity +public class Movie { + @Id + @GeneratedValue + private long id; + private String title; + private int year; + @OneToMany(fetch=FetchType.EAGER) + private Set<Actor> actors; + + protected Movie() { + + } + public Movie(String title, int year) { + super(); + this.title = title; + this.year = year; + } + + public long getId() { + return id; + } + + public String getTitle() { + return title; + } + + public void addActor(Actor a) { + if (actors == null) + actors = new HashSet<Actor>(); + actors.add(a); + } + + public Set<Actor> getActors() { + return actors; + } + + public int getYear() { + return year; + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8098-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 04:13:47 2010 Return-Path: <commits-return-8098-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 3909 invoked from network); 19 Nov 2010 04:13:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 04:13:47 -0000 Received: (qmail 7983 invoked by uid 500); 19 Nov 2010 04:14:19 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 7945 invoked by uid 500); 19 Nov 2010 04:14:18 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 7938 invoked by uid 99); 19 Nov 2010 04:14:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:14:18 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:14:16 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2E97423889E0; Fri, 19 Nov 2010 04:13:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036732 - /openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java Date: Fri, 19 Nov 2010 04:13:00 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101119041300.2E97423889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Fri Nov 19 04:12:59 2010 New Revision: 1036732 URL: http://svn.apache.org/viewvc?rev=1036732&view=rev Log: OPENJPA-1859 Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java?rev=1036732&r1=1036731&r2=1036732&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java Fri Nov 19 04:12:59 2010 @@ -32,6 +32,7 @@ import javax.persistence.Query; import javax.persistence.metamodel.Metamodel; import junit.framework.Assert; +import junit.framework.TestCase; import org.apache.openjpa.kernel.OpenJPAStateManager; import org.apache.openjpa.kernel.StoreContext; @@ -44,25 +45,19 @@ import org.w3c.dom.Document; * @author Pinaki Poddar * */ -public class LocalJESTTest { +public class LocalJESTTest extends TestCase { private static EntityManagerFactory _emf; private static Metamodel _model; private EntityManager _em; - public static void setUpBeforeClass() throws Exception { - _emf = Persistence.createEntityManagerFactory("jest"); - _model = _emf.getMetamodel(); - - new DataLoader().populate(_emf.createEntityManager()); - - } - - public static void tearDownAfterClass() throws Exception { - _emf.close(); - } - public void setUp() throws Exception { + if (_emf == null) { + _emf = Persistence.createEntityManagerFactory("jest"); + _model = _emf.getMetamodel(); + + new DataLoader().populate(_emf.createEntityManager()); + } _em = _emf.createEntityManager(); _em.getTransaction().begin(); } From commits-return-8099-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 04:33:07 2010 Return-Path: <commits-return-8099-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 7827 invoked from network); 19 Nov 2010 04:33:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 04:33:07 -0000 Received: (qmail 17396 invoked by uid 500); 19 Nov 2010 04:33:39 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 17341 invoked by uid 500); 19 Nov 2010 04:33:38 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 17334 invoked by uid 99); 19 Nov 2010 04:33:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:33:37 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:33:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id ACD3023889E0; Fri, 19 Nov 2010 04:32:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036735 - in /openjpa/sandboxes/jest: openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd Date: Fri, 19 Nov 2010 04:32:23 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101119043223.ACD3023889E0@eris.apache.org> Author: ppoddar Date: Fri Nov 19 04:32:23 2010 New Revision: 1036735 URL: http://svn.apache.org/viewvc?rev=1036735&view=rev Log: OPENJPA-1859: Use empty text content in ref and ref-null Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml?rev=1036735&r1=1036734&r2=1036735&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml (original) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml Fri Nov 19 04:32:23 2010 @@ -382,7 +382,8 @@ <persistence-unit name="jest"> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> - <class>org.apache.openjpa.persistence.jest.JObject</class> + <class>org.apache.openjpa.persistence.jest.Movie</class> + <class>org.apache.openjpa.persistence.jest.Actor</class> <properties> <property name="openjpa.Log" value="Tool=Trace,SQL=WARN,Remote=TRACE"/> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/> Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd?rev=1036735&r1=1036734&r2=1036735&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd Fri Nov 19 04:32:23 2010 @@ -53,11 +53,19 @@ <!-- A reference to another instance within the same(?) document --> <xsd:complexType name="ref-type"> - <xsd:attribute name="id" type="xsd:IDREF" /> + <xsd:simpleContent> + <xsd:extension base="xsd:string"> + <xsd:attribute name="id" type="xsd:IDREF" /> + </xsd:extension> + </xsd:simpleContent> </xsd:complexType> <!-- A null reference --> <xsd:complexType name="ref-null"> + <xsd:simpleContent> + <xsd:extension base="xsd:string"> + </xsd:extension> + </xsd:simpleContent> </xsd:complexType> <!-- Basic Attribute has a name and its runtime type --> From commits-return-8100-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 04:36:13 2010 Return-Path: <commits-return-8100-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 8475 invoked from network); 19 Nov 2010 04:36:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 04:36:13 -0000 Received: (qmail 18066 invoked by uid 500); 19 Nov 2010 04:36:45 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 18007 invoked by uid 500); 19 Nov 2010 04:36:44 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 18000 invoked by uid 99); 19 Nov 2010 04:36:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:36:43 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:36:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id AFC8C23889E0; Fri, 19 Nov 2010 04:35:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036736 - /openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/main/resources/META-INF/jest-instance.xsd Date: Fri, 19 Nov 2010 04:35:29 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101119043529.AFC8C23889E0@eris.apache.org> Author: ppoddar Date: Fri Nov 19 04:35:29 2010 New Revision: 1036736 URL: http://svn.apache.org/viewvc?rev=1036736&view=rev Log: OPENJPA-1859: delete duplice jest-instance.xsd Removed: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/main/resources/META-INF/jest-instance.xsd From commits-return-8101-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 04:43:28 2010 Return-Path: <commits-return-8101-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 10055 invoked from network); 19 Nov 2010 04:43:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 04:43:28 -0000 Received: (qmail 20513 invoked by uid 500); 19 Nov 2010 04:43:59 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 20458 invoked by uid 500); 19 Nov 2010 04:43:59 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 20451 invoked by uid 99); 19 Nov 2010 04:43:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:43:58 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 04:43:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id ADDBD23889E9; Fri, 19 Nov 2010 04:42:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036739 - in /openjpa/sandboxes/jest: openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/ openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ Date: Fri, 19 Nov 2010 04:42:40 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101119044240.ADDBD23889E9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Fri Nov 19 04:42:40 2010 New Revision: 1036739 URL: http://svn.apache.org/viewvc?rev=1036739&view=rev Log: OPENJPA-1859; Add draft JavaScript support with Dojo Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java (with props) Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js?rev=1036739&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js (added) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js Fri Nov 19 04:42:40 2010 @@ -0,0 +1,79 @@ +dojo.require("dijit.form.Button"); +dojo.require("dijit.TitlePane"); +dojo.ready(function(){ + var data = dojo.byId("data"); +// var instances = dojo.query("instance", data); +// var tp = create(instances[0]); +// tp.domNode.style.width="140px"; +// tp.domNode.style.position="absolute"; +// tp.domNode.style.left="200px"; +// tp.domNode.style.top="200px"; +// var canvas = dojo.byId("canvas"); +// canvas.appendChild(tp.domNode); + var canvas = dojo.byId("canvas"); + dojo.query("instance", data).forEach(function(item) { + var tp = create(item); + tp.domNode.style.width="140px"; + tp.domNode.style.position="absolute"; + tp.domNode.style.left=Math.floor(Math.random()*500)+"px"; + tp.domNode.style.top=Math.floor(Math.random()*200)+"px"; + canvas.appendChild(tp.domNode); + }); +// var canvas = dojo.byId("canvas"); +// for (pane in panes) { +// pane.domNode.style.left=Math.floor(Math.random()*500)+"px"; +// pane.domNode.style.top=Math.floor(Math.random()*500)+"px"; +// canvas.appendChild(pane.domNode); +// } +}); + +/** + * Creates a dojo Title Pane from a DOM instance node. + * The pane has the instance id as its title. + * The content is name and value of each attribute in separate line. + * + * @param node an instance node + * @returns + */ +function create(node) { + var attrs = document.createElement("table"); + dojo.query('basic, one-to-one', node) + .forEach(function(item) { + var attr = document.createElement("tr"); + var name = document.createElement("td"); + name.innerHTML = item.getAttribute("name").bold(); + var value = document.createElement("td"); + value.innerHTML = item.innerHTML; + attr.appendChild(name); + attr.appendChild(value); + attrs.appendChild(attr); + } + ); + var pane = new dijit.TitlePane({ + title: node.getAttribute("id"), + content:attrs + } + ); + + dojo.connect(pane, "onMouseEnter", + function(event){ + pane.domNode.style.cursor = "move"; + } + ); + dojo.connect(pane, "onMouseLeave", + function(event){ + pane.domNode.style.cursor = "default"; + } + ); + dojo.connect(pane, "onMouseUp", + function(event){ + setPosition(pane, event); + } + ); + return pane; +}; + +function setPosition(widget, event) { + widget.domNode.style.left = event.pageX+"px"; + widget.domNode.style.top = event.pageY+"px"; +} Propchange: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java?rev=1036739&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java Fri Nov 19 04:42:40 2010 @@ -0,0 +1,100 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.IOException; +import java.io.PrintWriter; +import java.util.Collection; + +/** + * Creates HTML document with Dojo JavaScript. + * + * @author Pinaki Poddar + * + */ +public class DojoFormatter extends XMLFormatter { + public static final String MIME_TYPE = "text/html"; + static String DOCTYPE = "<!DOCTYPE html PUBLIC " + + quoted("-//W3C//DTD HTML 4.01//EN") + + quoted("http://www.w3.org/TR/html4/strict.dtd") + ">"; + static String DOJO = quoted("http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"); + static String DOJO_THEME = quoted("http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css"); + static String DOJO_CONFIG = "djConfig=" + quoted("parseOnLoad:true, isDebug:true"); + static String JAVASCRIPT_TYPE = " type=" + quoted("text/javascript") + " "; + static String CSS_TYPE = " type=" + quoted("text/css") + " "; + static String DOJO_INSTANCE = quoted("instances.js"); + + @Override + public String getMimeType() { + return MIME_TYPE; + } + + @Override + public void configure(String key, Object value) { + // TODO Auto-generated method stub + + } + + @Override + public void encode(Object obj, JPAServletContext ctx) { + PrintWriter writer = writeHeader(ctx); + super.encode(obj, ctx); + close(writer); + } + + + @Override + public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException { + PrintWriter writer = writeHeader(ctx); + super.encode(objs, ctx); + close(writer); + } + + PrintWriter writeHeader(JPAServletContext ctx) { + PrintWriter writer = null; + try { + writer = ctx.getResponse().getWriter(); + } catch (Exception e) { + throw new ErrorFormatter(e); + } + writer.println(DOCTYPE); + writer.println("<html>"); + writer.println("<head>"); + writer.println("<script src=" + DOJO + JAVASCRIPT_TYPE + DOJO_CONFIG + "></script>"); + writer.println("<script src=" + DOJO_INSTANCE + JAVASCRIPT_TYPE + "></script>"); + writer.println("<link rel=" + quoted("stylesheet") + CSS_TYPE + " href=" + DOJO_THEME + "/>"); + writer.println("</head>"); + writer.println("<body id=" + quoted("main") + " class=" + quoted(" claro ") + ">"); + writer.println("<div id=" + quoted("canvas") + "></div>"); + writer.println("<div id=" + quoted("data") + "style=" + quoted("display: none;") + ">"); + return writer; + } + + void close(PrintWriter writer) { + writer.println("</div>"); + writer.println("</body>"); + writer.println("</html>"); + } + + static String quoted(String s) { + return '"' + s + '"'; + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java ------------------------------------------------------------------------------ svn:mime-type = text/plain From commits-return-8102-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 05:41:15 2010 Return-Path: <commits-return-8102-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 44527 invoked from network); 19 Nov 2010 05:41:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 05:41:14 -0000 Received: (qmail 54438 invoked by uid 500); 19 Nov 2010 05:41:46 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 54382 invoked by uid 500); 19 Nov 2010 05:41:46 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 54375 invoked by uid 99); 19 Nov 2010 05:41:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 05:41:45 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 05:41:42 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id CF568C0164 for <commits@openjpa.apache.org>; Fri, 19 Nov 2010 05:41:21 +0000 (UTC) Date: Fri, 19 Nov 2010 05:41:21 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <80458801.4821290145281815.JavaMail.hudson@aegis> In-Reply-To: <2118810985.4441290123904273.JavaMail.hudson@aegis> References: <2118810985.4441290123904273.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_normal_:_OpenJP?= =?UTF-8?Q?A-trunk_=C2=BB_OpenJPA_Persistence_JDBC_#334?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/334/changes> From commits-return-8103-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 05:41:16 2010 Return-Path: <commits-return-8103-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 44553 invoked from network); 19 Nov 2010 05:41:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 05:41:16 -0000 Received: (qmail 54471 invoked by uid 500); 19 Nov 2010 05:41:48 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 54453 invoked by uid 500); 19 Nov 2010 05:41:48 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 54446 invoked by uid 99); 19 Nov 2010 05:41:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 05:41:47 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 05:41:44 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 5390DC0167 for <commits@openjpa.apache.org>; Fri, 19 Nov 2010 05:41:24 +0000 (UTC) Date: Fri, 19 Nov 2010 05:41:24 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <2127197378.4831290145284341.JavaMail.hudson@aegis> In-Reply-To: <1728517651.4451290123905442.JavaMail.hudson@aegis> References: <1728517651.4451290123905442.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #334 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/334/changes> Changes: [mikedd] Move jest tests to sandbox A https://svn.apache.org/repos/asf/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/jest D https://svn.apache.org/repos/asf/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest ------------------------------------------ [...truncated 17689 lines...] [INFO] Source directory does not exist - skipping report. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [ianal:verify-legal-files {execution: default}] [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-integration/pom.xml> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-integration/2.1.0-SNAPSHOT/openjpa-integration-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-integration/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-integration/builds/2010-11-19_04-22-17/archive/org.apache.openjpa/openjpa-integration/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving /home/hudson/.m2/repository/org/apache/openjpa/openjpa-integration/2.1.0-SNAPSHOT/openjpa-integration-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-integration/builds/2010-11-19_04-22-17/archive/org.apache.openjpa/openjpa-integration/2.1.0-SNAPSHOT/openjpa-integration-2.1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Integration Tests - Daytrader [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-integration/daytrader/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-integration/daytrader/src/main/resources> [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] No sources to compile [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 12 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-integration/daytrader/target/test-classes> [INFO] [dependency:unpack {execution: unpack}] [INFO] Configured Artifact: org.apache.openjpa:openjpa-persistence-jdbc:2.1.0-SNAPSHOT:test-jar [INFO] Unpacking /home/hudson/.m2/repository/org/apache/openjpa/openjpa-persistence-jdbc/2.1.0-SNAPSHOT/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar to <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-integration/daytrader/target/test-classes> with includes org/apache/openjpa/persistence/test/*.class and excludes:null [INFO] [openjpa:test-enhance {execution: enhancer}] 186 daytrader WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 199 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Automobile". Ignoring. 199 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Driver". Ignoring. 199 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Passenger". Ignoring. 199 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Owner". Ignoring. 207 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefPropMixedFieldAccess2". Ignoring. 207 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropAccess2". Ignoring. 214 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldAccess2". Ignoring. 214 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefFieldMixedPropAccess2". Ignoring. 221 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLAssocOverEntityA". Ignoring. 221 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLAssocOverEntityB". Ignoring. 222 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLAssocOverEmbed". Ignoring. 222 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLAssocOverEmbedB". Ignoring. 229 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.EntityA_Coll_StringXml". Ignoring. 229 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.EntityA_Coll_Embed_EmbedXml". Ignoring. 230 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.DepartmentXml". Ignoring. 230 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.EmployeeXml". Ignoring. 230 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.ItemXml". Ignoring. 230 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.DivisionXml". Ignoring. 230 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.VicePresidentXml". Ignoring. 230 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.CompanyXml". Ignoring. 230 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.CustomerXml". Ignoring. 230 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.OrderXml". Ignoring. 230 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.CustomerXml". Ignoring. 231 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.BasicEntityXML". Ignoring. 231 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLOverEntity". Ignoring. 231 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.AddressXml". Ignoring. 231 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.ZipcodeXml". Ignoring. 231 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.Embed_EmbedXml". Ignoring. 231 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.EmbedXml". Ignoring. 231 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.BasicEmbedXML". Ignoring. 238 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestElement1". Ignoring. 238 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestEntity1". Ignoring. 245 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.xml.SimpleXmlEntity". Ignoring. 245 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.xml.XmlOverrideEntity". Ignoring. 245 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.simple.AllFieldTypes". Ignoring. 259 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefPropMixedFieldAccess2". Ignoring. 260 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropAccess2". Ignoring. 279 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldAccess2". Ignoring. 280 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefFieldMixedPropAccess2". Ignoring. 411 xml-persistence-unit WARN [pool-1-thread-1] openjpa.Runtime - Found no persistent property in "org.apache.openjpa.persistence.inheritance.entity.XMLCallback" 412 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.inheritance.entity.XMLSuperCallback". Ignoring. 419 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefPropMixedFieldAccess2". Ignoring. 420 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropAccess2". Ignoring. 427 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.entity.MixedMappingLocation". Ignoring. 427 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.entity.MixedMappingLocationEmbeddedId". Ignoring. 434 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldAccess2". Ignoring. 435 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefFieldMixedPropAccess2". Ignoring. 442 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestElement2". Ignoring. 443 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestEntity2". Ignoring. 451 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLAbstractMappedSuperField". Ignoring. 452 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLAbstractMappedSuperProperty". Ignoring. 453 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLMappedSuperField". Ignoring. 453 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLMappedSuperProperty". Ignoring. 454 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLMixedMappedSuper". Ignoring. 454 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldAccess". Ignoring. 455 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropAccess". Ignoring. 455 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefFieldMixedPropAccess". Ignoring. 456 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefPropMixedFieldAccess". Ignoring. 456 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropertySub". Ignoring. 457 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldSub". Ignoring. 457 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropertySub2". Ignoring. 458 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldSub2". Ignoring. 458 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLMixedFieldSub". Ignoring. 459 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLSuperPropertyEntity". Ignoring. 459 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldSub3". Ignoring. 460 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLSuperFieldEntity". Ignoring. 460 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropertySub3". Ignoring. 461 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropEmbedEntity". Ignoring. 462 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldEmbedEntity". Ignoring. 462 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropMixedEntity". Ignoring. 463 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLEmbedFieldAccess". Ignoring. 463 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLEmbedPropAccess". Ignoring. 464 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLEmbedMixedAccess". Ignoring. 472 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.enhance.identity.Employee1Xml". Ignoring. 472 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.enhance.identity.Dependent1Xml". Ignoring. 473 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.enhance.identity.DependentId1Xml". Ignoring. 479 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.Security1". Ignoring. 480 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.Country1". Ignoring. 480 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.Embed". Ignoring. 488 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLOrderedManyToManyEntity". Ignoring. 489 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLOrderedOneToManyEntity". Ignoring. 489 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLOrderedElementEntity". Ignoring. 490 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLUnorderedNameEntity". Ignoring. 490 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLOrderedNameEntity". Ignoring. 498 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestElement3". Ignoring. 499 xml-persistence-unit WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestEntity3". Ignoring. 568 xml-persistence-unit WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 40 test WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 40 second-persistence-unit WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 40 third-persistence-unit WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 39 invalid WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 39 empty-pu WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 58 listener-pu WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 53 test-unique-constraint WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 30 test-metadata-complete WARN [pool-1-thread-1] openjpa.Runtime - Found no persistent property in "org.apache.openjpa.persistence.annotations.xml.DerivedA" 56 test-metadata-complete WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 60 embed-pu WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 45 native-seq-pu WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 63 Access-1 WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 44 test-persistence-xml-orm WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 34 PreparedQuery WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 27 AbstractCallbackPU WARN [pool-1-thread-1] openjpa.Runtime - Found no persistent property in "org.apache.openjpa.persistence.inheritance.entity.XMLCallback" 28 AbstractCallbackPU WARN [pool-1-thread-1] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.inheritance.entity.XMLSuperCallback". Ignoring. 47 AbstractCallbackPU WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 48 NamedUniqueConstraintTest WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 33 testStrategy WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 33 post-remove WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 33 mdr-pu WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 42 mapsId-pu WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 71 delimited-identifiers WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 44 delimited-identifiers-xml WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 41 delimited-identifiers-seq-gen-xml WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 25 delimited-identifiers-inheritance-xml WARN [pool-1-thread-1] openjpa.Runtime - Found no persistent property in "org.apache.openjpa.persistence.delimited.identifiers.xml.Pontiac" 26 delimited-identifiers-inheritance-xml WARN [pool-1-thread-1] openjpa.Runtime - Found no persistent property in "org.apache.openjpa.persistence.delimited.identifiers.xml.Chevrolet" 45 delimited-identifiers-inheritance-xml WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 52 delimited-identifiers-joins-xml WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 25 delimited-identifiers-result-set-xml WARN [pool-1-thread-1] openjpa.Runtime - Found no persistent property in "org.apache.openjpa.persistence.delimited.identifiers.xml.Pontiac" 26 delimited-identifiers-result-set-xml WARN [pool-1-thread-1] openjpa.Runtime - Found no persistent property in "org.apache.openjpa.persistence.delimited.identifiers.xml.Chevrolet" 27 delimited-identifiers-result-set-xml WARN [pool-1-thread-1] openjpa.Runtime - Found no persistent property in "org.apache.openjpa.persistence.delimited.identifiers.xml.Pontiac2" 29 delimited-identifiers-result-set-xml WARN [pool-1-thread-1] openjpa.Runtime - Found no persistent property in "org.apache.openjpa.persistence.delimited.identifiers.xml.Chevrolet2" 47 delimited-identifiers-result-set-xml WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 43 JPQLIndex WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 32 TestDetachMerge WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 32 TestCfSwitching WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 33 TestDropAddSequence WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" loaded by java.net.URLClassLoader@108b65a has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.integration.daytrader.MarketSummaryDataBean". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-integration/daytrader/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.integration.daytrader.TestDaytrader 44 daytrader INFO [main] test - TestDaytrader.testTrade() started 45 daytrader INFO [main] test - TradeBuildDB.createQuotes(1000) 54 daytrader INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 130 daytrader INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 15483 daytrader INFO [main] test - TradeBuildDB.createAccounts(500) Build timed out. Aborting Sending e-mails to: commits@openjpa.apache.org Process 1290145117314 is killed. channel stopped [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [HUDSON] Recording test results[INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.reflect.UndeclaredThrowableException at $Proxy2.isArchivingDisabled(Unknown Source) at hudson.maven.MavenBuildProxy$Filter.isArchivingDisabled(MavenBuildProxy.java:222) at hudson.maven.reporters.MavenArtifact.archive(MavenArtifact.java:192) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:107) at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:800) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:317) at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:275) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:750) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:467) at hudson.remoting.Request.call(Request.java:105) at hudson.remoting.Channel.call(Channel.java:630) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) ... 30 more Caused by: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Channel$CloseCommand.execute(Channel.java:764) at hudson.remoting.Channel$ReaderThread.run(Channel.java:963) Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:58) at hudson.remoting.Command.<init>(Command.java:47) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel.close(Channel.java:805) at hudson.slaves.Channels$1.close(Channels.java:91) at hudson.maven.ProcessCache$MavenProcess.discard(ProcessCache.java:145) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:541) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1324) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 78 minutes 55 seconds [INFO] Finished at: Fri Nov 19 05:41:22 UTC 2010 [INFO] Final Memory: 142M/537M [INFO] ------------------------------------------------------------------------ From commits-return-8104-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 08:40:33 2010 Return-Path: <commits-return-8104-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 13327 invoked from network); 19 Nov 2010 08:40:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 08:40:32 -0000 Received: (qmail 86033 invoked by uid 500); 19 Nov 2010 08:41:04 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 85976 invoked by uid 500); 19 Nov 2010 08:41:03 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 85969 invoked by uid 99); 19 Nov 2010 08:41:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 08:41:02 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 08:41:00 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 845BAC0164 for <commits@openjpa.apache.org>; Fri, 19 Nov 2010 08:40:39 +0000 (UTC) Date: Fri, 19 Nov 2010 08:40:39 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1176817403.4931290156039415.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJPA-tr?= =?UTF-8?Q?unk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#56?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/56/changes> From commits-return-8105-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 08:40:44 2010 Return-Path: <commits-return-8105-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 13377 invoked from network); 19 Nov 2010 08:40:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 08:40:44 -0000 Received: (qmail 86637 invoked by uid 500); 19 Nov 2010 08:41:15 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 86607 invoked by uid 500); 19 Nov 2010 08:41:15 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 86600 invoked by uid 99); 19 Nov 2010 08:41:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 08:41:15 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 08:41:13 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 997CFC0167 for <commits@openjpa.apache.org>; Fri, 19 Nov 2010 08:40:52 +0000 (UTC) Date: Fri, 19 Nov 2010 08:40:52 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1985857494.4941290156052607.JavaMail.hudson@aegis> Subject: Hudson build became unstable: OpenJPA-trunk-deploy #56 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/56/changes> From commits-return-8106-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 19:49:36 2010 Return-Path: <commits-return-8106-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 59315 invoked from network); 19 Nov 2010 19:49:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 19:49:36 -0000 Received: (qmail 41568 invoked by uid 500); 19 Nov 2010 19:50:08 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 41532 invoked by uid 500); 19 Nov 2010 19:50:07 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 41525 invoked by uid 99); 19 Nov 2010 19:50:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 19:50:07 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 19:50:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9D03F23889C5; Fri, 19 Nov 2010 19:48:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1036988 - in /openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/datacache/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/... Date: Fri, 19 Nov 2010 19:48:49 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101119194849.9D03F23889C5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Fri Nov 19 19:48:49 2010 New Revision: 1036988 URL: http://svn.apache.org/viewvc?rev=1036988&view=rev Log: OPENJPA-1892: Fix NPE in DataCacheStoreManager. Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/TestCacheModeDisableSelectiveInheritance.java (with props) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ChildUncacheable.java (with props) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ParentUnspecifiedEntity.java (with props) Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java?rev=1036988&r1=1036987&r2=1036988&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheStoreManager.java Fri Nov 19 19:48:49 2010 @@ -392,9 +392,14 @@ public class DataCacheStoreManager && ((fetch.getCacheStoreMode() == DataCacheStoreMode.USE && !alreadyCached) || (fetch.getCacheStoreMode() == DataCacheStoreMode.REFRESH)); if (updateCache) { - cacheStateManager(cache, sm, data); - if (stats.isEnabled()) { - ((CacheStatisticsSPI) stats).newPut(sm.getMetaData().getDescribedType()); + // It is possible that the "cacheability" of the provided SM changed after hitting the DB. This can happen + // when we are operating against an Entity that is in some sort of inheritance structure. + cache = _mgr.selectCache(sm); + if (cache != null) { + cacheStateManager(cache, sm, data); + if (stats.isEnabled()) { + ((CacheStatisticsSPI) stats).newPut(sm.getMetaData().getDescribedType()); + } } } return fromDatabase || alreadyCached; Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/TestCacheModeDisableSelectiveInheritance.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/TestCacheModeDisableSelectiveInheritance.java?rev=1036988&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/TestCacheModeDisableSelectiveInheritance.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/TestCacheModeDisableSelectiveInheritance.java Fri Nov 19 19:48:49 2010 @@ -0,0 +1,65 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.cache.jpa; + +import javax.persistence.EntityManager; + +import org.apache.openjpa.persistence.cache.jpa.model.ChildUncacheable; +import org.apache.openjpa.persistence.cache.jpa.model.ParentUnspecifiedEntity; +import org.apache.openjpa.persistence.test.SingleEMFTestCase; + +/** + * This test was added for https://issues.apache.org/jira/browse/OPENJPA-1892. + * + * The key to this test is that the ChildUncacheable is uncacheable and ParentUnspecifiedEntity is cacheable. In the + * case were we pass the root Entity in em.find(ParentUnspecifiedEntity.class, 1) AND the id we passed corresponds to + * the child Entity we shouldn't be caching this result. + * + */ +public class TestCacheModeDisableSelectiveInheritance extends SingleEMFTestCase { + Object[] params = + new Object[] { ChildUncacheable.class, ParentUnspecifiedEntity.class, CLEAR_TABLES, + "javax.persistence.sharedCache.mode", "DISABLE_SELECTIVE", "openjpa.DataCache", "true" }; + + @Override + public void setUp() throws Exception { + super.setUp(params); + } + + @Override + public void tearDown() throws Exception { + + } + + public void testSimpleFind() throws Exception { + EntityManager em = emf.createEntityManager(); + try { + ChildUncacheable c = new ChildUncacheable(); + em.getTransaction().begin(); + em.persist(c); + em.getTransaction().commit(); + assertEquals(c, em.find(ChildUncacheable.class, c.getId())); + em.clear(); + assertEquals(c.getId(), em.find(ChildUncacheable.class, c.getId()).getId()); + + } finally { + em.close(); + } + } +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/TestCacheModeDisableSelectiveInheritance.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ChildUncacheable.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ChildUncacheable.java?rev=1036988&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ChildUncacheable.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ChildUncacheable.java Fri Nov 19 19:48:49 2010 @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.cache.jpa.model; + +import javax.persistence.Basic; +import javax.persistence.Cacheable; +import javax.persistence.Entity; + +@Entity +@Cacheable(value = false) +public class ChildUncacheable extends ParentUnspecifiedEntity { + @Basic + String child; +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ChildUncacheable.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ParentUnspecifiedEntity.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ParentUnspecifiedEntity.java?rev=1036988&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ParentUnspecifiedEntity.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ParentUnspecifiedEntity.java Fri Nov 19 19:48:49 2010 @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.cache.jpa.model; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Version; + +@Entity +public class ParentUnspecifiedEntity { + @Id + @Column(name = "ID") + protected int id; + + @Version + @Column(name = "VERSN") + protected int version; + + protected String name; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public int getVersion() { + return version; + } + + public void setVersion(int version) { + this.version = version; + } +} Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/cache/jpa/model/ParentUnspecifiedEntity.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8107-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 20:22:06 2010 Return-Path: <commits-return-8107-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 79586 invoked from network); 19 Nov 2010 20:22:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 20:22:06 -0000 Received: (qmail 88998 invoked by uid 500); 19 Nov 2010 20:22:37 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 88937 invoked by uid 500); 19 Nov 2010 20:22:37 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 88864 invoked by uid 99); 19 Nov 2010 20:22:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 20:22:37 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 20:22:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CBB7D23889C5; Fri, 19 Nov 2010 20:21:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037006 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java Date: Fri, 19 Nov 2010 20:21:20 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101119202120.CBB7D23889C5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Fri Nov 19 20:21:20 2010 New Revision: 1037006 URL: http://svn.apache.org/viewvc?rev=1037006&view=rev Log: OPENJPA-1866: Add missing break to AnnotationPersistenceMetaDataSerializer. Patch contributed by Guy Korland. Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java?rev=1037006&r1=1037005&r2=1037006&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java (original) +++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java Fri Nov 19 20:21:20 2010 @@ -595,6 +595,7 @@ public class AnnotationPersistenceMetaDa case TYPE_SEQ: if (isMappingMode()) serializeSequence((SequenceMetaData) obj); + break; case TYPE_QUERY: serializeQuery((QueryMetaData) obj); break; From commits-return-8108-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 21:20:49 2010 Return-Path: <commits-return-8108-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 5344 invoked from network); 19 Nov 2010 21:20:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 21:20:49 -0000 Received: (qmail 52621 invoked by uid 500); 19 Nov 2010 21:21:21 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 52568 invoked by uid 500); 19 Nov 2010 21:21:21 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 52561 invoked by uid 99); 19 Nov 2010 21:21:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 21:21:21 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 21:21:20 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 66852C0162 for <commits@openjpa.apache.org>; Fri, 19 Nov 2010 21:21:00 +0000 (UTC) Date: Fri, 19 Nov 2010 21:21:00 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1078458087.5511290201660386.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJPA?= =?UTF-8?Q?-trunk_=C2=BB_OpenJPA_Persistence_JDBC_#335?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/335/changes> From commits-return-8109-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 21:20:53 2010 Return-Path: <commits-return-8109-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 5370 invoked from network); 19 Nov 2010 21:20:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 21:20:53 -0000 Received: (qmail 52687 invoked by uid 500); 19 Nov 2010 21:21:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 52645 invoked by uid 500); 19 Nov 2010 21:21:25 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 52638 invoked by uid 99); 19 Nov 2010 21:21:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 21:21:25 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 21:21:23 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id C7EC3C0164 for <commits@openjpa.apache.org>; Fri, 19 Nov 2010 21:21:01 +0000 (UTC) Date: Fri, 19 Nov 2010 21:21:01 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1013687849.5521290201661795.JavaMail.hudson@aegis> In-Reply-To: <2127197378.4831290145284341.JavaMail.hudson@aegis> References: <2127197378.4831290145284341.JavaMail.hudson@aegis> Subject: Hudson build is unstable: OpenJPA-trunk #335 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/335/changes> From commits-return-8110-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 22:47:38 2010 Return-Path: <commits-return-8110-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 41054 invoked from network); 19 Nov 2010 22:47:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 22:47:37 -0000 Received: (qmail 53665 invoked by uid 500); 19 Nov 2010 22:48:09 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 53640 invoked by uid 500); 19 Nov 2010 22:48:09 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 53632 invoked by uid 99); 19 Nov 2010 22:48:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 22:48:09 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 22:48:09 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 1DADCC0164 for <commits@openjpa.apache.org>; Fri, 19 Nov 2010 22:47:49 +0000 (UTC) Date: Fri, 19 Nov 2010 22:47:49 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1085641538.5581290206869120.JavaMail.hudson@aegis> In-Reply-To: <1013687849.5521290201661795.JavaMail.hudson@aegis> References: <1013687849.5521290201661795.JavaMail.hudson@aegis> Subject: Hudson build is still unstable: OpenJPA-trunk #336 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/changes> From commits-return-8111-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 19 22:47:39 2010 Return-Path: <commits-return-8111-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 41077 invoked from network); 19 Nov 2010 22:47:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 22:47:39 -0000 Received: (qmail 53739 invoked by uid 500); 19 Nov 2010 22:48:10 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 53710 invoked by uid 500); 19 Nov 2010 22:48:10 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 53703 invoked by uid 99); 19 Nov 2010 22:48:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 22:48:10 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 22:48:08 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 499C0C0162 for <commits@openjpa.apache.org>; Fri, 19 Nov 2010 22:47:47 +0000 (UTC) Date: Fri, 19 Nov 2010 22:47:47 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <33178927.5571290206867213.JavaMail.hudson@aegis> In-Reply-To: <1078458087.5511290201660386.JavaMail.hudson@aegis> References: <1078458087.5511290201660386.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_still_unstable:_OpenJP?= =?UTF-8?Q?A-trunk_=C2=BB_OpenJPA_Persistence_JDBC_#336?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/changes> From commits-return-8112-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 20 05:13:01 2010 Return-Path: <commits-return-8112-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 95903 invoked from network); 20 Nov 2010 05:13:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 05:13:01 -0000 Received: (qmail 40240 invoked by uid 500); 20 Nov 2010 05:13:33 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 40184 invoked by uid 500); 20 Nov 2010 05:13:31 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 40177 invoked by uid 99); 20 Nov 2010 05:13:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 05:13:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 05:13:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5E33A238897F; Sat, 20 Nov 2010 05:12:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037111 - in /openjpa/sandboxes/jest: openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/ openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ openjpa-persistence/src/main/resources/org/apache... Date: Sat, 20 Nov 2010 05:12:11 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101120051211.5E33A238897F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Sat Nov 20 05:12:10 2010 New Revision: 1037111 URL: http://svn.apache.org/viewvc?rev=1037111&view=rev Log: OPENJPA-1859: Make JEST deployable with separate persistence unit within the same visibility scope. Restrict resource loading scope. Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js?rev=1037111&r1=1037110&r2=1037111&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js (original) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jest/instances.js Sat Nov 20 05:12:10 2010 @@ -1,30 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * A JavaScript to render a set of instances as dojo widgets. + */ dojo.require("dijit.form.Button"); dojo.require("dijit.TitlePane"); dojo.ready(function(){ + // data is supplied in a hidden div with id="data" var data = dojo.byId("data"); -// var instances = dojo.query("instance", data); -// var tp = create(instances[0]); -// tp.domNode.style.width="140px"; -// tp.domNode.style.position="absolute"; -// tp.domNode.style.left="200px"; -// tp.domNode.style.top="200px"; -// var canvas = dojo.byId("canvas"); -// canvas.appendChild(tp.domNode); + + // Find all instance node within data node and create TitlePanel for each + var panels = new Array(); + dojo.query("instance", data).forEach(function(item, index) { + var panel = create(item); + panels[index] = panel; + }); + + // widgets are placed on a empty div with id="canvas" var canvas = dojo.byId("canvas"); - dojo.query("instance", data).forEach(function(item) { - var tp = create(item); - tp.domNode.style.width="140px"; - tp.domNode.style.position="absolute"; - tp.domNode.style.left=Math.floor(Math.random()*500)+"px"; - tp.domNode.style.top=Math.floor(Math.random()*200)+"px"; - canvas.appendChild(tp.domNode); + // assign random location to each panel and add them to canvas + dojo.forEach(panels, function(item, index) { + var domNode = item.domNode; + domNode.style.width = "200px"; + domNode.style.position = "absolute"; + domNode.style.left = 100 + (index % 5)*300 + "px"; + domNode.style.top = 10 + Math.floor(index / 5)*200 +"px"; + canvas.appendChild(domNode); }); -// var canvas = dojo.byId("canvas"); -// for (pane in panes) { -// pane.domNode.style.left=Math.floor(Math.random()*500)+"px"; -// pane.domNode.style.top=Math.floor(Math.random()*500)+"px"; -// canvas.appendChild(pane.domNode); -// } + }); /** @@ -55,16 +75,21 @@ function create(node) { } ); + dojo.connect(pane, "onMouseDown", + function(event){ + pane.domNode.style.cursor = "move"; + } + ); dojo.connect(pane, "onMouseEnter", function(event){ pane.domNode.style.cursor = "move"; } ); dojo.connect(pane, "onMouseLeave", - function(event){ - pane.domNode.style.cursor = "default"; - } - ); + function(event){ + pane.domNode.style.cursor = "default"; + } + ); dojo.connect(pane, "onMouseUp", function(event){ setPosition(pane, event); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java?rev=1037111&r1=1037110&r2=1037111&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java Sat Nov 20 05:12:10 2010 @@ -93,9 +93,14 @@ public class JESTContext implements JPAS } public JESTCommand getCommand() { - String path = _request.getServletPath().substring(1); - int idx = path.indexOf('/'); - String action = idx == -1 ? path : path.substring(0, idx); + debug(_request); + String path = _request.getPathInfo(); + String action = "/"; + if (path != null) { + int idx = path.substring(1).indexOf('/'); // non-null path always starts with / + action = idx == -1 ? path.substring(1) : path.substring(1, idx); + } + System.err.println("Action = [" + action + "]"); JESTCommand command = _cf.newInstance(action); command.parse(_request); @@ -137,4 +142,14 @@ public class JESTContext implements JPAS public Log getLog() { return _log; } + + private void debug(HttpServletRequest request) { + System.err.println("-----------------------------------------------------------"); + System.err.println("Request URL = [" + request.getRequestURL() + "]"); + System.err.println("Request URI = [" + request.getRequestURI() + "]"); + System.err.println("Servlet Path = [" + request.getServletPath() + "]"); + System.err.println("Context Path = [" + request.getContextPath() + "]"); + System.err.println("Path Info = [" + request.getPathInfo() + "]"); + System.err.println("Path Translated = [" + request.getPathTranslated() + "]"); + } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java?rev=1037111&r1=1037110&r2=1037111&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java Sat Nov 20 05:12:10 2010 @@ -20,10 +20,7 @@ package org.apache.openjpa.persistence.jest; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; -import javax.persistence.Persistence; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; @@ -58,19 +55,15 @@ public class JESTServlet extends HttpSer private String _unit; private OpenJPAEntityManagerFactory _emf; - /** - * Initialization of the servlet recognizes following optional parameters - * <br> - * <table border="1" cellspacing="10"> - * <tr><td>persistence.unit</td><td>name of the persistence unit</td></tr> - * <tr><td>response.format</td><td>default format for the response</td></tr> - * </table> - */ + @Override public void init(ServletConfig config) throws ServletException { super.init(config); _unit = config.getInitParameter("persistence.unit"); - if (_unit == null) _unit = getServletName(); - initPersistenceUnit(_unit); + if (_unit == null) { + _unit = getServletName(); + } + System.err.println("JEST Servlet configured for browsing persistence unit [" + _unit + "]"); + findPersistenceUnit(); } /** @@ -79,8 +72,13 @@ public class JESTServlet extends HttpSer */ @Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + OpenJPAEntityManagerFactory emf = findPersistenceUnit(); + if (emf == null) { + handleError(new ServletException(_unit + " not found"), response); + return; + } try { - JPAServletContext ctx = new JESTContext(_unit,_emf.createEntityManager(), request, response); + JPAServletContext ctx = new JESTContext(_unit, emf.createEntityManager(), request, response); JESTCommand command = ctx.getCommand(); command.process(ctx); } catch (Exception e) { @@ -88,41 +86,25 @@ public class JESTServlet extends HttpSer } } - void initPersistenceUnit(String unit) throws ServletException { - Map<String, Object> pconfig = new HashMap<String, Object>(); - pconfig.put("openjpa.EntityManagerFactoryPool", "true"); - if (Persistence.createEntityManagerFactory(unit, pconfig) == null) { - throw new ServletException("Can not create persistence unit [" + unit + "]"); - } - BrokerFactory bf = AbstractBrokerFactory.getPooledFactoryForKey(unit); - if (bf == null) { - throw new ServletException("Can not get pooled internal persistence unit [" + unit + "]"); - } - _emf = (OpenJPAEntityManagerFactory)bf.getUserObject(JPAFacadeHelper.EMF_KEY); + protected OpenJPAEntityManagerFactory findPersistenceUnit() throws ServletException { if (_emf == null) { - throw new ServletException("Can not get user object from pooled internal persistence unit [" + unit + "]"); + System.err.println(this + " looking for pooled unit [" + _unit + "]"); + BrokerFactory bf = AbstractBrokerFactory.getPooledFactoryForKey(_unit); + if (bf != null) { + System.err.println(this + " lookig for user object [" + JPAFacadeHelper.EMF_KEY + "]"); + _emf = (OpenJPAEntityManagerFactory)bf.getUserObject(JPAFacadeHelper.EMF_KEY); + } else { + System.err.println(this + " can not find persistence unit [" + _unit + "]"); + } } + return _emf; } - void handleError(Throwable t, HttpServletResponse response) throws IOException { + protected void handleError(Throwable t, HttpServletResponse response) throws IOException { if (t instanceof ErrorFormatter) { ((ErrorFormatter)t).printStackTrace(response); } else { new ErrorFormatter(t).printStackTrace(response); } } - - /** - - - - - - Response domain(ServerContext server, OutputStream out) throws Exception { - return new DomainResponse(this, server, _emf.getMetamodel(), out); - } - - - -*/ } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java?rev=1037111&r1=1037110&r2=1037111&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java Sat Nov 20 05:12:10 2010 @@ -30,7 +30,8 @@ import javax.servlet.http.HttpServletRes /** * A <em>default</em> command that interprets the URI as a resource. - * The context root is implicitly resolved to a resource named <code>index.html</code> + * The context root is implicitly resolved to a resource named <code>index.html</code>. + * All resources are {@link Class#getResourceAsStream(String) resolved} relative to this class itself. * * @author Pinaki Poddar * @@ -38,24 +39,25 @@ import javax.servlet.http.HttpServletRes public class ResourceCommand extends AbstractCommand { private String _resource; private static final String CONTEXT_ROOT = "/"; - private static final String ROOT_RESOURCE = "/index.html"; - private static final String RESOURCE_PATH = ResourceCommand.class.getPackage().getName().replace('.', '/'); + private static final String ROOT_RESOURCE = "index.html"; public String getAction() { - return ""; + return _resource; } + /** + * Parses the {@link HttpServletRequest#getPathInfo() path info} to identify the resource. + * Path info always begins with <code>/</code> character. Drops the leading <code>/</code> + * so that this class can {@link Class#getResourceAsStream(String) locate} the resource + * as a relative path. + */ public void parse(HttpServletRequest request) { - super.parse(request); - String path = request.getServletPath(); - if (CONTEXT_ROOT.equals(path)) - path = ROOT_RESOURCE; - _resource = RESOURCE_PATH + path; - } - - @Override - public void validate(HttpServletRequest request) { - + String path = request.getPathInfo(); + if (path == null || path.length() == 0 || CONTEXT_ROOT.equals(path)) { + _resource = ROOT_RESOURCE; + } else { + _resource = path.substring(1); + } } @@ -63,13 +65,9 @@ public class ResourceCommand extends Abs HttpServletRequest request = ctx.getRequest(); HttpServletResponse response = ctx.getResponse(); response.setHeader("Cache-Control", "public"); - ClassLoader loader = getClass().getClassLoader(); - InputStream in = loader.getResourceAsStream(_resource); + InputStream in = getClass().getResourceAsStream(_resource); if (in == null) { - in = request.getSession().getServletContext().getResourceAsStream(_resource); - if (in == null) { - throw new ErrorFormatter(_loc.get("resource-not-found", _resource), HttpURLConnection.HTTP_NOT_FOUND); - } + throw new ErrorFormatter(_loc.get("resource-not-found", _resource), HttpURLConnection.HTTP_NOT_FOUND); } try { String mimeType = request.getSession().getServletContext().getMimeType(_resource); @@ -89,7 +87,7 @@ public class ResourceCommand extends Abs } } } catch (IOException e) { - throw new ErrorFormatter(e); + throw new ErrorFormatter(e, _loc.get("resource-not-found", _resource), HttpURLConnection.HTTP_NOT_FOUND); } } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html?rev=1037111&r1=1037110&r2=1037111&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html Sat Nov 20 05:12:10 2010 @@ -16,11 +16,14 @@ KIND, either express or implied. See th specific language governing permissions and limitations under the License. --> +<!-- This is the root resource of JEST servlet. --> +<!-- All referenced resource are relative to this resource. --> +<!-- Instead of src="images/x.jpg", use src="./images/x.jpg" --> <html> <head> -<script language="javascript" type="text/javascript" src="showhide.js"> +<script language="javascript" type="text/javascript" src="./showhide.js"> </script> -<LINK href="jest.css" rel="stylesheet" type="text/css"> +<LINK href="./jest.css" rel="stylesheet" type="text/css"> </head> <body> @@ -28,10 +31,9 @@ under the License. <div id="home" style="display:block;"> -<p>JEST provides RESTful access to an OpenJPA-based application. -The usage and state representation for JEST are described in - <a href="http://openjpa.apache.org/jest.html" target="_blank">OpenJPA web site.</a> -<p> +<p>JEST provides RESTful access to an OpenJPA-based application.<br> +The documentation on JEST is available in + <a href="http://openjpa.apache.org/jest.html" target="_blank">OpenJPA web site.</a> </div> <!-- the hard-coded argument to switchid() JavaScript method refers to the @@ -40,11 +42,11 @@ The usage and state representation for J --> <table cellspacing="20"> <tr> - <td><img alt="Deploy" src="images/monitor.jpg" width="100" height="100"></td> - <td><img alt="Find" src="images/find.jpg" width="100" height="100"></td> - <td><img alt="Query" src="images/query2.png" width="100" height="100"></td> - <td><img alt="Browse" src="images/domain.jpg" width="100" height="100"></td> - <td><img alt="View" src="images/properties.jpg" width="100" height="100"></td> + <td><img alt="Deploy" src="./images/monitor.jpg" width="100" height="100"></td> + <td><img alt="Find" src="./images/find.jpg" width="100" height="100"></td> + <td><img alt="Query" src="./images/query2.png" width="100" height="100"></td> + <td><img alt="Browse" src="./images/domain.jpg" width="100" height="100"></td> + <td><img alt="View" src="./images/properties.jpg" width="100" height="100"></td> </tr> <tr> <td><a href="javascript:switchid('deploy');">Deploy</a> </td> @@ -58,22 +60,30 @@ The usage and state representation for J <div id="deploy" style="display:none;"> You can deploy JEST as a servlet in a web application. <hr> - For example, following definition in <code>WEB-INF/web.xml</code> will enable JEST to - operate on a persistence unit named <code>jest</code> + Following <code>WEB-INF/web.xml</code> descriptor will enable JEST to + operate on a persistence unit named <code>jestdemo</code>. Of course, JEST servlet + must be in the same module scope of the application that is using + using <code>jestdemo</code> as its persistence unit. <br> <pre> -<span style="color:green;font-weight:bold"><servlet> - <servlet-name><span style="color:blue">jest</span></servlet-name> - <servlet-class><span style="color:blue;font-weight:bold">org.apache.openjpa.persistence.jest.JESTServlet</span></servlet-class> -</servlet> -<servlet-mapping> - <servlet-name><span style="color:blue">jest</span></servlet-name> - <url-pattern><span style="color:blue">/</span></url-pattern> -</servlet-mapping> -</span> +<servlet> + <servlet-name><span style="color:blue">jest</span></servlet-name> + <servlet-class><span style="color:blue;font-weight:bold">org.apache.openjpa.persistence.jest.JESTServlet</span></servlet-class> + <init-param> + <param-name><span style="color:red;font-weight:bold">persistence.unit</span></param-name> + <param-value><span style="color:blue">jestdemo</span></param-value> + </init-param> +</servlet> +<servlet-mapping> + <servlet-name><span style="color:blue">jest</span></servlet-name> + <url-pattern><span style="color:red">/jest/*</span></url-pattern> +</servlet-mapping> + </pre> - You can reach JEST servlet deployed in a servlet container running on localhost at port 8080 by - <code>http://localhost:8080/jest/</code> + If you deploy an application named <code>demo</code> containing the above JEST servlet + in a servlet container running on <code>localhost</code> at port 8080, then the JEST servlet + can be accessed at (<span style="color:red">do not miss the the trailing / character</span>) <br> + <code class="url">http://localhost:8080/demo/jest/</code> <br> <p> <a href="http://openjpa.apache.org/jest-usage.html" target="_blank">more...</a> @@ -82,8 +92,8 @@ The usage and state representation for J <div id="find" style="display:none;"> You can find persistent objects by simple or compound primary key. <hr> - For example, <br> - <code class="url">http://www.jpa.com/jest/find?type=Person&12345</code> + + <code class="url">http://www.jpa.com/demo/jest/find?type=Person&12345</code> <br> will find a <code>Person</code> with primary key <code>12345</code>. <p> @@ -93,11 +103,14 @@ The usage and state representation for J <div id="query" style="display:none;"> You can execute JPQL or named query with parameters. <hr> - For example, <br> - <code class="url">http://www.jpa.com/jest/query?q=select p from Person p where p.name=:name&name=John</code> + <code class="url">http://www.jpa.com/demo/jest/query?q=select p from Person p where p.name=:x&x=John</code> <br> will find a <code>Person</code> whose name is <code>John</code>. - <p> + <br> + <code class="url">http://www.jpa.com/demo/jest/query/named?q=SelectPersonByName&x=John</code> + <br> + will do the same with an equivalent named query <code>SelectPersonByName</code>. + <p> <a href="http://openjpa.apache.org/jest-syntax.html" target="_blank">more...</a> </div> @@ -105,8 +118,7 @@ The usage and state representation for J <div id="browse" style="display:none;"> You can display the persistent domain model. <hr> - For example, <br> - <code class="url">http://www.jpa.com/jest/domain</code> + <code class="url">http://www.jpa.com/demo/jest/domain</code> <br> will display the persistent domain model. <p> @@ -116,8 +128,7 @@ The usage and state representation for J <div id="properties" style="display:none;"> You can view the configuration properties of the persistence unit. <hr> - For example, <br> - <code class="url">http://www.jpa.com/jest/properties</code> + <code class="url">http://www.jpa.com/demo/jest/properties</code> <br> will display the configuration properties of the persistence unit. <p> Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css?rev=1037111&r1=1037110&r2=1037111&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css Sat Nov 20 05:12:10 2010 @@ -30,6 +30,6 @@ a { .url { color:blue; - font-weight:bold; + font-size:1.2em; font-family:"Courier New", Arial; } From commits-return-8113-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 20 05:52:28 2010 Return-Path: <commits-return-8113-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 15856 invoked from network); 20 Nov 2010 05:52:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 05:52:28 -0000 Received: (qmail 50336 invoked by uid 500); 20 Nov 2010 05:52:59 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 50285 invoked by uid 500); 20 Nov 2010 05:52:59 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 50278 invoked by uid 99); 20 Nov 2010 05:52:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 05:52:58 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 05:52:56 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5321F238897F; Sat, 20 Nov 2010 05:51:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037116 - in /openjpa/sandboxes/jest/openjpa-examples/jest: ./ src/ src/main/ src/main/java/ src/main/java/demo/ src/main/resources/ src/main/resources/META-INF/ src/main/resources/WEB-INF/ src/main/resources/demo/ Date: Sat, 20 Nov 2010 05:51:42 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101120055142.5321F238897F@eris.apache.org> Author: ppoddar Date: Sat Nov 20 05:51:41 2010 New Revision: 1037116 URL: http://svn.apache.org/viewvc?rev=1037116&view=rev Log: OPENJPA-1859: The demo for JEST Added: openjpa/sandboxes/jest/openjpa-examples/jest/ openjpa/sandboxes/jest/openjpa-examples/jest/build.properties (with props) openjpa/sandboxes/jest/openjpa-examples/jest/build.xml (with props) openjpa/sandboxes/jest/openjpa-examples/jest/src/ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Actor.java (with props) openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java (with props) openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java (with props) openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/META-INF/ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/META-INF/persistence.xml (with props) openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/WEB-INF/ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/WEB-INF/web.xml (with props) openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html (with props) Added: openjpa/sandboxes/jest/openjpa-examples/jest/build.properties URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/build.properties?rev=1037116&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/build.properties (added) +++ openjpa/sandboxes/jest/openjpa-examples/jest/build.properties Sat Nov 20 05:51:41 2010 @@ -0,0 +1,55 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# ------------------------------------------------------------------------------- +# Environment variables to build JEST Demo +# +# ------------------------------------------------------------------------------- +# Directory location of maven repository +maven.repos=${user.home}/.m2/repository +# OpenJPA runtime artifact +openjpa.version=2.1.0-SNAPSHOT + +# This is the variable of interest. +# Notice that the variable points to a directory, not a *.jar file. +# All *.jar files under the directory will be included in compilation. +# Though the varaible value is expressed in terms of other variables here, +# you can specify the value directly. +openjpa.lib=${maven.repos}/org/apache/openjpa/openjpa-all/${openjpa.version} + + +jpa.jar.dir=${maven.repos}/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.0 +jpa.jar=geronimo-jpa_2.0_spec-1.0.jar +jta.jar.dir=${maven.repos}/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1 +jta.jar=geronimo-jta_1.1_spec-1.1.1.jar +openjpa.jar.dir=c:/wspace/jest +openjpa.jar=openjpa.jar +jdbc.jar.dir=c:/mysql/mysql-connector-java-5.1.6 +jdbc.jar=mysql-connector-java-5.1.6-bin.jar +coll.jar.dir=${maven.repos}/commons-collections/commons-collections/3.2.1 +coll.jar=commons-collections-3.2.1.jar +lang.jar.dir=${maven.repos}/commons-lang/commons-lang/2.4 +lang.jar=commons-lang-2.4.jar +serp.jar.dir=${maven.repos}/net/sourceforge/serp/serp/1.14.2 +serp.jar=serp-1.14.2.jar +servlet.jar.dir=c:/apache-tomcat-6.0.29/lib +servlet.jar=servlet-api.jar + + +tomcat.server=localhost +tomcat.manager.url=http://${tomcat.server}:8080/manager +tomcat.username=admin +tomcat.password=admin Propchange: openjpa/sandboxes/jest/openjpa-examples/jest/build.properties ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-examples/jest/build.xml URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/build.xml?rev=1037116&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/build.xml (added) +++ openjpa/sandboxes/jest/openjpa-examples/jest/build.xml Sat Nov 20 05:51:41 2010 @@ -0,0 +1,126 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<!-- ====================================================================== --> +<!-- --> +<!-- Ant build script for JEST Demo --> +<!-- --> +<!-- Creates a web archieve for a simple application and a JEST Servlet --> +<!-- --> +<!-- ====================================================================== --> + +<project name="jest" default="war"> + + <!-- ================================================================== --> + <property file="build.properties" /> + <!-- ================================================================== --> + <!-- root directory of Java Source files --> + <property name="src.dir" value="${basedir}/src/main/java"/> + <!-- ================================================================== --> + <!-- root directory of resource files e.g web.xml or persistence.xml --> + <property name="rsrc.dir" value="${basedir}/src/main/resources"/> + <!-- ================================================================== --> + <!-- JPA configuration file anchored by the persistence unit name --> + <property name="jpa.properties" value="META-INF/persistence.xml#jestdemo"/> + <!-- ================================================================== --> + <!-- Root directory of all derived artifacts --> + <property name="target.dir" value="${basedir}/target"/> + <!-- ================================================================== --> + <!-- root directory of compiled class files --> + <property name="classes.dir" value="${target.dir}/classes"/> + <!-- ================================================================== --> + <!-- war archive for the demo --> + <property name="webapp.war" value="demo.war"/> + <!-- ================================================================== --> + + <path id="compile.classpath" + description="Compilation classpath requires OpenJPA specific library because of bytecode enhancement"> + <pathelement location="${src.dir}" /> + <pathelement location="${classes.dir}" /> + <pathelement location="${rsrc.dir}" /> + <pathelement location="${servlet.jar.dir}/${servlet.jar}" /> + <pathelement location="${openjpa.jar.dir}/${openjpa.jar}" /> + <pathelement location="${serp.jar.dir}/${serp.jar}" /> + <pathelement location="${lang.jar.dir}/${lang.jar}" /> + <pathelement location="${coll.jar.dir}/${coll.jar}" /> + <pathelement location="${jta.jar.dir}/${jta.jar}" /> + <pathelement location="${jpa.jar.dir}/${jpa.jar}" /> + </path> + + + <target name="clean" description="Removes all derived targets"> + <delete dir="${target.dir}" failonerror="false"/> + </target> + + <target name="compile" description="Compile classes."> + <mkdir dir="${classes.dir}"/> + <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true"> + <classpath refid="compile.classpath" /> + </javac> + </target> + + <target name="enhance" depends="compile" description="Enhance persistent domain classes."> + <echo message="Enhancing ${jpa.properties} using ${openjpa.jar.dir}/${openjpa.jar}"/> + <java classname="org.apache.openjpa.enhance.PCEnhancer" fork="true"> + <arg value="-properties" /> + <arg value="${jpa.properties}" /> + <classpath refid="compile.classpath" /> + </java> + </target> + + <target name="war" depends="clean,enhance"> + <delete file="${webapp.war}" failonerror="false"></delete> + <echo message="Creating web application archieve ${webapp.war}"/> + <war destfile="${webapp.war}" filesonly="true" webxml="${rsrc.dir}/WEB-INF/web.xml"> + <fileset dir="${basedir}"> + <exclude name="*.*"/> + <exclude name="**/*.*"/> + </fileset> + <classes dir="${classes.dir}"> + <include name="**/*.class"/> + </classes> + <classes dir="${rsrc.dir}"> + <include name="META-INF/persistence.xml"/> + <include name="**/index.html"/> + </classes> + + <lib dir="${jpa.jar.dir}"> + <include name="${jpa.jar}"/> + </lib> + <lib dir="${jta.jar.dir}"> + <include name="${jta.jar}"/> + </lib> + <lib dir="${openjpa.jar.dir}"> + <include name="${openjpa.jar}"/> + </lib> + <lib dir="${jdbc.jar.dir}"> + <include name="${jdbc.jar}"/> + </lib> + <lib dir="${coll.jar.dir}"> + <include name="${coll.jar}"/> + </lib> + <lib dir="${lang.jar.dir}"> + <include name="${lang.jar}"/> + </lib> + <lib dir="${serp.jar.dir}"> + <include name="${serp.jar}"/> + </lib> + </war> + </target> +</project> Propchange: openjpa/sandboxes/jest/openjpa-examples/jest/build.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Actor.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Actor.java?rev=1037116&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Actor.java (added) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Actor.java Sat Nov 20 05:51:41 2010 @@ -0,0 +1,100 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package demo; + +import java.util.Date; +import java.util.HashSet; +import java.util.Set; + +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.OneToMany; +import javax.persistence.OneToOne; + +/** + * A persistent entity with singular and plural association. + * + * @author Pinaki Poddar + * + */ +@Entity +public class Actor { + public static enum Gender {Male, Female}; + @Id + private String id; + private String firstName; + private String lastName; + private Gender gender; + private Date dob; + @OneToOne + private Actor partner; + @OneToMany + private Set<Movie> movies; + + protected Actor() { + + } + + public Actor(String id, String firstName, String lastName, Gender gender, Date dob) { + super(); + this.id = id; + this.firstName = firstName; + this.lastName = lastName; + this.gender = gender; + this.dob = dob; + } + + public String getId() { + return id; + } + + public String getFirstName() { + return firstName; + } + + public String getLastName() { + return lastName; + } + + public Gender getGender() { + return gender; + } + + public Date getDob() { + return dob; + } + public Actor getPartner() { + return partner; + } + + public void setPartner(Actor partner) { + this.partner = partner; + } + + public Set<Movie> getMovies() { + return movies; + } + + public void addMovie(Movie movie) { + if (movies == null) + movies = new HashSet<Movie>(); + movies.add(movie); + } +} Propchange: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Actor.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java?rev=1037116&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java (added) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java Sat Nov 20 05:51:41 2010 @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package demo; + +import java.util.HashSet; +import java.util.Set; + +import javax.persistence.Entity; +import javax.persistence.FetchType; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.OneToMany; + +/** + * @author Pinaki Poddar + * + */ + +@Entity +public class Movie { + @Id + @GeneratedValue + private long id; + private String title; + private int year; + @OneToMany(fetch=FetchType.EAGER) + private Set<Actor> actors; + + protected Movie() { + + } + public Movie(String title, int year) { + super(); + this.title = title; + this.year = year; + } + + public long getId() { + return id; + } + + public String getTitle() { + return title; + } + + public void addActor(Actor a) { + if (actors == null) + actors = new HashSet<Actor>(); + actors.add(a); + } + + public Set<Actor> getActors() { + return actors; + } + + public int getYear() { + return year; + } + +} Propchange: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java?rev=1037116&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java (added) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java Sat Nov 20 05:51:41 2010 @@ -0,0 +1,172 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package demo; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Random; + +import javax.persistence.EntityManager; +import javax.persistence.EntityManagerFactory; +import javax.persistence.Persistence; +import javax.servlet.ServletConfig; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * A very simple servlet that is initialized with some example Actor-Movie records. + * + * @author Pinaki Poddar + * + */ +@SuppressWarnings("serial") +public class SimpleApp extends HttpServlet { + + + @Override + public void init(ServletConfig config) throws ServletException { + super.init(config); + String unit = config.getInitParameter("persistence.unit"); + config.getServletContext().log("SimpleApp initializing with persistence unit [" + unit + "]"); + Map<String,Object> props = new HashMap<String, Object>(); + props.put("openjpa.EntityManagerFactoryPool", "true"); + EntityManagerFactory emf = Persistence.createEntityManagerFactory(unit, props); + config.getServletContext().getContextPath(); + populate(emf.createEntityManager(), config.getServletContext()); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html"); + OutputStream out = resp.getOutputStream(); + InputStream in = getClass().getResourceAsStream("index.html"); + for (int c = 0; (c = in.read()) != -1;) { + out.write((char)c); + } + } + + + public void populate(EntityManager em, ServletContext ctx) { + Long count = em.createQuery("select count(m) from Movie m", Long.class).getSingleResult(); + if (count != null && count.longValue() > 0) { + ctx.log("Found " + count + " Movie records in the database"); + return; + } + ctx.log("Populating Movie database with " + MOVIE_DATA.length + " movies and " + ACTOR_DATA.length + " actors"); + + List<Actor> actors = createActors(); + List<Movie> movies = createMovies(); + linkActorAndMovie(actors, movies); + makePartner(actors); + em.getTransaction().begin(); + for (Actor a : actors) { + em.persist(a); + } + for (Movie m : movies) { + em.persist(m); + } + em.getTransaction().commit(); + } + + List<Actor> createActors() { + List<Actor> actors = new ArrayList<Actor>(); + for (Object[] a : ACTOR_DATA) { + Actor actor = new Actor((String)a[0], (String)a[1], (String)a[2], (Actor.Gender)a[3], (Date)a[4]); + actors.add(actor); + } + return actors; + } + + List<Movie> createMovies() { + List<Movie> movies = new ArrayList<Movie>(); + for (Object[] m : MOVIE_DATA) { + Movie movie = new Movie((String)m[0], (Integer)m[1]); + movies.add(movie); + } + return movies; + } + + void linkActorAndMovie(List<Actor> actors, List<Movie> movies) { + for (Actor a : actors) { + int n = rng.nextInt(movies.size()); + for (int i = 0; i < n; i++) { + Movie m = random(movies); + a.addMovie(m); + m.addActor(a); + } + } + } + + void makePartner(List<Actor> actors) { + for (Actor p : actors) { + if (p.getPartner() != null) + continue; + Actor f = random(actors); + if (f.getPartner() == null && p.getGender() != f.getGender()) { + p.setPartner(f); + f.setPartner(p); + } + } + } + + /** + * Select a random element from the given list. + */ + private <T> T random(List<T> list) { + return list.get(rng.nextInt(list.size())); + } + + private static Random rng = new Random(); + + public static Object[][] MOVIE_DATA = { + new Object[] {"One flew over the cuckoo's nest", 1980}, + new Object[] {"Everyone Says I Love You", 1980}, + new Object[] {"Where Eagles Dare", 1980}, + new Object[] {"Fight Club", 1980}, + new Object[] {"Horse Whisperer", 1980}, + }; + + @SuppressWarnings("deprecation") + public static Object[][] ACTOR_DATA = { + new Object[] {"m01", "Robert", "Redford", Actor.Gender.Male, new Date(1950, 1, 12)}, + new Object[] {"m02", "Robert", "De Niro", Actor.Gender.Male, new Date(1940, 4, 14)}, + new Object[] {"m03", "Al", "Pacino", Actor.Gender.Male, new Date(1950, 1, 12)}, + new Object[] {"m04", "Brad", "Pitt", Actor.Gender.Male, new Date(1940, 4, 14)}, + new Object[] {"m05", "Clint", "Eastwood",Actor.Gender.Male, new Date(1950, 1, 12)}, + + new Object[] {"f01", "Meryl", "Streep", Actor.Gender.Female, new Date(1940, 4, 14)}, + new Object[] {"f02", "Anglina", "Jolie", Actor.Gender.Female, new Date(1950, 1, 12)}, + new Object[] {"f03", "Goldie", "Hawn", Actor.Gender.Female, new Date(1940, 4, 14)}, + new Object[] {"f04", "Diane", "Keaton", Actor.Gender.Female, new Date(1950, 1, 12)}, + new Object[] {"f05", "Catherine", "Hepburn", Actor.Gender.Female, new Date(1940, 4, 14)}, + }; + + +} Propchange: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/META-INF/persistence.xml URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/META-INF/persistence.xml?rev=1037116&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/META-INF/persistence.xml (added) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/META-INF/persistence.xml Sat Nov 20 05:51:41 2010 @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + version="1.0"> + + <persistence-unit name="jestdemo"> + + <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> + + <class>demo.Movie</class> + <class>demo.Actor</class> + + <properties> + <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/> + <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost/jest"/> + <property name="javax.persistence.jdbc.user" value="root"/> + <property name="javax.persistence.jdbc.password" value=""/> + <property name="openjpa.ConnectionFactoryProperties" value="PrintParameters=true"/> + <property name="openjpa.Log" value="Tool=Trace,SQL=WARN,Remote=TRACE"/> + <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/> + </properties> + </persistence-unit> + + +</persistence> + Propchange: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/META-INF/persistence.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/WEB-INF/web.xml?rev=1037116&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/WEB-INF/web.xml (added) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/WEB-INF/web.xml Sat Nov 20 05:51:41 2010 @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +<web-app version="2.4" + xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> + <display-name>Demo Application with JEST Servlet</display-name> + <description> + An example of deploying a simple web application with JEST servlet. + This descriptor specifies the Demo Application servlet as well as JEST servlet. + </description> + + <servlet> + <description> + This is the Demo Application Servlet. + The servlet is mapped to URL pattern /app/* so this servlet can be accessed as + http://host:port/demo/app/ + where "demo" is the name of the deployed web application. + + Assume that the Demo Application Servlet is using a persistence unit named + 'jestdemo'. The JEST Servlet will require the persistence unit name to + browse the Demo Application. + </description> + + <servlet-name>demo</servlet-name> + <servlet-class>demo.SimpleApp</servlet-class> + </servlet> + <servlet-mapping> + <servlet-name>demo</servlet-name> + <url-pattern>/app/*</url-pattern> + </servlet-mapping> + + <!-- Deployment descriptor for JESTServlet. --> + <servlet> + <description> + This is the JEST servlet. + JEST Servlet needs to know the name of the persistence unit used by the Demo Application. + The unit name is specified by mandatory "persistence.unit" parameter during initialization. + + The JEST servlet is mapped to URL pattern /jest/* in servlet mapping section. So to access + JEST servlet, use the following URI + http://host:port/demo/jest/ + Notice the trailing forward slash character is significant. + </description> + <servlet-name>jest</servlet-name> + <servlet-class>org.apache.openjpa.persistence.jest.JESTServlet</servlet-class> + <init-param> + <param-name>persistence.unit</param-name> + <param-value>jestdemo</param-value> + </init-param> + </servlet> + <servlet-mapping> + <servlet-name>jest</servlet-name> + <url-pattern>/jest/*</url-pattern> + </servlet-mapping> + +</web-app> Propchange: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html?rev=1037116&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html (added) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html Sat Nov 20 05:51:41 2010 @@ -0,0 +1,16 @@ +<html> +<body> + <h1>Welcome to a do-nothing application</h1> + <br> + This do-nothing application initializes a JPA persistence unit with OpenJPA as provider and its <em>only</em> + response + is the page you are reading now. + <br> + This application is used to demonstrate JEST. + <br> + This application is deployed along with a JEST Servlet within the same module scope. + As long as JEST servlet knows the name of the persistence unit of this do-nothing + application, JEST Servlet can browse the domain model, execute query or find in + a generic fashion. +</body> +</html> \ No newline at end of file Propchange: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8115-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 20 08:31:18 2010 Return-Path: <commits-return-8115-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 76481 invoked from network); 20 Nov 2010 08:31:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 08:31:18 -0000 Received: (qmail 322 invoked by uid 500); 20 Nov 2010 08:31:50 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 244 invoked by uid 500); 20 Nov 2010 08:31:50 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 227 invoked by uid 99); 20 Nov 2010 08:31:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 08:31:48 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 08:31:48 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id F194BC0164 for <commits@openjpa.apache.org>; Sat, 20 Nov 2010 08:31:27 +0000 (UTC) Date: Sat, 20 Nov 2010 08:31:27 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1635014625.6091290241887956.JavaMail.hudson@aegis> In-Reply-To: <1985857494.4941290156052607.JavaMail.hudson@aegis> References: <1985857494.4941290156052607.JavaMail.hudson@aegis> Subject: Hudson build is back to stable : OpenJPA-trunk-deploy #57 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/57/changes> From commits-return-8114-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 20 08:31:18 2010 Return-Path: <commits-return-8114-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 76469 invoked from network); 20 Nov 2010 08:31:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 08:31:18 -0000 Received: (qmail 305 invoked by uid 500); 20 Nov 2010 08:31:50 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 241 invoked by uid 500); 20 Nov 2010 08:31:49 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 230 invoked by uid 99); 20 Nov 2010 08:31:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 08:31:49 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 08:31:47 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 2F930C0162 for <commits@openjpa.apache.org>; Sat, 20 Nov 2010 08:31:26 +0000 (UTC) Date: Sat, 20 Nov 2010 08:31:26 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <807297769.6081290241886164.JavaMail.hudson@aegis> In-Reply-To: <1176817403.4931290156039415.JavaMail.hudson@aegis> References: <1176817403.4931290156039415.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJPA-t?= =?UTF-8?Q?runk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#57?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/57/changes> From commits-return-8116-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 20 15:18:49 2010 Return-Path: <commits-return-8116-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 30834 invoked from network); 20 Nov 2010 15:18:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 15:18:49 -0000 Received: (qmail 1744 invoked by uid 500); 20 Nov 2010 15:19:21 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 1687 invoked by uid 500); 20 Nov 2010 15:19:20 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 1680 invoked by uid 99); 20 Nov 2010 15:19:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 15:19:20 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 15:19:17 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 53BBA2388ABC; Sat, 20 Nov 2010 15:18:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037237 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Date: Sat, 20 Nov 2010 15:18:02 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101120151802.53BBA2388ABC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Sat Nov 20 15:18:01 2010 New Revision: 1037237 URL: http://svn.apache.org/viewvc?rev=1037237&view=rev Log: OPENJPA-1885: refactor persistAll in BrokerImpl. Submitted By: Guy Korland Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java?rev=1037237&r1=1037236&r2=1037237&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Sat Nov 20 15:18:01 2010 @@ -2460,12 +2460,17 @@ public class BrokerImpl try { assertWriteOperation(); - for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { + for (Object obj : objs) { try { - persist(itr.next(), explicit, call); + if(obj == null) + continue; + persist0(obj, null, explicit, call); } catch (UserException ue) { exceps = add(exceps, ue); } + catch (RuntimeException re) { + throw new GeneralException(re); + } } } finally { endOperation(); @@ -2532,86 +2537,7 @@ public class BrokerImpl try { assertWriteOperation(); - StateManagerImpl sm = getStateManagerImpl(obj, true); - if (!_operating.add(obj)) - return sm; - - int action = processArgument(OpCallbacks.OP_PERSIST, obj, sm, call); - if (action == OpCallbacks.ACT_NONE) - return sm; - - // ACT_CASCADE - if ((action & OpCallbacks.ACT_RUN) == 0) { - if (sm != null) - sm.cascadePersist(call); - else - cascadeTransient(OpCallbacks.OP_PERSIST, obj, call, - "persist"); - return sm; - } - - // ACT_RUN - PersistenceCapable pc; - if (sm != null) { - if (sm.isDetached()) - throw new ObjectExistsException(_loc.get - ("persist-detached", Exceptions.toString(obj))). - setFailedObject(obj); - - if (!sm.isEmbedded()) { - sm.persist(); - _cache.persist(sm); - if ((action & OpCallbacks.ACT_CASCADE) != 0) - sm.cascadePersist(call); - return sm; - } - - // an embedded field; notify the owner that the value has - // changed by becoming independently persistent - sm.getOwner().dirty(sm.getOwnerIndex()); - _cache.persist(sm); - pc = sm.getPersistenceCapable(); - } else { - pc = assertPersistenceCapable(obj); - if (pc.pcIsDetached() == Boolean.TRUE) - throw new ObjectExistsException(_loc.get - ("persist-detached", Exceptions.toString(obj))). - setFailedObject(obj); - } - - ClassMetaData meta = _repo.getMetaData(obj.getClass(), _loader, true); - fireLifecycleEvent(obj, null, meta, LifecycleEvent.BEFORE_PERSIST); - - // create id for instance - if (id == null) { - int idType = meta.getIdentityType(); - if (idType == ClassMetaData.ID_APPLICATION) - id = ApplicationIds.create(pc, meta); - else if (idType == ClassMetaData.ID_UNKNOWN) - throw new UserException(_loc.get("meta-unknownid", meta)); - else - id = StateManagerId.newInstance(this); - } - - // make sure we don't already have the instance cached - checkForDuplicateId(id, obj, meta); - - // if had embedded sm, null it - if (sm != null) - pc.pcReplaceStateManager(null); - - // create new sm - sm = newStateManagerImpl(id, meta); - if ((_flags & FLAG_ACTIVE) != 0) { - if (explicit) - sm.initialize(pc, PCState.PNEW); - else - sm.initialize(pc, PCState.PNEWPROVISIONAL); - } else - sm.initialize(pc, PCState.PNONTRANSNEW); - if ((action & OpCallbacks.ACT_CASCADE) != 0) - sm.cascadePersist(call); - return sm; + return persist0(obj, id, explicit, call); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { @@ -2621,6 +2547,90 @@ public class BrokerImpl } } + private OpenJPAStateManager persist0(Object obj, Object id, + boolean explicit, OpCallbacks call) { + StateManagerImpl sm = getStateManagerImpl(obj, true); + if (!_operating.add(obj)) + return sm; + + int action = processArgument(OpCallbacks.OP_PERSIST, obj, sm, call); + if (action == OpCallbacks.ACT_NONE) + return sm; + + // ACT_CASCADE + if ((action & OpCallbacks.ACT_RUN) == 0) { + if (sm != null) + sm.cascadePersist(call); + else + cascadeTransient(OpCallbacks.OP_PERSIST, obj, call, + "persist"); + return sm; + } + + // ACT_RUN + PersistenceCapable pc; + if (sm != null) { + if (sm.isDetached()) + throw new ObjectExistsException(_loc.get + ("persist-detached", Exceptions.toString(obj))). + setFailedObject(obj); + + if (!sm.isEmbedded()) { + sm.persist(); + _cache.persist(sm); + if ((action & OpCallbacks.ACT_CASCADE) != 0) + sm.cascadePersist(call); + return sm; + } + + // an embedded field; notify the owner that the value has + // changed by becoming independently persistent + sm.getOwner().dirty(sm.getOwnerIndex()); + _cache.persist(sm); + pc = sm.getPersistenceCapable(); + } else { + pc = assertPersistenceCapable(obj); + if (pc.pcIsDetached() == Boolean.TRUE) + throw new ObjectExistsException(_loc.get + ("persist-detached", Exceptions.toString(obj))). + setFailedObject(obj); + } + + ClassMetaData meta = _repo.getMetaData(obj.getClass(), _loader, true); + fireLifecycleEvent(obj, null, meta, LifecycleEvent.BEFORE_PERSIST); + + // create id for instance + if (id == null) { + int idType = meta.getIdentityType(); + if (idType == ClassMetaData.ID_APPLICATION) + id = ApplicationIds.create(pc, meta); + else if (idType == ClassMetaData.ID_UNKNOWN) + throw new UserException(_loc.get("meta-unknownid", meta)); + else + id = StateManagerId.newInstance(this); + } + + // make sure we don't already have the instance cached + checkForDuplicateId(id, obj, meta); + + // if had embedded sm, null it + if (sm != null) + pc.pcReplaceStateManager(null); + + // create new sm + sm = newStateManagerImpl(id, meta); + if ((_flags & FLAG_ACTIVE) != 0) { + if (explicit) + sm.initialize(pc, PCState.PNEW); + else + sm.initialize(pc, PCState.PNEWPROVISIONAL); + } else + sm.initialize(pc, PCState.PNONTRANSNEW); + if ((action & OpCallbacks.ACT_CASCADE) != 0) + sm.cascadePersist(call); + return sm; + } + /** * Temporarily manage the given instance in order to cascade the given * operation through it. From commits-return-8117-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 20 17:01:10 2010 Return-Path: <commits-return-8117-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 66926 invoked from network); 20 Nov 2010 17:01:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 17:01:10 -0000 Received: (qmail 63731 invoked by uid 500); 20 Nov 2010 17:01:41 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 63674 invoked by uid 500); 20 Nov 2010 17:01:41 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 63667 invoked by uid 99); 20 Nov 2010 17:01:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 17:01:40 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 17:01:40 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 8E7E2C0161 for <commits@openjpa.apache.org>; Sat, 20 Nov 2010 17:01:20 +0000 (UTC) Date: Sat, 20 Nov 2010 17:01:20 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1545709258.6451290272480555.JavaMail.hudson@aegis> In-Reply-To: <33178927.5571290206867213.JavaMail.hudson@aegis> References: <33178927.5571290206867213.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJP?= =?UTF-8?Q?A-trunk_=C2=BB_OpenJPA_Persistence_JDBC_#337?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/337/> From commits-return-8118-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 20 17:01:14 2010 Return-Path: <commits-return-8118-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 66956 invoked from network); 20 Nov 2010 17:01:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 17:01:14 -0000 Received: (qmail 63801 invoked by uid 500); 20 Nov 2010 17:01:45 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 63746 invoked by uid 500); 20 Nov 2010 17:01:45 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 63739 invoked by uid 99); 20 Nov 2010 17:01:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 17:01:45 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 17:01:43 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 6DF54C0162 for <commits@openjpa.apache.org>; Sat, 20 Nov 2010 17:01:23 +0000 (UTC) Date: Sat, 20 Nov 2010 17:01:23 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <103194128.6461290272483449.JavaMail.hudson@aegis> In-Reply-To: <1085641538.5581290206869120.JavaMail.hudson@aegis> References: <1085641538.5581290206869120.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #337 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/337/changes> Changes: [mikedd] OPENJPA-1885: refactor persistAll in BrokerImpl. Submitted By: Guy Korland ------------------------------------------ [...truncated 14601 lines...] [echo] running enhancer 385 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@16168fa has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 420 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@16168fa has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 481 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.UserDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@16168fa has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.UserDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.UserDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 514 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.PersistenceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@16168fa has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.PersistenceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.PersistenceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 539 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SingleEMFTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@16168fa has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SingleEMFTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SingleEMFTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 542 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SliceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@16168fa has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SliceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SliceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. [INFO] Executed tasks [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-slice/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.slice.TestQuery 4 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 5 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 38 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 157 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 473 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4304 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12302 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 12497 ordering WARN [main] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 392 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 491 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 231 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 368 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is removed from cache excluded permanently. Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 196 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 291 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 302 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 314 ordering WARN [main] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 327 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 223 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 308 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 209 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 379 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 195 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 271 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 164 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 233 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 158 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 255 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 172 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 640 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 318 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 441 ordering WARN [main] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 471 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 153 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 266 ordering WARN [main] openjpa.Runtime - Query "select c from Car c" is removed from cache excluded permanently. Query "select c from Car c" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 273 ordering WARN [main] openjpa.Runtime - Query "select m from Manufacturer m" is removed from cache excluded permanently. Query "select m from Manufacturer m" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.236 sec Running org.apache.openjpa.slice.TestQueryMultiThreaded 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 21 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 21 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 195 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 299 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 306 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 310 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 316 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 147 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 237 ordering WARN [Thread-7] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 153 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 236 ordering WARN [Thread-12] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 156 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 243 ordering WARN [Thread-17] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 150 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 238 ordering WARN [Thread-22] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 130 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 214 ordering WARN [Thread-28] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 130 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 214 ordering WARN [Thread-32] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 220 ordering WARN [Thread-32] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Build timed out. Aborting Sending e-mails to: commits@openjpa.apache.org Process 1290271786196 is killed. [HUDSON] Recording test results channel stopped [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.reflect.UndeclaredThrowableException at $Proxy2.isArchivingDisabled(Unknown Source) at hudson.maven.MavenBuildProxy$Filter.isArchivingDisabled(MavenBuildProxy.java:222) at hudson.maven.reporters.MavenArtifact.archive(MavenArtifact.java:192) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:107) at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:800) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:317) at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:275) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:750) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:467) at hudson.remoting.Request.call(Request.java:105) at hudson.remoting.Channel.call(Channel.java:630) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) ... 30 more Caused by: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Channel$CloseCommand.execute(Channel.java:764) at hudson.remoting.Channel$ReaderThread.run(Channel.java:963) Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:58) at hudson.remoting.Command.<init>(Command.java:47) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel.close(Channel.java:805) at hudson.slaves.Channels$1.close(Channels.java:91) at hudson.maven.ProcessCache$MavenProcess.discard(ProcessCache.java:145) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:541) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1324) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 74 minutes 41 seconds [INFO] Finished at: Sat Nov 20 17:01:20 UTC 2010 [INFO] Final Memory: 131M/549M [INFO] ------------------------------------------------------------------------ From commits-return-8119-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 21 04:31:49 2010 Return-Path: <commits-return-8119-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 23953 invoked from network); 21 Nov 2010 04:31:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Nov 2010 04:31:49 -0000 Received: (qmail 95259 invoked by uid 500); 21 Nov 2010 04:32:21 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 95206 invoked by uid 500); 21 Nov 2010 04:32:20 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 95191 invoked by uid 99); 21 Nov 2010 04:32:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 04:32:19 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 04:32:12 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6D61C23889E3; Sun, 21 Nov 2010 04:30:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037379 - /openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ Date: Sun, 21 Nov 2010 04:30:55 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101121043055.6D61C23889E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Sun Nov 21 04:30:54 2010 New Revision: 1037379 URL: http://svn.apache.org/viewvc?rev=1037379&view=rev Log: OPENJPA-1851: First draft refactored. Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java - copied, changed from r1036721, openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java (with props) Removed: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTable.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ResourceCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Response.java Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java Sun Nov 21 04:30:54 2010 @@ -19,20 +19,19 @@ package org.apache.openjpa.persistence.jest; +import static java.net.HttpURLConnection.HTTP_BAD_REQUEST; + import java.io.IOException; import java.io.PrintWriter; -import java.net.HttpURLConnection; import java.net.URLDecoder; import java.util.Collection; import java.util.Collections; import java.util.Enumeration; import java.util.HashMap; import java.util.Map; -import java.util.Set; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; - /** * The abstract base class for all commands available to JEST. * @@ -43,14 +42,19 @@ abstract class AbstractCommand implement private static final Collection<String> EMPTY_LIST = Collections.emptySet(); private static final String PATH_SEPARATOR = "/"; private static final char EQUAL = '='; - - private Set<String> _mandatoryArguments = null; - private Set<String> _validArguments = null; - + protected ObjectFormatter _formatter; + protected static PrototypeFactory<ObjectFormatter> _ff = new PrototypeFactory<ObjectFormatter>(); + private Map<String, String> _qualifiers = new HashMap<String, String>(); private Map<String, String> _args = new HashMap<String, String>(); private Map<String, String> _margs = new HashMap<String, String>(); + static { + _ff.register("xml", XMLFormatter.class); + _ff.register("json", JSONObjectFormatter.class); + _ff.register("dojo", DojoFormatter.class); + + } public String getMandatoryArgument(String key) { return get(key, _margs); } @@ -96,16 +100,19 @@ abstract class AbstractCommand implement * <br> * The qualifiers and arguments are immutable after parse. */ - public void parse(HttpServletRequest request) { - String path = request.getServletPath().substring(1); - String[] segments = path.split(PATH_SEPARATOR); - for (int i = 1; i < segments.length; i++) { - String segment = segments[i]; - int idx = segment.indexOf(EQUAL); - if (idx == -1) { - _qualifiers.put(segment, null); - } else { - _qualifiers.put(segment.substring(0, idx), segment.substring(idx+1)); + public void parse(HttpServletRequest request) throws ProcessingException { + String path = request.getPathInfo(); + if (path != null) { + path = path.substring(1); + String[] segments = path.split(PATH_SEPARATOR); + for (int i = 1; i < segments.length; i++) { + String segment = segments[i]; + int idx = segment.indexOf(EQUAL); + if (idx == -1) { + _qualifiers.put(segment, null); + } else { + _qualifiers.put(segment.substring(0, idx), segment.substring(idx+1)); + } } } _qualifiers = Collections.unmodifiableMap(_qualifiers); @@ -157,20 +164,20 @@ abstract class AbstractCommand implement Collection<String> validQualifiers = getValidQualifiers(); for (String key : _qualifiers.keySet()) { if (!validQualifiers.contains(key)) { - throw new ErrorFormatter(_loc.get("parse-invalid-qualifier", getAction(), key, validQualifiers), - HttpURLConnection.HTTP_BAD_REQUEST); + throw new ProcessingException(_loc.get("parse-invalid-qualifier", this, key, validQualifiers), + HTTP_BAD_REQUEST); } } Collection<String> mandatoryArgs = getMandatoryArguments(); for (String key : mandatoryArgs) { if (request.getParameter(key) == null) { - throw new ErrorFormatter(_loc.get("parse-missing-mandatory-argument", getAction(), key, - request.getParameterMap().keySet()), HttpURLConnection.HTTP_BAD_REQUEST); + throw new ProcessingException(_loc.get("parse-missing-mandatory-argument", this, key, + request.getParameterMap().keySet()), HTTP_BAD_REQUEST); } } if (_args.size() < getMinimumArguments()) { - throw new ErrorFormatter(_loc.get("parse-less-argument", getAction(), _args.keySet(), - getMinimumArguments()), HttpURLConnection.HTTP_BAD_REQUEST); + throw new ProcessingException(_loc.get("parse-less-argument", this, _args.keySet(), + getMinimumArguments()), HTTP_BAD_REQUEST); } } @@ -186,6 +193,20 @@ abstract class AbstractCommand implement return map.containsKey(key); } + public ObjectFormatter getObjectFormatter(JPAServletContext ctx) { + if (_formatter == null) { + String format = getQualifier("format"); + if (format == null) { + format = ctx.getRequest().getSession().getServletContext().getInitParameter("response.format"); + if (format == null) + return new XMLFormatter(); + } + _formatter = _ff.newInstance(format); + } + return _formatter; + } + + public void debug(HttpServletRequest request, HttpServletResponse response, JPAServletContext ctx) throws IOException { Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java Sun Nov 21 04:30:54 2010 @@ -22,6 +22,9 @@ package org.apache.openjpa.persistence.j import java.io.IOException; import java.io.PrintWriter; import java.util.Collection; +import java.util.Collections; + +import org.apache.openjpa.lib.util.Localizer; /** * Creates HTML document with Dojo JavaScript. @@ -30,16 +33,14 @@ import java.util.Collection; * */ public class DojoFormatter extends XMLFormatter { + private static final Localizer _loc = Localizer.forPackage(DojoFormatter.class); public static final String MIME_TYPE = "text/html"; - static String DOCTYPE = "<!DOCTYPE html PUBLIC " - + quoted("-//W3C//DTD HTML 4.01//EN") - + quoted("http://www.w3.org/TR/html4/strict.dtd") + ">"; - static String DOJO = quoted("http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"); - static String DOJO_THEME = quoted("http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css"); - static String DOJO_CONFIG = "djConfig=" + quoted("parseOnLoad:true, isDebug:true"); - static String JAVASCRIPT_TYPE = " type=" + quoted("text/javascript") + " "; - static String CSS_TYPE = " type=" + quoted("text/css") + " "; - static String DOJO_INSTANCE = quoted("instances.js"); + static String DOCTYPE = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"" + + " \"http://www.w3.org/TR/html4/strict.dtd\">"; + static String DOJO = _loc.get("dojo-lib").toString(); + static String DOJO_THEME = _loc.get("dojo-theme").toString(); + static String DOJO_CONFIG = _loc.get("dojo-config").toString(); + static String DOJO_INSTANCE = _loc.get("javascript-instances").toString(); @Override public String getMimeType() { @@ -53,48 +54,35 @@ public class DojoFormatter extends XMLFo } @Override - public void encode(Object obj, JPAServletContext ctx) { - PrintWriter writer = writeHeader(ctx); - super.encode(obj, ctx); - close(writer); + public void encode(Object obj, JPAServletContext ctx) throws IOException { + encode(Collections.singleton(obj), ctx); } @Override public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException { - PrintWriter writer = writeHeader(ctx); - super.encode(objs, ctx); - close(writer); - } - - PrintWriter writeHeader(JPAServletContext ctx) { PrintWriter writer = null; try { writer = ctx.getResponse().getWriter(); } catch (Exception e) { - throw new ErrorFormatter(e); + throw new ProcessingException(e); } writer.println(DOCTYPE); - writer.println("<html>"); - writer.println("<head>"); - writer.println("<script src=" + DOJO + JAVASCRIPT_TYPE + DOJO_CONFIG + "></script>"); - writer.println("<script src=" + DOJO_INSTANCE + JAVASCRIPT_TYPE + "></script>"); - writer.println("<link rel=" + quoted("stylesheet") + CSS_TYPE + " href=" + DOJO_THEME + "/>"); - writer.println("</head>"); - writer.println("<body id=" + quoted("main") + " class=" + quoted(" claro ") + ">"); - writer.println("<div id=" + quoted("canvas") + "></div>"); - writer.println("<div id=" + quoted("data") + "style=" + quoted("display: none;") + ">"); - return writer; - } - - void close(PrintWriter writer) { - writer.println("</div>"); - writer.println("</body>"); - writer.println("</html>"); + HTMLElement html = createHTML(); + writer.println(html); + super.encode(objs, ctx); + writer.println(html.end()); } - static String quoted(String s) { - return '"' + s + '"'; - } - + public HTMLElement createHTML() { + HTMLElement html = new HTMLElement("html", true).add( + new HTMLElement("head") + .add(new HTMLElement("script").set("src", DOJO, "type", "text/javascript", "djConfig", DOJO_CONFIG), + new HTMLElement("script").set("src", DOJO_INSTANCE, "type", "text/javascript"), + new HTMLElement("link").set("rel", "stylesheet", "type", "text/css", "href", DOJO_THEME)), + new HTMLElement("body", true).set("class", "claro") + .add(new HTMLElement("div").set("id", "canvas"), + new HTMLElement("div", true).set("id", "data", "style", "display: none;"))); + return html; + } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java Sun Nov 21 04:30:54 2010 @@ -97,12 +97,12 @@ public class DomainCommand extends Abstr return "domain"; } - public void process(JPAServletContext ctx) throws ErrorFormatter { + public void process(JPAServletContext ctx) throws ProcessingException { Document doc = encode(ctx.getPersistenceContext().getMetamodel()); try { _transformer.transform(new DOMSource(doc), new StreamResult(ctx.getResponse().getOutputStream())); } catch (Exception e) { - throw new ErrorFormatter(e); + throw new ProcessingException(e); } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java Sun Nov 21 04:30:54 2010 @@ -19,6 +19,7 @@ package org.apache.openjpa.persistence.jest; +import java.io.IOException; import java.net.HttpURLConnection; import java.util.Arrays; import java.util.Collection; @@ -62,7 +63,7 @@ public class FindCommand extends Abstrac } @Override - public void process(JPAServletContext ctx) throws ErrorFormatter { + public void process(JPAServletContext ctx) throws ProcessingException { EntityManager em = ctx.getPersistenceContext(); String type = getMandatoryArgument("type"); ClassMetaData meta = ctx.resolve(type); @@ -76,11 +77,15 @@ public class FindCommand extends Abstrac Object pc = em.find(meta.getDescribedType(), oid); if (pc != null) { OpenJPAStateManager sm = ctx.toStateManager(pc); - ObjectFormatter formatter = ctx.getObjectFormatter(this); + ObjectFormatter formatter = getObjectFormatter(ctx); ctx.getResponse().setContentType(formatter.getMimeType()); - formatter.encode(sm, ctx); + try { + formatter.encode(sm, ctx); + } catch (IOException e) { + throw new ProcessingException(e); + } } else { - throw new ErrorFormatter(_loc.get("entity-not-found", type, Arrays.toString(pks)), + throw new ProcessingException(_loc.get("entity-not-found", type, Arrays.toString(pks)), HttpURLConnection.HTTP_NOT_FOUND); } } Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java?rev=1037379&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java Sun Nov 21 04:30:54 2010 @@ -0,0 +1,128 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +/** + * An utility to write HTML elements. + * + * @author Pinaki Poddar + * + */ +public class HTMLElement { + private final String tag; + private boolean open; + private final Map<String, String> _attrs = new LinkedHashMap<String, String>(); + private List<HTMLElement> _children; + private String body; + private static char START = '<'; + private static char END = '>'; + private static char SPACE = ' '; + private static char SLASH = '/'; + private static char EQUAL = '='; + private static char QUOTE = '"'; + private static String NEWLINE = "\r\n"; + + public static HTMLElement JEST_CSS = new HTMLElement("link").set("rel", "stylesheet", "type", "text/css", + "href", "jest.css"); + + public HTMLElement(String tag) { + this(tag, false); + } + + public HTMLElement(String tag, boolean open) { + this.tag = tag; + this.open = open; + } + + public HTMLElement set(String... pairs) { + if (pairs == null) + return this; + if (pairs.length%2 != 0) + throw new IllegalArgumentException(Arrays.toString(pairs) + " must have even number of String."); + for (int i = 0; i < pairs.length; i += 2) { + if (pairs[i] != null && pairs[i+1] != null) + _attrs.put(pairs[i], pairs[i+1]); + } + return this; + } + + public HTMLElement setBody(String b) { + body = b; + return this; + } + + public HTMLElement add(HTMLElement... children) { + if (_children == null) { + _children = new ArrayList<HTMLElement>(); + } + for (HTMLElement child : children) + _children.add(child); + return this; + } + + public String end() { + StringBuilder buf = new StringBuilder(); + if (_children != null) { + for (HTMLElement child : _children) + buf.append(child.end()); + } + if (open) { + buf.append(START).append(SLASH).append(tag).append(END).append(NEWLINE); + } + return buf.toString(); + } + + public String toString() { + StringBuilder buf = new StringBuilder(); + buf.append(START).append(tag); + if (_attrs.isEmpty()) { + buf.append(END); + } else { + Iterator<Map.Entry<String, String>> entries = _attrs.entrySet().iterator(); + for (; entries.hasNext(); ) { + Map.Entry<String, String> entry = entries.next(); + buf.append(SPACE).append(entry.getKey()).append(EQUAL) + .append(QUOTE).append(entry.getValue()).append(QUOTE); + } + buf.append(END); + } + if (body != null) + buf.append(NEWLINE).append(body).append(NEWLINE); + + if (_children != null){ + buf.append(NEWLINE); + for (HTMLElement child : _children) { + buf.append(child.toString()); + } + } + if (!open) { + buf.append(START).append(SLASH).append(tag).append(END).append(NEWLINE); + } + return buf.toString(); + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java Sun Nov 21 04:30:54 2010 @@ -41,7 +41,7 @@ import org.apache.openjpa.lib.util.Local * query string as its argument. * <p> * A concrete command instance is an outcome of parsing a {@link HttpServletRequest request}. - * The {@link HttpServletRequest#getServletPath() servlet path} segments are parsed for qualifiers. + * The {@link HttpServletRequest#getPathInfo() path} segments are parsed for qualifiers. * The {@link HttpServletRequest#getQueryString() query string} is parsed for the arguments. * <p> * A JEST command often attaches special semantics to a standard URI syntax. For example, all JEST @@ -60,7 +60,6 @@ import org.apache.openjpa.lib.util.Local public interface JESTCommand { public static final Localizer _loc = Localizer.forPackage(JESTCommand.class); - public String getAction(); /** * Parse the given request to populate qualifiers and parameters of this command. * A command can interpret and consume certain path segments or parameters of the @@ -70,7 +69,7 @@ public interface JESTCommand { * * @param request a HTTP request */ - public void parse(HttpServletRequest request); + public void parse(HttpServletRequest request) throws ProcessingException; /** * Accessors for this command's arguments and qualifiers. @@ -87,8 +86,8 @@ public interface JESTCommand { /** * Process the given request and write the output on to the given response in the given context. * @param ctx the operational context. - * @throws ErrorFormatter TODO + * @throws ProcessingException * */ - public void process(JPAServletContext ctx) throws ErrorFormatter, IOException; + public void process(JPAServletContext ctx) throws ProcessingException, IOException; } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java Sun Nov 21 04:30:54 2010 @@ -19,11 +19,17 @@ package org.apache.openjpa.persistence.jest; +import static java.net.HttpURLConnection.HTTP_NOT_FOUND; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; import java.util.ArrayList; +import java.util.Calendar; import java.util.Collection; +import java.util.Date; import java.util.List; -import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -31,107 +37,181 @@ import org.apache.openjpa.conf.OpenJPACo import org.apache.openjpa.kernel.OpenJPAStateManager; import org.apache.openjpa.kernel.StoreContext; import org.apache.openjpa.lib.log.Log; +import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.meta.ClassMetaData; import org.apache.openjpa.meta.MetaDataRepository; import org.apache.openjpa.persistence.JPAFacadeHelper; import org.apache.openjpa.persistence.OpenJPAEntityManager; +import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; /** - * An operational context combines a {@link ServletContext servlet context} and a {@link JPAServletContext persistence - * context}. - * + * An operational context combines a {@link OpenJPAEntityManager persistence context} and a HTTP execution + * context expressed as a {@link HttpServletRequest request} and {@link HttpServletResponse response}. + * <br> + * This context {@link #getAction(String) parses} the HTTP request URL to identity the command and then + * {@link #execute() executes} it. + * * @author Pinaki Poddar * */ public class JESTContext implements JPAServletContext { private final String _unit; - private final OpenJPAEntityManager _em; + private final OpenJPAEntityManagerFactory _emf; + private OpenJPAEntityManager _em; private final HttpServletRequest _request; private final HttpServletResponse _response; protected MetaDataRepository _repos; - protected ObjectFormatter _formatter; protected Log _log; - protected static PrototypeFactory<ObjectFormatter> _ff = new PrototypeFactory<ObjectFormatter>(); protected static PrototypeFactory<JESTCommand> _cf = new PrototypeFactory<JESTCommand>(); - + public static final Localizer _loc = Localizer.forPackage(JESTContext.class); + private static final String CONTEXT_ROOT = "/"; + private static final String ROOT_RESOURCE = "index.html"; + private static final String ONE_YEAR_FROM_NOW; + + /** + * Registers known commands in a {@link PrototypeFactory registry}. + * + */ static { _cf.register("find", FindCommand.class); _cf.register("query", QueryCommand.class); _cf.register("domain", DomainCommand.class); _cf.register("properties", PropertiesCommand.class); - _cf.setDefault(ResourceCommand.class); - - _ff.register("xml", XMLFormatter.class); - _ff.register("json", JSONObjectFormatter.class); + Calendar now = Calendar.getInstance(); + now.add(Calendar.YEAR, 1); + ONE_YEAR_FROM_NOW = new Date(now.getTimeInMillis()).toString(); } - public JESTContext(String unit, OpenJPAEntityManager em, HttpServletRequest request, HttpServletResponse response) { + public JESTContext(String unit, OpenJPAEntityManagerFactory emf, HttpServletRequest request, + HttpServletResponse response) { _unit = unit; - _em = em; + _emf = emf; _request = request; _response = response; - OpenJPAConfiguration conf = _em.getConfiguration(); + OpenJPAConfiguration conf = _emf.getConfiguration(); _log = conf.getLog("JEST"); _repos = conf.getMetaDataRepositoryInstance(); } + /** + * Gets the name of the persistence unit. + */ public String getPersistenceUnitName() { return _unit; } + /** + * Gets the persistence context. The persistence context is lazily constructed because all commands + * may not need it. + */ public OpenJPAEntityManager getPersistenceContext() { + if (_em == null) { + _em = _emf.createEntityManager(); + } return _em; } + /** + * Gets the request. + */ public HttpServletRequest getRequest() { return _request; } + /** + * Gets the response. + */ public HttpServletResponse getResponse() { return _response; } - public JESTCommand getCommand() { + /** + * Executes the request. + * <br> + * Execution starts with parsing the {@link HttpServletRequest#getPathInfo() request path}. + * The {@linkplain #getAction(String) first path segment} is interpreted as action key, and + * if a action with the given key is registered then the control is delegated to the command. + * The command parses the entire {@link HttpServletRequest request} for requisite qualifiers and + * arguments and if the parse is successful then the command is + * {@linkplain JESTCommand#process(JPAServletContext) executed} in this context. + * <br> + * If path is null, or no command is registered for the action or the command can not parse + * the request, then a last ditch attempt is made to {@linkplain #findResource(String) find} a resource. + * This fallback lookup is important because the response can contain hyperlinks to stylesheets or + * scripts. The browser will resolve such hyperlinks relative to the original response. + * <br> + * For example, let the original request URL be:<br> + * <code>http://host:port/demo/jest/find?type=Actor&Robert</code> + * <br> + * The response to this request is a HTML page that contained a hyperlink to <code>jest.css</code> stylesheet + * in its <head> section.<br> + * <code><link ref="jest.css" .....></code> + * <br> + * The browser will resolve the hyperlink by sending back another request as<br> + * <code>http://host:port/demo/jest/find/jest.css</code> + * <br> + * + * @throws Exception + */ + public void execute() throws Exception { debug(_request); String path = _request.getPathInfo(); - String action = "/"; - if (path != null) { - int idx = path.substring(1).indexOf('/'); // non-null path always starts with / - action = idx == -1 ? path.substring(1) : path.substring(1, idx); + if (path == null || CONTEXT_ROOT.equals(path)) { + findResource(ROOT_RESOURCE); + return; } - System.err.println("Action = [" + action + "]"); + String action = getAction(path); + log("Action = [" + action + "]"); JESTCommand command = _cf.newInstance(action); - command.parse(_request); - - return command; - } - - public ObjectFormatter getObjectFormatter(JESTCommand command) { - if (_formatter == null) { - String format = command.getQualifier("format"); - if (format == null) { - format = _request.getSession().getServletContext().getInitParameter("response.format"); - if (format == null) - return new XMLFormatter(); + if (command == null) { + findResource(path.substring(1)); + return; + } + try { + command.parse(_request); + command.process(this); + } catch (Exception e) { + try { + findResource(path.substring(action.length()+1)); + } catch (ProcessingException e2) { + throw e; } - _formatter = _ff.newInstance(format); } - return _formatter; } + /** + * Gets the action from the given path. + * + * @param path a string + * @return if null, returns context root i.e. <code>'/'</code> character. + * Otherwise, if the path starts with context root, then returns the substring before the + * next <code>'/'</code> character or end of the string, whichever is earlier. + * If the path does not start with context root, returns + * the substring before the first <code>'/'</code> character or end of the string, whichever is earlier. + */ + public static String getAction(String path) { + if (path == null) + return CONTEXT_ROOT; + if (path.startsWith(CONTEXT_ROOT)) + path = path.substring(1); + int idx = path.indexOf(CONTEXT_ROOT); + return idx == -1 ? path : path.substring(0, idx); + } + + public ClassMetaData resolve(String alias) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); return _repos.getMetaData(alias, loader, true); } public OpenJPAStateManager toStateManager(Object obj) { - StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(getPersistenceContext())); return broker.getStateManager(obj); } public List<OpenJPAStateManager> toStateManager(Collection<?> objects) { - StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(getPersistenceContext())); List<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); for (Object o : objects) { sms.add(broker.getStateManager(o)); @@ -139,17 +219,75 @@ public class JESTContext implements JPAS return sms; } - public Log getLog() { - return _log; + /** + * A resource is always looked up with respect to this class. + * + * @param rsrc + * @throws ProcessingException + */ + void findResource(String rsrc) throws ProcessingException { + _response.setHeader("Cache-Control", "public"); + _response.setHeader("Expires", ONE_YEAR_FROM_NOW); + log("findResource [" + rsrc + "]"); + InputStream in = getClass().getResourceAsStream(rsrc); + if (in == null) { // try again as a relative path + if (rsrc.startsWith(CONTEXT_ROOT)) { + log("findResource agian [" + rsrc.substring(1) + "]"); + in = getClass().getResourceAsStream(rsrc.substring(1)); + if (in == null) { + log("findResource could not find [" + rsrc + "]"); + throw new ProcessingException(_loc.get("resource-not-found", rsrc), HTTP_NOT_FOUND); + } + } + } + try { + String mimeType = _request.getSession().getServletContext().getMimeType(rsrc); + _response.setContentType(mimeType); + OutputStream out = _response.getOutputStream(); + if (mimeType.startsWith("image/")) { + byte[] b = new byte[1024]; + int i = 0; + for (int l = 0; (l = in.read(b)) != -1;) { + out.write(b, 0, l); + i += l; + } + _response.setContentLength(i); + } else { + for (int c = 0; (c = in.read()) != -1;) { + out.write((char)c); + } + } + } catch (IOException e) { + throw new ProcessingException(e, _loc.get("resource-not-found", rsrc), HTTP_NOT_FOUND); + } + } + + + private void log(String s) { + log((short)-1, s); + } + + public void log(short level, String message) { + switch (level) { + case Log.INFO: _log.info(message); break; + case Log.ERROR: _log.fatal(message); break; + case Log.FATAL: _log.fatal(message); break; + case Log.TRACE: _log.trace(message); break; + case Log.WARN: _log.warn(message); break; + default: _request.getSession().getServletContext().log(message); + + break; + } } private void debug(HttpServletRequest request) { - System.err.println("-----------------------------------------------------------"); - System.err.println("Request URL = [" + request.getRequestURL() + "]"); - System.err.println("Request URI = [" + request.getRequestURI() + "]"); - System.err.println("Servlet Path = [" + request.getServletPath() + "]"); - System.err.println("Context Path = [" + request.getContextPath() + "]"); - System.err.println("Path Info = [" + request.getPathInfo() + "]"); - System.err.println("Path Translated = [" + request.getPathTranslated() + "]"); + log("-----------------------------------------------------------"); + log("Request URL = [" + request.getRequestURL() + "]"); + log("Request URI = [" + request.getRequestURI() + "]"); + log("Servlet Path = [" + request.getServletPath() + "]"); + log("Context Path = [" + request.getContextPath() + "]"); + log("Path Info = [" + request.getPathInfo() + "]"); + log("Path Translated = [" + request.getPathTranslated() + "]"); } + } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java Sun Nov 21 04:30:54 2010 @@ -29,6 +29,7 @@ import javax.servlet.http.HttpServletRes import org.apache.openjpa.kernel.AbstractBrokerFactory; import org.apache.openjpa.kernel.BrokerFactory; +import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.persistence.JPAFacadeHelper; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; @@ -54,16 +55,19 @@ import org.apache.openjpa.persistence.Op public class JESTServlet extends HttpServlet { private String _unit; private OpenJPAEntityManagerFactory _emf; + private static Localizer _loc = Localizer.forPackage(JESTServlet.class); @Override public void init(ServletConfig config) throws ServletException { super.init(config); _unit = config.getInitParameter("persistence.unit"); if (_unit == null) { - _unit = getServletName(); - } - System.err.println("JEST Servlet configured for browsing persistence unit [" + _unit + "]"); - findPersistenceUnit(); + throw new ServletException(_loc.get("no-persistence-unit-param").toString()); + } else if (findPersistenceUnit()){ + config.getServletContext().log(_loc.get("servlet-init", _unit).toString()); + } else { + config.getServletContext().log(_loc.get("servlet-not-init", _unit).toString()); + } } /** @@ -72,39 +76,33 @@ public class JESTServlet extends HttpSer */ @Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - OpenJPAEntityManagerFactory emf = findPersistenceUnit(); - if (emf == null) { - handleError(new ServletException(_unit + " not found"), response); - return; - } - try { - JPAServletContext ctx = new JESTContext(_unit, emf.createEntityManager(), request, response); - JESTCommand command = ctx.getCommand(); - command.process(ctx); - } catch (Exception e) { - handleError(e, response); - } + if (findPersistenceUnit()) { + try { + JESTContext ctx = new JESTContext(_unit, _emf, request, response); + ctx.execute(); + } catch (Exception e) { + handleError(e, response); + } + } else { + handleError(new RuntimeException(_loc.get("no-persistence-unit", _unit).toString()), response); + } } - protected OpenJPAEntityManagerFactory findPersistenceUnit() throws ServletException { + protected boolean findPersistenceUnit() throws ServletException { if (_emf == null) { - System.err.println(this + " looking for pooled unit [" + _unit + "]"); BrokerFactory bf = AbstractBrokerFactory.getPooledFactoryForKey(_unit); if (bf != null) { - System.err.println(this + " lookig for user object [" + JPAFacadeHelper.EMF_KEY + "]"); _emf = (OpenJPAEntityManagerFactory)bf.getUserObject(JPAFacadeHelper.EMF_KEY); - } else { - System.err.println(this + " can not find persistence unit [" + _unit + "]"); } } - return _emf; + return _emf != null; } protected void handleError(Throwable t, HttpServletResponse response) throws IOException { - if (t instanceof ErrorFormatter) { - ((ErrorFormatter)t).printStackTrace(response); + if (t instanceof ProcessingException) { + ((ProcessingException)t).printStackTrace(response); } else { - new ErrorFormatter(t).printStackTrace(response); + new ProcessingException(t).printStackTrace(response); } } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java Sun Nov 21 04:30:54 2010 @@ -27,6 +27,7 @@ import javax.servlet.http.HttpServletRes import org.apache.openjpa.kernel.OpenJPAStateManager; import org.apache.openjpa.lib.log.Log; +import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.meta.ClassMetaData; import org.apache.openjpa.persistence.OpenJPAEntityManager; @@ -46,7 +47,6 @@ public interface JPAServletContext { public OpenJPAEntityManager getPersistenceContext(); public HttpServletRequest getRequest(); public HttpServletResponse getResponse(); - public JESTCommand getCommand(); /** * Resolve the given alias to meta-data of the persistent type. @@ -59,9 +59,9 @@ public interface JPAServletContext { */ public ClassMetaData resolve(String alias); - public ObjectFormatter getObjectFormatter(JESTCommand command); +// public ObjectFormatter getObjectFormatter(JESTCommand command); public OpenJPAStateManager toStateManager(Object obj); public Collection<OpenJPAStateManager> toStateManager(Collection<?> objs); - public Log getLog(); + public void log(short level, String message); } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java Sun Nov 21 04:30:54 2010 @@ -71,7 +71,7 @@ public class JSONObjectFormatter impleme PrintWriter writer = ctx.getResponse().getWriter(); writer.println(result.toString()); } catch (Exception e) { - throw new ErrorFormatter(e); + throw new ProcessingException(e); } } else { throw new RuntimeException(this + " does not know how to encode " + obj); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java Sun Nov 21 04:30:54 2010 @@ -22,9 +22,7 @@ package org.apache.openjpa.persistence.j import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; -import java.util.HashMap; import java.util.List; -import java.util.Map; import javax.persistence.metamodel.Attribute; import javax.persistence.metamodel.ManagedType; @@ -32,13 +30,46 @@ import javax.persistence.metamodel.Metam import javax.persistence.metamodel.SingularAttribute; import org.apache.openjpa.meta.ClassMetaData; -import org.apache.openjpa.persistence.meta.MetamodelImpl; +import org.apache.openjpa.meta.JavaTypes; +import org.apache.openjpa.persistence.meta.Members; /** * @author Pinaki Poddar * */ public class MetamodelHelper { + public static final String ELEMENT_NULL_REF = "null"; + public static final String ELEMENT_ROOT = "instances"; + public static final String ELEMENT_INSTANCE = "instance"; + public static final String ELEMENT_REF = "ref"; + public static final String ELEMENT_MEMBER = "member"; + public static final String ELEMENT_ENTRY = "entry"; + public static final String ELEMENT_ENTRY_KEY = "key"; + public static final String ELEMENT_ENTRY_VALUE = "value"; + + public static final String ATTR_TYPE = "type"; + public static final String ATTR_ID = "id"; + public static final String ATTR_NAME = "name"; + public static final String ATTR_NULL = "null"; + public static final String ATTR_MEMBER_TYPE = "member-type"; + public static final String ATTR_KEY_TYPE = "key-type"; + public static final String ATTR_VALUE_TYPE = "value-type"; + public static final char UNDERSCORE = '_'; + public static final char DASH = '-'; + + /** + * Attribute Category makes a finer distinction over PersistentAttributeType declared in + * {@link Attribute.PersistentAttributeType} such as id, version, lob or enum. + * <br> + * <b>Important</b>: The name of the enumerated elements is important because + * a) some of these names are same as in Attribute.PersistentAttributeType enumeration + * b) names are used by XML serialization with underscores replaced by dash and decapitalized + * + */ + public static enum AttributeCategory { + ID, VERSION, BASIC, ENUM, EMBEDDED, LOB, + ONE_TO_ONE, MANY_TO_ONE, ONE_TO_MANY, ELEMENT_COLLECTION, MANY_TO_MANY + } public static List<Attribute<?,?>> getAttributesInOrder(Class<?> cls, Metamodel model) { return getAttributesInOrder(model.managedType(cls)); @@ -70,41 +101,68 @@ public class MetamodelHelper { return ((SingularAttribute<?,?>)a).isVersion(); return false; } + + public static boolean isEnum(Attribute<?,?> a) { + if (a instanceof Members.Member) { + int type = ((Members.Member<?,?>)a).fmd.getDeclaredTypeCode(); + return type == JavaTypes.ENUM; + } + return false; + } + + public static boolean isLob(Attribute<?,?> a) { + if (a instanceof Members.Member) { + int type = ((Members.Member<?,?>)a).fmd.getDeclaredTypeCode(); + return type == JavaTypes.INPUT_READER || type == JavaTypes.INPUT_STREAM; + } + return false; + } - public static Integer getAttributeTypeCode(Attribute<?,?> attr) { + /** + * Gets a ordinal value of enumerated persistent attribute category. + * + * @param attr + * @return + */ + public static AttributeCategory getAttributeCategory(Attribute<?,?> attr) { if (isId(attr)) - return 0; + return AttributeCategory.ID; if (isVersion(attr)) - return 1; - - switch (attr.getPersistentAttributeType()) { - case BASIC : - case EMBEDDED: - return 2; - case ONE_TO_ONE: - case MANY_TO_ONE: - return 3; - case ONE_TO_MANY: - case MANY_TO_MANY: - case ELEMENT_COLLECTION: return 4; - default: return 5; + return AttributeCategory.VERSION; + if (isLob(attr)) + return AttributeCategory.LOB; + if (isEnum(attr)) + return AttributeCategory.ENUM; + switch (attr.getPersistentAttributeType()) { + case BASIC : + return AttributeCategory.BASIC; + case EMBEDDED: + return AttributeCategory.EMBEDDED; + case ONE_TO_ONE: + return AttributeCategory.ONE_TO_ONE; + case MANY_TO_ONE: + return AttributeCategory.MANY_TO_ONE; + case ONE_TO_MANY: + case ELEMENT_COLLECTION: + return AttributeCategory.ONE_TO_MANY; + case MANY_TO_MANY: + return AttributeCategory.MANY_TO_MANY; } + throw new RuntimeException(attr.toString()); + } + + public static String getTagByAttributeType(Attribute<?, ?> attr) { + return getAttributeCategory(attr).name().replace(UNDERSCORE, DASH).toLowerCase(); } /** - * Compares attribute by their qualification. - * Identity - * Version - * Basic - * Singular association - * Plural association + * Compares attribute by their category and within the same category by name. * */ public static class AttributeComparator implements Comparator<Attribute<?,?>> { -// @Override public int compare(Attribute<?, ?> a1, Attribute<?, ?> a2) { - Integer t1 = getAttributeTypeCode(a1); - Integer t2 = getAttributeTypeCode(a2); + AttributeCategory t1 = getAttributeCategory(a1); + AttributeCategory t2 = getAttributeCategory(a2); if (t1.equals(t2)) { return a1.getName().compareTo(a2.getName()); } else { Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java Sun Nov 21 04:30:54 2010 @@ -54,7 +54,7 @@ public interface ObjectFormatter { * @param response the output stream * @param ctx the operational context */ - public void encode(Object obj, JPAServletContext ctx); + public void encode(Object obj, JPAServletContext ctx) throws IOException; /** * Format the given collection of objects in the given context. Copied: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java (from r1036721, openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java) URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java?p2=openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java&p1=openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java&r1=1036721&r2=1037379&rev=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ErrorFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java Sun Nov 21 04:30:54 2010 @@ -35,28 +35,28 @@ import org.apache.openjpa.lib.util.Local * */ @SuppressWarnings("serial") -public class ErrorFormatter extends RuntimeException { +public class ProcessingException extends RuntimeException { private final int _errorCode; - public ErrorFormatter(Throwable error) { + public ProcessingException(Throwable error) { this(error, HttpURLConnection.HTTP_INTERNAL_ERROR); } - public ErrorFormatter(Throwable error, int errorCode) { + public ProcessingException(Throwable error, int errorCode) { super(error); this._errorCode = errorCode; } - public ErrorFormatter(Message message, int errorCode) { + public ProcessingException(Message message, int errorCode) { super(message.toString()); this._errorCode = errorCode; } - public ErrorFormatter(Throwable error, Message message) { + public ProcessingException(Throwable error, Message message) { this(error, message, HttpURLConnection.HTTP_INTERNAL_ERROR); } - public ErrorFormatter(Throwable error, Message message, int errorCode) { + public ProcessingException(Throwable error, Message message, int errorCode) { super(message.toString(), error); this._errorCode = errorCode; } @@ -66,18 +66,22 @@ public class ErrorFormatter extends Runt response.setContentType("text/html"); response.setStatus(_errorCode); PrintWriter writer = response.getWriter(); - writer.println("<html><body>"); - writer.println("<span style='color:red;font-weight:bold;font-size:1.5em'>HTTP Error " - + _errorCode + "</span><p>"); - writer.println("<span style='color:red'>Error Message: "+ getLocalizedMessage() + "</span><p>"); - writer.println("<br>Error Stack Trace:<br><pre>"); - if (getCause() == null) { - printStackTrace(writer); - } else { - getCause().printStackTrace(writer); - } - writer.println("</pre><br>"); - writer.println("</body></html>"); + createPage(writer); + } + + public void createPage(PrintWriter writer) { + HTMLElement html = new HTMLElement("html") + .add(new HTMLElement("head") + .add(HTMLElement.JEST_CSS), + new HTMLElement("body") + .add(new HTMLElement("p").set("class", "error-message").setBody("HTTP Error " + _errorCode), + new HTMLElement("p").set("class", "error-message").setBody(getLocalizedMessage()), + new HTMLElement("br").setBody("Error Stack Trace:"), + new HTMLElement("pre", true))); + + writer.println(html); + (getCause() == null ? this : getCause()).printStackTrace(writer); + writer.println(html.end()); } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java Sun Nov 21 04:30:54 2010 @@ -23,7 +23,9 @@ import java.io.IOException; import java.io.PrintWriter; import java.net.HttpURLConnection; import java.util.Arrays; +import java.util.HashSet; import java.util.Map; +import java.util.Set; import javax.servlet.http.HttpServletResponse; @@ -35,37 +37,28 @@ import javax.servlet.http.HttpServletRes public class PropertiesCommand extends AbstractCommand { @Override - public String getAction() { - return "properties"; - } - - @Override - public void process(JPAServletContext ctx) throws ErrorFormatter, IOException { + public void process(JPAServletContext ctx) throws ProcessingException, IOException { HttpServletResponse response = ctx.getResponse(); response.setContentType("text/html"); PrintWriter writer = response.getWriter(); response.setStatus(HttpURLConnection.HTTP_OK); + Map<String,Object> properties = ctx.getPersistenceContext().getProperties(); - writer.println("<html><body>"); - writer.println("Configuration Properties for Persistent Unit [" + ctx.getPersistenceUnitName() + "]<p>"); - HTMLTable table = new HTMLTable(); - for (Map.Entry<String,Object> entry : properties.entrySet()) { - if (entry.getKey().indexOf('.') == -1) continue; - Object value = entry.getValue(); - String v = ""; - if (value != null) { - if (value.getClass().isArray()) { - v = Arrays.toString((Object[])value); - } else { - v = value.toString(); - } - } - HTMLTable.Row row = table.newRow(); - row.setColumn(0, entry.getKey()); - row.setColumn(1, v); + removeBadEntries(properties); + PropertiesFormatter formatter = new PropertiesFormatter(); + String caption = "Configuration Properties for Persistent Unit [" + ctx.getPersistenceUnitName() + "]"; + HTMLElement html = formatter.writeHTML(caption, "Property Key", "", properties); + writer.println(html); + } + + private void removeBadEntries(Map<String,Object> map) { + Set<String> keys = map.keySet(); + Set<String> bad = new HashSet<String>(); + for (String key : keys) { + if (key.indexOf('.') == -1) bad.add(key); } - table.write(writer); - writer.println("</body></html>"); + keys.removeAll(bad); + } } Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java?rev=1037379&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java Sun Nov 21 04:30:54 2010 @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.Arrays; +import java.util.Map; + +/** + * Formats a key-value pair in a HTML table. + * + * @author Pinaki Poddar + * + */ +public class PropertiesFormatter { + public HTMLElement writeHTML(String caption, String tkey, String tvalue, Map<String,Object> properties) { + return writeHTML(caption, tkey, tvalue, properties, HTMLElement.JEST_CSS, new String[]{"even", "odd"}); + } + + public HTMLElement writeHTML(String caption, String tkey, String tvalue, Map<String,Object> properties, + HTMLElement styleSheet, String[] styles) { + HTMLElement html = new HTMLElement("html"); + if (styleSheet != null) { + html.add(new HTMLElement("head").add(styleSheet)); + } + HTMLElement body = new HTMLElement("body"); + html.add(body); + + body.add(new HTMLElement("h1").setBody(caption)); + HTMLElement table = new HTMLElement("table"); + HTMLElement header = new HTMLElement("tr").add( + new HTMLElement("th").set("style", "width:35%").setBody(tkey), + new HTMLElement("th").set("style", "width:65%").setBody(tvalue)); + table.add(header); + int i = 0; + for (Map.Entry<String,Object> entry : properties.entrySet()) { + i++; + Object value = entry.getValue(); + String v = ""; + if (value != null) { + v = value.getClass().isArray() ? Arrays.toString((Object[])value) : value.toString(); + } + HTMLElement row = new HTMLElement("tr"); + String style = getStyle(i, styles); + if (style != null) + row.set("class", style); + table.add(row.add( + new HTMLElement("td").setBody(entry.getKey()), + new HTMLElement("td").setBody(v))); + } + body.add(table); + + return html; + } + + private String getStyle(int row, String[] styles) { + if (styles == null || styles.length == 0) return null; + return styles[row%styles.length]; + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PrototypeFactory.java Sun Nov 21 04:30:54 2010 @@ -34,7 +34,6 @@ import java.util.TreeMap; */ public class PrototypeFactory<T> { private Map<String, Class<? extends T>> _registry = new TreeMap<String, Class<? extends T>>(); - private Class<? extends T> _default; /** * Register @@ -46,24 +45,13 @@ public class PrototypeFactory<T> { } public T newInstance(String name) { - return _registry.containsKey(name) ? newInstance(_registry.get(name)) : getDefault(); - } - - public void setDefault(Class<? extends T> def) { - _default = def; + return _registry.containsKey(name) ? newInstance(_registry.get(name)) : null; } public Set<String> getRegisteredKeys() { return Collections.unmodifiableSet(_registry.keySet()); } - private T getDefault() { - if (_default != null) - return newInstance(_default); - else - throw new RuntimeException(); - } - private T newInstance(Class<? extends T> type) { try { return type.newInstance(); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java Sun Nov 21 04:30:54 2010 @@ -19,7 +19,6 @@ package org.apache.openjpa.persistence.jest; -import java.net.HttpURLConnection; import java.util.Arrays; import java.util.Collection; import java.util.Collections; @@ -57,7 +56,7 @@ public class QueryCommand extends Abstra } @Override - public void process(JPAServletContext ctx) throws ErrorFormatter { + public void process(JPAServletContext ctx) throws ProcessingException { String spec = getMandatoryArgument("q"); try { EntityManager em = ctx.getPersistenceContext(); @@ -71,11 +70,11 @@ public class QueryCommand extends Abstra for (Map.Entry<String, String> entry : args.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } - ctx.getObjectFormatter(this) + getObjectFormatter(ctx) .encode(ctx.toStateManager(isBooleanQualifier("single") ? Collections.singleton(query.getSingleResult()) : query.getResultList()), ctx); } catch (Exception e) { - throw new ErrorFormatter(e, _loc.get("query-execution-error", spec)); + throw new ProcessingException(e, _loc.get("query-execution-error", spec)); } } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java?rev=1037379&r1=1037378&r2=1037379&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Sun Nov 21 04:30:54 2010 @@ -19,15 +19,29 @@ package org.apache.openjpa.persistence.jest; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_ID; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_KEY_TYPE; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_MEMBER_TYPE; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_NAME; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_NULL; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_TYPE; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_VALUE_TYPE; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_ENTRY; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_ENTRY_KEY; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_ENTRY_VALUE; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_INSTANCE; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_MEMBER; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_NULL_REF; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_REF; +import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_ROOT; + import java.io.BufferedReader; import java.io.CharArrayWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; -import java.io.PrintWriter; import java.io.Reader; import java.io.Writer; -import java.net.HttpURLConnection; import java.util.Arrays; import java.util.BitSet; import java.util.Collection; @@ -45,7 +59,6 @@ import javax.xml.parsers.DocumentBuilder import javax.xml.transform.OutputKeys; import javax.xml.transform.Source; import javax.xml.transform.Transformer; -import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; @@ -54,8 +67,6 @@ import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; import javax.xml.validation.Validator; -import junit.framework.Assert; - import org.apache.openjpa.kernel.OpenJPAStateManager; import org.apache.openjpa.kernel.StoreContext; import org.apache.openjpa.meta.ClassMetaData; @@ -81,27 +92,7 @@ public class XMLFormatter implements Obj /** * The element/attribute tags declared in <code>jest-instance.xsd</code> XML schema. */ - public static final String ELEMENT_NULL_REF = "null"; - public static final String ELEMENT_ROOT = "instances"; - public static final String ELEMENT_INSTANCE = "instance"; - public static final String ELEMENT_REF = "ref"; - public static final String ELEMENT_BASIC = "basic"; - public static final String ELEMENT_LOB = "lob"; - public static final String ELEMENT_SINGULAR = "singular"; - public static final String ELEMENT_COLLECTION = "collection"; - public static final String ELEMENT_MAP = "map"; - public static final String ELEMENT_MEMBER = "member"; - public static final String ELEMENT_ENTRY = "entry"; - public static final String ELEMENT_ENTRY_KEY = "key"; - public static final String ELEMENT_ENTRY_VALUE = "value"; - public static final String ATTR_TYPE = "type"; - public static final String ATTR_ID = "id"; - public static final String ATTR_NAME = "name"; - public static final String ATTR_NULL = "null"; - public static final String ATTR_MEMBER_TYPE = "member-type"; - public static final String ATTR_KEY_TYPE = "key-type"; - public static final String ATTR_VALUE_TYPE = "value-type"; static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema"; static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource"; @@ -141,13 +132,13 @@ public class XMLFormatter implements Obj } @Override - public void encode(Object obj, JPAServletContext ctx) { + public void encode(Object obj, JPAServletContext ctx) throws IOException { if (obj instanceof OpenJPAStateManager) { Document doc = encodeManagedInstance((OpenJPAStateManager)obj, ctx.getPersistenceContext().getMetamodel()); try { write(doc, ctx.getResponse().getWriter()); } catch (Exception ex) { - throw new ErrorFormatter(ex); + throw new ProcessingException(ex); } } else { throw new IllegalArgumentException(obj + " is not a managed instance"); @@ -240,24 +231,16 @@ public class XMLFormatter implements Obj throw new InternalException(_loc.get("format-xml-null-closure")); if (sm == null) { - Element nullRef = doc.createElement(ELEMENT_NULL_REF); - parent.appendChild(nullRef); - nullRef.setTextContent(" "); - return nullRef; + return encodeRef(parent, null); } boolean isVisited = visited.contains(sm); - System.err.println("SM " + ior(sm) + (isVisited ? " visited " : " ") + (isRef ? " isRef" : "")); if (isRef) { if (!isVisited) { futures.add(sm); - System.err.println("SM " + ior(sm) + " added to " + futures.size() + " future"); } - Element root = doc.createElement(ELEMENT_REF); - parent.appendChild(root); - root.setAttribute(ATTR_ID, ior(sm)); - root.setTextContent(" "); - return root; + return encodeRef(parent, sm); } else if (isVisited) { + System.err.println("SM " + ior(sm) + " is not a ref but visited - so not being printed at all"); return null; } // Neither a ref nor visited before @@ -270,9 +253,11 @@ public class XMLFormatter implements Obj StoreContext ctx = (StoreContext)sm.getGenericContext(); List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(sm.getMetaData(), model); for (int i = 0; i < attrs.size(); child = null, i++) { - FieldMetaData fmd = ((Members.Member<?, ?>) attrs.get(i)).fmd; + Members.Member<?, ?> attr = (Members.Member<?, ?>) attrs.get(i); + FieldMetaData fmd = attr.fmd; if (!loaded.get(fmd.getIndex())) continue; + String tag = MetamodelHelper.getTagByAttributeType(attr); Object value = sm.fetch(fmd.getIndex()); switch (fmd.getDeclaredTypeCode()) { case JavaTypes.BOOLEAN: @@ -301,7 +286,7 @@ public class XMLFormatter implements Obj case JavaTypes.LOCALE: case JavaTypes.STRING: case JavaTypes.ENUM: - child = doc.createElement(ELEMENT_BASIC); + child = doc.createElement(tag); child.setAttribute(ATTR_NAME, fmd.getName()); if (value == null) { encodeNull(child); @@ -321,7 +306,7 @@ public class XMLFormatter implements Obj break; case JavaTypes.PC: - child = doc.createElement(ELEMENT_SINGULAR); + child = doc.createElement(tag); child.setAttribute(ATTR_NAME, fmd.getName()); child.setAttribute(ATTR_TYPE, typeOf(fmd)); OpenJPAStateManager other = ctx.getStateManager(value); @@ -333,7 +318,7 @@ public class XMLFormatter implements Obj value = Arrays.asList(values); // no break; case JavaTypes.COLLECTION: - child = doc.createElement(ELEMENT_COLLECTION); + child = doc.createElement(tag); child.setAttribute(ATTR_NAME, fmd.getName()); child.setAttribute(ATTR_TYPE, typeOf(fmd)); child.setAttribute(ATTR_MEMBER_TYPE, typeOf(fmd.getElement().getDeclaredType())); @@ -358,7 +343,7 @@ public class XMLFormatter implements Obj } break; case JavaTypes.MAP: - child = doc.createElement(ELEMENT_MAP); + child = doc.createElement(tag); child.setAttribute(ATTR_NAME, fmd.getName()); child.setAttribute(ATTR_TYPE, typeOf(fmd)); child.setAttribute(ATTR_KEY_TYPE, typeOf(fmd.getElement().getDeclaredType())); @@ -402,7 +387,7 @@ public class XMLFormatter implements Obj case JavaTypes.INPUT_STREAM: case JavaTypes.INPUT_READER: - child = doc.createElement(ELEMENT_LOB); + child = doc.createElement(tag); child.setAttribute(ATTR_NAME, fmd.getName()); child.setAttribute(ATTR_TYPE, typeOf(fmd)); if (value == null) { @@ -434,6 +419,15 @@ public class XMLFormatter implements Obj element.setAttribute(ATTR_NULL, "true"); } + private Element encodeRef(Element parent, OpenJPAStateManager sm) { + Element ref = parent.getOwnerDocument().createElement(sm == null ? ELEMENT_NULL_REF : ELEMENT_REF); + if (sm != null) + ref.setAttribute(ATTR_ID, ior(sm)); + ref.setTextContent(" "); + parent.appendChild(ref); + return ref; + } + /** * Sets the given value element. The <code>type</code> is set to the given runtime type. @@ -494,8 +488,6 @@ public class XMLFormatter implements Obj validator.validate(new DOMSource(doc)); } - - public void configure(String key, Object value) { } From commits-return-8120-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 21 04:34:08 2010 Return-Path: <commits-return-8120-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 24439 invoked from network); 21 Nov 2010 04:34:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Nov 2010 04:34:08 -0000 Received: (qmail 95481 invoked by uid 500); 21 Nov 2010 04:34:39 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 95426 invoked by uid 500); 21 Nov 2010 04:34:39 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 95418 invoked by uid 99); 21 Nov 2010 04:34:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 04:34:38 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 04:34:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3B9AA23889ED; Sun, 21 Nov 2010 04:33:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037380 - in /openjpa/sandboxes/jest: openjpa-examples/jest/src/main/resources/demo/ openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/ Date: Sun, 21 Nov 2010 04:33:23 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101121043323.3B9AA23889ED@eris.apache.org> Author: ppoddar Date: Sun Nov 21 04:33:22 2010 New Revision: 1037380 URL: http://svn.apache.org/viewvc?rev=1037380&view=rev Log: OPENJPA-1851: Modify jest-instance.xsd to match attribute category Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js (with props) Modified: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties Modified: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html?rev=1037380&r1=1037379&r2=1037380&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html (original) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html Sun Nov 21 04:33:22 2010 @@ -1,10 +1,27 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> <html> <body> - <h1>Welcome to a do-nothing application</h1> + <h1>Do-Nothing Application</h1> <br> This do-nothing application initializes a JPA persistence unit with OpenJPA as provider and its <em>only</em> - response - is the page you are reading now. + response is the page you are reading now. <br> This application is used to demonstrate JEST. <br> Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html?rev=1037380&r1=1037379&r2=1037380&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html Sun Nov 21 04:33:22 2010 @@ -16,14 +16,14 @@ KIND, either express or implied. See th specific language governing permissions and limitations under the License. --> -<!-- This is the root resource of JEST servlet. --> -<!-- All referenced resource are relative to this resource. --> -<!-- Instead of src="images/x.jpg", use src="./images/x.jpg" --> +<!-- IMPORTANT --> +<!-- This is the root resource of JEST servlet. --> +<!-- All referenced resource (stylesheet, script, images) are relative to this resource. --> <html> <head> -<script language="javascript" type="text/javascript" src="./showhide.js"> +<script language="javascript" type="text/javascript" src="showhide.js"> </script> -<LINK href="./jest.css" rel="stylesheet" type="text/css"> +<LINK href="jest.css" rel="stylesheet" type="text/css"> </head> <body> @@ -42,11 +42,11 @@ The documentation on JEST is available i --> <table cellspacing="20"> <tr> - <td><img alt="Deploy" src="./images/monitor.jpg" width="100" height="100"></td> - <td><img alt="Find" src="./images/find.jpg" width="100" height="100"></td> - <td><img alt="Query" src="./images/query2.png" width="100" height="100"></td> - <td><img alt="Browse" src="./images/domain.jpg" width="100" height="100"></td> - <td><img alt="View" src="./images/properties.jpg" width="100" height="100"></td> + <td><img alt="Deploy" src="images/monitor.jpg" width="100" height="100"></td> + <td><img alt="Find" src="images/find.jpg" width="100" height="100"></td> + <td><img alt="Query" src="images/query2.png" width="100" height="100"></td> + <td><img alt="Browse" src="images/domain.jpg" width="100" height="100"></td> + <td><img alt="View" src="images/properties.jpg" width="100" height="100"></td> </tr> <tr> <td><a href="javascript:switchid('deploy');">Deploy</a> </td> @@ -56,7 +56,7 @@ The documentation on JEST is available i <td><a href="javascript:switchid('properties');">view properties</a></td> </tr> </table> - +<p> <div id="deploy" style="display:none;"> You can deploy JEST as a servlet in a web application. <hr> Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js?rev=1037380&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js Sun Nov 21 04:33:22 2010 @@ -0,0 +1,104 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * A JavaScript to render a set of instances as dojo widgets. + */ +dojo.require("dijit.form.Button"); +dojo.require("dijit.TitlePane"); +dojo.ready(function(){ + // data is supplied in a hidden div with id="data" + var data = dojo.byId("data"); + + // Find all instance node within data node and create TitlePanel for each + var panels = new Array(); + dojo.query("instance", data).forEach(function(item, index) { + var panel = create(item); + panels[index] = panel; + }); + + // widgets are placed on a empty div with id="canvas" + var canvas = dojo.byId("canvas"); + // assign random location to each panel and add them to canvas + dojo.forEach(panels, function(item, index) { + var domNode = item.domNode; + domNode.style.width = "200px"; + domNode.style.position = "absolute"; + domNode.style.left = 100 + (index % 5)*300 + "px"; + domNode.style.top = 10 + Math.floor(index / 5)*200 +"px"; + canvas.appendChild(domNode); + }); + +}); + +/** + * Creates a dojo Title Pane from a DOM instance node. + * The pane has the instance id as its title. + * The content is name and value of each attribute in separate line. + * + * @param node an instance node + * @returns + */ +function create(node) { + var attrs = document.createElement("table"); + dojo.query('basic, one-to-one', node) + .forEach(function(item) { + var attr = document.createElement("tr"); + var name = document.createElement("td"); + name.innerHTML = item.getAttribute("name").bold(); + var value = document.createElement("td"); + value.innerHTML = item.innerHTML; + attr.appendChild(name); + attr.appendChild(value); + attrs.appendChild(attr); + } + ); + var pane = new dijit.TitlePane({ + title: node.getAttribute("id"), + content:attrs + } + ); + + dojo.connect(pane, "onMouseDown", + function(event){ + pane.domNode.style.cursor = "move"; + } + ); + dojo.connect(pane, "onMouseEnter", + function(event){ + pane.domNode.style.cursor = "move"; + } + ); + dojo.connect(pane, "onMouseLeave", + function(event){ + pane.domNode.style.cursor = "default"; + } + ); + dojo.connect(pane, "onMouseUp", + function(event){ + setPosition(pane, event); + } + ); + return pane; +}; + +function setPosition(widget, event) { + widget.domNode.style.left = event.pageX+"px"; + widget.domNode.style.top = event.pageY+"px"; +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js ------------------------------------------------------------------------------ svn:eol-style = native Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd?rev=1037380&r1=1037379&r2=1037380&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest-instance.xsd Sun Nov 21 04:33:22 2010 @@ -38,15 +38,24 @@ </xsd:complexType> </xsd:element> - <!-- The root element for a single instance --> + <!-- The root element for a single instance. Children of this element are persistent attribute --> + <!-- Persistent Attributes occur in order. The order is determined by the attribute category. --> + <!-- Attribute category is determined by the enumerated PersistentAttributeType defined in --> + <!-- javax.persistence.metamodel and then further refined by id, version, lob and enum. --> + <!-- See org.apache.openjpa.persistence.jest.MetamodelHelper for further details. --> <xsd:complexType name="instance-type"> <xsd:sequence> - <xsd:element name="basic" type="basic-attr-type" minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="lob" type="lob-attr-type" minOccurs="0" maxOccurs="unbounded"/> - <xsd:element name="embedded" type="instance-type" minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="singular" type="singular-attr-type" minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="collection" type="collection-attr-type" minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="map" type="map-attr-type" minOccurs="0" maxOccurs="unbounded" /> + <xsd:element name="id" type="basic-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="version" type="basic-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="basic" type="basic-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="enum" type="basic-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="embedded" type="instance-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="lob" type="lob-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="one-to-one" type="singular-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="many-to-one" type="singular-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="element-collection" type="collection-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="one-to-many" type="collection-attr-type" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="many-to-many" type="map-attr-type" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID" use="required" /> </xsd:complexType> Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css?rev=1037380&r1=1037379&r2=1037380&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css Sun Nov 21 04:33:22 2010 @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + .open { display:block; } @@ -19,17 +38,48 @@ div { border:1px solid black; padding:2em 4em 2em 2em; } - +/* Table Styles */ table { + width : 70%; + border-collapse:collapse; +} +table td th { padding:1em 10em 2m 10em; + border:2px solid black; +} +th { + background-color:black; + color:white; +} + +.error-message { + color:red; + font-weight:bold; + font-size:1.5em; +} + +tr.even td { + background-color: #FFFFFF; color: black; + padding:2x 20px; + border:2px solid black; +} +tr.odd td { + background-color: #EEEEEE; color: black; + padding:2x 20px; + border:2px solid black; } a { target:_blank; } + .url { color:blue; font-size:1.2em; font-family:"Courier New", Arial; } +body +{ +background-color:#FFFFFF; +} Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties?rev=1037380&r1=1037379&r2=1037380&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties Sun Nov 21 04:33:22 2010 @@ -15,18 +15,22 @@ # specific language governing permissions and limitations # under the License. -server-starting: Starting {0} ... -server-request: Received new client request at {0} -server-reconfigured: Server is reconfigured at port {0} -server-failed: {0} at port {1} failed to start. Error message {2} -request-read:Reading request from client {0} -request-read-error:Error while reading request from client {0} -request-status-line: Request [{0}] from client {1} -request-bad-status:Can not determine Protocol or Method from request [{0}] from client {1} -request-bad-protocol: JEST can not process protocol [{0}]. Currently JEST processes only HTTP protocol. -request-bad-method: JEST can not process HTTP method [{0}]. Currently JEST supports only {1} request. -request-unrecognized: JEST does not recognize HTTP method [{0}]. Currently JEST supports only {1} request. - +no-persistence-unit-param: Missing <b>persistence.unit</b> parameter. JEST Servlet must be \ + configured with a parameter named <b>persistence.unit<b> in <init-param> clause \ + of <servlet> declaration in <code>WEB-INF/web.xml</code> descriptor. +servlet-init: JEST Servlet is initialized for "{0}" persistence unit. +servlet-not-init: JEST Servlet can not find "{0}" persistence unit during servlet initialization. \ + JEST Servlet will try to locate the unit when a request is to be served. + +no-persistence-unit: JEST can not locate the component using persistence unit <b>{0}</b>. This can happen \ + for several reasons: \ + <OL>the component is not initialized. </OL>\ + <OL>the component and JEST servlet do not belong to the same deployment module</OL>\ + <OL>the component did not configure the persistence unit for pooling. To enable pooling, \ + create the persistence unit with configuration property <code>openjpa.EntityManagerFactoryPool=true</code>.<br> \ + The property must be passed to <code>Persistence.createEntityManagerFactory(String unit, Map props)</code> \ + with the second <code>Map</code> argument and <em>not</em> via <code>META-INF/persistence.xml</code></OL>. + resource-not-found: Can not locate resource {0}. <br>This can happen for wrong URI syntax. See \ <A href="http://openjpa.apache.org/jest-syntax.html" target="_blank">JEST URI Help page</A> for correct syntax. @@ -40,4 +44,12 @@ parse-less-argument: {0} command must ha # ---------------------------------------------------------------------- format-xml-null-parent: A null XML parent element encountered during serialization format-xml-null-doc: Given parent element is not part of XML document -format-xml-null-closure: Set of visited instances can not be null for serialization \ No newline at end of file +format-xml-null-closure: Set of visited instances can not be null for serialization + + +DOCTYPE: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +dojo-lib: http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js +dojo-theme:http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css +dojo-config:parseOnLoad:true, isDebug:true +javascript-instances:instances.js +jest-css:jest.css From commits-return-8121-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 21 06:08:38 2010 Return-Path: <commits-return-8121-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 70291 invoked from network); 21 Nov 2010 06:08:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Nov 2010 06:08:38 -0000 Received: (qmail 18350 invoked by uid 500); 21 Nov 2010 06:09:09 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 18293 invoked by uid 500); 21 Nov 2010 06:09:09 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 18286 invoked by uid 99); 21 Nov 2010 06:09:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 06:09:08 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 06:09:03 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2827D23889EB; Sun, 21 Nov 2010 06:07:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037388 - in /openjpa/sandboxes/jest/openjpa-persistence/src/main: java/org/apache/openjpa/persistence/jest/ resources/org/apache/openjpa/persistence/jest/ Date: Sun, 21 Nov 2010 06:07:48 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101121060748.2827D23889EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Sun Nov 21 06:07:47 2010 New Revision: 1037388 URL: http://svn.apache.org/viewvc?rev=1037388&view=rev Log: OPENJPA-1851: Consolidate representation templates Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java?rev=1037388&r1=1037387&r2=1037388&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java Sun Nov 21 06:07:47 2010 @@ -25,6 +25,7 @@ import java.util.Collection; import java.util.Collections; import org.apache.openjpa.lib.util.Localizer; +import static org.apache.openjpa.persistence.jest.HTMLElement.*; /** * Creates HTML document with Dojo JavaScript. @@ -33,15 +34,34 @@ import org.apache.openjpa.lib.util.Local * */ public class DojoFormatter extends XMLFormatter { - private static final Localizer _loc = Localizer.forPackage(DojoFormatter.class); public static final String MIME_TYPE = "text/html"; + public static final String DOJO_URL = "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"; + public static final String DOJO_CSS_URL = "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/"; + public static final String DOJO_THEME = "claro"; static String DOCTYPE = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"" + " \"http://www.w3.org/TR/html4/strict.dtd\">"; - static String DOJO = _loc.get("dojo-lib").toString(); - static String DOJO_THEME = _loc.get("dojo-theme").toString(); - static String DOJO_CONFIG = _loc.get("dojo-config").toString(); - static String DOJO_INSTANCE = _loc.get("javascript-instances").toString(); + /** + * dojo Cascaded StyleSheet. + */ + static HTMLElement CSS_DOJO = new HTMLElement("link").set( + "rel", "stylesheet", + "type", "text/css", + "href", DOJO_CSS_URL + DOJO_THEME + '/' + DOJO_THEME + ".css"); + /** + * dojo JavaScript library. + */ + static HTMLElement JS_DOJO = new HTMLElement("script").set( + "src", DOJO_URL, + "type", "text/javascript", + "djConfig", "parseOnLoad:true, isDebug:true"); + + private static final HTMLElement TEMPLATE_DOJO = new HTMLElement("html", true).add( + new HTMLElement("head").add(JS_DOJO, JS_INSTANCE, CSS_DOJO, CSS_JEST), + new HTMLElement("body", true).set("class", DOJO_THEME) + .add(new HTMLElement("div").set("id", "canvas"), + new HTMLElement("div", true).set("id", "data", "style", "display: none;"))); + @Override public String getMimeType() { return MIME_TYPE; @@ -49,8 +69,6 @@ public class DojoFormatter extends XMLFo @Override public void configure(String key, Object value) { - // TODO Auto-generated method stub - } @Override @@ -68,21 +86,8 @@ public class DojoFormatter extends XMLFo throw new ProcessingException(e); } writer.println(DOCTYPE); - HTMLElement html = createHTML(); - writer.println(html); + writer.println(TEMPLATE_DOJO); super.encode(objs, ctx); - writer.println(html.end()); + writer.println(TEMPLATE_DOJO.end()); } - - public HTMLElement createHTML() { - HTMLElement html = new HTMLElement("html", true).add( - new HTMLElement("head") - .add(new HTMLElement("script").set("src", DOJO, "type", "text/javascript", "djConfig", DOJO_CONFIG), - new HTMLElement("script").set("src", DOJO_INSTANCE, "type", "text/javascript"), - new HTMLElement("link").set("rel", "stylesheet", "type", "text/css", "href", DOJO_THEME)), - new HTMLElement("body", true).set("class", "claro") - .add(new HTMLElement("div").set("id", "canvas"), - new HTMLElement("div", true).set("id", "data", "style", "display: none;"))); - return html; - } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java?rev=1037388&r1=1037387&r2=1037388&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java Sun Nov 21 06:07:47 2010 @@ -28,6 +28,14 @@ import java.util.Map; /** * An utility to write HTML elements. + * A HTMLElement consists of a tag, zero or more attributes, zero or more children HTMLElement and an optional body. + * <br> + * <code>toString()</code> on HTMLElement returns a well-formed HTML text. + * A HTMLElement can be <em>open</em>, and in that case, the tags are not closed. This is useful when a parent + * tag can be filled in with some other data and then it can be {@linkplain #end() closed} the open tags. + * <p> + * + * Also maintains a set of constant elements used throughout the dynamically generated pages. * * @author Pinaki Poddar * @@ -46,18 +54,43 @@ public class HTMLElement { private static char QUOTE = '"'; private static String NEWLINE = "\r\n"; - public static HTMLElement JEST_CSS = new HTMLElement("link").set("rel", "stylesheet", "type", "text/css", - "href", "jest.css"); + /** + * JEST Cascaded StyleSheet. + */ + public static HTMLElement CSS_JEST = new HTMLElement("link").set("rel", "stylesheet", "type", "text/css", + "href", "jest.css"); + + /** + * JavaScript to render object graph using dojo widgets. + */ + static HTMLElement JS_INSTANCE = new HTMLElement("script").set("src", "instances.js", "type", "text/javascript"); + /** + * Create an element with the given tag which will close itself. + * + * @param tag name of the element such as <code>div</code> or <code>tr</code> + */ public HTMLElement(String tag) { this(tag, false); } + /** + * Create an element with the given tag. + * + * @param tag name of the element such as <code>div</code> or <code>tr</code> + * @param open flags if the tag will be open. + */ public HTMLElement(String tag, boolean open) { this.tag = tag; this.open = open; } + /** + * Sets attributes of this element. + * + * @param pairs must be even number of key-value pair. + * @return this element for chaining + */ public HTMLElement set(String... pairs) { if (pairs == null) return this; @@ -70,12 +103,24 @@ public class HTMLElement { return this; } + /** + * Sets the text content of this element. + * @return this element for chaining + */ public HTMLElement setBody(String b) { body = b; return this; } + /** + * Adds the given children. + * + * @param children one or more HTMLElelement as children. + * @return this element for chaining + */ public HTMLElement add(HTMLElement... children) { + if (children == null || children.length == 0) + return this; if (_children == null) { _children = new ArrayList<HTMLElement>(); } @@ -84,6 +129,11 @@ public class HTMLElement { return this; } + /** + * Produces a string as end tags of the open tags in correct order. + * + * @return + */ public String end() { StringBuilder buf = new StringBuilder(); if (_children != null) { @@ -96,6 +146,9 @@ public class HTMLElement { return buf.toString(); } + /** + * A string representation of the given element and all its children recursively. + */ public String toString() { StringBuilder buf = new StringBuilder(); buf.append(START).append(tag); @@ -124,5 +177,4 @@ public class HTMLElement { } return buf.toString(); } - } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java?rev=1037388&r1=1037387&r2=1037388&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java Sun Nov 21 06:07:47 2010 @@ -66,15 +66,15 @@ public class ProcessingException extends response.setContentType("text/html"); response.setStatus(_errorCode); PrintWriter writer = response.getWriter(); - createPage(writer); + writeHTML(writer); } - public void createPage(PrintWriter writer) { + public void writeHTML(PrintWriter writer) { HTMLElement html = new HTMLElement("html") .add(new HTMLElement("head") - .add(HTMLElement.JEST_CSS), + .add(HTMLElement.CSS_JEST), new HTMLElement("body") - .add(new HTMLElement("p").set("class", "error-message").setBody("HTTP Error " + _errorCode), + .add(new HTMLElement("p").set("class", "error-header").setBody("HTTP Error " + _errorCode), new HTMLElement("p").set("class", "error-message").setBody(getLocalizedMessage()), new HTMLElement("br").setBody("Error Stack Trace:"), new HTMLElement("pre", true))); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java?rev=1037388&r1=1037387&r2=1037388&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java Sun Nov 21 06:07:47 2010 @@ -30,7 +30,7 @@ import java.util.Map; */ public class PropertiesFormatter { public HTMLElement writeHTML(String caption, String tkey, String tvalue, Map<String,Object> properties) { - return writeHTML(caption, tkey, tvalue, properties, HTMLElement.JEST_CSS, new String[]{"even", "odd"}); + return writeHTML(caption, tkey, tvalue, properties, HTMLElement.CSS_JEST, new String[]{"even", "odd"}); } public HTMLElement writeHTML(String caption, String tkey, String tvalue, Map<String,Object> properties, Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html?rev=1037388&r1=1037387&r2=1037388&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/index.html Sun Nov 21 06:07:47 2010 @@ -49,7 +49,7 @@ The documentation on JEST is available i <td><img alt="View" src="images/properties.jpg" width="100" height="100"></td> </tr> <tr> - <td><a href="javascript:switchid('deploy');">Deploy</a> </td> + <td><a href="javascript:switchid('deploy');">deploy</a> </td> <td><a href="javascript:switchid('find');">find instances</a></td> <td><a href="javascript:switchid('query');">query objects</a> </td> <td><a href="javascript:switchid('browse');">browse domain</a></td> @@ -57,7 +57,7 @@ The documentation on JEST is available i </tr> </table> <p> -<div id="deploy" style="display:none;"> +<div id="deploy" class="highlight" style="display:none;"> You can deploy JEST as a servlet in a web application. <hr> Following <code>WEB-INF/web.xml</code> descriptor will enable JEST to @@ -66,18 +66,18 @@ The documentation on JEST is available i using <code>jestdemo</code> as its persistence unit. <br> <pre> -<servlet> - <servlet-name><span style="color:blue">jest</span></servlet-name> - <servlet-class><span style="color:blue;font-weight:bold">org.apache.openjpa.persistence.jest.JESTServlet</span></servlet-class> - <init-param> - <param-name><span style="color:red;font-weight:bold">persistence.unit</span></param-name> - <param-value><span style="color:blue">jestdemo</span></param-value> - </init-param> -</servlet> -<servlet-mapping> - <servlet-name><span style="color:blue">jest</span></servlet-name> - <url-pattern><span style="color:red">/jest/*</span></url-pattern> -</servlet-mapping> +<code class="tag"><servlet></code> + <code class="tag"><servlet-name></code>jest<code class="tag"></servlet-name></code> + <code class="tag"><servlet-class></code><span style="color:blue">org.apache.openjpa.persistence.jest.JESTServlet</span><code class="tag"></servlet-class></code> + <code class="tag"><init-param></code> + <code class="tag"><param-name></code><span style="color:red;">persistence.unit</span><code class="tag"></param-name></code> + <code class="tag"><param-value></code><span style="color:red">jestdemo</span><code class="tag"></param-value></code> + <code class="tag"></init-param></code> +<code class="tag"></servlet></code> +<code class="tag"><servlet-mapping></code> + <code class="tag"><servlet-name></code>jest<code class="tag"></servlet-name></code> + <code class="tag"><url-pattern></code><span style="color:red">/jest/*</span><code class="tag"></url-pattern></code> +<code class="tag"></servlet-mapping></code> </pre> If you deploy an application named <code>demo</code> containing the above JEST servlet @@ -89,7 +89,7 @@ The documentation on JEST is available i <a href="http://openjpa.apache.org/jest-usage.html" target="_blank">more...</a> </div> -<div id="find" style="display:none;"> +<div id="find" class="highlight" style="display:none;"> You can find persistent objects by simple or compound primary key. <hr> @@ -100,7 +100,7 @@ The documentation on JEST is available i <a href="http://openjpa.apache.org/jest-syntax.html" target="_blank">more...</a> </div> -<div id="query" style="display:none;"> +<div id="query" class="highlight" style="display:none;"> You can execute JPQL or named query with parameters. <hr> <code class="url">http://www.jpa.com/demo/jest/query?q=select p from Person p where p.name=:x&x=John</code> @@ -115,7 +115,7 @@ The documentation on JEST is available i <a href="http://openjpa.apache.org/jest-syntax.html" target="_blank">more...</a> </div> -<div id="browse" style="display:none;"> +<div id="browse" class="highlight" style="display:none;"> You can display the persistent domain model. <hr> <code class="url">http://www.jpa.com/demo/jest/domain</code> @@ -125,7 +125,7 @@ The documentation on JEST is available i <a href="http://openjpa.apache.org/jest-syntax.html" target="_blank">more...</a> </div> -<div id="properties" style="display:none;"> +<div id="properties" class="highlight" style="display:none;"> You can view the configuration properties of the persistence unit. <hr> <code class="url">http://www.jpa.com/demo/jest/properties</code> Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css?rev=1037388&r1=1037387&r2=1037388&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css Sun Nov 21 06:07:47 2010 @@ -17,28 +17,35 @@ * under the License. */ +/** ----------------------------------------------------------------------- + * Visible/Invisible divisions + * --------------------------------------------------------------------- */ .open { display:block; } .close { display:none; } - -p { - font-size:1.2em; -} -LI { - font-size:1.2em; -} - - -div { - background-color:#F0F0F0; +/** ----------------------------------------------------------------------- + * Highlighted blocks + * --------------------------------------------------------------------- */ +.highlight { + background-color:#F9F9F9; width:60em; border:1px solid black; padding:2em 4em 2em 2em; } -/* Table Styles */ +/** ----------------------------------------------------------------------- + * XML Tag + * --------------------------------------------------------------------- */ +.tag { + color:green; + font:"Courier New"; + font-weight:bold; +} +/** ----------------------------------------------------------------------- + * Table + * --------------------------------------------------------------------- */ table { width : 70%; border-collapse:collapse; @@ -51,13 +58,9 @@ th { background-color:black; color:white; } - -.error-message { - color:red; - font-weight:bold; - font-size:1.5em; -} - +/** ----------------------------------------------------------------------- + * Alternate Table Row + * --------------------------------------------------------------------- */ tr.even td { background-color: #FFFFFF; color: black; padding:2x 20px; @@ -69,6 +72,10 @@ tr.odd td { border:2px solid black; } +/** ----------------------------------------------------------------------- + * Hyperlinks + * --------------------------------------------------------------------- */ + a { target:_blank; } @@ -76,10 +83,20 @@ a { .url { color:blue; - font-size:1.2em; + font-size:1.1em; font-family:"Courier New", Arial; } -body -{ -background-color:#FFFFFF; +/** ----------------------------------------------------------------------- + * Error Page + * --------------------------------------------------------------------- */ +.error-header { + color:red; + font-size:2em; + font-weight:bold; +} +.error-message { + color:red; + font-size:1.2em; } + + Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties?rev=1037388&r1=1037387&r2=1037388&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties Sun Nov 21 06:07:47 2010 @@ -45,11 +45,3 @@ parse-less-argument: {0} command must ha format-xml-null-parent: A null XML parent element encountered during serialization format-xml-null-doc: Given parent element is not part of XML document format-xml-null-closure: Set of visited instances can not be null for serialization - - -DOCTYPE: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -dojo-lib: http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js -dojo-theme:http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css -dojo-config:parseOnLoad:true, isDebug:true -javascript-instances:instances.js -jest-css:jest.css From commits-return-8122-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 21 06:55:38 2010 Return-Path: <commits-return-8122-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 83835 invoked from network); 21 Nov 2010 06:55:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Nov 2010 06:55:38 -0000 Received: (qmail 30657 invoked by uid 500); 21 Nov 2010 06:56:10 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 30596 invoked by uid 500); 21 Nov 2010 06:56:09 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 30587 invoked by uid 99); 21 Nov 2010 06:56:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 06:56:08 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 06:56:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 92DA623889EB; Sun, 21 Nov 2010 06:54:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037390 - in /openjpa/sandboxes/jest/openjpa-persistence/src/main: java/org/apache/openjpa/persistence/jest/ resources/org/apache/openjpa/persistence/jest/ Date: Sun, 21 Nov 2010 06:54:52 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101121065452.92DA623889EB@eris.apache.org> Author: ppoddar Date: Sun Nov 21 06:54:51 2010 New Revision: 1037390 URL: http://svn.apache.org/viewvc?rev=1037390&view=rev Log: OPENJPA-1851: Document, clean up Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java Sun Nov 21 06:54:51 2010 @@ -24,14 +24,21 @@ import static java.net.HttpURLConnection import java.io.IOException; import java.io.PrintWriter; import java.net.URLDecoder; +import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Enumeration; import java.util.HashMap; +import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; + +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.kernel.StoreContext; +import org.apache.openjpa.persistence.JPAFacadeHelper; +import org.apache.openjpa.persistence.OpenJPAEntityManager; /** * The abstract base class for all commands available to JEST. * @@ -206,6 +213,20 @@ abstract class AbstractCommand implement return _formatter; } + public OpenJPAStateManager toStateManager(OpenJPAEntityManager em, Object obj) { + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(em)); + return broker.getStateManager(obj); + } + + public List<OpenJPAStateManager> toStateManager(OpenJPAEntityManager em, Collection<?> objects) { + StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(em)); + List<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); + for (Object o : objects) { + sms.add(broker.getStateManager(o)); + } + return sms; + } + public void debug(HttpServletRequest request, HttpServletResponse response, JPAServletContext ctx) Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java Sun Nov 21 06:54:51 2010 @@ -68,16 +68,6 @@ public class DojoFormatter extends XMLFo } @Override - public void configure(String key, Object value) { - } - - @Override - public void encode(Object obj, JPAServletContext ctx) throws IOException { - encode(Collections.singleton(obj), ctx); - } - - - @Override public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException { PrintWriter writer = null; try { Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java Sun Nov 21 06:54:51 2010 @@ -22,7 +22,6 @@ package org.apache.openjpa.persistence.j import java.util.List; import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.Attribute.PersistentAttributeType; import javax.persistence.metamodel.ManagedType; import javax.persistence.metamodel.Metamodel; import javax.persistence.metamodel.SingularAttribute; @@ -34,7 +33,6 @@ import javax.xml.transform.TransformerFa import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; -import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.Element; Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java Sun Nov 21 06:54:51 2010 @@ -23,13 +23,11 @@ import java.io.IOException; import java.net.HttpURLConnection; import java.util.Arrays; import java.util.Collection; -import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; import javax.persistence.EntityManager; -import javax.servlet.http.HttpServletRequest; import org.apache.openjpa.kernel.OpenJPAStateManager; import org.apache.openjpa.meta.ClassMetaData; @@ -76,7 +74,7 @@ public class FindCommand extends Abstrac Object oid = ApplicationIds.fromPKValues(pks, meta); Object pc = em.find(meta.getDescribedType(), oid); if (pc != null) { - OpenJPAStateManager sm = ctx.toStateManager(pc); + OpenJPAStateManager sm = toStateManager(ctx.getPersistenceContext(), pc); ObjectFormatter formatter = getObjectFormatter(ctx); ctx.getResponse().setContentType(formatter.getMimeType()); try { Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java Sun Nov 21 06:54:51 2010 @@ -162,7 +162,6 @@ public class JESTContext implements JPAS return; } String action = getAction(path); - log("Action = [" + action + "]"); JESTCommand command = _cf.newInstance(action); if (command == null) { findResource(path.substring(1)); @@ -205,20 +204,6 @@ public class JESTContext implements JPAS return _repos.getMetaData(alias, loader, true); } - public OpenJPAStateManager toStateManager(Object obj) { - StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(getPersistenceContext())); - return broker.getStateManager(obj); - } - - public List<OpenJPAStateManager> toStateManager(Collection<?> objects) { - StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(getPersistenceContext())); - List<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); - for (Object o : objects) { - sms.add(broker.getStateManager(o)); - } - return sms; - } - /** * A resource is always looked up with respect to this class. * @@ -228,14 +213,11 @@ public class JESTContext implements JPAS void findResource(String rsrc) throws ProcessingException { _response.setHeader("Cache-Control", "public"); _response.setHeader("Expires", ONE_YEAR_FROM_NOW); - log("findResource [" + rsrc + "]"); InputStream in = getClass().getResourceAsStream(rsrc); if (in == null) { // try again as a relative path if (rsrc.startsWith(CONTEXT_ROOT)) { - log("findResource agian [" + rsrc.substring(1) + "]"); in = getClass().getResourceAsStream(rsrc.substring(1)); if (in == null) { - log("findResource could not find [" + rsrc + "]"); throw new ProcessingException(_loc.get("resource-not-found", rsrc), HTTP_NOT_FOUND); } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java Sun Nov 21 06:54:51 2010 @@ -36,18 +36,25 @@ import org.apache.openjpa.persistence.Op /** * A specialized HTTP servlet to interpret HTTP requests as Java Persistent API commands * on a running persistence unit. The persistence unit is identified by the name of the - * unit and is supplied to this servlet during its initialization. The persistent unit - * must be visible by this servlet within its classloader scope i.e. the web application - * using OpenJPA as a persistence provider must specify this servlet in its web application - * descriptor <code>WEB-INF/web.xml</code>. + * unit and is supplied to this servlet during its initialization. The component using + * the persistent unit and this servlet must be within the same module scope. * <p> - * The response carries the Java objects in a stringified format. The format can be - * <code>HTML</code>, <code>XML</code> or <code>JSON</code> and can be controlled - * both <em>globally</em> i.e. via the initialization parameters in <code><init-param></code> - * clause or <em>locally</em> per request basis via <code>format=xml|html|json</code> encoded - * in the path expression of the Request URI. + * The syntax of the request URL is described in + * <a href="https://cwiki.apache.org/openjpa/jest-syntax.html">OpenJPA web site</a>. * <p> - * + * The response to a resource request is represented in various format, namely + * XML, JSON or a JavaScript that will dynamically render in the browser. The format + * can be controlled via the initialization parameter <code>response.format</code> in + * <code><init-param></code> clause or per request basis via <code>format=xml|dojo|json</code> + * encoded in the path expression of the Request URI. + * <p> + * Servlet initialization parameter + * <table cellspacing="20px"> + * <tr><th>Parameter</th><th>Value</th></tr> + * <tr><td>persistence.unit</td><td>Name of the persistence unit. Mandatory</td></tr> + * <tr><td>response.format</td><td>Default format used for representation. Defaults to <code>xml</code>.</td></tr> + * </table> + * <br> * @author Pinaki Poddar * */ Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JPAServletContext.java Sun Nov 21 06:54:51 2010 @@ -19,15 +19,10 @@ package org.apache.openjpa.persistence.jest; -import java.util.Collection; - -import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.openjpa.kernel.OpenJPAStateManager; import org.apache.openjpa.lib.log.Log; -import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.meta.ClassMetaData; import org.apache.openjpa.persistence.OpenJPAEntityManager; @@ -41,11 +36,22 @@ import org.apache.openjpa.persistence.Op public interface JPAServletContext { /** * Get the persistence context of the operational context. - * */ - public String getPersistenceUnitName(); public OpenJPAEntityManager getPersistenceContext(); + + /** + * Get the persistence unit name. + */ + public String getPersistenceUnitName(); + + /** + * Get the HTTP Request. + */ public HttpServletRequest getRequest(); + + /** + * Get the HTTP Response. + */ public HttpServletResponse getResponse(); /** @@ -59,9 +65,10 @@ public interface JPAServletContext { */ public ClassMetaData resolve(String alias); -// public ObjectFormatter getObjectFormatter(JESTCommand command); - - public OpenJPAStateManager toStateManager(Object obj); - public Collection<OpenJPAStateManager> toStateManager(Collection<?> objs); + /** + * Logging message. + * @param level OpenJPA defined {@link Log#INFO log levels}. Invalid levels will print the message on console. + * @param message a printable message. + */ public void log(short level, String message); } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java Sun Nov 21 06:54:51 2010 @@ -141,7 +141,6 @@ public class JSONObjectFormatter impleme StoreContext ctx = (StoreContext)sm.getGenericContext(); List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(sm.getMetaData(), model); - int n = 0; for (int i = 0; i < attrs.size(); i++) { FieldMetaData fmd = ((Members.Member<?, ?>) attrs.get(i)).fmd; if (!loaded.get(fmd.getIndex())) @@ -289,8 +288,4 @@ public class JSONObjectFormatter impleme } return writer.toString(); } - - - public void configure(String key, Object value) { - } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java Sun Nov 21 06:54:51 2010 @@ -21,9 +21,6 @@ package org.apache.openjpa.persistence.j import java.io.IOException; import java.util.Collection; - -import javax.servlet.http.HttpServletResponse; - import org.apache.openjpa.lib.util.Localizer; /** @@ -43,11 +40,6 @@ public interface ObjectFormatter { public String getMimeType(); /** - * Configures this formatter by a name-value pair. - */ - public void configure(String key, Object value); - - /** * Format the given object in the given context. * * @param obj the object to be formatted. Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java Sun Nov 21 06:54:51 2010 @@ -22,33 +22,36 @@ package org.apache.openjpa.persistence.j import java.io.IOException; import java.io.PrintWriter; import java.net.HttpURLConnection; -import java.util.Arrays; import java.util.HashSet; import java.util.Map; import java.util.Set; import javax.servlet.http.HttpServletResponse; +import org.apache.openjpa.lib.util.Localizer; + /** * @author Pinaki Poddar * */ public class PropertiesCommand extends AbstractCommand { - + private static final String MIME_TYPE = "text/html"; + private static final Localizer _loc = Localizer.forPackage(PropertiesCommand.class); + @Override public void process(JPAServletContext ctx) throws ProcessingException, IOException { HttpServletResponse response = ctx.getResponse(); - response.setContentType("text/html"); + response.setContentType(MIME_TYPE); PrintWriter writer = response.getWriter(); - response.setStatus(HttpURLConnection.HTTP_OK); Map<String,Object> properties = ctx.getPersistenceContext().getProperties(); removeBadEntries(properties); PropertiesFormatter formatter = new PropertiesFormatter(); - String caption = "Configuration Properties for Persistent Unit [" + ctx.getPersistenceUnitName() + "]"; - HTMLElement html = formatter.writeHTML(caption, "Property Key", "", properties); + String caption = _loc.get("properties-caption", ctx.getPersistenceUnitName()).toString(); + HTMLElement html = formatter.writeHTML(caption, "", "", properties); writer.println(html); + response.setStatus(HttpURLConnection.HTTP_OK); } private void removeBadEntries(Map<String,Object> map) { @@ -58,7 +61,5 @@ public class PropertiesCommand extends A if (key.indexOf('.') == -1) bad.add(key); } keys.removeAll(bad); - } - } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java Sun Nov 21 06:54:51 2010 @@ -28,17 +28,12 @@ import java.util.Map; * @author Pinaki Poddar * */ -public class PropertiesFormatter { - public HTMLElement writeHTML(String caption, String tkey, String tvalue, Map<String,Object> properties) { - return writeHTML(caption, tkey, tvalue, properties, HTMLElement.CSS_JEST, new String[]{"even", "odd"}); - } +class PropertiesFormatter { + private static final String[] ROW_STYLES = {"even", "odd"}; - public HTMLElement writeHTML(String caption, String tkey, String tvalue, Map<String,Object> properties, - HTMLElement styleSheet, String[] styles) { + public HTMLElement writeHTML(String caption, String tkey, String tvalue, Map<String,Object> properties) { HTMLElement html = new HTMLElement("html"); - if (styleSheet != null) { - html.add(new HTMLElement("head").add(styleSheet)); - } + html.add(new HTMLElement("head").add(HTMLElement.CSS_JEST)); HTMLElement body = new HTMLElement("body"); html.add(body); @@ -57,9 +52,8 @@ public class PropertiesFormatter { v = value.getClass().isArray() ? Arrays.toString((Object[])value) : value.toString(); } HTMLElement row = new HTMLElement("tr"); - String style = getStyle(i, styles); - if (style != null) - row.set("class", style); + String style = i%2 == 0 ? ROW_STYLES[0] : ROW_STYLES[1]; + row.set("class", style); table.add(row.add( new HTMLElement("td").setBody(entry.getKey()), new HTMLElement("td").setBody(v))); @@ -68,10 +62,4 @@ public class PropertiesFormatter { return html; } - - private String getStyle(int row, String[] styles) { - if (styles == null || styles.length == 0) return null; - return styles[row%styles.length]; - } - } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java Sun Nov 21 06:54:51 2010 @@ -71,7 +71,7 @@ public class QueryCommand extends Abstra query.setParameter(entry.getKey(), entry.getValue()); } getObjectFormatter(ctx) - .encode(ctx.toStateManager(isBooleanQualifier("single") + .encode(toStateManager(ctx.getPersistenceContext(), isBooleanQualifier("single") ? Collections.singleton(query.getSingleResult()) : query.getResultList()), ctx); } catch (Exception e) { throw new ProcessingException(e, _loc.get("query-execution-error", spec)); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Sun Nov 21 06:54:51 2010 @@ -488,10 +488,6 @@ public class XMLFormatter implements Obj validator.validate(new DOMSource(doc)); } - public void configure(String key, Object value) { - } - - String ior(OpenJPAStateManager sm) { return typeOf(sm) + "-" + sm.getObjectId(); } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties?rev=1037390&r1=1037389&r2=1037390&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties Sun Nov 21 06:54:51 2010 @@ -45,3 +45,6 @@ parse-less-argument: {0} command must ha format-xml-null-parent: A null XML parent element encountered during serialization format-xml-null-doc: Given parent element is not part of XML document format-xml-null-closure: Set of visited instances can not be null for serialization + + +properties-caption: Configuration of {0} Persistence Unit From commits-return-8123-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 21 09:46:11 2010 Return-Path: <commits-return-8123-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 37489 invoked from network); 21 Nov 2010 09:46:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Nov 2010 09:46:11 -0000 Received: (qmail 88567 invoked by uid 500); 21 Nov 2010 09:46:42 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 88514 invoked by uid 500); 21 Nov 2010 09:46:42 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 88507 invoked by uid 99); 21 Nov 2010 09:46:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 09:46:41 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 09:46:38 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id EAAB5C0161 for <commits@openjpa.apache.org>; Sun, 21 Nov 2010 09:46:17 +0000 (UTC) Date: Sun, 21 Nov 2010 09:46:17 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <2100634866.6841290332777632.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk-deploy #58 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/58/changes> Changes: [mikedd] OPENJPA-1885: refactor persistAll in BrokerImpl. Submitted By: Guy Korland ------------------------------------------ [...truncated 14651 lines...] [INFO] Uploading repository metadata for: 'snapshot org.apache.openjpa:openjpa-xmlstore:2.1.0-SNAPSHOT' [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'artifact org.apache.openjpa:openjpa-xmlstore' [INFO] Uploading project information for openjpa-xmlstore 2.1.0-20101121.070542-106 [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/openjpa-xmlstore-2.1.0-20101121.070542-106-tests.jar 75K uploaded (openjpa-xmlstore-2.1.0-20101121.070542-106-tests.jar) [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-xmlstore/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-21_07-04-55/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-21_07-04-55/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-20101121.070542-106/openjpa-xmlstore-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-xmlstore/target/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-xmlstore/builds/2010-11-21_07-04-55/archive/org.apache.openjpa/openjpa-xmlstore/2.1.0-20101121.070542-106/openjpa-xmlstore-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Slice [INFO] task-segment: [clean, deploy] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Starting audit... Audit done. [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] [remote-resources:process {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] Copying 3 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 31 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/classes> [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 22 source files to <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/test-classes> [INFO] [antrun:run {execution: default}] [INFO] Executing tasks enhance: enhance.all.entities: [echo] running enhancer 273 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.UserDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@95923f has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.UserDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.UserDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 277 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@95923f has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 324 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SingleEMFTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@95923f has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SingleEMFTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SingleEMFTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 344 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SliceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@95923f has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SliceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SliceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 387 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.PersistenceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@95923f has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.PersistenceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.PersistenceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 395 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@95923f has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. [INFO] Executed tasks [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-slice/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.slice.TestQuery 4 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 5 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 38 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 159 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 474 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5209 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12819 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 13014 ordering WARN [main] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 10 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 459 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 576 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 215 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 350 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is removed from cache excluded permanently. Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 192 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 276 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 286 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 296 ordering WARN [main] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 308 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 172 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 274 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 213 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 298 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 4 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 220 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 296 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 186 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 262 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 155 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 247 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 155 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 247 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 173 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 307 ordering WARN [main] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 336 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 167 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 285 ordering WARN [main] openjpa.Runtime - Query "select c from Car c" is removed from cache excluded permanently. Query "select c from Car c" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 291 ordering WARN [main] openjpa.Runtime - Query "select m from Manufacturer m" is removed from cache excluded permanently. Query "select m from Manufacturer m" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.202 sec Running org.apache.openjpa.slice.TestQueryMultiThreaded 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 158 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 260 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 273 ordering WARN [Thread-5] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 281 ordering WARN [Thread-5] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 285 ordering WARN [Thread-5] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 139 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 241 ordering WARN [Thread-7] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 156 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 239 ordering WARN [Thread-12] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 143 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 222 ordering WARN [Thread-17] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 128 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 199 ordering WARN [Thread-22] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 128 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 200 ordering WARN [Thread-27] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 1 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 170 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 225 ordering WARN [Thread-32] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 231 ordering WARN [Thread-32] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Build timed out. Aborting Process 1290326746394 is killed. [HUDSON] Recording test results [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to call isArchivingDisabled. Invalid object ID 23 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.IllegalStateException: Unable to call isArchivingDisabled. Invalid object ID 23 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:268) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 161 minutes 9 seconds [INFO] Finished at: Sun Nov 21 09:46:14 UTC 2010 [INFO] Final Memory: 138M/560M [INFO] ------------------------------------------------------------------------ channel stopped From commits-return-8124-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 21 16:01:56 2010 Return-Path: <commits-return-8124-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 1821 invoked from network); 21 Nov 2010 16:01:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Nov 2010 16:01:56 -0000 Received: (qmail 83033 invoked by uid 500); 21 Nov 2010 16:02:28 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 82978 invoked by uid 500); 21 Nov 2010 16:02:27 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 82971 invoked by uid 99); 21 Nov 2010 16:02:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 16:02:26 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Nov 2010 16:02:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B25122388A36; Sun, 21 Nov 2010 16:01:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037487 - /openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ Date: Sun, 21 Nov 2010 16:01:07 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101121160107.B25122388A36@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Sun Nov 21 16:01:07 2010 New Revision: 1037487 URL: http://svn.apache.org/viewvc?rev=1037487&view=rev Log: OPENJPA-1851: Organize MIME type Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java Sun Nov 21 16:01:07 2010 @@ -86,7 +86,7 @@ abstract class AbstractCommand implement return has(key, _qualifiers); } - public boolean isBooleanQualifier(String key) { + protected boolean isBooleanQualifier(String key) { return "true".equals(getQualifier(key)); } @@ -213,12 +213,12 @@ abstract class AbstractCommand implement return _formatter; } - public OpenJPAStateManager toStateManager(OpenJPAEntityManager em, Object obj) { + protected OpenJPAStateManager toStateManager(OpenJPAEntityManager em, Object obj) { StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(em)); return broker.getStateManager(obj); } - public List<OpenJPAStateManager> toStateManager(OpenJPAEntityManager em, Collection<?> objects) { + protected List<OpenJPAStateManager> toStateManager(OpenJPAEntityManager em, Collection<?> objects) { StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(em)); List<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); for (Object o : objects) { @@ -229,7 +229,7 @@ abstract class AbstractCommand implement - public void debug(HttpServletRequest request, HttpServletResponse response, JPAServletContext ctx) + protected void debug(HttpServletRequest request, HttpServletResponse response, JPAServletContext ctx) throws IOException { response.setContentType("text/plain"); PrintWriter writer = response.getWriter(); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java Sun Nov 21 16:01:07 2010 @@ -34,7 +34,6 @@ import static org.apache.openjpa.persist * */ public class DojoFormatter extends XMLFormatter { - public static final String MIME_TYPE = "text/html"; public static final String DOJO_URL = "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"; public static final String DOJO_CSS_URL = "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/"; public static final String DOJO_THEME = "claro"; @@ -64,7 +63,7 @@ public class DojoFormatter extends XMLFo @Override public String getMimeType() { - return MIME_TYPE; + return MIME_TYPE_HTML; } @Override Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java Sun Nov 21 16:01:07 2010 @@ -42,7 +42,7 @@ import org.w3c.dom.Element; * @author Pinaki Poddar * */ -public class DomainCommand extends AbstractCommand { +class DomainCommand extends AbstractCommand { /** * The element/attribute tags declared in <code>jest-instance.xsd</code> XML schema. */ Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java Sun Nov 21 16:01:07 2010 @@ -38,7 +38,7 @@ import org.apache.openjpa.util.Applicati * @author Pinaki Poddar * */ -public class FindCommand extends AbstractCommand { +class FindCommand extends AbstractCommand { private static final List<String> _mandatoryArgs = Arrays.asList("type"); private static final List<String> _validQualifiers = Arrays.asList("format", "plan"); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java Sun Nov 21 16:01:07 2010 @@ -24,23 +24,17 @@ import static java.net.HttpURLConnection import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import java.util.ArrayList; import java.util.Calendar; -import java.util.Collection; import java.util.Date; -import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.openjpa.conf.OpenJPAConfiguration; -import org.apache.openjpa.kernel.OpenJPAStateManager; -import org.apache.openjpa.kernel.StoreContext; import org.apache.openjpa.lib.log.Log; import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.meta.ClassMetaData; import org.apache.openjpa.meta.MetaDataRepository; -import org.apache.openjpa.persistence.JPAFacadeHelper; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java Sun Nov 21 16:01:07 2010 @@ -57,10 +57,8 @@ import org.apache.openjpa.persistence.me */ public class JSONObjectFormatter implements ObjectFormatter { - public static final String MIME_TYPE = "application/json"; - public String getMimeType() { - return MIME_TYPE; + return MIME_TYPE_JSON; } public void encode(Object obj, JPAServletContext ctx) { Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java Sun Nov 21 16:01:07 2010 @@ -33,6 +33,9 @@ import org.apache.openjpa.lib.util.Local */ public interface ObjectFormatter { public static final Localizer _loc = Localizer.forPackage(ObjectFormatter.class); + public static final String MIME_TYPE_HTML = "text/html"; + public static final String MIME_TYPE_XML = "text/xml"; + public static final String MIME_TYPE_JSON = "application/json"; /** * Gets the mime type produced by this formatter. Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java Sun Nov 21 16:01:07 2010 @@ -32,6 +32,8 @@ import org.apache.openjpa.lib.util.Local /** + * Represents configuration properties in HTML. + * * @author Pinaki Poddar * */ Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java Sun Nov 21 16:01:07 2010 @@ -29,18 +29,16 @@ import javax.persistence.EntityManager; import javax.persistence.Query; /** + * Executes query. + * * @author Pinaki Poddar * */ -public class QueryCommand extends AbstractCommand { +class QueryCommand extends AbstractCommand { private static final List<String> _mandatoryArgs = Arrays.asList("q"); private static final List<String> _validQualifiers = Arrays.asList("format", "plan", "named", "single", "first", "max"); - public String getAction() { - return "query"; - } - @Override protected Collection<String> getMandatoryArguments() { return _mandatoryArgs; Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java?rev=1037487&r1=1037486&r2=1037487&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Sun Nov 21 16:01:07 2010 @@ -88,7 +88,6 @@ import org.w3c.dom.Element; * */ public class XMLFormatter implements ObjectFormatter { - public static final String MIME_TYPE = "text/xml"; /** * The element/attribute tags declared in <code>jest-instance.xsd</code> XML schema. */ @@ -123,13 +122,9 @@ public class XMLFormatter implements Obj } } - - /** - * Gets the content type of the response. - */ public String getMimeType() { - return MIME_TYPE; - } + return MIME_TYPE_XML; + } @Override public void encode(Object obj, JPAServletContext ctx) throws IOException { From commits-return-8125-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 22 18:24:35 2010 Return-Path: <commits-return-8125-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 91232 invoked from network); 22 Nov 2010 18:24:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 18:24:35 -0000 Received: (qmail 7325 invoked by uid 500); 22 Nov 2010 18:25:07 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 7284 invoked by uid 500); 22 Nov 2010 18:25:06 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 7277 invoked by uid 99); 22 Nov 2010 18:25:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 18:25:06 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 18:25:05 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A58402388A3B; Mon, 22 Nov 2010 18:23:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037819 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java Date: Mon, 22 Nov 2010 18:23:34 -0000 To: commits@openjpa.apache.org From: faywang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101122182334.A58402388A3B@eris.apache.org> Author: faywang Date: Mon Nov 22 18:23:34 2010 New Revision: 1037819 URL: http://svn.apache.org/viewvc?rev=1037819&view=rev Log: OPENJPA-1894: reduce the number of Strings created by SelectImpl.getTableIndex Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java?rev=1037819&r1=1037818&r2=1037819&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java Mon Nov 22 18:23:34 2010 @@ -2032,7 +2032,7 @@ public class SelectImpl Integer i = null; Object key = table.getFullIdentifier().getName(); if (pj != null && pj.path() != null) - key = new Key(pj.path().toString(), key); + key = new Key(pj.getPathStr(), key); if (_ctx != null && (_parent != null || _subsels != null || _hasSub)) { i = findAliasForQuery(table, pj, key, create); @@ -2194,6 +2194,10 @@ public class SelectImpl public StringBuilder path() { return null; } + + public String getPathStr() { + return null; + } public JoinSet joins() { return null; @@ -2551,6 +2555,10 @@ public class SelectImpl public StringBuilder path() { return null; } + + public String getPathStr() { + return null; + } public JoinSet joins() { return null; @@ -2630,6 +2638,7 @@ public class SelectImpl protected String correlatedVar = null; protected Context context = null; protected Context lastContext = null; + protected String pathStr = null; public Select getSelect() { return null; @@ -2734,8 +2743,16 @@ public class SelectImpl path = new StringBuilder(str); else path.append('.').append(str); + pathStr = null; } } + + public String getPathStr() { + if (pathStr == null) { + pathStr = path.toString(); + } + return pathStr; + } public String toString() { return "PathJoinsImpl<" + hashCode() + ">: " @@ -3297,5 +3314,7 @@ interface PathJoins * @return */ public Select getSelect(); + + public String getPathStr(); } From commits-return-8126-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 22 18:42:08 2010 Return-Path: <commits-return-8126-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 503 invoked from network); 22 Nov 2010 18:42:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 18:42:08 -0000 Received: (qmail 30457 invoked by uid 500); 22 Nov 2010 18:42:39 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 30432 invoked by uid 500); 22 Nov 2010 18:42:39 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 30425 invoked by uid 99); 22 Nov 2010 18:42:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 18:42:39 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 18:42:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 44507238897A; Mon, 22 Nov 2010 18:41:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037827 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Date: Mon, 22 Nov 2010 18:41:04 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101122184104.44507238897A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Mon Nov 22 18:41:03 2010 New Revision: 1037827 URL: http://svn.apache.org/viewvc?rev=1037827&view=rev Log: OPENJPA-1885: rename new method to persistInternal and some code formatting changes Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java?rev=1037827&r1=1037826&r2=1037827&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Mon Nov 22 18:41:03 2010 @@ -2464,7 +2464,7 @@ public class BrokerImpl try { if(obj == null) continue; - persist0(obj, null, explicit, call); + persistInternal(obj, null, explicit, call); } catch (UserException ue) { exceps = add(exceps, ue); } @@ -2537,7 +2537,7 @@ public class BrokerImpl try { assertWriteOperation(); - return persist0(obj, id, explicit, call); + return persistInternal(obj, id, explicit, call); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { @@ -2547,89 +2547,96 @@ public class BrokerImpl } } - private OpenJPAStateManager persist0(Object obj, Object id, - boolean explicit, OpCallbacks call) { - StateManagerImpl sm = getStateManagerImpl(obj, true); - if (!_operating.add(obj)) - return sm; - - int action = processArgument(OpCallbacks.OP_PERSIST, obj, sm, call); - if (action == OpCallbacks.ACT_NONE) - return sm; - - // ACT_CASCADE - if ((action & OpCallbacks.ACT_RUN) == 0) { - if (sm != null) - sm.cascadePersist(call); - else - cascadeTransient(OpCallbacks.OP_PERSIST, obj, call, - "persist"); - return sm; - } - - // ACT_RUN - PersistenceCapable pc; - if (sm != null) { - if (sm.isDetached()) - throw new ObjectExistsException(_loc.get - ("persist-detached", Exceptions.toString(obj))). - setFailedObject(obj); - - if (!sm.isEmbedded()) { - sm.persist(); - _cache.persist(sm); - if ((action & OpCallbacks.ACT_CASCADE) != 0) - sm.cascadePersist(call); - return sm; - } - - // an embedded field; notify the owner that the value has - // changed by becoming independently persistent - sm.getOwner().dirty(sm.getOwnerIndex()); - _cache.persist(sm); - pc = sm.getPersistenceCapable(); - } else { - pc = assertPersistenceCapable(obj); - if (pc.pcIsDetached() == Boolean.TRUE) - throw new ObjectExistsException(_loc.get - ("persist-detached", Exceptions.toString(obj))). - setFailedObject(obj); - } - - ClassMetaData meta = _repo.getMetaData(obj.getClass(), _loader, true); - fireLifecycleEvent(obj, null, meta, LifecycleEvent.BEFORE_PERSIST); - - // create id for instance - if (id == null) { - int idType = meta.getIdentityType(); - if (idType == ClassMetaData.ID_APPLICATION) - id = ApplicationIds.create(pc, meta); - else if (idType == ClassMetaData.ID_UNKNOWN) - throw new UserException(_loc.get("meta-unknownid", meta)); - else - id = StateManagerId.newInstance(this); - } - - // make sure we don't already have the instance cached - checkForDuplicateId(id, obj, meta); - - // if had embedded sm, null it - if (sm != null) - pc.pcReplaceStateManager(null); - - // create new sm - sm = newStateManagerImpl(id, meta); - if ((_flags & FLAG_ACTIVE) != 0) { - if (explicit) - sm.initialize(pc, PCState.PNEW); - else - sm.initialize(pc, PCState.PNEWPROVISIONAL); - } else - sm.initialize(pc, PCState.PNONTRANSNEW); - if ((action & OpCallbacks.ACT_CASCADE) != 0) - sm.cascadePersist(call); - return sm; - } + private OpenJPAStateManager persistInternal(Object obj, Object id, boolean explicit, OpCallbacks call) { + StateManagerImpl sm = getStateManagerImpl(obj, true); + if (!_operating.add(obj)) { + return sm; + } + + int action = processArgument(OpCallbacks.OP_PERSIST, obj, sm, call); + if (action == OpCallbacks.ACT_NONE) { + return sm; + } + + // ACT_CASCADE + if ((action & OpCallbacks.ACT_RUN) == 0) { + if (sm != null) { + sm.cascadePersist(call); + } else { + cascadeTransient(OpCallbacks.OP_PERSIST, obj, call, "persist"); + } + return sm; + } + + // ACT_RUN + PersistenceCapable pc; + if (sm != null) { + if (sm.isDetached()) { + throw new ObjectExistsException(_loc.get("persist-detached", Exceptions.toString(obj))) + .setFailedObject(obj); + } + + if (!sm.isEmbedded()) { + sm.persist(); + _cache.persist(sm); + if ((action & OpCallbacks.ACT_CASCADE) != 0) { + sm.cascadePersist(call); + } + return sm; + } + + // an embedded field; notify the owner that the value has + // changed by becoming independently persistent + sm.getOwner().dirty(sm.getOwnerIndex()); + _cache.persist(sm); + pc = sm.getPersistenceCapable(); + } else { + pc = assertPersistenceCapable(obj); + if (pc.pcIsDetached() == Boolean.TRUE) { + throw new ObjectExistsException(_loc.get("persist-detached", Exceptions.toString(obj))) + .setFailedObject(obj); + } + } + + ClassMetaData meta = _repo.getMetaData(obj.getClass(), _loader, true); + fireLifecycleEvent(obj, null, meta, LifecycleEvent.BEFORE_PERSIST); + + // create id for instance + if (id == null) { + int idType = meta.getIdentityType(); + if (idType == ClassMetaData.ID_APPLICATION) { + id = ApplicationIds.create(pc, meta); + } else if (idType == ClassMetaData.ID_UNKNOWN) { + throw new UserException(_loc.get("meta-unknownid", meta)); + } else { + id = StateManagerId.newInstance(this); + } + } + + // make sure we don't already have the instance cached + checkForDuplicateId(id, obj, meta); + + // if had embedded sm, null it + if (sm != null) { + pc.pcReplaceStateManager(null); + } + + // create new sm + sm = newStateManagerImpl(id, meta); + if ((_flags & FLAG_ACTIVE) != 0) { + if (explicit) { + sm.initialize(pc, PCState.PNEW); + } else { + sm.initialize(pc, PCState.PNEWPROVISIONAL); + } + } else { + sm.initialize(pc, PCState.PNONTRANSNEW); + } + if ((action & OpCallbacks.ACT_CASCADE) != 0) { + sm.cascadePersist(call); + } + return sm; + } /** * Temporarily manage the given instance in order to cascade the given From commits-return-8127-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 22 19:19:21 2010 Return-Path: <commits-return-8127-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 25932 invoked from network); 22 Nov 2010 19:19:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 19:19:20 -0000 Received: (qmail 91191 invoked by uid 500); 22 Nov 2010 19:19:52 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 91170 invoked by uid 500); 22 Nov 2010 19:19:52 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 91163 invoked by uid 99); 22 Nov 2010 19:19:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 19:19:52 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 19:19:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 75AA223889E3; Mon, 22 Nov 2010 19:18:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037844 - in /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa: abstractstore/AbstractStoreManager.java kernel/ManagedCache.java Date: Mon, 22 Nov 2010 19:18:16 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101122191816.75AA223889E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Mon Nov 22 19:18:16 2010 New Revision: 1037844 URL: http://svn.apache.org/viewvc?rev=1037844&view=rev Log: OPENJPA-1888: Add generics to ManagedCache and AbstractStoreManager. Submitted By: Guy Korland Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/abstractstore/AbstractStoreManager.java openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ManagedCache.java Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/abstractstore/AbstractStoreManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/abstractstore/AbstractStoreManager.java?rev=1037844&r1=1037843&r2=1037844&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/abstractstore/AbstractStoreManager.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/abstractstore/AbstractStoreManager.java Mon Nov 22 19:18:16 2010 @@ -234,7 +234,7 @@ public abstract class AbstractStoreManag * bulk loading APIs, overriding this method to be more clever may be * advantageous. */ - public Collection loadAll(Collection sms, PCState state, int load, + public Collection<Object> loadAll(Collection<OpenJPAStateManager> sms, PCState state, int load, FetchConfiguration fetch, Object edata) { return ImplHelper.loadAll(sms, this, state, load, fetch, edata); } @@ -244,18 +244,16 @@ public abstract class AbstractStoreManag * states, and delegates to * {@link #flush(Collection,Collection,Collection,Collection,Collection)}. */ - public Collection flush(Collection sms) { + public Collection<Exception> flush(Collection<OpenJPAStateManager> sms) { // break down state managers by state; initialize as empty lists; // use constants for efficiency - Collection pNew = new LinkedList(); - Collection pNewUpdated = new LinkedList(); - Collection pNewFlushedDeleted = new LinkedList(); - Collection pDirty = new LinkedList(); - Collection pDeleted = new LinkedList(); - - OpenJPAStateManager sm; - for (Iterator itr = sms.iterator(); itr.hasNext();) { - sm = (OpenJPAStateManager) itr.next(); + Collection<OpenJPAStateManager> pNew = new LinkedList<OpenJPAStateManager>(); + Collection<OpenJPAStateManager> pNewUpdated = new LinkedList<OpenJPAStateManager>(); + Collection<OpenJPAStateManager> pNewFlushedDeleted = new LinkedList<OpenJPAStateManager>(); + Collection<OpenJPAStateManager> pDirty = new LinkedList<OpenJPAStateManager>(); + Collection<OpenJPAStateManager> pDeleted = new LinkedList<OpenJPAStateManager>(); + + for (OpenJPAStateManager sm : sms) { if (sm.getPCState() == PCState.PNEW && !sm.isFlushed()) pNew.add(sm); else if (sm.getPCState() == PCState.PNEW && sm.isFlushed()) @@ -472,9 +470,9 @@ public abstract class AbstractStoreManag * may have been in a previous flush invocation's persistentDirty list. * @return a collection of exceptions encountered during flushing. */ - protected abstract Collection flush(Collection pNew, - Collection pNewUpdated, Collection pNewFlushedDeleted, - Collection pDirty, Collection pDeleted); + protected abstract Collection<Exception> flush(Collection<OpenJPAStateManager> pNew, + Collection<OpenJPAStateManager> pNewUpdated, Collection<OpenJPAStateManager> pNewFlushedDeleted, + Collection<OpenJPAStateManager> pDirty, Collection<OpenJPAStateManager> pDeleted); /** * Return a new configuration instance for this runtime. Configuration @@ -498,8 +496,8 @@ public abstract class AbstractStoreManag * <li>{@link OpenJPAConfiguration#OPTION_DATASTORE_CONNECTION}</li> * </ul> */ - protected Collection getUnsupportedOptions() { - Collection c = new HashSet(); + protected Collection<String> getUnsupportedOptions() { + Collection<String> c = new HashSet<String>(); c.add(OpenJPAConfiguration.OPTION_OPTIMISTIC); c.add(OpenJPAConfiguration.OPTION_ID_DATASTORE); c.add(OpenJPAConfiguration.OPTION_INC_FLUSH); Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ManagedCache.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ManagedCache.java?rev=1037844&r1=1037843&r2=1037844&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ManagedCache.java (original) +++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ManagedCache.java Mon Nov 22 19:18:16 2010 @@ -24,14 +24,12 @@ import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; -import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.lib.util.ReferenceHashSet; import org.apache.openjpa.util.Exceptions; -import org.apache.openjpa.util.InternalException; import org.apache.openjpa.util.UserException; /** @@ -42,11 +40,11 @@ class ManagedCache implements Serializab private static final Localizer _loc = Localizer.forPackage(ManagedCache.class); - private Map _main; // oid -> sm - private Map _conflicts = null; // conflict oid -> new sm - private Map _news = null; // tmp id -> new sm - private Collection _embeds = null; // embedded/non-persistent sms - private Collection _untracked = null; // hard refs to untracked sms + private Map<Object,StateManagerImpl> _main; // oid -> sm + private Map<Object,StateManagerImpl> _conflicts = null; // conflict oid -> new sm + private Map<Object,StateManagerImpl> _news = null; // tmp id -> new sm + private Collection<StateManagerImpl> _embeds = null; // embedded/non-persistent sms + private Collection<StateManagerImpl> _untracked = null; // hard refs to untracked sms private BrokerImpl broker; /** @@ -54,7 +52,7 @@ class ManagedCache implements Serializab */ ManagedCache(BrokerImpl broker) { this.broker = broker; - _main = broker.newManagedObjectCache(); + _main = (Map<Object, StateManagerImpl>) broker.newManagedObjectCache(); } /** @@ -66,7 +64,7 @@ class ManagedCache implements Serializab return null; // check main cache for oid - StateManagerImpl sm = (StateManagerImpl) _main.get(oid); + StateManagerImpl sm = _main.get(oid); StateManagerImpl sm2; if (sm != null) { // if it's a new instance, we know it's the only match, because @@ -78,7 +76,7 @@ class ManagedCache implements Serializab // sm is deleted; check conflict cache if (_conflicts != null) { - sm2 = (StateManagerImpl) _conflicts.get(oid); + sm2 = _conflicts.get(oid); if (sm2 != null) return sm2; } @@ -86,9 +84,9 @@ class ManagedCache implements Serializab // at this point sm is null or deleted; check the new cache for // any matches. this allows us to match app id objects to new - // instances without permanant oids + // instances without permanent oids if (allowNew && _news != null && !_news.isEmpty()) { - sm2 = (StateManagerImpl) _news.get(oid); + sm2 = _news.get(oid); if (sm2 != null) return sm2; } @@ -101,7 +99,7 @@ class ManagedCache implements Serializab public void add(StateManagerImpl sm) { if (!sm.isIntercepting()) { if (_untracked == null) - _untracked = new HashSet(); + _untracked = new HashSet<StateManagerImpl>(); _untracked.add(sm); } @@ -116,14 +114,13 @@ class ManagedCache implements Serializab // permanent oid yet if (sm.isNew()) { if (_news == null) - _news = new HashMap(); + _news = new HashMap<Object,StateManagerImpl>(); _news.put(sm.getId(), sm); return; } // initializing persistent instance; put in main cache - StateManagerImpl orig = (StateManagerImpl) _main.put - (sm.getObjectId(), sm); + StateManagerImpl orig = _main.put(sm.getObjectId(), sm); if (orig != null) { _main.put(sm.getObjectId(), orig); throw new UserException(_loc.get("dup-load", sm.getObjectId(), @@ -140,7 +137,7 @@ class ManagedCache implements Serializab // if it has a permanent oid, remove from main / conflict cache, // else remove from embedded/nontrans cache, and if not there // remove from new cache - Object orig; + StateManagerImpl orig; if (sm.getObjectId() != null) { orig = _main.remove(id); if (orig != sm) { @@ -179,14 +176,14 @@ class ManagedCache implements Serializab // not be in new cache if another new instance had same id StateManagerImpl orig = null; if (_news != null) { - orig = (StateManagerImpl) _news.remove(id); + orig = _news.remove(id); if (orig != null && orig != sm) _news.put(id, orig); // put back } // put in main cache, but make sure we don't replace another // instance with the same oid - orig = (StateManagerImpl) _main.put(sm.getObjectId(), sm); + orig = _main.put(sm.getObjectId(), sm); if (orig != null) { _main.put(sm.getObjectId(), orig); if (!orig.isDeleted()) @@ -197,7 +194,7 @@ class ManagedCache implements Serializab // same oid as deleted instance; put in conflict cache if (_conflicts == null) - _conflicts = new HashMap(); + _conflicts = new HashMap<Object,StateManagerImpl>(); _conflicts.put(sm.getObjectId(), sm); } } @@ -210,10 +207,9 @@ class ManagedCache implements Serializab // id, but it could have been in conflict cache StateManagerImpl orig; if (sm.getObjectId() == id) { - orig = (_conflicts == null) ? null - : (StateManagerImpl) _conflicts.remove(id); + orig = (_conflicts == null) ? null : _conflicts.remove(id); if (orig == sm) { - orig = (StateManagerImpl) _main.put(id, sm); + orig = _main.put(id, sm); if (orig != null && !orig.isDeleted()) { _main.put(sm.getObjectId(), orig); throw new UserException(_loc.get("dup-oid-assign", @@ -232,8 +228,8 @@ class ManagedCache implements Serializab if (_news != null) _news.remove(id); - // and put into main cache now that id is asssigned - orig = (StateManagerImpl) _main.put(sm.getObjectId(), sm); + // and put into main cache now that id is assigned + orig = _main.put(sm.getObjectId(), sm); if (orig != null && orig != sm && !orig.isDeleted()) { // put back orig and throw error _main.put(sm.getObjectId(), orig); @@ -246,7 +242,7 @@ class ManagedCache implements Serializab /** * Return a copy of all cached persistent objects. */ - public Collection copy() { + public Collection<StateManagerImpl> copy() { // proxies not included here because the state manager is always // present in other caches too @@ -260,19 +256,18 @@ class ManagedCache implements Serializab if (size == 0) return Collections.EMPTY_LIST; - List copy = new ArrayList(size); - for (Iterator itr = _main.values().iterator(); itr.hasNext();) - copy.add(itr.next()); + List<StateManagerImpl> copy = new ArrayList<StateManagerImpl>(size); + for (StateManagerImpl sm : _main.values()) + copy.add(sm); if (_conflicts != null && !_conflicts.isEmpty()) - for (Iterator itr = _conflicts.values().iterator(); - itr.hasNext();) - copy.add(itr.next()); + for (StateManagerImpl sm : _conflicts.values()) + copy.add(sm); if (_news != null && !_news.isEmpty()) - for (Iterator itr = _news.values().iterator(); itr.hasNext();) - copy.add(itr.next()); + for (StateManagerImpl sm : _news.values()) + copy.add(sm); if (_embeds != null && !_embeds.isEmpty()) - for (Iterator itr = _embeds.iterator(); itr.hasNext();) - copy.add(itr.next()); + for (StateManagerImpl sm : _embeds) + copy.add(sm); return copy; } @@ -280,7 +275,7 @@ class ManagedCache implements Serializab * Clear the cache. */ public void clear() { - _main = broker.newManagedObjectCache(); + _main = (Map<Object, StateManagerImpl>) broker.newManagedObjectCache(); if (_conflicts != null) _conflicts = null; if (_news != null) @@ -303,7 +298,7 @@ class ManagedCache implements Serializab if (_untracked == null) return; - for (Iterator iter = _untracked.iterator(); iter.hasNext(); ) - ((StateManagerImpl) iter.next()).dirtyCheck(); + for (StateManagerImpl sm : _untracked) + sm.dirtyCheck(); } } From commits-return-8128-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 22 20:45:53 2010 Return-Path: <commits-return-8128-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 73080 invoked from network); 22 Nov 2010 20:45:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 20:45:53 -0000 Received: (qmail 11808 invoked by uid 500); 22 Nov 2010 20:46:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 11782 invoked by uid 500); 22 Nov 2010 20:46:25 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 11775 invoked by uid 99); 22 Nov 2010 20:46:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 20:46:25 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 20:46:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2BE6723889D7; Mon, 22 Nov 2010 20:44:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037873 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ Date: Mon, 22 Nov 2010 20:44:50 -0000 To: commits@openjpa.apache.org From: curtisr7@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101122204450.2BE6723889D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: curtisr7 Date: Mon Nov 22 20:44:49 2010 New Revision: 1037873 URL: http://svn.apache.org/viewvc?rev=1037873&view=rev Log: OPENJPA-1895: Minor performance improvement. Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java?rev=1037873&r1=1037872&r2=1037873&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java Mon Nov 22 20:44:49 2010 @@ -125,12 +125,16 @@ public class JDBCStoreManager try { clientConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(ClientConnection.class, Connection.class); + clientConnectionImpl.setAccessible(true); refCountConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(RefCountConnection.class, JDBCStoreManager.class, Connection.class); + refCountConnectionImpl.setAccessible(true); cancelStatementImpl = ConcreteClassGenerator.getConcreteConstructor(CancelStatement.class, JDBCStoreManager.class, Statement.class, Connection.class); + cancelStatementImpl.setAccessible(true); cancelPreparedStatementImpl = ConcreteClassGenerator.getConcreteConstructor(CancelPreparedStatement.class, JDBCStoreManager.class, PreparedStatement.class, Connection.class); + cancelPreparedStatementImpl.setAccessible(true); } catch (Exception e) { throw new ExceptionInInitializerError(e); } Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java?rev=1037873&r1=1037872&r2=1037873&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java Mon Nov 22 20:44:49 2010 @@ -46,6 +46,7 @@ public class ConfiguringConnectionDecora try { configuringConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(ConfiguringConnection.class, ConfiguringConnectionDecorator.class, Connection.class); + configuringConnectionImpl.setAccessible(true); } catch (Exception e) { throw new ExceptionInInitializerError(e); } Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java?rev=1037873&r1=1037872&r2=1037873&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java Mon Nov 22 20:44:49 2010 @@ -61,6 +61,7 @@ public abstract class DelegatingPrepared try { concreteImpl = ConcreteClassGenerator.getConcreteConstructor(DelegatingPreparedStatement.class, PreparedStatement.class, Connection.class); + concreteImpl.setAccessible(true); } catch (Exception e) { throw new ExceptionInInitializerError(e); } Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java?rev=1037873&r1=1037872&r2=1037873&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java Mon Nov 22 20:44:49 2010 @@ -99,21 +99,27 @@ public class LoggingConnectionDecorator try { loggingConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(LoggingConnection.class, LoggingConnectionDecorator.class, Connection.class); + loggingConnectionImpl.setAccessible(true); loggingResultSetImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingResultSet.class, LoggingConnection.class, ResultSet.class, Statement.class); + loggingResultSetImpl.setAccessible(true); loggingStatementImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingStatement.class, LoggingConnection.class, Statement.class); + loggingStatementImpl.setAccessible(true); loggingPreparedStatementImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingPreparedStatement.class, LoggingConnection.class, PreparedStatement.class, String.class); + loggingPreparedStatementImpl.setAccessible(true); loggingCallableStatementImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingCallableStatement.class, LoggingConnection.class, CallableStatement.class, String.class); + loggingCallableStatementImpl.setAccessible(true); loggingDatabaseMetaDataImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingDatabaseMetaData.class, LoggingConnection.class, DatabaseMetaData.class); + loggingDatabaseMetaDataImpl.setAccessible(true); } catch (Exception e) { throw new ExceptionInInitializerError(e); } From commits-return-8129-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 22 21:48:28 2010 Return-Path: <commits-return-8129-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 8348 invoked from network); 22 Nov 2010 21:48:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 21:48:25 -0000 Received: (qmail 9436 invoked by uid 500); 22 Nov 2010 21:48:51 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 9413 invoked by uid 500); 22 Nov 2010 21:48:51 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 9395 invoked by uid 99); 22 Nov 2010 21:48:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 21:48:51 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 21:48:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 149B023889E9; Mon, 22 Nov 2010 21:47:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1037899 - in /openjpa/trunk/openjpa-persistence-jdbc/src: main/java/org/apache/openjpa/persistence/jdbc/ test/java/org/apache/openjpa/persistence/embed/ test/resources/org/apache/openjpa/persistence/embed/ Date: Mon, 22 Nov 2010 21:47:18 -0000 To: commits@openjpa.apache.org From: faywang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101122214719.149B023889E9@eris.apache.org> Author: faywang Date: Mon Nov 22 21:47:18 2010 New Revision: 1037899 URL: http://svn.apache.org/viewvc?rev=1037899&view=rev Log: OPENJPA-1893: handle more than one join-column tag inside collection-table tag Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/AttributeXml.java openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureIdXml.java openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureXml.java Modified: openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddableXml.java openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/embed/embed-orm.xml Modified: openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java?rev=1037899&r1=1037898&r2=1037899&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java Mon Nov 22 21:47:18 2010 @@ -907,7 +907,11 @@ public class XMLPersistenceMappingParser if (currentParent == COLLECTION_TABLE) { FieldMapping fm = (FieldMapping) peekElement(); Column col = parseColumn(attrs); - List<Column> colList = new ArrayList<Column>(); + List<Column> colList = fm.getMappingInfo().getColumns(); + if (colList.isEmpty()) { + colList = new ArrayList<Column>(); + fm.getMappingInfo().setColumns(colList); + } colList.add(col); fm.getMappingInfo().setColumns(colList); return true; Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/AttributeXml.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/AttributeXml.java?rev=1037899&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/AttributeXml.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/AttributeXml.java Mon Nov 22 21:47:18 2010 @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.embed; + +public class AttributeXml { + private String name; + + public String getName() { + return name; + } + + public void setName(String id) { + this.name = id; + } + + private String value; + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public AttributeXml() { + } +} Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureIdXml.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureIdXml.java?rev=1037899&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureIdXml.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureIdXml.java Mon Nov 22 21:47:18 2010 @@ -0,0 +1,70 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.embed; + +import java.io.Serializable; + +public class FeatureIdXml implements Serializable { + private String oid; + + public String getOid() { + return oid; + } + + public void setOid(String oid) { + this.oid = oid; + } + + private int index; + + public int getIndex() { + return index; + } + + public void setIndex(int feanum) { + this.index = feanum; + } + + public boolean equals(Object other) { + if (this == other) + return true; + if (other instanceof FeatureIdXml) { + FeatureIdXml castOther = (FeatureIdXml) other; + return getIndex() == castOther.getIndex() + && getOid().equals(castOther.getOid()); + } + return false; + } + + public int hashCode() { + return getIndex() + getOid().hashCode(); + } + + public String toString() { + return getOid() + "#" + getIndex(); + } + + public FeatureIdXml() { + } + + public FeatureIdXml(int idx, String oid) { + index = idx; + this.oid = oid; + } +} Added: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureXml.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureXml.java?rev=1037899&view=auto ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureXml.java (added) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureXml.java Mon Nov 22 21:47:18 2010 @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.openjpa.persistence.embed; + +import java.util.List; + +public class FeatureXml { + + private FeatureIdXml id; + + public FeatureIdXml getId() { + return id; + } + + public void setId(FeatureIdXml id) { + this.id = id; + } + + private List<AttributeXml> attributes; + + public List<AttributeXml> getAttributes() { + return attributes; + } + + public void setAttributes(List<AttributeXml> attributes) { + this.attributes = attributes; + } + + public FeatureXml() { + } +} Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddableXml.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddableXml.java?rev=1037899&r1=1037898&r2=1037899&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddableXml.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddableXml.java Mon Nov 22 21:47:18 2010 @@ -18,6 +18,7 @@ */ package org.apache.openjpa.persistence.embed; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -70,6 +71,53 @@ public class TestEmbeddableXml extends S return "embed-pu"; } + public void testJoinColumns() { + createFeatureXml(); + EntityManager em = emf.createEntityManager(); + String jpql = "Select f from Feature f Join fetch f.attributes"; + Query q = em.createQuery(jpql); + List<FeatureXml> fList = (List<FeatureXml>) q.getResultList(); + for (FeatureXml f : fList) { + List<AttributeXml> aList = f.getAttributes();; + assertEquals(1, aList.size()); + } + em.close(); + } + + public void createFeatureXml() { + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + tran.begin(); + FeatureXml f = new FeatureXml(); + FeatureIdXml fid = new FeatureIdXml(); + fid.setIndex(1); + fid.setOid("oid"); + f.setId(fid); + AttributeXml a = new AttributeXml(); + a.setName("name1"); + a.setValue("value1"); + List<AttributeXml> aList = new ArrayList<AttributeXml>(); + aList.add(a); + f.setAttributes(aList); + em.persist(f); + + FeatureXml f1 = new FeatureXml(); + FeatureIdXml fid1 = new FeatureIdXml(); + fid1.setIndex(1); + fid1.setOid("oid1"); + f1.setId(fid1); + AttributeXml a1 = new AttributeXml(); + a1.setName("name1"); + a1.setValue("value1"); + List<AttributeXml> aList1 = new ArrayList<AttributeXml>(); + aList1.add(a1); + f1.setAttributes(aList1); + em.persist(f1); + + tran.commit(); + em.close(); + } + public void testEntityA_Coll_StringXml() { createEntityA_Coll_StringXml(); queryEntityA_Coll_StringXml(); Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/embed/embed-orm.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/embed/embed-orm.xml?rev=1037899&r1=1037898&r2=1037899&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/embed/embed-orm.xml (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/embed/embed-orm.xml Mon Nov 22 21:47:18 2010 @@ -216,6 +216,33 @@ version="2.0"> </attributes> </entity> + <entity class="org.apache.openjpa.persistence.embed.FeatureXml"> + <table name="features" /> + <attributes> + <embedded-id name="id" /> + <element-collection name="attributes"> + <collection-table name="qualifiers"> + <join-column name="FEATURE_INDEX" referenced-column-name = "index"/> + <join-column name="FEATURE_OID" referenced-column-name="oid" /> + </collection-table> + </element-collection> + </attributes> + </entity> + + <embeddable class="org.apache.openjpa.persistence.embed.AttributeXml"> + <attributes> + <basic name="name"></basic> + <basic name="value"></basic> + </attributes> + </embeddable> + + <embeddable class="org.apache.openjpa.persistence.embed.FeatureIdXml"> + <attributes> + <basic name="oid"></basic> + <basic name="index"></basic> + </attributes> + </embeddable> + <embeddable class="org.apache.openjpa.persistence.embed.attrOverrides.AddressXml" access="FIELD"> From commits-return-8130-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 22 21:49:27 2010 Return-Path: <commits-return-8130-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 9057 invoked from network); 22 Nov 2010 21:49:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 21:49:26 -0000 Received: (qmail 15503 invoked by uid 500); 22 Nov 2010 21:49:58 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 15462 invoked by uid 500); 22 Nov 2010 21:49:58 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 15455 invoked by uid 99); 22 Nov 2010 21:49:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 21:49:58 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 21:49:51 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 55B44C0161 for <commits@openjpa.apache.org>; Mon, 22 Nov 2010 21:49:29 +0000 (UTC) Date: Mon, 22 Nov 2010 21:49:28 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1143895687.7761290462569251.JavaMail.hudson@aegis> In-Reply-To: <103194128.6461290272483449.JavaMail.hudson@aegis> References: <103194128.6461290272483449.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #338 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/338/changes> Changes: [mikedd] OPENJPA-1888: Add generics to ManagedCache and AbstractStoreManager. Submitted By: Guy Korland [mikedd] OPENJPA-1885: rename new method to persistInternal and some code formatting changes [faywang] OPENJPA-1894: reduce the number of Strings created by SelectImpl.getTableIndex ------------------------------------------ [...truncated 14048 lines...] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.128 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindException 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.238 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerDeadlock 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 25.333 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerNonVersion 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.204 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindBasic 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 23 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 27 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.681 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerRefreshPermutation 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 294.927 sec Running org.apache.openjpa.persistence.lockmgr.TestLocking 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.942 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindPermutation 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 384.663 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerLockPermutation 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Build timed out. Aborting Process 1290461470965 is killed. [HUDSON] Recording test results [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to call isArchivingDisabled. Invalid object ID 13 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.IllegalStateException: Unable to call isArchivingDisabled. Invalid object ID 13 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:268) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 55 minutes 43 seconds [INFO] Finished at: Mon Nov 22 21:49:25 UTC 2010 [INFO] Final Memory: 118M/486M [INFO] ------------------------------------------------------------------------ channel stopped From commits-return-8131-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 22 23:58:10 2010 Return-Path: <commits-return-8131-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 75433 invoked from network); 22 Nov 2010 23:58:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 23:58:10 -0000 Received: (qmail 78612 invoked by uid 500); 22 Nov 2010 23:58:42 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 78559 invoked by uid 500); 22 Nov 2010 23:58:42 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 78552 invoked by uid 99); 22 Nov 2010 23:58:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 23:58:42 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 23:58:39 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 9F23AC0161 for <commits@openjpa.apache.org>; Mon, 22 Nov 2010 23:58:18 +0000 (UTC) Date: Mon, 22 Nov 2010 23:58:18 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1175057135.7831290470298608.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJPA?= =?UTF-8?Q?-trunk_=C2=BB_OpenJPA_Persistence_JDBC_#339?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/339/changes> From commits-return-8132-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 22 23:58:15 2010 Return-Path: <commits-return-8132-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 75471 invoked from network); 22 Nov 2010 23:58:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 23:58:15 -0000 Received: (qmail 78674 invoked by uid 500); 22 Nov 2010 23:58:46 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 78636 invoked by uid 500); 22 Nov 2010 23:58:46 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 78625 invoked by uid 99); 22 Nov 2010 23:58:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 23:58:46 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 23:58:42 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 75BA5C0164 for <commits@openjpa.apache.org>; Mon, 22 Nov 2010 23:58:22 +0000 (UTC) Date: Mon, 22 Nov 2010 23:58:21 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <2020755543.7841290470302481.JavaMail.hudson@aegis> In-Reply-To: <1143895687.7761290462569251.JavaMail.hudson@aegis> References: <1143895687.7761290462569251.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #339 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/339/changes> Changes: [faywang] OPENJPA-1893: handle more than one join-column tag inside collection-table tag [curtisr7] OPENJPA-1895: Minor performance improvement. ------------------------------------------ [...truncated 14166 lines...] 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.26 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindBasic 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.748 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerRefreshPermutation 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 171 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 295.856 sec Running org.apache.openjpa.persistence.lockmgr.TestLocking 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.119 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindPermutation 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 382.518 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerLockPermutation 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Build timed out. Aborting Process 1290469044551 is killed. Sending e-mails to: commits@openjpa.apache.org [HUDSON] Recording test results [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to call isArchivingDisabled. Invalid object ID 13 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.IllegalStateException: Unable to call isArchivingDisabled. Invalid object ID 13 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:268) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 57 minutes 57 seconds [INFO] Finished at: Mon Nov 22 23:58:18 UTC 2010 [INFO] Final Memory: 122M/548M [INFO] ------------------------------------------------------------------------ channel stopped From commits-return-8134-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 07:29:00 2010 Return-Path: <commits-return-8134-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 11942 invoked from network); 23 Nov 2010 07:29:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 07:29:00 -0000 Received: (qmail 66815 invoked by uid 500); 23 Nov 2010 07:29:32 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 66796 invoked by uid 500); 23 Nov 2010 07:29:32 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 66737 invoked by uid 99); 23 Nov 2010 07:29:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:29:29 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:29:24 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8D24723889EA; Tue, 23 Nov 2010 07:27:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038004 [2/2] - in /openjpa/sandboxes/jest/openjpa-persistence/src/main: java/org/apache/openjpa/persistence/jest/ resources/org/apache/openjpa/persistence/jest/ Date: Tue, 23 Nov 2010 07:27:25 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123072740.8D24723889EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java Tue Nov 23 07:27:24 2010 @@ -22,44 +22,37 @@ package org.apache.openjpa.persistence.j import java.util.Arrays; import java.util.Map; +import org.apache.openjpa.persistence.jest.HTMLElement.Tag; +import static org.apache.openjpa.persistence.jest.Constants.*; + /** - * Formats a key-value pair in a HTML table. + * Formats a key-value pair in a HTML Document. * * @author Pinaki Poddar * */ class PropertiesFormatter { - private static final String[] ROW_STYLES = {"even", "odd"}; - - public HTMLElement writeHTML(String caption, String tkey, String tvalue, Map<String,Object> properties) { - HTMLElement html = new HTMLElement("html"); - html.add(new HTMLElement("head").add(HTMLElement.CSS_JEST)); - HTMLElement body = new HTMLElement("body"); - html.add(body); + public HTMLDocument createHTML(String title, String tkey, String tvalue, Map<String,Object> properties) { + HTMLDocument html = new HTMLDocument(); + html.getHead().add(CSS_JEST); - body.add(new HTMLElement("h1").setBody(caption)); - HTMLElement table = new HTMLElement("table"); - HTMLElement header = new HTMLElement("tr").add( - new HTMLElement("th").set("style", "width:35%").setBody(tkey), - new HTMLElement("th").set("style", "width:65%").setBody(tvalue)); + HTMLElement table = new HTMLElement(Tag.table).add(new HTMLElement(Tag.caption).setBody(title)); + HTMLElement header = new HTMLElement(Tag.tr).add( + new HTMLElement(Tag.th).set(STYLE, "width:35%").setBody(tkey), + new HTMLElement(Tag.th).set(STYLE, "width:65%").setBody(tvalue)); table.add(header); + html.getBody().add(table); int i = 0; for (Map.Entry<String,Object> entry : properties.entrySet()) { - i++; + HTMLElement row = new HTMLElement(Tag.tr).set(ATTR_CLASS, ++i%2 == 0 ? CSS_EVEN_ROW : CSS_ODD_ROW); Object value = entry.getValue(); - String v = ""; - if (value != null) { - v = value.getClass().isArray() ? Arrays.toString((Object[])value) : value.toString(); - } - HTMLElement row = new HTMLElement("tr"); - String style = i%2 == 0 ? ROW_STYLES[0] : ROW_STYLES[1]; - row.set("class", style); + String v = value == null + ? Constants.NULL_VALUE + : value.getClass().isArray() ? Arrays.toString((Object[])value) : value.toString(); table.add(row.add( - new HTMLElement("td").setBody(entry.getKey()), - new HTMLElement("td").setBody(v))); + new HTMLElement(Tag.td).setBody(entry.getKey()), + new HTMLElement(Tag.td).setBody(v))); } - body.add(table); - return html; } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java Tue Nov 23 07:27:24 2010 @@ -24,6 +24,7 @@ import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; +import static org.apache.openjpa.persistence.jest.Constants.*; import javax.persistence.EntityManager; import javax.persistence.Query; @@ -35,9 +36,10 @@ import javax.persistence.Query; * */ class QueryCommand extends AbstractCommand { - private static final List<String> _mandatoryArgs = Arrays.asList("q"); - private static final List<String> _validQualifiers = Arrays.asList("format", "plan", "named", "single", - "first", "max"); + private static final List<String> _mandatoryArgs = Arrays.asList(ARG_QUERY); + private static final List<String> _validQualifiers = Arrays.asList( + QUALIFIER_FORMAT, QUALIFIER_PLAN, QUALIFIER_NAMED, QUALIFIER_SINGLE, + QUALIFIER_FIRSTRESULT, QUALIFIER_MAXRESULT); @Override protected Collection<String> getMandatoryArguments() { @@ -55,22 +57,23 @@ class QueryCommand extends AbstractComma @Override public void process(JPAServletContext ctx) throws ProcessingException { - String spec = getMandatoryArgument("q"); + String spec = getMandatoryArgument(ARG_QUERY); try { EntityManager em = ctx.getPersistenceContext(); - Query query = isBooleanQualifier("named") ? em.createNamedQuery(spec) : em.createQuery(spec); - if (hasQualifier("first")) - query.setFirstResult(Integer.parseInt(getQualifier("first"))); - if (hasQualifier("max")) - query.setMaxResults(Integer.parseInt(getQualifier("max"))); + Query query = isBooleanQualifier(QUALIFIER_NAMED) ? em.createNamedQuery(spec) : em.createQuery(spec); + if (hasQualifier(QUALIFIER_FIRSTRESULT)) + query.setFirstResult(Integer.parseInt(getQualifier(QUALIFIER_FIRSTRESULT))); + if (hasQualifier(QUALIFIER_MAXRESULT)) + query.setMaxResults(Integer.parseInt(getQualifier(QUALIFIER_MAXRESULT))); Map<String, String> args = getArguments(); for (Map.Entry<String, String> entry : args.entrySet()) { query.setParameter(entry.getKey(), entry.getValue()); } getObjectFormatter(ctx) - .encode(toStateManager(ctx.getPersistenceContext(), isBooleanQualifier("single") - ? Collections.singleton(query.getSingleResult()) : query.getResultList()), ctx); + .writeOut(toStateManager(isBooleanQualifier(QUALIFIER_SINGLE) + ? Collections.singleton(query.getSingleResult()) : query.getResultList()), + em.getMetamodel(), ctx.getResponse().getWriter()); } catch (Exception e) { throw new ProcessingException(e, _loc.get("query-execution-error", spec)); } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java Tue Nov 23 07:27:24 2010 @@ -19,40 +19,31 @@ package org.apache.openjpa.persistence.jest; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_ID; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_KEY_TYPE; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_MEMBER_TYPE; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_NAME; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_NULL; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_TYPE; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ATTR_VALUE_TYPE; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_ENTRY; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_ENTRY_KEY; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_ENTRY_VALUE; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_INSTANCE; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_MEMBER; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_NULL_REF; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_REF; -import static org.apache.openjpa.persistence.jest.MetamodelHelper.ELEMENT_ROOT; +import static org.apache.openjpa.persistence.jest.Constants.*; import java.io.BufferedReader; import java.io.CharArrayWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; +import java.io.PrintWriter; import java.io.Reader; import java.io.Writer; +import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.BitSet; import java.util.Collection; import java.util.Collections; +import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import javax.persistence.metamodel.Attribute; +import javax.persistence.metamodel.ManagedType; import javax.persistence.metamodel.Metamodel; +import javax.persistence.metamodel.SingularAttribute; import javax.xml.XMLConstants; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; @@ -87,16 +78,7 @@ import org.w3c.dom.Element; * @author Pinaki Poddar * */ -public class XMLFormatter implements ObjectFormatter { - /** - * The element/attribute tags declared in <code>jest-instance.xsd</code> XML schema. - */ - - - static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema"; - static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource"; - static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage"; - static final String JEST_INSTANCE_XSD = "jest-instance.xsd"; +public class XMLFormatter implements ObjectFormatter<Document> { public static final Schema _xsd; private static final DocumentBuilder _builder; @@ -107,9 +89,8 @@ public class XMLFormatter implements Obj _builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); _transformer = TransformerFactory.newInstance().newTransformer(); SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); - InputStream in = XMLFormatter.class.getResourceAsStream(JEST_INSTANCE_XSD); - Source schemaFile = new StreamSource(in); - _xsd = factory.newSchema(schemaFile); + InputStream xsd = XMLFormatter.class.getResourceAsStream(JEST_INSTANCE_XSD); + _xsd = factory.newSchema(new StreamSource(xsd)); _transformer.setOutputProperty(OutputKeys.METHOD, "xml"); _transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); @@ -126,83 +107,76 @@ public class XMLFormatter implements Obj return MIME_TYPE_XML; } - @Override - public void encode(Object obj, JPAServletContext ctx) throws IOException { - if (obj instanceof OpenJPAStateManager) { - Document doc = encodeManagedInstance((OpenJPAStateManager)obj, ctx.getPersistenceContext().getMetamodel()); - try { - write(doc, ctx.getResponse().getWriter()); - } catch (Exception ex) { - throw new ProcessingException(ex); - } - } else { - throw new IllegalArgumentException(obj + " is not a managed instance"); - } - } - - @Override - public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException { - try { - Metamodel model = ctx.getPersistenceContext().getMetamodel(); - Document doc = encodeManagedInstances((Collection<OpenJPAStateManager>)objs, model); - write(doc, ctx.getResponse().getWriter()); - } catch (Exception e) { - throw new IllegalArgumentException(objs + " is not a managed instance"); - } - } - - public void write(Document doc, Writer writer) throws Exception { - _transformer.transform(new DOMSource(doc), new StreamResult(writer)); - } - /** - * Encodes a single managed instance in to a XML document according to JEST XML Schema. - * + * Encodes the closure of given collection of managed instance into a new XML document + * according to JEST Instance XML Schema. + * + * @param sm a collection of managed instances. + * @param parent the parent node to which the new node be attached. */ - public Document encodeManagedInstance(final OpenJPAStateManager sm, Metamodel model) { - return encodeManagedInstances(Collections.singleton(sm), model); + public Document encode(final Collection<OpenJPAStateManager> sms, Metamodel model) { + Document doc = newDocument(ELEMENT_ROOT_INSTANCE); + Closure closure = new Closure(sms); + for (OpenJPAStateManager sm : closure) { + encodeManagedInstance(sm, doc.getDocumentElement(), false, model); + } + return doc; } /** - * Encodes the given managed instance into a new XML element as a child of the given parent node. + * Encodes the given meta-model into a new XML document according to JEST Domain XML Schema. * - * @param sm a managed instance, can be null. - * @param parent the parent node to which the new node be attached. + * @param model a persistent domain model. Must not be null. */ - public Element encodeManagedInstance(final OpenJPAStateManager sm, Element parent, Metamodel model) { - Set<OpenJPAStateManager> visited = new HashSet<OpenJPAStateManager>(); - Set<OpenJPAStateManager> futures = new HashSet<OpenJPAStateManager>(); - return encodeManagedInstance(sm, parent, visited, futures, false, model); + public Document encode(Metamodel model) { + Document doc = newDocument(ELEMENT_DOMAIN); + for (ManagedType<?> t : model.getManagedTypes()) { + encodeManagedType(t, doc.getDocumentElement()); + } + return doc; } - + /** - * Encodes the given collection of managed instance into a new XML document according to JEST XML Schema. + * Create a new document with the given root. * - * @param sm a managed instance, can be null. - * @param parent the parent node to which the new node be attached. + * @param rootTag the tag of the root element + * + * @return a new XML document */ - public Document encodeManagedInstances(final Collection<OpenJPAStateManager> sms, Metamodel model) { + private Document newDocument(String rootTag) { Document doc = _builder.newDocument(); - Element root = doc.createElement(ELEMENT_ROOT); + Element root = doc.createElement(rootTag); doc.appendChild(root); - if (sms != null) { - Set<OpenJPAStateManager> visited = new HashSet<OpenJPAStateManager>(); - Set<OpenJPAStateManager> futures = new HashSet<OpenJPAStateManager>(); - for (OpenJPAStateManager sm : sms) { - encodeManagedInstance(sm, root, visited, futures, false, model); - } - while (!futures.isEmpty()) { - Set<OpenJPAStateManager> newFutures = new HashSet<OpenJPAStateManager>(); - for (OpenJPAStateManager sm : futures) { - encodeManagedInstance(sm, root, visited, newFutures, false, model); - } - futures = newFutures; - } + String[] nvpairs = new String[] { + "xmlns:xsi", XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI, +// "xsi:noNamespaceSchemaLocation", JEST_INSTANCE_XSD, + ATTR_VERSION, "1.0", + }; + for (int i = 0; i < nvpairs.length; i += 2) { + root.setAttribute(nvpairs[i], nvpairs[i+1]); } - addSchemaToRoot(doc); return doc; } + + @Override + public void writeOut(Collection<OpenJPAStateManager> objs, Metamodel model, PrintWriter writer) throws IOException { + write(encode(objs, model), writer, true); + } + + @Override + public void writeOut(Metamodel model, PrintWriter writer) throws IOException { + write(encode(model), writer, true); + } + + protected void write(Document doc, Writer writer, boolean standalone) throws IOException { + try { + _transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, standalone ? "yes" : "no"); + _transformer.transform(new DOMSource(doc), new StreamResult(writer)); + } catch (Exception e) { + throw new IOException(e); + } + } /** * Encodes the closure of a persistent instance into a XML element. @@ -215,31 +189,16 @@ public class XMLFormatter implements Obj * @return the new element. The element has been appended as a child to the given parent in this method. */ private Element encodeManagedInstance(final OpenJPAStateManager sm, final Element parent, - final Set<OpenJPAStateManager> visited, final Set<OpenJPAStateManager> futures, boolean isRef, - Metamodel model) { + boolean isRef, Metamodel model) { if (parent == null) throw new InternalException(_loc.get("format-xml-null-parent")); Document doc = parent.getOwnerDocument(); if (doc == null) throw new InternalException(_loc.get("format-xml-null-doc")); - if (visited == null) - throw new InternalException(_loc.get("format-xml-null-closure")); - if (sm == null) { - return encodeRef(parent, null); - } - boolean isVisited = visited.contains(sm); - if (isRef) { - if (!isVisited) { - futures.add(sm); - } + if (sm == null || isRef) { return encodeRef(parent, sm); - } else if (isVisited) { - System.err.println("SM " + ior(sm) + " is not a ref but visited - so not being printed at all"); - return null; - } - // Neither a ref nor visited before - visited.add(sm); + } Element root = doc.createElement(ELEMENT_INSTANCE); parent.appendChild(root); root.setAttribute(ATTR_ID, ior(sm)); @@ -305,7 +264,7 @@ public class XMLFormatter implements Obj child.setAttribute(ATTR_NAME, fmd.getName()); child.setAttribute(ATTR_TYPE, typeOf(fmd)); OpenJPAStateManager other = ctx.getStateManager(value); - encodeManagedInstance(other, child, visited, futures, true, model); + encodeManagedInstance(other, child, true, model); break; case JavaTypes.ARRAY: @@ -332,7 +291,7 @@ public class XMLFormatter implements Obj if (basic) { encodeBasic(member, o, o.getClass()); } else { - encodeManagedInstance(ctx.getStateManager(o), member, visited, futures, true, model); + encodeManagedInstance(ctx.getStateManager(o), member, true, model); } } } @@ -363,8 +322,7 @@ public class XMLFormatter implements Obj if (basicKey) { encodeBasic(entryKey, e.getKey(), e.getKey().getClass()); } else { - encodeManagedInstance(ctx.getStateManager(e.getKey()), entryKey, visited, futures, - true, model); + encodeManagedInstance(ctx.getStateManager(e.getKey()), entryKey, true, model); } } if (e.getValue() == null) { @@ -373,8 +331,7 @@ public class XMLFormatter implements Obj if (basicValue) { encodeBasic(entryValue, e.getValue(), e.getValue().getClass()); } else { - encodeManagedInstance(ctx.getStateManager(e.getValue()), entryValue, visited, futures, - true, model); + encodeManagedInstance(ctx.getStateManager(e.getValue()), entryValue, true, model); } } } @@ -418,7 +375,8 @@ public class XMLFormatter implements Obj Element ref = parent.getOwnerDocument().createElement(sm == null ? ELEMENT_NULL_REF : ELEMENT_REF); if (sm != null) ref.setAttribute(ATTR_ID, ior(sm)); - ref.setTextContent(" "); + // IMPORTANT: for xml transformer not to omit the closing tag otherwise dojo is confused + ref.setTextContent(SPACE); parent.appendChild(ref); return ref; } @@ -433,7 +391,10 @@ public class XMLFormatter implements Obj */ private void encodeBasic(Element element, Object obj, Class<?> runtimeType) { element.setAttribute(ATTR_TYPE, typeOf(runtimeType)); - element.setTextContent(obj.toString()); + if (obj instanceof Date) + element.setTextContent(dateFormat.format(obj)); + else + element.setTextContent(obj.toString()); } @@ -465,19 +426,34 @@ public class XMLFormatter implements Obj return writer.toString(); } - void addSchemaToRoot(Document doc) { - Element root = doc.getDocumentElement(); - - String[] nvpairs = new String[] { - "xmlns:xsi", XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI, -// "xsi:noNamespaceSchemaLocation", JEST_INSTANCE_XSD, - "version", "1.0", - }; - for (int i = 0; i < nvpairs.length; i += 2) { - root.setAttribute(nvpairs[i], nvpairs[i+1]); + + private void encodeManagedType(ManagedType<?> type, Element parent) { + Document doc = parent.getOwnerDocument(); + Element root = doc.createElement(type.getPersistenceType().toString().toLowerCase()); + parent.appendChild(root); + root.setAttribute(ATTR_NAME, type.getJavaType().getSimpleName()); + List<Attribute<?,?>> attributes = MetamodelHelper.getAttributesInOrder(type); + for (Attribute<?,?> a : attributes) { + String tag = null; + if (a instanceof SingularAttribute) { + SingularAttribute<?, ?> sa = (SingularAttribute<?, ?>)a; + if (sa.isId()) { + tag = ATTR_ID; + } else if (sa.isVersion()) { + tag = ATTR_VERSION; + } + } + if (tag == null) { + tag = a.getPersistentAttributeType().toString().toLowerCase().replace(UNDERSCORE, DASH); + } + + Element child = doc.createElement(tag); + root.appendChild(child); + child.setAttribute(ATTR_TYPE, a.getJavaType().getSimpleName()); + child.setTextContent(a.getName()); } } - + void validate(Document doc) throws Exception { Validator validator = _xsd.newValidator(); validator.validate(new DOMSource(doc)); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js Tue Nov 23 07:27:24 2010 @@ -18,7 +18,7 @@ */ /** - * A JavaScript to render a set of instances as dojo widgets. + * A JavaScript to render a set of instances as dojo widgets. */ dojo.require("dijit.form.Button"); dojo.require("dijit.TitlePane"); @@ -26,14 +26,14 @@ dojo.ready(function(){ // data is supplied in a hidden div with id="data" var data = dojo.byId("data"); - // Find all instance node within data node and create TitlePanel for each + // Find all instance node within data node and create TitlePanel for each var panels = new Array(); dojo.query("instance", data).forEach(function(item, index) { var panel = create(item); panels[index] = panel; }); - // widgets are placed on a empty div with id="canvas" + // widgets are placed on a empty div with id="canvas" var canvas = dojo.byId("canvas"); // assign random location to each panel and add them to canvas dojo.forEach(panels, function(item, index) { @@ -48,20 +48,22 @@ dojo.ready(function(){ }); /** - * Creates a dojo Title Pane from a DOM instance node. - * The pane has the instance id as its title. - * The content is name and value of each attribute in separate line. + * Creates a dojo Title Pane from a DOM instance node. The pane has the instance + * id as its title. The content is name and value of each attribute in separate + * line. * - * @param node an instance node + * @param node + * an instance node * @returns */ function create(node) { var attrs = document.createElement("table"); - dojo.query('basic, one-to-one', node) + dojo.query('id, basic, enum, version', node) .forEach(function(item) { var attr = document.createElement("tr"); var name = document.createElement("td"); - name.innerHTML = item.getAttribute("name").bold(); + name.className = item.nodeName.toLowerCase(); /* May be cross-browser trouble */ + name.innerHTML = item.getAttribute("name"); var value = document.createElement("td"); value.innerHTML = item.innerHTML; attr.appendChild(name); @@ -69,6 +71,50 @@ function create(node) { attrs.appendChild(attr); } ); + dojo.query('one-to-one, many-to-one', node) + .forEach(function(item) { + var attr = document.createElement("tr"); + var name = document.createElement("td"); + name.className = item.nodeName.toLowerCase(); /* May be cross-browser trouble */ + name.innerHTML = item.getAttribute("name"); + var value = document.createElement("td"); + var ref = item.getElementsByTagName("ref"); + if (ref.length>0) { + value.innerHTML = ref[0].getAttribute("id"); + value.className = ref[0].nodeName.toLowerCase(); + attr.appendChild(name); + attr.appendChild(value); + attrs.appendChild(attr); + } + }); + dojo.query('one-to-many', node) + .forEach(function(item) { + var attr = document.createElement("tr"); + var name = document.createElement("td"); + name.className = item.nodeName.toLowerCase(); /* May be cross-browser trouble */ + name.innerHTML = item.getAttribute("name"); + var value = document.createElement("td"); + var refs = item.getElementsByTagName("ref"); + for (var i = 0; i < refs.length; i++) { + if (i == 0) { + value.innerHTML = refs[i].getAttribute("id"); + value.className = refs[i].nodeName.toLowerCase(); + attr.appendChild(name); + attr.appendChild(value); + attrs.appendChild(attr); + } else { + var attr = document.createElement("tr"); + var name = document.createElement("td"); + var value = document.createElement("td"); + value.className = refs[i].nodeName.toLowerCase(); + value.innerHTML = refs[i].getAttribute("id"); + attr.appendChild(name); + attr.appendChild(value); + attrs.appendChild(attr); + } + } + } +); var pane = new dijit.TitlePane({ title: node.getAttribute("id"), content:attrs Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css Tue Nov 23 07:27:24 2010 @@ -40,42 +40,52 @@ * --------------------------------------------------------------------- */ .tag { color:green; - font:"Courier New"; + font-family:"Courier New"; font-weight:bold; } /** ----------------------------------------------------------------------- - * Table + * Data Table used for Tabular HTML * --------------------------------------------------------------------- */ -table { +table.data td th { width : 70%; border-collapse:collapse; -} -table td th { - padding:1em 10em 2m 10em; border:2px solid black; + margin: 10px 10px 10px 10px; +} +tr { + vertical-align:top; } th { - background-color:black; + background-color:#444444; color:white; + text-align:left; +} +caption { + background-color:#000000; + color:white; + font-size:1.2em; + font-weight:bold; + padding:5px 5px 5px 5px; } /** ----------------------------------------------------------------------- * Alternate Table Row * --------------------------------------------------------------------- */ tr.even td { background-color: #FFFFFF; color: black; - padding:2x 20px; - border:2px solid black; + padding:2px 20px; + border:2px solid black; + vertical-align:top; } tr.odd td { background-color: #EEEEEE; color: black; - padding:2x 20px; - border:2px solid black; + padding:2px 20px; + border:2px solid black; + vertical-align:top; } /** ----------------------------------------------------------------------- * Hyperlinks * --------------------------------------------------------------------- */ - a { target:_blank; } @@ -86,6 +96,14 @@ a { font-size:1.1em; font-family:"Courier New", Arial; } + +/** ----------------------------------------------------------------------- + * Paragraph with smaller line breaks + * --------------------------------------------------------------------- */ +p.small { + line-height:60%; +} + /** ----------------------------------------------------------------------- * Error Page * --------------------------------------------------------------------- */ @@ -99,4 +117,30 @@ a { font-size:1.2em; } +/* + * JPA styles +*/ +.id { + color:red; + font-weight:bold; +} +.enum { + color:magenta; + font-weight:bold; +} +.basic { + color:green; + font-weight:bold; +} +.one-to-one { + color:lightblue; + font-weight:bold; +} +.one-to-many { + color:darkblue; + font-weight:bold; +} +.ref { + color : blue; +} Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties Tue Nov 23 07:27:24 2010 @@ -45,6 +45,7 @@ parse-less-argument: {0} command must ha format-xml-null-parent: A null XML parent element encountered during serialization format-xml-null-doc: Given parent element is not part of XML document format-xml-null-closure: Set of visited instances can not be null for serialization - +format-not-supported: format {0} in command {1} is not registered. Available formats are {2}. properties-caption: Configuration of {0} Persistence Unit +entity-not-found: Resource of type {0} with identifier {1} is not found. \ No newline at end of file From commits-return-8133-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 07:29:00 2010 Return-Path: <commits-return-8133-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 11943 invoked from network); 23 Nov 2010 07:29:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 07:29:00 -0000 Received: (qmail 66811 invoked by uid 500); 23 Nov 2010 07:29:32 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 66750 invoked by uid 500); 23 Nov 2010 07:29:30 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 66736 invoked by uid 99); 23 Nov 2010 07:29:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:29:29 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:29:24 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 13D6723889E9; Tue, 23 Nov 2010 07:27:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038004 [1/2] - in /openjpa/sandboxes/jest/openjpa-persistence/src/main: java/org/apache/openjpa/persistence/jest/ resources/org/apache/openjpa/persistence/jest/ Date: Tue, 23 Nov 2010 07:27:25 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123072726.13D6723889E9@eris.apache.org> Author: ppoddar Date: Tue Nov 23 07:27:24 2010 New Revision: 1038004 URL: http://svn.apache.org/viewvc?rev=1038004&view=rev Log: OPENJPA-1851: Add closure. Templateize ObjectFormatter. Separate format vs stream handling. Refine Dojo. Consolidate strings (omg!) Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Closure.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Constants.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTableFormatter.java (with props) Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/QueryCommand.java openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/XMLFormatter.java openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/instances.js openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/jest.css openjpa/sandboxes/jest/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/jest/localizer.properties Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/AbstractCommand.java Tue Nov 23 07:27:24 2010 @@ -20,6 +20,10 @@ package org.apache.openjpa.persistence.jest; import static java.net.HttpURLConnection.HTTP_BAD_REQUEST; +import static org.apache.openjpa.persistence.jest.Constants.*; +import static org.apache.openjpa.persistence.jest.Constants.EQUAL; +import static org.apache.openjpa.persistence.jest.Constants.FORMAT_DEFAULT; +import static org.apache.openjpa.persistence.jest.Constants.PATH_SEPARATOR; import java.io.IOException; import java.io.PrintWriter; @@ -35,10 +39,9 @@ import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.openjpa.enhance.PersistenceCapable; import org.apache.openjpa.kernel.OpenJPAStateManager; -import org.apache.openjpa.kernel.StoreContext; -import org.apache.openjpa.persistence.JPAFacadeHelper; -import org.apache.openjpa.persistence.OpenJPAEntityManager; + /** * The abstract base class for all commands available to JEST. * @@ -46,9 +49,6 @@ import org.apache.openjpa.persistence.Op * */ abstract class AbstractCommand implements JESTCommand { - private static final Collection<String> EMPTY_LIST = Collections.emptySet(); - private static final String PATH_SEPARATOR = "/"; - private static final char EQUAL = '='; protected ObjectFormatter _formatter; protected static PrototypeFactory<ObjectFormatter> _ff = new PrototypeFactory<ObjectFormatter>(); @@ -57,9 +57,10 @@ abstract class AbstractCommand implement private Map<String, String> _margs = new HashMap<String, String>(); static { - _ff.register("xml", XMLFormatter.class); - _ff.register("json", JSONObjectFormatter.class); - _ff.register("dojo", DojoFormatter.class); + _ff.register(FORMAT_XML, XMLFormatter.class); + _ff.register(FORMAT_JSON, JSONObjectFormatter.class); + _ff.register(FORMAT_DOJO, DojoFormatter.class); + _ff.register(FORMAT_HTML, HTMLTableFormatter.class); } public String getMandatoryArgument(String key) { @@ -200,29 +201,37 @@ abstract class AbstractCommand implement return map.containsKey(key); } - public ObjectFormatter getObjectFormatter(JPAServletContext ctx) { + public ObjectFormatter<?> getObjectFormatter(JPAServletContext ctx) { if (_formatter == null) { - String format = getQualifier("format"); + String format = getQualifier(QUALIFIER_FORMAT); if (format == null) { - format = ctx.getRequest().getSession().getServletContext().getInitParameter("response.format"); + format = ctx.getRequest().getSession().getServletContext().getInitParameter(INIT_PARA_FORMAT); if (format == null) - return new XMLFormatter(); + format = FORMAT_DEFAULT; } _formatter = _ff.newInstance(format); + if (_formatter == null) { + throw new ProcessingException(_loc.get("format-not-supported", new Object[]{format, + ctx.getRequest().getPathInfo(), _ff.getRegisteredKeys()}), HTTP_BAD_REQUEST); + } } return _formatter; } - protected OpenJPAStateManager toStateManager(OpenJPAEntityManager em, Object obj) { - StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(em)); - return broker.getStateManager(obj); + protected OpenJPAStateManager toStateManager(Object obj) { + if (obj instanceof OpenJPAStateManager) + return (OpenJPAStateManager)obj; + if (obj instanceof PersistenceCapable) { + return (OpenJPAStateManager)((PersistenceCapable)obj).pcGetStateManager(); + } + return null; } - protected List<OpenJPAStateManager> toStateManager(OpenJPAEntityManager em, Collection<?> objects) { - StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(em)); + protected List<OpenJPAStateManager> toStateManager(Collection<?> objects) { List<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); for (Object o : objects) { - sms.add(broker.getStateManager(o)); + OpenJPAStateManager sm = toStateManager(o); + if (sm != null) sms.add(sm); } return sms; } @@ -231,7 +240,7 @@ abstract class AbstractCommand implement protected void debug(HttpServletRequest request, HttpServletResponse response, JPAServletContext ctx) throws IOException { - response.setContentType("text/plain"); + response.setContentType(MIME_TYPE_PLAIN); PrintWriter writer = response.getWriter(); writer.println("URI = [" + request.getRequestURI() + "]"); Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Closure.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Closure.java?rev=1038004&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Closure.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Closure.java Tue Nov 23 07:27:24 2010 @@ -0,0 +1,107 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.util.BitSet; +import java.util.Collection; +import java.util.Collections; +import java.util.Iterator; +import java.util.LinkedHashSet; +import java.util.Map; +import java.util.Set; + +import org.apache.openjpa.enhance.PersistenceCapable; +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.meta.FieldMetaData; +import org.apache.openjpa.meta.JavaTypes; + +/** + * Computes closure of a collection of managed objects. + * + * @author Pinaki Poddar + * + */ +public class Closure implements Iterable<OpenJPAStateManager> { + private Set<OpenJPAStateManager> _visited = new LinkedHashSet<OpenJPAStateManager>(); + + public Closure(OpenJPAStateManager root) { + this(Collections.singleton(root)); + } + + public Closure(Collection<OpenJPAStateManager> roots) { + for (OpenJPAStateManager sm : roots) { + visit(sm); + } + } + + private void visit(OpenJPAStateManager sm) { + if (sm == null) + return; + boolean isVisited = !_visited.add(sm); + if (isVisited) return; + BitSet loaded = sm.getLoaded(); + FieldMetaData[] fmds = sm.getMetaData().getFields(); + for (FieldMetaData fmd : fmds) { + int idx = fmd.getIndex(); + if (!loaded.get(idx)) + continue; + if (fmd.getElement().getTypeMetaData() == null && fmd.getValue().getTypeMetaData() == null) + continue; + switch (fmd.getDeclaredTypeCode()) { + case JavaTypes.PC: + visit(toStateManager(sm.fetch(idx))); + break; + case JavaTypes.ARRAY: + Object[] values = (Object[])sm.fetch(idx); + for (Object o : values) + visit(toStateManager(o)); + break; + case JavaTypes.COLLECTION: + Collection<?> members = (Collection<?>)sm.fetch(idx); + for (Object o : members) + visit(toStateManager(o)); + break; + case JavaTypes.MAP: + Map<?,?> map = (Map<?,?>)sm.fetch(idx); + for (Map.Entry<?,?> entry : map.entrySet()) { + visit(toStateManager(entry.getKey())); + visit(toStateManager(entry.getValue())); + } + break; + default: + } + } + } + + OpenJPAStateManager toStateManager(Object o) { + if (o instanceof PersistenceCapable) { + return (OpenJPAStateManager)((PersistenceCapable)o).pcGetStateManager(); + } + return null; + } + + public Iterator<OpenJPAStateManager> iterator() { + return _visited.iterator(); + } + + String ior(OpenJPAStateManager sm) { + return sm.getMetaData().getDescribedType().getSimpleName()+'-'+sm.getObjectId(); + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Closure.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Constants.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Constants.java?rev=1038004&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Constants.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Constants.java Tue Nov 23 07:27:24 2010 @@ -0,0 +1,204 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.text.SimpleDateFormat; +import java.util.Collection; +import java.util.Collections; + +import org.apache.openjpa.lib.util.Localizer; +import org.apache.openjpa.persistence.jest.HTMLElement.Tag; + +/** + * Static String constants + * + * @author Pinaki Poddar + * + */ +public interface Constants { + /** + * Character constants + */ + public static final char EQUAL = '='; + public static final char START = '<'; + public static final char END = '>'; + public static final char SLASH = '/'; + public static final char QUOTE = '"'; + public static final char DOT = '.'; + public static final char UNDERSCORE = '_'; + public static final char DASH = '-'; + public static final char HASH = '#'; + public static final String EMPTY = ""; + public static final String SPACE = " "; + public static final String NEWLINE = "\r\n"; + public static final String PATH_SEPARATOR = "/"; + public static final String KEY_VALUE_SEPARATOR = " : "; + + /** + * Command Qualifiers + */ + public static final String QUALIFIER_FORMAT = "format"; + public static final String QUALIFIER_PLAN = "plan"; + public static final String QUALIFIER_MAXRESULT = "max"; + public static final String QUALIFIER_FIRSTRESULT = "first"; + public static final String QUALIFIER_NAMED = "named"; + public static final String QUALIFIER_SINGLE = "single"; + + /** + * Command Arguments + */ + public static final String ARG_QUERY = "q"; + public static final String ARG_TYPE = "type"; + + /** + * Supported format monikers. + */ + public static final String FORMAT_XML = "xml"; + public static final String FORMAT_JSON = "json"; + public static final String FORMAT_DOJO = "dojo"; + public static final String FORMAT_HTML = "html"; + public static final String FORMAT_DEFAULT = "html"; + + /** + * Mime Types + */ + public static final String MIME_TYPE_PLAIN = "text/plain"; + public static final String MIME_TYPE_JS = "text/javascript"; + public static final String MIME_TYPE_CSS = "text/css"; + public static final String MIME_TYPE_HTML = "text/html"; + public static final String MIME_TYPE_XML = "text/xml"; + public static final String MIME_TYPE_JSON = "application/json"; + + public static final String CONTEXT_ROOT = "/"; + + /** + * Servlet initialization parameters + */ + public static final String INIT_PARA_FORMAT = "response.format"; + public static final String INIT_PARA_UNIT = "persistence.unit"; + + /** + * Dojo Toolkit URL and Themes + */ + public static final String DOJO_URL = "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"; + public static final String DOJO_CSS_URL = "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/"; + public static final String DOJO_THEME = "claro"; + + /** + * HTML divisions used by Dojo JavaScript + */ + public static final String HTML_DIV_CANVAS = "canvas"; + public static final String HTML_DIV_DATA = "data"; + + /** + * CSS styles + */ + public static final String CSS_INVISIBLE = "display:none;"; + public static final String CSS_ERROR_MESSSAGE = "error-message"; + public static final String CSS_ERROR_HEADER = "error-header"; + public static final String CSS_EVEN_ROW = "even"; + public static final String CSS_ODD_ROW = "odd"; + public static final String CSS_DATA_TABLE = "data"; + + public static final String ATTR_REL = "rel"; + public static final String ATTR_SRC = "src"; + public static final String ATTR_TYPE = "type"; + public static final String ATTR_NAME = "name"; + public static final String ATTR_VERSION = "version"; + public static final String ATTR_CLASS = "class"; + public static final String HREF = "href"; + public static final String STYLESHEET = "stylesheet"; + public static final String STYLE = "style"; + public static final String REL = "rel"; + public static final String ATTR_ID = "id"; + + /** + * Root element of XML instances. Must match the name defined in <A href="jest-instance.xsd>jest-instance.xsd</A>. + */ + public static final String ELEMENT_ROOT_INSTANCE = "instances"; + public static final String ELEMENT_INSTANCE = "instance"; + public static final String ELEMENT_REF = "ref"; + public static final String ELEMENT_NULL_REF = "null"; + public static final String ELEMENT_MEMBER = "member"; + public static final String ELEMENT_ENTRY = "entry"; + public static final String ELEMENT_ENTRY_KEY = "key"; + public static final String ELEMENT_ENTRY_VALUE = "value"; + + /** + * Root element of XML meta-model. Must match the name defined in <A href="jest-instance.xsd>jest-model.xsd</A>. + */ + public static final String ELEMENT_DOMAIN = "metamodel"; + + public static final String NULL_VALUE = EMPTY; + public static final String ATTR_NULL = "null"; + public static final String ATTR_MEMBER_TYPE = "member-type"; + public static final String ATTR_KEY_TYPE = "key-type"; + public static final String ATTR_VALUE_TYPE = "value-type"; + + /** + * JEST resources + */ + public static final String JEST_ROOT_RESOURCE = "index.html"; + public static final String JEST_STYLESHEET = "jest.css"; + public static final String JEST_SCRIPT_INSTANCES = "instances.js"; + public static final String JEST_SCRIPT_DOMAIN = "domain.js"; + public static final String JEST_INSTANCE_XSD = "jest-instance.xsd"; + + /** + * JEST Cascaded StyleSheet. + */ + public static final HTMLElement CSS_JEST = new HTMLElement(Tag.link).set( + ATTR_REL, STYLESHEET, + ATTR_TYPE, MIME_TYPE_CSS, + HREF, JEST_STYLESHEET).createTemplate(); + + /** + * JavaScript to render object graph using dojo widgets. + */ + static HTMLElement JEST_INSTANCE_SCRIPT = new HTMLElement(Tag.script).set( + ATTR_SRC, JEST_SCRIPT_INSTANCES, + ATTR_TYPE, MIME_TYPE_JS).createTemplate(); + + /** + * JavaScript to render domain model using dojo widgets. + */ + static HTMLElement JEST_DOMAIN_SCRIPT = new HTMLElement(Tag.script).set( + ATTR_SRC, JEST_SCRIPT_DOMAIN, + ATTR_TYPE, MIME_TYPE_JS).createTemplate(); + + + + /** + * XML constants + */ + public static final String DOCTYPE_STRICT = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"" + + " \"http://www.w3.org/TR/html4/strict.dtd\">"; + static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource"; + static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage"; + + /** + * Common instances + */ + public static final Collection<String> EMPTY_LIST = Collections.emptySet(); + public static final SimpleDateFormat dateFormat = new SimpleDateFormat("MMM dd, yyyy"); + public static final Localizer _loc = Localizer.forPackage(JESTContext.class); + + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Constants.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/Constants.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DojoFormatter.java Tue Nov 23 07:27:24 2010 @@ -19,13 +19,38 @@ package org.apache.openjpa.persistence.jest; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_CLASS; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_ID; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_REL; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_SRC; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_TYPE; +import static org.apache.openjpa.persistence.jest.Constants.HTML_DIV_CANVAS; +import static org.apache.openjpa.persistence.jest.Constants.CSS_INVISIBLE; +import static org.apache.openjpa.persistence.jest.Constants.CSS_JEST; +import static org.apache.openjpa.persistence.jest.Constants.HTML_DIV_DATA; +import static org.apache.openjpa.persistence.jest.Constants.DOCTYPE_STRICT; +import static org.apache.openjpa.persistence.jest.Constants.DOJO_CSS_URL; +import static org.apache.openjpa.persistence.jest.Constants.DOJO_THEME; +import static org.apache.openjpa.persistence.jest.Constants.DOJO_URL; +import static org.apache.openjpa.persistence.jest.Constants.HREF; +import static org.apache.openjpa.persistence.jest.Constants.JEST_DOMAIN_SCRIPT; +import static org.apache.openjpa.persistence.jest.Constants.JEST_INSTANCE_SCRIPT; +import static org.apache.openjpa.persistence.jest.Constants.MIME_TYPE_CSS; +import static org.apache.openjpa.persistence.jest.Constants.MIME_TYPE_HTML; +import static org.apache.openjpa.persistence.jest.Constants.MIME_TYPE_JS; +import static org.apache.openjpa.persistence.jest.Constants.STYLE; +import static org.apache.openjpa.persistence.jest.Constants.STYLESHEET; +import static org.apache.openjpa.persistence.jest.HTMLElement.Tag.div; +import static org.apache.openjpa.persistence.jest.HTMLElement.Tag.link; +import static org.apache.openjpa.persistence.jest.HTMLElement.Tag.script; + import java.io.IOException; import java.io.PrintWriter; import java.util.Collection; -import java.util.Collections; -import org.apache.openjpa.lib.util.Localizer; -import static org.apache.openjpa.persistence.jest.HTMLElement.*; +import javax.persistence.metamodel.Metamodel; + +import org.apache.openjpa.kernel.OpenJPAStateManager; /** * Creates HTML document with Dojo JavaScript. @@ -34,49 +59,62 @@ import static org.apache.openjpa.persist * */ public class DojoFormatter extends XMLFormatter { - public static final String DOJO_URL = "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"; - public static final String DOJO_CSS_URL = "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/"; - public static final String DOJO_THEME = "claro"; - static String DOCTYPE = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"" - + " \"http://www.w3.org/TR/html4/strict.dtd\">"; - /** - * dojo Cascaded StyleSheet. - */ - static HTMLElement CSS_DOJO = new HTMLElement("link").set( - "rel", "stylesheet", - "type", "text/css", - "href", DOJO_CSS_URL + DOJO_THEME + '/' + DOJO_THEME + ".css"); - - /** - * dojo JavaScript library. - */ - static HTMLElement JS_DOJO = new HTMLElement("script").set( - "src", DOJO_URL, - "type", "text/javascript", - "djConfig", "parseOnLoad:true, isDebug:true"); - - private static final HTMLElement TEMPLATE_DOJO = new HTMLElement("html", true).add( - new HTMLElement("head").add(JS_DOJO, JS_INSTANCE, CSS_DOJO, CSS_JEST), - new HTMLElement("body", true).set("class", DOJO_THEME) - .add(new HTMLElement("div").set("id", "canvas"), - new HTMLElement("div", true).set("id", "data", "style", "display: none;"))); - + public static HTMLElement CSS_DOJO = new HTMLElement(link).set( + ATTR_REL, STYLESHEET, + ATTR_TYPE, MIME_TYPE_CSS, + HREF, DOJO_CSS_URL + DOJO_THEME + '/' + DOJO_THEME + ".css"); + + /** + * dojo JavaScript library. + */ + public static HTMLElement JS_DOJO = new HTMLElement(script).set( + ATTR_SRC, DOJO_URL, + ATTR_TYPE, MIME_TYPE_JS, + "djConfig", "parseOnLoad:true, isDebug:true"); + + public static final HTMLDocument TEMPLATE_INSTANCE; + public static final HTMLDocument TEMPLATE_DOMAIN; + static { + TEMPLATE_INSTANCE = new HTMLDocument(true); + TEMPLATE_INSTANCE.getHead().add(JS_DOJO, JEST_INSTANCE_SCRIPT, CSS_JEST, CSS_DOJO); + TEMPLATE_INSTANCE.getBody().set(ATTR_CLASS, DOJO_THEME) + .add(new HTMLElement(div).set(ATTR_ID, HTML_DIV_CANVAS), + new HTMLElement(div, true).set(ATTR_ID, HTML_DIV_DATA, STYLE, CSS_INVISIBLE)); + + TEMPLATE_DOMAIN = new HTMLDocument(true); + TEMPLATE_DOMAIN.getHead().add(JS_DOJO, JEST_DOMAIN_SCRIPT, CSS_JEST, CSS_DOJO); + TEMPLATE_DOMAIN.getBody().set(ATTR_CLASS, DOJO_THEME) + .add(new HTMLElement(div).set(ATTR_ID, HTML_DIV_CANVAS), + new HTMLElement(div, true).set(ATTR_ID, HTML_DIV_DATA, STYLE, CSS_INVISIBLE)); + } + + /** + * Writes out in HTML. By embedding the superclass XML output in an invisible <code><div></code> element. + */ @Override public String getMimeType() { return MIME_TYPE_HTML; } + /** + * Writes out in HTML. By embedding the superclass XML output in an invisible <code><div></code> element. + */ + @Override + public void writeOut(Collection<OpenJPAStateManager> objs, Metamodel model, PrintWriter writer) throws IOException { + writer.println(DOCTYPE_STRICT); + writer.println(TEMPLATE_INSTANCE); + super.write(super.encode(objs, model), writer, true); + writer.println(TEMPLATE_INSTANCE.end()); + } + + /** + * Writes out in HTML. By embedding the superclass XML output in an invisible <code><div></code> element. + */ @Override - public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException { - PrintWriter writer = null; - try { - writer = ctx.getResponse().getWriter(); - } catch (Exception e) { - throw new ProcessingException(e); - } - writer.println(DOCTYPE); - writer.println(TEMPLATE_DOJO); - super.encode(objs, ctx); - writer.println(TEMPLATE_DOJO.end()); + public void writeOut(Metamodel model, PrintWriter writer) throws IOException { + writer.println(DOCTYPE_STRICT); + writer.println(TEMPLATE_DOMAIN); + super.write(super.encode(model), writer, true); + writer.println(TEMPLATE_DOMAIN.end()); } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/DomainCommand.java Tue Nov 23 07:27:24 2010 @@ -19,139 +19,22 @@ package org.apache.openjpa.persistence.jest; -import java.util.List; +import java.io.IOException; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.Metamodel; -import javax.persistence.metamodel.SingularAttribute; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.transform.OutputKeys; -import javax.xml.transform.Transformer; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.stream.StreamResult; - -import org.w3c.dom.Document; -import org.w3c.dom.Element; /** - * Marshals a JPA meta-model as an XML document. + * Marshals a JPA meta-model in the configured format to the response output stream. * * @author Pinaki Poddar * */ class DomainCommand extends AbstractCommand { - /** - * The element/attribute tags declared in <code>jest-instance.xsd</code> XML schema. - */ - public static final String ELEMENT_ROOT = "metamodel"; - public static final String ELEMENT_NULL_REF = "null"; - public static final String ELEMENT_INSTANCE = "instance"; - public static final String ELEMENT_REF = "ref"; - public static final String ELEMENT_BASIC = "basic"; - public static final String ELEMENT_LOB = "lob"; - public static final String ELEMENT_SINGULAR = "singular"; - public static final String ELEMENT_COLLECTION = "collection"; - public static final String ELEMENT_MAP = "map"; - public static final String ELEMENT_MEMBER = "member"; - public static final String ELEMENT_ENTRY = "entry"; - public static final String ELEMENT_ENTRY_KEY = "key"; - public static final String ELEMENT_ENTRY_VALUE = "value"; - - public static final String ATTR_TYPE = "type"; - public static final String ATTR_ID = "id"; - public static final String ATTR_VERSION = "version"; - public static final String ATTR_NAME = "name"; - public static final String ATTR_NULL = "null"; - public static final String ATTR_MEMBER_TYPE = "member-type"; - public static final String ATTR_KEY_TYPE = "key-type"; - public static final String ATTR_VALUE_TYPE = "value-type"; - - static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema"; - static final String W3C_XML_SCHEMA_INSTANCE = "http://www.w3.org/2001/XMLSchema-instance"; - static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource"; - static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage"; - - private static final DocumentBuilder _builder; - private static final Transformer _transformer; - - static { - try { - _builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); - _transformer = TransformerFactory.newInstance().newTransformer(); - _transformer.setOutputProperty(OutputKeys.METHOD, "xml"); - _transformer.setOutputProperty(OutputKeys.INDENT, "yes"); - _transformer.setOutputProperty(OutputKeys.STANDALONE, "no"); - _transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); - _transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2"); - } catch (Exception e) { - throw new RuntimeException(e); - } - } public String getAction() { return "domain"; } - public void process(JPAServletContext ctx) throws ProcessingException { - Document doc = encode(ctx.getPersistenceContext().getMetamodel()); - try { - _transformer.transform(new DOMSource(doc), new StreamResult(ctx.getResponse().getOutputStream())); - } catch (Exception e) { - throw new ProcessingException(e); - } + public void process(JPAServletContext ctx) throws ProcessingException, IOException { + getObjectFormatter(ctx).writeOut(ctx.getPersistenceContext().getMetamodel(), ctx.getResponse().getWriter()); } - - - void addSchemaToRoot(Document doc) { - Element root = doc.getDocumentElement(); - String[] nvpairs = new String[] { - "xmlns:xsi", W3C_XML_SCHEMA_INSTANCE, - "version", "1.0", - }; - for (int i = 0; i < nvpairs.length; i += 2) { - root.setAttribute(nvpairs[i], nvpairs[i+1]); - } - } - - public Document encode(Metamodel model) { - Document doc = _builder.newDocument(); - Element root = doc.createElement(ELEMENT_ROOT); - doc.appendChild(root); - for (ManagedType<?> t : model.getManagedTypes()) { - encode(t, root); - } - return doc; - } - - void encode(ManagedType<?> type, Element parent) { - Document doc = parent.getOwnerDocument(); - Element root = doc.createElement(type.getPersistenceType().toString().toLowerCase()); - parent.appendChild(root); - root.setAttribute(ATTR_NAME, type.getJavaType().getSimpleName()); - List<Attribute<?,?>> attributes = MetamodelHelper.getAttributesInOrder(type); - for (Attribute<?,?> a : attributes) { - String tag = null; - if (a instanceof SingularAttribute) { - SingularAttribute<?, ?> sa = (SingularAttribute<?, ?>)a; - if (sa.isId()) { - tag = ATTR_ID; - } else if (sa.isVersion()) { - tag = ATTR_VERSION; - } - } - if (tag == null) { - tag = a.getPersistentAttributeType().toString().toLowerCase().replace('_', '-'); - } - - Element child = doc.createElement(tag); - root.appendChild(child); - child.setAttribute(ATTR_TYPE, a.getJavaType().getSimpleName()); - child.setTextContent(a.getName()); - - } - } - } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/FindCommand.java Tue Nov 23 07:27:24 2010 @@ -18,11 +18,13 @@ */ package org.apache.openjpa.persistence.jest; +import static org.apache.openjpa.persistence.jest.Constants.*; import java.io.IOException; import java.net.HttpURLConnection; import java.util.Arrays; import java.util.Collection; +import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; @@ -39,13 +41,9 @@ import org.apache.openjpa.util.Applicati * */ class FindCommand extends AbstractCommand { - private static final List<String> _mandatoryArgs = Arrays.asList("type"); + private static final List<String> _mandatoryArgs = Arrays.asList(ARG_TYPE); private static final List<String> _validQualifiers = Arrays.asList("format", "plan"); - public String getAction() { - return "find"; - } - @Override protected Collection<String> getMandatoryArguments() { return _mandatoryArgs; @@ -63,7 +61,7 @@ class FindCommand extends AbstractComman @Override public void process(JPAServletContext ctx) throws ProcessingException { EntityManager em = ctx.getPersistenceContext(); - String type = getMandatoryArgument("type"); + String type = getMandatoryArgument(ARG_TYPE); ClassMetaData meta = ctx.resolve(type); Map<String,String> parameters = getArguments(); Object[] pks = new Object[parameters.size()]; @@ -74,11 +72,11 @@ class FindCommand extends AbstractComman Object oid = ApplicationIds.fromPKValues(pks, meta); Object pc = em.find(meta.getDescribedType(), oid); if (pc != null) { - OpenJPAStateManager sm = toStateManager(ctx.getPersistenceContext(), pc); - ObjectFormatter formatter = getObjectFormatter(ctx); + OpenJPAStateManager sm = toStateManager(pc); + ObjectFormatter<?> formatter = getObjectFormatter(ctx); ctx.getResponse().setContentType(formatter.getMimeType()); try { - formatter.encode(sm, ctx); + formatter.writeOut(Collections.singleton(sm), em.getMetamodel(), ctx.getResponse().getWriter()); } catch (IOException e) { throw new ProcessingException(e); } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLElement.java Tue Nov 23 07:27:24 2010 @@ -21,10 +21,12 @@ package org.apache.openjpa.persistence.j import java.util.ArrayList; import java.util.Arrays; +import java.util.Collection; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import static org.apache.openjpa.persistence.jest.Constants.*; /** * An utility to write HTML elements. @@ -41,36 +43,44 @@ import java.util.Map; * */ public class HTMLElement { - private final String tag; + private final Tag tag; private boolean open; - private final Map<String, String> _attrs = new LinkedHashMap<String, String>(); + private Map<String, String> _attrs; private List<HTMLElement> _children; - private String body; - private static char START = '<'; - private static char END = '>'; - private static char SPACE = ' '; - private static char SLASH = '/'; - private static char EQUAL = '='; - private static char QUOTE = '"'; - private static String NEWLINE = "\r\n"; + private String[] _templates; - /** - * JEST Cascaded StyleSheet. - */ - public static HTMLElement CSS_JEST = new HTMLElement("link").set("rel", "stylesheet", "type", "text/css", - "href", "jest.css"); + public static enum Tag { + a, abbr, acronym, address, area, + b, base, bdo, big, blockquote, body, br, button, + caption, cite, code, col, colgroup, + dd, del, dfn, div, dl, dt, + em, + fieldset, font, form, frame, frameset, + head, h1, h2, h3, h4, h5, h6, hr, html, + i, iframe, img, input, ins, + kbd, + label, + legend, li, link, + map, meta, + noframes, noscript, + object, ol, optgroup, option, + p, param, pre, + q, + s, samp, script, select, small, span, strong, style, sub, sup, + table, tbody, td, textarea, tfoot, th, thead,title, tr, tt, + ul, + var + } + + private static final List<Tag> NOLINE_BREAKER_TAGS = Arrays.asList(Tag.a, Tag.br, Tag.caption, Tag.td, Tag.th); - /** - * JavaScript to render object graph using dojo widgets. - */ - static HTMLElement JS_INSTANCE = new HTMLElement("script").set("src", "instances.js", "type", "text/javascript"); /** * Create an element with the given tag which will close itself. * * @param tag name of the element such as <code>div</code> or <code>tr</code> */ - public HTMLElement(String tag) { + public HTMLElement(Tag tag) { this(tag, false); } @@ -80,25 +90,44 @@ public class HTMLElement { * @param tag name of the element such as <code>div</code> or <code>tr</code> * @param open flags if the tag will be open. */ - public HTMLElement(String tag, boolean open) { + public HTMLElement(Tag tag, boolean open) { this.tag = tag; this.open = open; } /** + * Create a new element as a child to this element. + * @param tag + * @return the new child element + */ + public HTMLElement newChild(Tag tag) { + assertNotTemplate(); + HTMLElement child = new HTMLElement(tag); + add(child); + return child; + } + + public int getChildCount() { + return _children == null ? 0 : _children.size(); + } + + /** * Sets attributes of this element. * * @param pairs must be even number of key-value pair. * @return this element for chaining */ public HTMLElement set(String... pairs) { - if (pairs == null) + assertNotTemplate(); + if (pairs == null || pairs.length < 2) return this; if (pairs.length%2 != 0) throw new IllegalArgumentException(Arrays.toString(pairs) + " must have even number of String."); + _attrs = new LinkedHashMap<String, String>(); for (int i = 0; i < pairs.length; i += 2) { - if (pairs[i] != null && pairs[i+1] != null) + if (pairs[i] != null && pairs[i+1] != null) { _attrs.put(pairs[i], pairs[i+1]); + } } return this; } @@ -108,8 +137,8 @@ public class HTMLElement { * @return this element for chaining */ public HTMLElement setBody(String b) { - body = b; - return this; + assertNotTemplate(); + return b == null ? this : add(new TextContent(b)); } /** @@ -119,6 +148,7 @@ public class HTMLElement { * @return this element for chaining */ public HTMLElement add(HTMLElement... children) { + assertNotTemplate(); if (children == null || children.length == 0) return this; if (_children == null) { @@ -150,9 +180,10 @@ public class HTMLElement { * A string representation of the given element and all its children recursively. */ public String toString() { + String linebreak = NOLINE_BREAKER_TAGS.contains(tag) ? EMPTY : NEWLINE; StringBuilder buf = new StringBuilder(); buf.append(START).append(tag); - if (_attrs.isEmpty()) { + if (_attrs == null || _attrs.isEmpty()) { buf.append(END); } else { Iterator<Map.Entry<String, String>> entries = _attrs.entrySet().iterator(); @@ -163,18 +194,58 @@ public class HTMLElement { } buf.append(END); } - if (body != null) - buf.append(NEWLINE).append(body).append(NEWLINE); - if (_children != null){ - buf.append(NEWLINE); + buf.append(linebreak); for (HTMLElement child : _children) { buf.append(child.toString()); } } if (!open) { - buf.append(START).append(SLASH).append(tag).append(END).append(NEWLINE); + buf.append(START).append(SLASH).append(tag).append(END).append(linebreak); } + return buf.toString(); } + + public HTMLElement createTemplate() { + _templates = new String[]{toString(), end()}; + return this; + } + + /** + * Asserts each of the given children belongs to one of the given allowed tags. + * + * @param tags a set of allowed tags + * @param elements + */ + protected void assertTags(Collection<Tag> allowedTags, HTMLElement...elements) { + if (elements == null) + return; + for (HTMLElement child : elements) { + if (!allowedTags.contains(child.tag)) { + throw new IllegalArgumentException(child + " is not an allowed tag of " + this + + ". Allowed tags " + allowedTags); + } + } + } + + /** + * Asserts that this element has not been templated. Checked before any mutation operation. + */ + protected void assertNotTemplate() { + if (_templates != null) + throw new IllegalStateException(this + " template can not be modified"); + } + + private static class TextContent extends HTMLElement { + private final String _text; + TextContent(String s) { + super(null); + _text = s; + } + + public String toString() { + return _text; + } + } } Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTableFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTableFormatter.java?rev=1038004&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTableFormatter.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTableFormatter.java Tue Nov 23 07:27:24 2010 @@ -0,0 +1,384 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import static org.apache.openjpa.persistence.jest.Constants.ATTR_CLASS; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_NAME; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_ID; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_TYPE; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_VERSION; +import static org.apache.openjpa.persistence.jest.Constants.CSS_DATA_TABLE; +import static org.apache.openjpa.persistence.jest.Constants.CSS_EVEN_ROW; +import static org.apache.openjpa.persistence.jest.Constants.CSS_ODD_ROW; +import static org.apache.openjpa.persistence.jest.Constants.CSS_INVISIBLE; +import static org.apache.openjpa.persistence.jest.Constants.CSS_JEST; +import static org.apache.openjpa.persistence.jest.Constants.DASH; +import static org.apache.openjpa.persistence.jest.Constants.HASH; +import static org.apache.openjpa.persistence.jest.Constants.HREF; +import static org.apache.openjpa.persistence.jest.Constants.MIME_TYPE_HTML; +import static org.apache.openjpa.persistence.jest.Constants.NULL_VALUE; +import static org.apache.openjpa.persistence.jest.Constants.STYLE; +import static org.apache.openjpa.persistence.jest.Constants.UNDERSCORE; +import static org.apache.openjpa.persistence.jest.Constants.dateFormat; +import static org.apache.openjpa.persistence.jest.Constants.KEY_VALUE_SEPARATOR; + +import java.io.IOException; +import java.io.PrintWriter; +import java.util.Arrays; +import java.util.BitSet; +import java.util.Collection; +import java.util.Date; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import javax.persistence.metamodel.Attribute; +import javax.persistence.metamodel.ManagedType; +import javax.persistence.metamodel.Metamodel; +import javax.persistence.metamodel.SingularAttribute; + +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.apache.openjpa.kernel.StoreContext; +import org.apache.openjpa.meta.ClassMetaData; +import org.apache.openjpa.meta.FieldMetaData; +import org.apache.openjpa.meta.JavaTypes; +import org.apache.openjpa.persistence.jest.HTMLElement.Tag; +import org.apache.openjpa.persistence.meta.Members; +import org.w3c.dom.Document; +import org.w3c.dom.Element; + +/** + * Marshals a collection of managed instances and its persistent closure in HTML tables. + * The closure is computed against the persistence context that contains the root instances. + * + * @author Pinaki Poddar + * + */ +public class HTMLTableFormatter implements ObjectFormatter<HTMLDocument> { + + /** + * Gets the mime type as <code>text/html</code> + */ + public String getMimeType() { + return MIME_TYPE_HTML; + } + + /** + * Encodes the closure of the given collection of managed instances in HTML tables, and writes the entire + * HTML document to the output response stream of the given context. + * @param writer operational context + * @param sms collection of managed instances + * + * @see #encode(Collection, Metamodel) + * @see #write(HTMLElement, PrintWriter) + */ + public void writeOut(Collection<OpenJPAStateManager> sms, Metamodel model, PrintWriter writer) throws IOException { + writer.println(encode(sms, model)); + } + + /** + * Encodes the closure of the given collection of managed instances in HTML tables and generates a + * HTML document. The document is used with {@link Constants#CSS_JEST JEST StyleSheet}. + * + * @param sms collection of managed instances + * @param model meta-model of the domain + * + * @return the HTML document + */ + public HTMLDocument encode(Collection<OpenJPAStateManager> sms, Metamodel model) { + HTMLDocument html = new HTMLDocument(); + html.getHead().add(CSS_JEST); + Closure closure = new Closure(sms); + Map<ClassMetaData, HTMLElement> tables = new LinkedHashMap<ClassMetaData, HTMLElement>(); + for (OpenJPAStateManager sm : closure) { + populateRow(sm, getTable(html, sm, model, tables), model); + } + return html; + } + + /** + * Populates a table row with the given managed instance state. + * <br> + * The row element has an identifier as well as its invisible zeroth column carries + * {@linkplain #ior(OpenJPAStateManager) persistent identity} as the anchor name for reference. + * <br> + * The row has been added to the given table. + * The alternate row has been styled with different {@link Constants#CSS_EVEN_ROW CSS properties} + * for a striped look of the table. + * + * + * @param sm the managed instance to be encoded. Can be null. + * @param table HTML table to which a new row will be added. Must not be null. + * @param model domain model for attribute ordering + */ + private void populateRow(final OpenJPAStateManager sm, final HTMLElement table, Metamodel model) { + HTMLElement row = new HTMLElement(Tag.tr).set(ATTR_ID, ior(sm)); + table.add(row); + row.set(ATTR_CLASS, table.getChildCount()%2 == 0 ? CSS_EVEN_ROW : CSS_ODD_ROW); + HTMLElement anchor = new HTMLElement(Tag.a).set(ATTR_NAME, ior(sm)); + row.add(new HTMLElement(Tag.td).set(STYLE, CSS_INVISIBLE).add(anchor)); + BitSet loaded = sm.getLoaded(); + StoreContext ctx = (StoreContext)sm.getGenericContext(); + List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(sm.getMetaData(), model); + HTMLElement child = null; + for (int i = 0; i < attrs.size(); child = null, i++) { + Members.Member<?, ?> attr = (Members.Member<?, ?>) attrs.get(i); + FieldMetaData fmd = attr.fmd; + if (!loaded.get(fmd.getIndex())) { + continue; + } + HTMLElement.Tag tag = Tag.td; + Object value = sm.fetch(fmd.getIndex()); + switch (fmd.getDeclaredTypeCode()) { + case JavaTypes.BOOLEAN: + case JavaTypes.BYTE: + case JavaTypes.CHAR: + case JavaTypes.DOUBLE: + case JavaTypes.FLOAT: + case JavaTypes.INT: + case JavaTypes.LONG: + case JavaTypes.SHORT: + + case JavaTypes.BOOLEAN_OBJ: + case JavaTypes.BYTE_OBJ: + case JavaTypes.CHAR_OBJ: + case JavaTypes.DOUBLE_OBJ: + case JavaTypes.FLOAT_OBJ: + case JavaTypes.INT_OBJ: + case JavaTypes.LONG_OBJ: + case JavaTypes.SHORT_OBJ: + + case JavaTypes.BIGDECIMAL: + case JavaTypes.BIGINTEGER: + case JavaTypes.DATE: + case JavaTypes.NUMBER: + case JavaTypes.CALENDAR: + case JavaTypes.LOCALE: + case JavaTypes.STRING: + case JavaTypes.ENUM: + case JavaTypes.OID: + child = new HTMLElement(tag); + encodeBasic(child, value); + break; + + case JavaTypes.PC: + child = new HTMLElement(tag); + OpenJPAStateManager other = ctx.getStateManager(value); + encodeRef(child, other); + break; + + case JavaTypes.ARRAY: + Object[] values = (Object[])value; + value = Arrays.asList(values); + // no break; + case JavaTypes.COLLECTION: + child = new HTMLElement(tag); + if (value == null) { + encodeNull(child); + break; + } + Collection<?> members = (Collection<?>)value; + boolean basic = fmd.getElement().getTypeMetaData() == null; + for (Object o : members) { + HTMLElement member = new HTMLElement(Tag.p); + child.add(member); + if (o == null) { + encodeNull(member); + } else { + if (basic) { + encodeBasic(member, o); + } else { + encodeRef(member, ctx.getStateManager(o)); + } + } + } + break; + case JavaTypes.MAP: + child = new HTMLElement(tag); + if (value == null) { + encodeNull(child); + break; + } + Set<Map.Entry> entries = ((Map)value).entrySet(); + boolean basicKey = fmd.getElement().getTypeMetaData() == null; + boolean basicValue = fmd.getValue().getTypeMetaData() == null; + for (Map.Entry<?,?> e : entries) { + if (basicKey) { + encodeBasic(child, e.getKey()); + } else { + encodeRef(child, ctx.getStateManager(e.getKey())); + } + child.setBody(KEY_VALUE_SEPARATOR); + if (basicValue) { + encodeBasic(child, e.getValue()); + } else { + encodeRef(child, ctx.getStateManager(e.getValue())); + } + } + break; + + case JavaTypes.INPUT_STREAM: + case JavaTypes.INPUT_READER: + case JavaTypes.PC_UNTYPED: + case JavaTypes.OBJECT: + System.err.println("Not handled " + fmd.getName() + " of type " + fmd.getDeclaredType()); + } + + if (child != null) { + row.add(child); + } + } + } + + /** + * Sets the given value element text with {@link Constants#NULL_VALUE null value}. + * + * @param element the HTML element to be set + * @return the same given element for chaining + */ + private HTMLElement encodeNull(HTMLElement element) { + return element.setBody(NULL_VALUE); + } + + /** + * Sets the given value element. + * String form of the given object is set as the text content. + * + * @param element the XML element to be set + * @param obj value of the element. Never null. + */ + private HTMLElement encodeBasic(HTMLElement element, Object obj) { + return element.setBody(obj == null ? NULL_VALUE + : (obj instanceof Date ? dateFormat.format(obj) : obj.toString())); + } + + /** + * Encodes the given managed instance as a named anchor and adds it to the given parent. + * + * @param parent the parent element to which the anchor is added as a child. + * @param sm managed instance. If null, this method is a no-op. + * + */ + private void encodeRef(HTMLElement parent, OpenJPAStateManager sm) { + if (sm != null) { + HTMLElement anchor = new HTMLElement(Tag.a); + anchor.set(HREF, HASH + ior(sm)).setBody(ior(sm)); + parent.add(anchor); + } + } + + /** + * Gets a HTML Table element for the type of the given instance from the given collection. + * If the table for the given instance does not exists, then + * {@link #createTable(ClassMetaData, Metamodel, HTMLElement) creates and adds the table to the body of + * the given document. + * + * @param html a html document + * @param sm a managed instance + * @param model a domain model + * @param tables a set of tables + * @return + */ + HTMLElement getTable(HTMLDocument html, OpenJPAStateManager sm, Metamodel model, + Map<ClassMetaData, HTMLElement> tables) { + ClassMetaData meta = sm.getMetaData(); + HTMLElement table = tables.get(meta); + if (table == null) { + table = createTable(meta, model, html.getBody()); + tables.put(meta, table); + } + return table; + } + + /** + * Creates a HTML Table and adds to the given parent HTML element. + * Each persistent attribute of the given meta-data corresponds to a header column of the table. + * An extra invisible zeroth column is added as an anchor. The rows added to the table can use + * the anchor column, so that other parts of the document can refer to a particular row of a + * particular table. + * + * @param meta meta-data about the table + * @param model the meta-model used to order the columns based on their persistent properties. + * @see MetamodelHelper#getAttributesInOrder(ClassMetaData, Metamodel) + * + * @return the create HTML table + */ + HTMLElement createTable(ClassMetaData meta, Metamodel model, HTMLElement parent) { + HTMLElement table = new HTMLElement(Tag.table).set(ATTR_CLASS, CSS_DATA_TABLE); + HTMLElement caption = new HTMLElement(Tag.caption).setBody(meta.getDescribedType().getSimpleName()); + HTMLElement header = new HTMLElement(Tag.tr); + List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(meta, model); + header.add(new HTMLElement(Tag.th).set(STYLE, CSS_INVISIBLE)); + for (int i = 0; i < attrs.size(); i++) { + header.add(new HTMLElement(Tag.th).setBody(attrs.get(i).getName())); + } + table.add(caption, header); + parent.add(table); + + return table; + } + + HTMLElement createTable(ManagedType<?> meta, HTMLElement body) { + HTMLElement table = new HTMLElement(Tag.table).set(ATTR_CLASS, CSS_DATA_TABLE) + .add(new HTMLElement(Tag.caption).setBody(meta.getJavaType().getSimpleName())); + List<Attribute<?, ?>> attrs = MetamodelHelper.getAttributesInOrder(meta); + for (int i = 0; i < attrs.size(); i++) { + HTMLElement row = new HTMLElement(Tag.tr); + table.add(row); + Attribute<?, ?> attr = attrs.get(i); + + row.add(new HTMLElement(Tag.td).setBody(attr.getJavaType().getSimpleName()) + .set(ATTR_CLASS, MetamodelHelper.getTagByAttributeType(attr))); + row.add(new HTMLElement(Tag.td).setBody(attr.getName())); + } + body.add(table); + + return table; + } + + + /** + * Stringified representation of a managed instance identity. + * The simple Java type name and the persistent identity separated by a {@link Constants#DASH dash}. + * + * @param sm a managed instance. + * @return + */ + String ior(OpenJPAStateManager sm) { + if (sm == null) return NULL_VALUE; + return sm.getMetaData().getDescribedType().getSimpleName() + DASH + sm.getObjectId(); + } + + @Override + public HTMLDocument encode(Metamodel model) { + HTMLDocument html = new HTMLDocument(); + html.getBody().add(CSS_JEST); + for (ManagedType<?> t : model.getManagedTypes()) { + createTable(t, html.getBody()); + } + return html; + } + + @Override + public void writeOut(Metamodel model, PrintWriter writer) throws IOException { + writer.println(encode(model)); + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTableFormatter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLTableFormatter.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTCommand.java Tue Nov 23 07:27:24 2010 @@ -26,7 +26,6 @@ import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; -import org.apache.openjpa.lib.util.Localizer; /** * Interface for JEST commands. A JEST command denotes a JPA operation such as <code>find</code>, @@ -58,7 +57,6 @@ import org.apache.openjpa.lib.util.Local * */ public interface JESTCommand { - public static final Localizer _loc = Localizer.forPackage(JESTCommand.class); /** * Parse the given request to populate qualifiers and parameters of this command. Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTContext.java Tue Nov 23 07:27:24 2010 @@ -37,6 +37,7 @@ import org.apache.openjpa.meta.ClassMeta import org.apache.openjpa.meta.MetaDataRepository; import org.apache.openjpa.persistence.OpenJPAEntityManager; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; +import static org.apache.openjpa.persistence.jest.Constants.*; /** * An operational context combines a {@link OpenJPAEntityManager persistence context} and a HTTP execution @@ -58,8 +59,6 @@ public class JESTContext implements JPAS protected Log _log; protected static PrototypeFactory<JESTCommand> _cf = new PrototypeFactory<JESTCommand>(); public static final Localizer _loc = Localizer.forPackage(JESTContext.class); - private static final String CONTEXT_ROOT = "/"; - private static final String ROOT_RESOURCE = "index.html"; private static final String ONE_YEAR_FROM_NOW; /** @@ -152,7 +151,7 @@ public class JESTContext implements JPAS debug(_request); String path = _request.getPathInfo(); if (path == null || CONTEXT_ROOT.equals(path)) { - findResource(ROOT_RESOURCE); + findResource(JEST_ROOT_RESOURCE); return; } String action = getAction(path); Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JESTServlet.java Tue Nov 23 07:27:24 2010 @@ -32,6 +32,7 @@ import org.apache.openjpa.kernel.BrokerF import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.persistence.JPAFacadeHelper; import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; +import static org.apache.openjpa.persistence.jest.Constants.*; /** * A specialized HTTP servlet to interpret HTTP requests as Java Persistent API commands @@ -62,12 +63,11 @@ import org.apache.openjpa.persistence.Op public class JESTServlet extends HttpServlet { private String _unit; private OpenJPAEntityManagerFactory _emf; - private static Localizer _loc = Localizer.forPackage(JESTServlet.class); @Override public void init(ServletConfig config) throws ServletException { super.init(config); - _unit = config.getInitParameter("persistence.unit"); + _unit = config.getInitParameter(INIT_PARA_UNIT); if (_unit == null) { throw new ServletException(_loc.get("no-persistence-unit-param").toString()); } else if (findPersistenceUnit()){ Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/JSONObjectFormatter.java Tue Nov 23 07:27:24 2010 @@ -26,7 +26,6 @@ import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.Reader; -import java.util.ArrayList; import java.util.Arrays; import java.util.BitSet; import java.util.Collection; @@ -37,15 +36,13 @@ import java.util.Set; import javax.persistence.metamodel.Attribute; import javax.persistence.metamodel.Metamodel; -import javax.servlet.http.HttpServletResponse; import org.apache.openjpa.kernel.OpenJPAStateManager; import org.apache.openjpa.kernel.StoreContext; -import org.apache.openjpa.meta.ClassMetaData; import org.apache.openjpa.meta.FieldMetaData; import org.apache.openjpa.meta.JavaTypes; -import org.apache.openjpa.meta.ValueMetaData; import org.apache.openjpa.persistence.meta.Members; +import static org.apache.openjpa.persistence.jest.Constants.MIME_TYPE_JSON; /** * Marshals a root instance and its persistent closure as JSON object. @@ -55,7 +52,7 @@ import org.apache.openjpa.persistence.me * @author Pinaki Poddar * */ -public class JSONObjectFormatter implements ObjectFormatter { +public class JSONObjectFormatter implements ObjectFormatter<JSON> { public String getMimeType() { return MIME_TYPE_JSON; @@ -64,7 +61,7 @@ public class JSONObjectFormatter impleme public void encode(Object obj, JPAServletContext ctx) { if (obj instanceof OpenJPAStateManager) { try { - JSONObject result = encodeManagedInstance((OpenJPAStateManager)obj, + JSON result = encodeManagedInstance((OpenJPAStateManager)obj, ctx.getPersistenceContext().getMetamodel()); PrintWriter writer = ctx.getResponse().getWriter(); writer.println(result.toString()); @@ -77,18 +74,12 @@ public class JSONObjectFormatter impleme return; } - public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException { - Collection<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); - for (Object obj : objs) { - if (obj instanceof OpenJPAStateManager) { - sms.add((OpenJPAStateManager)obj); - } else { - throw new RuntimeException(this + " does not know how to encode " + obj); - } - } - JSONObject.Array result = encodeManagedInstances(sms, ctx.getPersistenceContext().getMetamodel()); - PrintWriter writer = ctx.getResponse().getWriter(); - writer.println(result.toString()); + public void writeOut(Collection<OpenJPAStateManager> sms, Metamodel model, PrintWriter writer) throws IOException { + writer.println(encode(sms,model)); + } + + public JSON encode(Collection<OpenJPAStateManager> sms, Metamodel model) { + return encodeManagedInstances(sms, model); } /** @@ -97,11 +88,11 @@ public class JSONObjectFormatter impleme * @param sm a managed instance, can be null. * @param parent the parent node to which the new node be attached. */ - private JSONObject encodeManagedInstance(final OpenJPAStateManager sm, Metamodel model) { + private JSON encodeManagedInstance(final OpenJPAStateManager sm, Metamodel model) { return encodeManagedInstance(sm, new HashSet<OpenJPAStateManager>(), 0, false, model); } - private JSONObject.Array encodeManagedInstances(final Collection<OpenJPAStateManager> sms, Metamodel model) { + private JSON encodeManagedInstances(final Collection<OpenJPAStateManager> sms, Metamodel model) { JSONObject.Array result = new JSONObject.Array(); for (OpenJPAStateManager sm : sms) { result.add(encodeManagedInstance(sm, new HashSet<OpenJPAStateManager>(), 0, false, model)); @@ -286,4 +277,22 @@ public class JSONObjectFormatter impleme } return writer.toString(); } + + /* (non-Javadoc) + * @see org.apache.openjpa.persistence.jest.ObjectFormatter#encode(javax.persistence.metamodel.Metamodel) + */ + @Override + public JSON encode(Metamodel model) { + // TODO Auto-generated method stub + return null; + } + + /* (non-Javadoc) + * @see org.apache.openjpa.persistence.jest.ObjectFormatter#writeOut(javax.persistence.metamodel.Metamodel, java.io.PrintWriter) + */ + @Override + public void writeOut(Metamodel model, PrintWriter writer) throws IOException { + // TODO Auto-generated method stub + + } } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/MetamodelHelper.java Tue Nov 23 07:27:24 2010 @@ -32,30 +32,13 @@ import javax.persistence.metamodel.Singu import org.apache.openjpa.meta.ClassMetaData; import org.apache.openjpa.meta.JavaTypes; import org.apache.openjpa.persistence.meta.Members; +import static org.apache.openjpa.persistence.jest.Constants.*; /** * @author Pinaki Poddar * */ public class MetamodelHelper { - public static final String ELEMENT_NULL_REF = "null"; - public static final String ELEMENT_ROOT = "instances"; - public static final String ELEMENT_INSTANCE = "instance"; - public static final String ELEMENT_REF = "ref"; - public static final String ELEMENT_MEMBER = "member"; - public static final String ELEMENT_ENTRY = "entry"; - public static final String ELEMENT_ENTRY_KEY = "key"; - public static final String ELEMENT_ENTRY_VALUE = "value"; - - public static final String ATTR_TYPE = "type"; - public static final String ATTR_ID = "id"; - public static final String ATTR_NAME = "name"; - public static final String ATTR_NULL = "null"; - public static final String ATTR_MEMBER_TYPE = "member-type"; - public static final String ATTR_KEY_TYPE = "key-type"; - public static final String ATTR_VALUE_TYPE = "value-type"; - public static final char UNDERSCORE = '_'; - public static final char DASH = '-'; /** * Attribute Category makes a finer distinction over PersistentAttributeType declared in Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ObjectFormatter.java Tue Nov 23 07:27:24 2010 @@ -20,22 +20,36 @@ package org.apache.openjpa.persistence.jest; import java.io.IOException; +import java.io.PrintWriter; import java.util.Collection; -import org.apache.openjpa.lib.util.Localizer; + +import javax.persistence.metamodel.Metamodel; +import javax.servlet.http.HttpServletResponse; + +import org.apache.openjpa.kernel.OpenJPAStateManager; /** - * Encodes a managed persistence object graph to an output stream of a HTTP response. - * Each concrete formatter type is registered with {@linkplain ObjectFormatterFactory} - * and must have a no-argument constructor. + * A parameterized interface defines the protocol for converting {@link OpenJPAStateManager managed} persistence + * instances or a persistent {@link Metamodel domain model} into a form suitable for transport to a language-neutral + * client such as an web browser. + * <p> + * The interface prefers that the resultant resource as a <em>complete</em> representation i.e. all the references + * contained in the resource can be resolved within the same resource itself. As the intended recipient of this + * resource is a remote client, an <em>incomplete</em> resource will require the client to request further for + * any (unresolved) reference resulting in a <em>chatty</em> protocol. + * <p> + * This interface also defines methods for writing the representation into an output stream e.g. + * {@link HttpServletResponse#getOutputStream() response output stream} of a HTTP Servlet. + * <p> + * Implementation Note: Each concrete formatter type is registered with {@linkplain PrototypeFactory factory} + * that requires the implementation to have a no-argument constructor. + * + * @param <T> the type of encoded output * * @author Pinaki Poddar * */ -public interface ObjectFormatter { - public static final Localizer _loc = Localizer.forPackage(ObjectFormatter.class); - public static final String MIME_TYPE_HTML = "text/html"; - public static final String MIME_TYPE_XML = "text/xml"; - public static final String MIME_TYPE_JSON = "application/json"; +public interface ObjectFormatter<T> { /** * Gets the mime type produced by this formatter. @@ -43,21 +57,46 @@ public interface ObjectFormatter { public String getMimeType(); /** - * Format the given object in the given context. + * Encode the {@link Closure persistent closure} of the given collection of managed instances as a + * resource e.g a XML or HTML document or an interactive document with JavaScript or a JSON array. + * Exact nature of the output type is the generic parameter of this interface. + * + * @param objs a collection of managed instances + * @param model domain model * - * @param obj the object to be formatted. - * @param response the output stream - * @param ctx the operational context + * @return an encoded object e.g. a XML or HTML Document or a JSON object. */ - public void encode(Object obj, JPAServletContext ctx) throws IOException; + public T encode(Collection<OpenJPAStateManager> objs, Metamodel model); /** - * Format the given collection of objects in the given context. + * Encode the given domain model in to a object. + * + * @param model a meta-model of managed types + * + * @return an encoded object e.g. a XML or HTML Document or a JSON object. + */ + public T encode(Metamodel model); + + /** + * Encodes the {@link Closure persistent closure} of the given collection of objects, then write it into + * the given output stream. * * @param objs the collection of objects to be formatted. - * @param response the output stream - * @param ctx the operational context + * @param model a meta-model of managed types, provided for easier introspection if necessary + * @param writer a text-oriented output stream + * + * @throws IOException + */ + public void writeOut(Collection<OpenJPAStateManager> objs, Metamodel model, + PrintWriter writer) throws IOException; + + /** + * Encodes the given domain model, then write it into the given output stream. + * + * @param model a meta-model of managed types + * @param writer a text-oriented output stream + * * @throws IOException */ - public void encode(Collection<?> objs, JPAServletContext ctx) throws IOException; + public void writeOut(Metamodel model, PrintWriter writer) throws IOException; } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ProcessingException.java Tue Nov 23 07:27:24 2010 @@ -26,6 +26,10 @@ import java.net.HttpURLConnection; import javax.servlet.http.HttpServletResponse; import org.apache.openjpa.lib.util.Localizer.Message; +import org.apache.openjpa.persistence.jest.HTMLElement.Tag; + +import static org.apache.openjpa.persistence.jest.Constants.*; +import static java.net.HttpURLConnection.*; /** * Specialized RuntimException thrown by JEST commands. @@ -39,7 +43,7 @@ public class ProcessingException extends private final int _errorCode; public ProcessingException(Throwable error) { - this(error, HttpURLConnection.HTTP_INTERNAL_ERROR); + this(error, HTTP_INTERNAL_ERROR); } public ProcessingException(Throwable error, int errorCode) { @@ -53,7 +57,7 @@ public class ProcessingException extends } public ProcessingException(Throwable error, Message message) { - this(error, message, HttpURLConnection.HTTP_INTERNAL_ERROR); + this(error, message, HTTP_INTERNAL_ERROR); } public ProcessingException(Throwable error, Message message, int errorCode) { @@ -61,27 +65,20 @@ public class ProcessingException extends this._errorCode = errorCode; } - + /** + * Prints the stack trace in a HTML format on the given response output stream. + * + * @param response + * @throws IOException + */ public void printStackTrace(HttpServletResponse response) throws IOException { - response.setContentType("text/html"); + response.setContentType(MIME_TYPE_HTML); response.setStatus(_errorCode); PrintWriter writer = response.getWriter(); - writeHTML(writer); - } - - public void writeHTML(PrintWriter writer) { - HTMLElement html = new HTMLElement("html") - .add(new HTMLElement("head") - .add(HTMLElement.CSS_JEST), - new HTMLElement("body") - .add(new HTMLElement("p").set("class", "error-header").setBody("HTTP Error " + _errorCode), - new HTMLElement("p").set("class", "error-message").setBody(getLocalizedMessage()), - new HTMLElement("br").setBody("Error Stack Trace:"), - new HTMLElement("pre", true))); - + Throwable t = this.getCause() == null ? this : getCause(); + HTMLDocument html = new ExceptionFormatter().createHTML("HTTP Error " + _errorCode, t); writer.println(html); - (getCause() == null ? this : getCause()).printStackTrace(writer); - writer.println(html.end()); } + } Modified: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java?rev=1038004&r1=1038003&r2=1038004&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/PropertiesCommand.java Tue Nov 23 07:27:24 2010 @@ -19,17 +19,16 @@ package org.apache.openjpa.persistence.jest; +import static org.apache.openjpa.persistence.jest.Constants.*; + import java.io.IOException; import java.io.PrintWriter; import java.net.HttpURLConnection; -import java.util.HashSet; +import java.util.Iterator; import java.util.Map; -import java.util.Set; import javax.servlet.http.HttpServletResponse; -import org.apache.openjpa.lib.util.Localizer; - /** * Represents configuration properties in HTML. @@ -38,30 +37,26 @@ import org.apache.openjpa.lib.util.Local * */ public class PropertiesCommand extends AbstractCommand { - private static final String MIME_TYPE = "text/html"; - private static final Localizer _loc = Localizer.forPackage(PropertiesCommand.class); @Override public void process(JPAServletContext ctx) throws ProcessingException, IOException { HttpServletResponse response = ctx.getResponse(); - response.setContentType(MIME_TYPE); + response.setContentType(MIME_TYPE_HTML); PrintWriter writer = response.getWriter(); Map<String,Object> properties = ctx.getPersistenceContext().getProperties(); removeBadEntries(properties); PropertiesFormatter formatter = new PropertiesFormatter(); String caption = _loc.get("properties-caption", ctx.getPersistenceUnitName()).toString(); - HTMLElement html = formatter.writeHTML(caption, "", "", properties); + HTMLElement html = formatter.createHTML(caption, "", "", properties); writer.println(html); response.setStatus(HttpURLConnection.HTTP_OK); } private void removeBadEntries(Map<String,Object> map) { - Set<String> keys = map.keySet(); - Set<String> bad = new HashSet<String>(); - for (String key : keys) { - if (key.indexOf('.') == -1) bad.add(key); + Iterator<String> keys = map.keySet().iterator(); + for (; keys.hasNext();) { + if (keys.next().indexOf(DOT) == -1) keys.remove(); } - keys.removeAll(bad); } } From commits-return-8135-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 07:29:54 2010 Return-Path: <commits-return-8135-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 12218 invoked from network); 23 Nov 2010 07:29:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 07:29:53 -0000 Received: (qmail 67520 invoked by uid 500); 23 Nov 2010 07:30:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 67490 invoked by uid 500); 23 Nov 2010 07:30:25 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 67482 invoked by uid 99); 23 Nov 2010 07:30:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:30:25 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:30:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4B72623889B9; Tue, 23 Nov 2010 07:28:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038005 - in /openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest: ExceptionFormatter.java HTMLDocument.java Date: Tue, 23 Nov 2010 07:28:46 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123072846.4B72623889B9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Tue Nov 23 07:28:45 2010 New Revision: 1038005 URL: http://svn.apache.org/viewvc?rev=1038005&view=rev Log: OPENJPA-1851: Model HTML formatting. Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ExceptionFormatter.java (with props) openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLDocument.java (with props) Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ExceptionFormatter.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ExceptionFormatter.java?rev=1038005&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ExceptionFormatter.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ExceptionFormatter.java Tue Nov 23 07:28:45 2010 @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import static org.apache.openjpa.persistence.jest.Constants.CSS_JEST; +import static org.apache.openjpa.persistence.jest.Constants.ATTR_CLASS; +import static org.apache.openjpa.persistence.jest.Constants.CSS_ERROR_HEADER; +import static org.apache.openjpa.persistence.jest.Constants.CSS_ERROR_MESSSAGE; + +import java.io.PrintWriter; +import java.io.StringWriter; + +import org.apache.openjpa.persistence.jest.HTMLElement.Tag; + +/** + * Formats error stack trace. + * + * @author Pinaki Poddar + * + */ +class ExceptionFormatter { + /** + * Creates a HTML Document with given header and stack trace of the given error. + * @param header + * @param e + */ + public HTMLDocument createHTML(String header, Throwable e) { + HTMLDocument html = new HTMLDocument(); + html.getHead().add(CSS_JEST); + + StringWriter buf = new StringWriter(); + e.printStackTrace(new PrintWriter(buf, true)); + html.getBody() + .add(new HTMLElement(Tag.p).set(ATTR_CLASS, CSS_ERROR_HEADER).setBody(header), + new HTMLElement(Tag.p).set(ATTR_CLASS, CSS_ERROR_MESSSAGE).setBody(e.getLocalizedMessage()), + new HTMLElement(Tag.p).setBody("Error Stack Trace:"), + new HTMLElement(Tag.pre).setBody(buf.toString())); + return html; + } + +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/ExceptionFormatter.java ------------------------------------------------------------------------------ svn:eol-style = native Added: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLDocument.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLDocument.java?rev=1038005&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLDocument.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLDocument.java Tue Nov 23 07:28:45 2010 @@ -0,0 +1,64 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + + +/** + * A HTML document. + * A document has only a head and a body element at construction. + * No further element can be added. + * + * @author Pinaki Poddar + * + */ +public class HTMLDocument extends HTMLElement { + private final HTMLElement _head; + private final HTMLElement _body; + + public HTMLDocument() { + this(false); + } + + public HTMLDocument(boolean open) { + super(Tag.html, open); + _head = new HTMLElement(Tag.head, open); + _body = new HTMLElement(Tag.body, open); + super.add(_head, _body); + } + + public HTMLElement getHead() { + return _head; + } + + public HTMLElement getBody() { + return _body; + } + //<title>, <base>, <link>, <meta>, <script>, and <style>. + + /** + * Prevents adding any child element. + * + * @throws UnsupportedOperationException. + */ + @Override + public HTMLDocument add(HTMLElement...children) { + throw new UnsupportedOperationException(); + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/jest/HTMLDocument.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8136-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 07:31:34 2010 Return-Path: <commits-return-8136-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 12697 invoked from network); 23 Nov 2010 07:31:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 07:31:34 -0000 Received: (qmail 69493 invoked by uid 500); 23 Nov 2010 07:32:06 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 69439 invoked by uid 500); 23 Nov 2010 07:32:05 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 69432 invoked by uid 99); 23 Nov 2010 07:32:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:32:05 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:32:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5B86723889B9; Tue, 23 Nov 2010 07:30:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038006 - in /openjpa/sandboxes/jest/openjpa-examples/jest/src/main: java/demo/Movie.java java/demo/SimpleApp.java resources/demo/index.html Date: Tue, 23 Nov 2010 07:30:29 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123073029.5B86723889B9@eris.apache.org> Author: ppoddar Date: Tue Nov 23 07:30:28 2010 New Revision: 1038006 URL: http://svn.apache.org/viewvc?rev=1038006&view=rev Log: OPENJPA-1859: Separate Data Loading from SimpleApp. Modified: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html Modified: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java?rev=1038006&r1=1038005&r2=1038006&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java (original) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/Movie.java Tue Nov 23 07:30:28 2010 @@ -24,7 +24,6 @@ import java.util.Set; import javax.persistence.Entity; import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToMany; @@ -36,8 +35,7 @@ import javax.persistence.OneToMany; @Entity public class Movie { @Id - @GeneratedValue - private long id; + private String id; private String title; private int year; @OneToMany(fetch=FetchType.EAGER) @@ -46,13 +44,15 @@ public class Movie { protected Movie() { } - public Movie(String title, int year) { + + public Movie(String id, String title, int year) { super(); + this.id = id; this.title = title; this.year = year; } - public long getId() { + public String getId() { return id; } Modified: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java?rev=1038006&r1=1038005&r2=1038006&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java (original) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/SimpleApp.java Tue Nov 23 07:30:28 2010 @@ -49,17 +49,21 @@ import javax.servlet.http.HttpServletRes @SuppressWarnings("serial") public class SimpleApp extends HttpServlet { + private static String UNIT_NAME = "jestdemo"; @Override public void init(ServletConfig config) throws ServletException { super.init(config); - String unit = config.getInitParameter("persistence.unit"); - config.getServletContext().log("SimpleApp initializing with persistence unit [" + unit + "]"); - Map<String,Object> props = new HashMap<String, Object>(); - props.put("openjpa.EntityManagerFactoryPool", "true"); - EntityManagerFactory emf = Persistence.createEntityManagerFactory(unit, props); - config.getServletContext().getContextPath(); - populate(emf.createEntityManager(), config.getServletContext()); + config.getServletContext().log("Initializing persistence unit [" + UNIT_NAME + "]"); + try { + Map<String,Object> props = new HashMap<String, Object>(); + props.put("openjpa.EntityManagerFactoryPool", "true"); + EntityManagerFactory emf = Persistence.createEntityManagerFactory(UNIT_NAME, props); + new DataLoader().populate(emf.createEntityManager()); + } catch (Exception e) { + throw new ServletException(e); + } + config.getServletContext().log("Initialized with persistence unit [" + UNIT_NAME + "]"); } @Override @@ -71,102 +75,4 @@ public class SimpleApp extends HttpServl out.write((char)c); } } - - - public void populate(EntityManager em, ServletContext ctx) { - Long count = em.createQuery("select count(m) from Movie m", Long.class).getSingleResult(); - if (count != null && count.longValue() > 0) { - ctx.log("Found " + count + " Movie records in the database"); - return; - } - ctx.log("Populating Movie database with " + MOVIE_DATA.length + " movies and " + ACTOR_DATA.length + " actors"); - - List<Actor> actors = createActors(); - List<Movie> movies = createMovies(); - linkActorAndMovie(actors, movies); - makePartner(actors); - em.getTransaction().begin(); - for (Actor a : actors) { - em.persist(a); - } - for (Movie m : movies) { - em.persist(m); - } - em.getTransaction().commit(); - } - - List<Actor> createActors() { - List<Actor> actors = new ArrayList<Actor>(); - for (Object[] a : ACTOR_DATA) { - Actor actor = new Actor((String)a[0], (String)a[1], (String)a[2], (Actor.Gender)a[3], (Date)a[4]); - actors.add(actor); - } - return actors; - } - - List<Movie> createMovies() { - List<Movie> movies = new ArrayList<Movie>(); - for (Object[] m : MOVIE_DATA) { - Movie movie = new Movie((String)m[0], (Integer)m[1]); - movies.add(movie); - } - return movies; - } - - void linkActorAndMovie(List<Actor> actors, List<Movie> movies) { - for (Actor a : actors) { - int n = rng.nextInt(movies.size()); - for (int i = 0; i < n; i++) { - Movie m = random(movies); - a.addMovie(m); - m.addActor(a); - } - } - } - - void makePartner(List<Actor> actors) { - for (Actor p : actors) { - if (p.getPartner() != null) - continue; - Actor f = random(actors); - if (f.getPartner() == null && p.getGender() != f.getGender()) { - p.setPartner(f); - f.setPartner(p); - } - } - } - - /** - * Select a random element from the given list. - */ - private <T> T random(List<T> list) { - return list.get(rng.nextInt(list.size())); - } - - private static Random rng = new Random(); - - public static Object[][] MOVIE_DATA = { - new Object[] {"One flew over the cuckoo's nest", 1980}, - new Object[] {"Everyone Says I Love You", 1980}, - new Object[] {"Where Eagles Dare", 1980}, - new Object[] {"Fight Club", 1980}, - new Object[] {"Horse Whisperer", 1980}, - }; - - @SuppressWarnings("deprecation") - public static Object[][] ACTOR_DATA = { - new Object[] {"m01", "Robert", "Redford", Actor.Gender.Male, new Date(1950, 1, 12)}, - new Object[] {"m02", "Robert", "De Niro", Actor.Gender.Male, new Date(1940, 4, 14)}, - new Object[] {"m03", "Al", "Pacino", Actor.Gender.Male, new Date(1950, 1, 12)}, - new Object[] {"m04", "Brad", "Pitt", Actor.Gender.Male, new Date(1940, 4, 14)}, - new Object[] {"m05", "Clint", "Eastwood",Actor.Gender.Male, new Date(1950, 1, 12)}, - - new Object[] {"f01", "Meryl", "Streep", Actor.Gender.Female, new Date(1940, 4, 14)}, - new Object[] {"f02", "Anglina", "Jolie", Actor.Gender.Female, new Date(1950, 1, 12)}, - new Object[] {"f03", "Goldie", "Hawn", Actor.Gender.Female, new Date(1940, 4, 14)}, - new Object[] {"f04", "Diane", "Keaton", Actor.Gender.Female, new Date(1950, 1, 12)}, - new Object[] {"f05", "Catherine", "Hepburn", Actor.Gender.Female, new Date(1940, 4, 14)}, - }; - - } Modified: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html?rev=1038006&r1=1038005&r2=1038006&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html (original) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html Tue Nov 23 07:30:28 2010 @@ -17,17 +17,78 @@ specific language governing permissions under the License. --> <html> +<head> +<style type="text/css"> +hr {color:sienna;} +p {margin-left:20px;} +body {background-image:url("images/back40.gif"); +.tag { + color:green; + font-weight:bold; +} +</style> +</head> <body> - <h1>Do-Nothing Application</h1> + <h1>DNA: Do-Nothing Application</h1> + <hr> + This DNA application is deployed as a HTTP Servlet.<br> + + The servlet creates an OpenJPA persistence unit at initialization.<br> + + It does nothing else, other than serving this single web page you are reading now. + The fact that you are reading this page means the persistence unit has been initialized. + <p> + + <span style="font-size:1.2em;color:green;font-weight:bold">DNA application is used to demonstrate </span> + <A HREF="../jest">JEST</A>. <br> - This do-nothing application initializes a JPA persistence unit with OpenJPA as provider and its <em>only</em> - response is the page you are reading now. - <br> - This application is used to demonstrate JEST. - <br> - This application is deployed along with a JEST Servlet within the same module scope. - As long as JEST servlet knows the name of the persistence unit of this do-nothing - application, JEST Servlet can browse the domain model, execute query or find in - a generic fashion. + + <h2>Requirement for JEST</h2> + + The only requirements for an application to enable JEST are + + <p> + ► JEST Servlet must be <A href="#web.xml">deployed</A> within the same module scope of the application. <br> + ► The unit name of the persistence unit used by the application must be known to JEST Servlet <br> + ► The persistence unit must be configured with <br> +    <span style="color:green;font-weight:bold;text-align:center;background-color: #EEEEEE"><tt>openjpa.EntityManagerFactoryPool=true</tt></span> + <p> + Once JEST servlet knows the name of the persistence unit, it can <br> + + ► browse the domain model<br> + ► execute query <br> + from any web browser in a <em>meta-data driven</em>, <em>generic</em> fashion + i.e. without knowing anything further about he application. + <p> + <p> + <hr> + <a name="web.xml"></a> + <h5>WEB-INF/web.xml : Deployment Descriptor for JEST-enabled Application</h5> + <div style="border:1px solid black; width:700px;background-color:#EEEEEE"> + <pre> + <span style="color:gray;font-weight:bold;"><servlet></span> + <span style="color:gray;font-weight:bold;"><servlet-name></span><span style="color:blue;">demo</span><span style="color:gray;font-weight:bold;"></servlet-name> + <servlet-class></span><span style="color:blue;">demo.SimpleApp</span><span style="color:gray;font-weight:bold;"></servlet-class> + </servlet> + <servlet-mapping> + <servlet-name></span><span style="color:blue;">demo</span><span style="color:gray;font-weight:bold;"></servlet-name> + <url-pattern></span><span style="color:blue;">/app/*</span><span style="color:gray;font-weight:bold;"></url-pattern> + </servlet-mapping> + + <span style="color:green;font-weight:bold;"><!-- Deployment descriptor for JESTServlet. --></span> + <servlet> + <servlet-name></span><span style="color:red;">jest</span><span style="color:gray;font-weight:bold;"></servlet-name> + <servlet-class></span><span style="color:red;font-weight:bold;">org.apache.openjpa.persistence.jest.JESTServlet</span><span style="color:gray;font-weight:bold;"></servlet-class> + <init-param> + <param-name></span><span style="color:red;">persistence.unit</span><span style="color:gray;font-weight:bold;"></param-name> + <param-value></span><span style="color:red;font-weight:bold;">jestdemo</span><span style="color:gray;font-weight:bold;"></param-value> + </init-param> + </servlet> + <servlet-mapping> + <servlet-name></span><span style="color:red;">jest</span><span style="color:gray;font-weight:bold;"></servlet-name> + <url-pattern></span><span style="color:red;font-weight:bold;">/jest/*</span><span style="color:gray;font-weight:bold;"></url-pattern> + </servlet-mapping></span> +</pre> + </div> </body> </html> \ No newline at end of file From commits-return-8137-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 07:32:32 2010 Return-Path: <commits-return-8137-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 12911 invoked from network); 23 Nov 2010 07:32:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 07:32:32 -0000 Received: (qmail 69699 invoked by uid 500); 23 Nov 2010 07:33:03 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 69642 invoked by uid 500); 23 Nov 2010 07:33:03 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 69635 invoked by uid 99); 23 Nov 2010 07:33:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:33:03 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:33:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C508A23889E9; Tue, 23 Nov 2010 07:31:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038007 - /openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/DataLoader.java Date: Tue, 23 Nov 2010 07:31:27 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123073127.C508A23889E9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Tue Nov 23 07:31:27 2010 New Revision: 1038007 URL: http://svn.apache.org/viewvc?rev=1038007&view=rev Log: OPENJPA-1851: Add dataloader Added: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/DataLoader.java (with props) Added: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/DataLoader.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/DataLoader.java?rev=1038007&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/DataLoader.java (added) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/DataLoader.java Tue Nov 23 07:31:27 2010 @@ -0,0 +1,133 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package demo; + +import java.util.Date; + +import javax.persistence.EntityManager; + +/** + * Loads some example Actor-Movie data. + * + * @author Pinaki Poddar + * + */ +public class DataLoader { + // Hand-tuned data for Testing + @SuppressWarnings("deprecation") + public static Object[][] ACTOR_DATA = { + new Object[] {"m1", "Robert", "Redford", Actor.Gender.Male, new Date(50, 1, 12)}, + new Object[] {"m2", "Robert", "De Niro", Actor.Gender.Male, new Date(40, 4, 14)}, + new Object[] {"m3", "Al", "Pacino", Actor.Gender.Male, new Date(50, 1, 12)}, + new Object[] {"m4", "Jack", "Nichelson",Actor.Gender.Male, new Date(40, 4, 14)}, + new Object[] {"m5", "Clint", "Eastwood", Actor.Gender.Male, new Date(50, 1, 12)}, + + new Object[] {"f1", "Meryl", "Streep", Actor.Gender.Female, new Date(40, 4, 14)}, + new Object[] {"f2", "Fay", "Dunaway", Actor.Gender.Female, new Date(50, 1, 12)}, + new Object[] {"f3", "Jodie", "Foster", Actor.Gender.Female, new Date(40, 4, 14)}, + new Object[] {"f4", "Diane", "Keaton", Actor.Gender.Female, new Date(50, 1, 12)}, + new Object[] {"f5", "Catherine", "Hepburn", Actor.Gender.Female, new Date(40, 4, 14)}, + }; + + public static Object[][] MOVIE_DATA = { + new Object[] {"1", "China Town", 1980}, + new Object[] {"2", "Taxi Driver", 1980}, + new Object[] {"3", "Where Eagles Dare", 1980}, + new Object[] {"4", "Godfather", 1980}, + new Object[] {"5", "Horse Whisperer", 1980}, + }; + + public static int[][] MOVIE_ACTORS = { + new int[] {3,6}, + new int[] {1,7}, + new int[] {4}, + new int[] {2,3,8}, + new int[] {0} + }; + + public static int[][] PARTNERS = { + new int[] {3,6}, + new int[] {1,7}, + new int[] {3,8}, + }; + + public void populate(EntityManager em) throws Exception { + Long count = em.createQuery("select count(m) from Movie m", Long.class).getSingleResult(); + if (count != null && count.longValue() > 0) { + System.err.println("Found " + count + " Movie records in the database"); + return; + } + + + Actor[] actors = createActors(); + Movie[] movies = createMovies(); + linkActorAndMovie(movies, actors); + makePartner(actors); + em.getTransaction().begin(); + for (Actor a : actors) { + em.persist(a); + } + for (Movie m : movies) { + em.persist(m); + } + em.getTransaction().commit(); + } + + Actor[] createActors() { + Actor[] actors = new Actor[ACTOR_DATA.length]; + for (int i = 0; i < ACTOR_DATA.length; i++) { + Object[] a = ACTOR_DATA[i]; + actors[i] = new Actor((String)a[0], (String)a[1], (String)a[2], (Actor.Gender)a[3], (Date)a[4]); + } + return actors; + } + + Movie[] createMovies() { + Movie[] movies = new Movie[MOVIE_DATA.length]; + for (int i = 0; i < MOVIE_DATA.length; i++) { + Object[] m = MOVIE_DATA[i]; + movies[i] = new Movie((String)m[0], (String)m[1], (Integer)m[2]); + } + return movies; + } + + void linkActorAndMovie(Movie[] movies, Actor[] actors) { + for (int i = 0; i < MOVIE_ACTORS.length; i++) { + int[] roles = MOVIE_ACTORS[i]; + Movie m = movies[i]; + for (int j = 0; j < roles.length; j++) { + Actor a = actors[roles[j]]; + a.addMovie(m); + m.addActor(a); + } + } + } + + void makePartner(Actor[] actors) { + for (int i = 0; i < PARTNERS.length; i++) { + int[] partners = PARTNERS[i]; + Actor a1 = actors[partners[0]]; + Actor a2 = actors[partners[1]]; + a1.setPartner(a2); + a2.setPartner(a1); + } + } + +} Propchange: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/java/demo/DataLoader.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8138-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 07:34:17 2010 Return-Path: <commits-return-8138-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 13350 invoked from network); 23 Nov 2010 07:34:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 07:34:17 -0000 Received: (qmail 70703 invoked by uid 500); 23 Nov 2010 07:34:49 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 70682 invoked by uid 500); 23 Nov 2010 07:34:48 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 70675 invoked by uid 99); 23 Nov 2010 07:34:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:34:48 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:34:45 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4AEEB23889E9; Tue, 23 Nov 2010 07:33:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038008 - /openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestInstanceGraphAndMetaModelFormat.java Date: Tue, 23 Nov 2010 07:33:11 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123073311.4AEEB23889E9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Tue Nov 23 07:33:10 2010 New Revision: 1038008 URL: http://svn.apache.org/viewvc?rev=1038008&view=rev Log: OPENJPA-1851: Add a test Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestInstanceGraphAndMetaModelFormat.java (with props) Added: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestInstanceGraphAndMetaModelFormat.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestInstanceGraphAndMetaModelFormat.java?rev=1038008&view=auto ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestInstanceGraphAndMetaModelFormat.java (added) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestInstanceGraphAndMetaModelFormat.java Tue Nov 23 07:33:10 2010 @@ -0,0 +1,117 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.openjpa.persistence.jest; + +import java.io.IOException; +import java.io.PrintWriter; +import java.util.List; + +import junit.framework.Assert; + +import org.apache.openjpa.kernel.OpenJPAStateManager; +import org.w3c.dom.Document; + + +/** + * Tests combination of following dimensions + * 1. which Format to use : XML, DOJO, HTML + * 2. which Object to encode : single/multiple instances or domain model + * + * @author Pinaki Poddar + * + */ +public class TestInstanceGraphAndMetaModelFormat extends LocalJESTTest { + private static String JPQL = "select m from Movie m";; + private static String JPQL_SINGLE = "select m from Movie m where m.title = '" + DataLoader.MOVIE_DATA[1][1] + "'"; + + /* Query for a single instance or collection? */ + public static boolean SINGLE = true; + /* Format used to encode */ + public static enum Format {XML, DOJO, HTML}; + + public void setUp() throws Exception { + super.setUp(); + } + + public void testXMLEncoder() { + encodeAndValidateQueryResultInXMLForamt(Format.XML, SINGLE); + encodeAndValidateQueryResultInXMLForamt(Format.XML, !SINGLE); + encodeDomainModel(Format.XML); + } + + public void testDojoEncoderForColllection() { + encodeAndValidateQueryResultInXMLForamt(Format.DOJO, SINGLE); + encodeAndValidateQueryResultInXMLForamt(Format.DOJO, !SINGLE); + encodeDomainModel(Format.DOJO); + } + + public void testHTMLEncoderForColllection() { + encodeAndValidateQueryResultInXMLForamt(Format.HTML, SINGLE); + encodeAndValidateQueryResultInXMLForamt(Format.HTML, !SINGLE); + encodeDomainModel(Format.HTML); + } + + void encodeAndValidateQueryResultInXMLForamt(Format format, boolean single) { + ObjectFormatter<?> formatter = getFormatter(format); + List<OpenJPAStateManager> result = getQueryResult(single ? JPQL_SINGLE : JPQL, single); + Object doc = formatter.encode(result, _model); + try { + PrintWriter writer = getWriter(format, single ? "single" : "instances"); + formatter.writeOut(result, _model, writer); + if (format == Format.XML) ((XMLFormatter)formatter).validate((Document)doc); + } catch (Exception e) { + e.printStackTrace(); + Assert.fail(e.getMessage()); + } + } + + void encodeDomainModel(Format format) { + ObjectFormatter<?> formatter = getFormatter(format); + PrintWriter writer = getWriter(format, "domain"); + try { + formatter.writeOut(_model, writer); + } catch (IOException e) { + e.printStackTrace(); + fail(e.getMessage()); + } + } + + ObjectFormatter<?> getFormatter(Format format) { + ObjectFormatter<?> formatter = null; + switch (format) { + case XML : formatter = new XMLFormatter(); break; + case HTML : formatter = new HTMLTableFormatter(); break; + case DOJO : formatter = new DojoFormatter(); break; + default : fail("Bad format " + format); + } + return formatter; + } + + PrintWriter getWriter(Format format, String name) { + String ext = null; + switch (format) { + case XML : ext = "xml"; break; + case HTML : ext = "html"; break; + case DOJO : ext = "dojo.html"; break; + default : fail("Bad format " + format); + } + return createTestOutput(name + "." + ext); + } +} Propchange: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/TestInstanceGraphAndMetaModelFormat.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8139-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 07:35:35 2010 Return-Path: <commits-return-8139-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 13802 invoked from network); 23 Nov 2010 07:35:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 07:35:35 -0000 Received: (qmail 71483 invoked by uid 500); 23 Nov 2010 07:36:07 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 71426 invoked by uid 500); 23 Nov 2010 07:36:06 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 71418 invoked by uid 99); 23 Nov 2010 07:36:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:36:06 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 07:36:05 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1C25B23889B9; Tue, 23 Nov 2010 07:34:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038009 - in /openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest: DataLoader.java LocalJESTTest.java Movie.java Date: Tue, 23 Nov 2010 07:34:32 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123073432.1C25B23889B9@eris.apache.org> Author: ppoddar Date: Tue Nov 23 07:34:31 2010 New Revision: 1038009 URL: http://svn.apache.org/viewvc?rev=1038009&view=rev Log: OPENJPA-1851: modify data laoding to verifiable values Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java?rev=1038009&r1=1038008&r2=1038009&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/DataLoader.java Tue Nov 23 07:34:31 2010 @@ -33,27 +33,42 @@ import javax.persistence.EntityManager; * */ public class DataLoader { + // Hand-tuned data for Testing @SuppressWarnings("deprecation") public static Object[][] ACTOR_DATA = { - new Object[] {"m01", "Robert", "Redford", Actor.Gender.Male, new Date(1950, 1, 12)}, - new Object[] {"m02", "Robert", "De Niro", Actor.Gender.Male, new Date(1940, 4, 14)}, - new Object[] {"m03", "Al", "Pacino", Actor.Gender.Male, new Date(1950, 1, 12)}, - new Object[] {"m04", "Brad", "Pitt", Actor.Gender.Male, new Date(1940, 4, 14)}, - new Object[] {"m05", "Clint", "Eastwood",Actor.Gender.Male, new Date(1950, 1, 12)}, + new Object[] {"m1", "Robert", "Redford", Actor.Gender.Male, new Date(50, 1, 12)}, + new Object[] {"m2", "Robert", "De Niro", Actor.Gender.Male, new Date(40, 4, 14)}, + new Object[] {"m3", "Al", "Pacino", Actor.Gender.Male, new Date(50, 1, 12)}, + new Object[] {"m4", "Jack", "Nichelson",Actor.Gender.Male, new Date(40, 4, 14)}, + new Object[] {"m5", "Clint", "Eastwood", Actor.Gender.Male, new Date(50, 1, 12)}, - new Object[] {"f01", "Meryl", "Streep", Actor.Gender.Female, new Date(1940, 4, 14)}, - new Object[] {"f02", "Anglina", "Jolie", Actor.Gender.Female, new Date(1950, 1, 12)}, - new Object[] {"f03", "Goldie", "Hawn", Actor.Gender.Female, new Date(1940, 4, 14)}, - new Object[] {"f04", "Diane", "Keaton", Actor.Gender.Female, new Date(1950, 1, 12)}, - new Object[] {"f05", "Catherine", "Hepburn", Actor.Gender.Female, new Date(1940, 4, 14)}, + new Object[] {"f1", "Meryl", "Streep", Actor.Gender.Female, new Date(40, 4, 14)}, + new Object[] {"f2", "Fay", "Dunaway", Actor.Gender.Female, new Date(50, 1, 12)}, + new Object[] {"f3", "Jodie", "Foster", Actor.Gender.Female, new Date(40, 4, 14)}, + new Object[] {"f4", "Diane", "Keaton", Actor.Gender.Female, new Date(50, 1, 12)}, + new Object[] {"f5", "Catherine", "Hepburn", Actor.Gender.Female, new Date(40, 4, 14)}, }; public static Object[][] MOVIE_DATA = { - new Object[] {"One flew over the cuckoo's nest", 1980}, - new Object[] {"Everyone Says I Love You", 1980}, - new Object[] {"Where Eagles Dare", 1980}, - new Object[] {"Fight Club", 1980}, - new Object[] {"Horse Whisperer", 1980}, + new Object[] {"1", "China Town", 1980}, + new Object[] {"2", "Taxi Driver", 1980}, + new Object[] {"3", "Where Eagles Dare", 1980}, + new Object[] {"4", "Godfather", 1980}, + new Object[] {"5", "Horse Whisperer", 1980}, + }; + + public static int[][] MOVIE_ACTORS = { + new int[] {3,6}, + new int[] {1,7}, + new int[] {4}, + new int[] {2,3,8}, + new int[] {0} + }; + + public static int[][] PARTNERS = { + new int[] {3,6}, + new int[] {1,7}, + new int[] {3,8}, }; public void populate(EntityManager em) throws Exception { @@ -64,9 +79,9 @@ public class DataLoader { } - List<Actor> actors = createActors(); - List<Movie> movies = createMovies(); - linkActorAndMovie(actors, movies); + Actor[] actors = createActors(); + Movie[] movies = createMovies(); + linkActorAndMovie(movies, actors); makePartner(actors); em.getTransaction().begin(); for (Actor a : actors) { @@ -78,53 +93,44 @@ public class DataLoader { em.getTransaction().commit(); } - List<Actor> createActors() { - List<Actor> actors = new ArrayList<Actor>(); - for (Object[] a : ACTOR_DATA) { - Actor actor = new Actor((String)a[0], (String)a[1], (String)a[2], (Actor.Gender)a[3], (Date)a[4]); - actors.add(actor); + Actor[] createActors() { + Actor[] actors = new Actor[ACTOR_DATA.length]; + for (int i = 0; i < ACTOR_DATA.length; i++) { + Object[] a = ACTOR_DATA[i]; + actors[i] = new Actor((String)a[0], (String)a[1], (String)a[2], (Actor.Gender)a[3], (Date)a[4]); } return actors; } - List<Movie> createMovies() { - List<Movie> movies = new ArrayList<Movie>(); - for (Object[] m : MOVIE_DATA) { - Movie movie = new Movie((String)m[0], (Integer)m[1]); - movies.add(movie); + Movie[] createMovies() { + Movie[] movies = new Movie[MOVIE_DATA.length]; + for (int i = 0; i < MOVIE_DATA.length; i++) { + Object[] m = MOVIE_DATA[i]; + movies[i] = new Movie((String)m[0], (String)m[1], (Integer)m[2]); } return movies; } - void linkActorAndMovie(List<Actor> actors, List<Movie> movies) { - for (Actor a : actors) { - int n = rng.nextInt(movies.size()); - for (int i = 0; i < n; i++) { - Movie m = random(movies); + void linkActorAndMovie(Movie[] movies, Actor[] actors) { + for (int i = 0; i < MOVIE_ACTORS.length; i++) { + int[] roles = MOVIE_ACTORS[i]; + Movie m = movies[i]; + for (int j = 0; j < roles.length; j++) { + Actor a = actors[roles[j]]; a.addMovie(m); m.addActor(a); } } } - void makePartner(List<Actor> actors) { - for (Actor p : actors) { - if (p.getPartner() != null) - continue; - Actor f = random(actors); - if (f.getPartner() == null && p.getGender() != f.getGender()) { - p.setPartner(f); - f.setPartner(p); - } + void makePartner(Actor[] actors) { + for (int i = 0; i < PARTNERS.length; i++) { + int[] partners = PARTNERS[i]; + Actor a1 = actors[partners[0]]; + Actor a2 = actors[partners[1]]; + a1.setPartner(a2); + a2.setPartner(a1); } } - /** - * Select a random element from the given list. - */ - private <T> T random(List<T> list) { - return list.get(rng.nextInt(list.size())); - } - - private static Random rng = new Random(); } Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java?rev=1038009&r1=1038008&r2=1038009&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/LocalJESTTest.java Tue Nov 23 07:34:31 2010 @@ -20,9 +20,14 @@ package org.apache.openjpa.persistence.jest; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collection; +import java.util.Collections; import java.util.List; import javax.persistence.EntityManager; @@ -47,8 +52,9 @@ import org.w3c.dom.Document; */ public class LocalJESTTest extends TestCase { private static EntityManagerFactory _emf; - private static Metamodel _model; + protected static Metamodel _model; private EntityManager _em; + File parent = new File(".", "openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest"); public void setUp() throws Exception { @@ -76,55 +82,41 @@ public class LocalJESTTest extends TestC Assert.assertFalse(_model.getManagedTypes().isEmpty()); } - public void testXMLEncoderForColllection() { - encodeAndValidateQueryResult("select m from Movie m", false); - } - - public void testXMLEncoderForInstance() { - encodeAndValidateQueryResult("select m from Movie m where m.title = '" + DataLoader.MOVIE_DATA[1][0] + "'", - true); - } - public void testDomainModelEncoder() { - DomainCommand formatter = new DomainCommand(); - Document doc = formatter.encode(_model); - try { - new XMLFormatter().write(doc, new PrintWriter(System.err)); - } catch (Exception e) { - e.printStackTrace(); - Assert.fail(); - } - } - void encodeAndValidateQueryResult(String jpql, boolean single) { - XMLFormatter formatter = new XMLFormatter(); + /** + * Execute the given JPQL query and returns the managed instances. + * + * @return the formatter output. + */ + protected List<OpenJPAStateManager> getQueryResult(String jpql, boolean single) { Query query = _em.createQuery(jpql); - Document doc = null; - if (single) - doc = formatter.encodeManagedInstance(toStateManager(query.getSingleResult()), _model); - else - doc = formatter.encodeManagedInstances(toStateManager(query.getResultList()), _model); - try { - formatter.write(doc, new PrintWriter(System.err)); - formatter.validate(doc); - } catch (Exception e) { - e.printStackTrace(); - Assert.fail(e.getMessage()); - } + List<?> result = single ? Collections.singletonList(query.getSingleResult()) : query.getResultList(); + assertFalse(result.isEmpty()); + return toStateManager(result); } - OpenJPAStateManager toStateManager(Object obj) { - StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); - return broker.getStateManager(obj); - } List<OpenJPAStateManager> toStateManager(Collection<?> objects) { StoreContext broker = ((StoreContext)JPAFacadeHelper.toBroker(_em)); List<OpenJPAStateManager> sms = new ArrayList<OpenJPAStateManager>(); for (Object o : objects) { - sms.add(broker.getStateManager(o)); + OpenJPAStateManager sm = broker.getStateManager(o); + assertNotNull(sm); + sms.add(sm); } return sms; } + PrintWriter createTestOutput(String name) { + try { + File file = new File(parent, name); + System.err.println(this.getName() + " output : [" + file.getAbsolutePath() + "]"); + return new PrintWriter(new FileOutputStream(file, false), true); + } catch (FileNotFoundException e) { + e.printStackTrace(); + fail(e.getMessage()); + } + return null; + } } Modified: openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java?rev=1038009&r1=1038008&r2=1038009&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java (original) +++ openjpa/sandboxes/jest/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jest/Movie.java Tue Nov 23 07:34:31 2010 @@ -36,8 +36,7 @@ import javax.persistence.OneToMany; @Entity public class Movie { @Id - @GeneratedValue - private long id; + private String id; private String title; private int year; @OneToMany(fetch=FetchType.EAGER) @@ -46,13 +45,14 @@ public class Movie { protected Movie() { } - public Movie(String title, int year) { + public Movie(String id, String title, int year) { super(); + this.id = id; this.title = title; this.year = year; } - public long getId() { + public String getId() { return id; } From commits-return-8140-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 13:15:42 2010 Return-Path: <commits-return-8140-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 90921 invoked from network); 23 Nov 2010 13:15:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 13:15:42 -0000 Received: (qmail 52082 invoked by uid 500); 23 Nov 2010 13:16:14 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 52022 invoked by uid 500); 23 Nov 2010 13:16:12 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 52015 invoked by uid 99); 23 Nov 2010 13:16:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 13:16:12 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 13:16:10 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 35584C0161 for <commits@openjpa.apache.org>; Tue, 23 Nov 2010 13:15:49 +0000 (UTC) Date: Tue, 23 Nov 2010 13:15:48 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <583686055.8341290518148867.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJPA-tr?= =?UTF-8?Q?unk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#59?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/59/changes> From commits-return-8141-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 13:15:55 2010 Return-Path: <commits-return-8141-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 91128 invoked from network); 23 Nov 2010 13:15:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 13:15:55 -0000 Received: (qmail 52909 invoked by uid 500); 23 Nov 2010 13:16:27 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 52846 invoked by uid 500); 23 Nov 2010 13:16:26 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 52839 invoked by uid 99); 23 Nov 2010 13:16:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 13:16:26 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 13:16:20 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 0899BC0164 for <commits@openjpa.apache.org>; Tue, 23 Nov 2010 13:15:59 +0000 (UTC) Date: Tue, 23 Nov 2010 13:15:58 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <712934444.8351290518159034.JavaMail.hudson@aegis> In-Reply-To: <2100634866.6841290332777632.JavaMail.hudson@aegis> References: <2100634866.6841290332777632.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk-deploy #59 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/59/changes> Changes: [faywang] OPENJPA-1893: handle more than one join-column tag inside collection-table tag [curtisr7] OPENJPA-1895: Minor performance improvement. [mikedd] OPENJPA-1888: Add generics to ManagedCache and AbstractStoreManager. Submitted By: Guy Korland [mikedd] OPENJPA-1885: rename new method to persistInternal and some code formatting changes [faywang] OPENJPA-1894: reduce the number of Strings created by SelectImpl.getTableIndex ------------------------------------------ [...truncated 17451 lines...] [WARNING] We have a duplicate org/apache/bval/jsr303/util/ConstraintDefinitionValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderCustomizableContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$2.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$3.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$4.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$5.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$6.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$2.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/EnumerationConverter.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderDefinedContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/IOUtils.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorIdentity.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/JPATraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingRelevant.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/DefaultTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver$CacheEntry.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/SimpleTraversableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ElementDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ConstructorDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ProcedureDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ReturnAccess.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterAccess.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/AppendValidationToList.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidatorMetaBeanFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValidatorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintViolationImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorContextImpl$ConstraintViolationBuilderImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContext.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidationListener.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Groups.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Group.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/GroupsComputer.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultMessageInterpolator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BaseAppendValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidation.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultValidationProviderResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303MetaBeanFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext$XMLMetaBeanManagerCreator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BeanDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintCached.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultConstraintValidatorFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Property.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Bean.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConfigurationImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfiguration$Properties.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfiguration.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/NestedMetaProperty.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/UnknownPropertyException.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator$Jsr303ValidationCallback.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder$ConstraintOverrides.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBuilder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToBuilder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/PropertyDescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToMeta.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidationProvider.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GraphBeanIdentity.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfBoolean.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfShort.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfObject.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfByte.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotNullValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForMap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForCollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmpty.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorForDate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfFloat.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/EmailValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/Email.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertFalseValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForDate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidatorForMap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorForCalendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NullValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForCollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfLong.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertTrueValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PatternValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfDouble.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfChar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForCalendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForArrayOfInt.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [INFO] Replacing original artifact with shaded artifact. [INFO] Replacing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> with <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-shaded.jar> [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT.jar [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT.jar [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/.m2/repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-20101123.115154-102.jar 6201K uploaded (openjpa-all-2.1.0-20101123.115154-102.jar) [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'snapshot org.apache.openjpa:openjpa-all:2.1.0-SNAPSHOT' [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'artifact org.apache.openjpa:openjpa-all' [INFO] Uploading project information for openjpa-all 2.1.0-20101123.115154-102 [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-20101123.115154-102-tests.jar 20K uploaded (openjpa-all-2.1.0-20101123.115154-102-tests.jar) [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/dependency-reduced-pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-all/builds/2010-11-23_11-51-09/archive/org.apache.openjpa/openjpa-all/2.1.0-SNAPSHOT/dependency-reduced-pom.xml [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-all/builds/2010-11-23_11-51-09/archive/org.apache.openjpa/openjpa-all/2.1.0-20101123.115154-102/openjpa-all-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$openjpa-all/builds/2010-11-23_11-51-09/archive/org.apache.openjpa/openjpa-all/2.1.0-20101123.115154-102/openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] Building OpenJPA Project Docs and Assemblies [INFO] task-segment: [clean, deploy] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [assembly:attached {execution: bin}] [INFO] Reading assembly descriptor: assembly.xml [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjpa:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjpa:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead [INFO] [assembly:attached {execution: sources}] [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-source.zip [WARNING] Artifact does not contain any legal files: apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/pom.xml> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-20101123.115154-102.pom 21K uploaded (apache-openjpa-2.1.0-20101123.115154-102.pom) [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'snapshot org.apache.openjpa:apache-openjpa:2.1.0-SNAPSHOT' [INFO] Retrieving previous metadata from apache.snapshots.https [INFO] Uploading repository metadata for: 'artifact org.apache.openjpa:apache-openjpa' [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-20101123.115154-102-binary.zip 14932K uploaded (apache-openjpa-2.1.0-20101123.115154-102-binary.zip) [INFO] Retrieving previous build number from apache.snapshots.https Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-20101123.115154-102-source.zip [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-23_11-51-09/archive/org.apache.openjpa/apache-openjpa/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-23_11-51-09/archive/org.apache.openjpa/apache-openjpa/2.1.0-20101123.115154-102/apache-openjpa-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-binary.zip> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-23_11-51-09/archive/org.apache.openjpa/apache-openjpa/2.1.0-20101123.115154-102/apache-openjpa-2.1.0-SNAPSHOT-binary.zip [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/ws/trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-source.zip> to /home/hudson/hudson/jobs/OpenJPA-trunk-deploy/modules/org.apache.openjpa$apache-openjpa/builds/2010-11-23_11-51-09/archive/org.apache.openjpa/apache-openjpa/2.1.0-20101123.115154-102/apache-openjpa-2.1.0-SNAPSHOT-source.zip [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Java heap space [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2786) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94) at sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:61) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:492) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:457) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:411) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 84 minutes 28 seconds [INFO] Finished at: Tue Nov 23 13:15:47 UTC 2010 [INFO] Final Memory: 359M/1096M [INFO] ------------------------------------------------------------------------ Waiting for Hudson to finish collecting data Sending e-mails to: commits@openjpa.apache.org channel stopped From commits-return-8142-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 13:42:18 2010 Return-Path: <commits-return-8142-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 3778 invoked from network); 23 Nov 2010 13:42:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 13:42:18 -0000 Received: (qmail 94820 invoked by uid 500); 23 Nov 2010 13:42:50 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 94762 invoked by uid 500); 23 Nov 2010 13:42:50 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 94755 invoked by uid 99); 23 Nov 2010 13:42:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 13:42:49 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 13:42:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 42A2B238897F; Tue, 23 Nov 2010 13:41:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038109 - /openjpa/trunk/pom.xml Date: Tue, 23 Nov 2010 13:41:17 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123134117.42A2B238897F@eris.apache.org> Author: mikedd Date: Tue Nov 23 13:41:16 2010 New Revision: 1038109 URL: http://svn.apache.org/viewvc?rev=1038109&view=rev Log: remove deprecation warning from build Modified: openjpa/trunk/pom.xml Modified: openjpa/trunk/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/pom.xml?rev=1038109&r1=1038108&r2=1038109&view=diff ============================================================================== --- openjpa/trunk/pom.xml (original) +++ openjpa/trunk/pom.xml Tue Nov 23 13:41:16 2010 @@ -622,52 +622,19 @@ <useFile>false</useFile> <trimStackTrace>false</trimStackTrace> <useSystemClassLoader>true</useSystemClassLoader> - <systemProperties> - <property> - <name>openjpa.Log</name> - <value>${openjpa.Log}</value> - </property> - <property> - <name>openjpa.DynamicEnhancementAgent</name> - <value>${openjpa.DynamicEnhancementAgent}</value> - </property> - <property> - <name>openjpa.ConnectionDriverName</name> - <value>${connection.driver.name}</value> - </property> - <property> - <name>openjpa.ConnectionURL</name> - <value>${connection.url}</value> - </property> - <property> - <name>openjpa.ConnectionUserName</name> - <value>${connection.username}</value> - </property> - <property> - <name>openjpa.ConnectionPassword</name> - <value>${connection.password}</value> - </property> - <property> - <name>derby.stream.error.file</name> - <value>target/derby.log</value> - </property> - <property> - <name>derby.locks.deadlockTimeout</name> - <value>${derby.locks.deadlockTimeout}</value> - </property> - <property> - <name>derby.locks.waitTimeout</name> - <value>${derby.locks.waitTimeout}</value> - </property> - <property> - <name>openjpa.ConnectionProperties</name> - <value>${dbcp.args}</value> - </property> - <property> - <name>tests.openjpa.allowfailure</name> - <value>${tests.openjpa.allowfailure}</value> - </property> - </systemProperties> + <systemPropertyVariables> + <openjpa.Log>${openjpa.Log}</openjpa.Log> + <openjpa.DynamicEnhancementAgent>${openjpa.DynamicEnhancementAgent}</openjpa.DynamicEnhancementAgent> + <openjpa.ConnectionDriverName>${connection.driver.name}</openjpa.ConnectionDriverName> + <openjpa.ConnectionURL>${connection.url}</openjpa.ConnectionURL> + <openjpa.ConnectionUserName>${connection.username}</openjpa.ConnectionUserName> + <openjpa.ConnectionPassword>${connection.password}</openjpa.ConnectionPassword> + <openjpa.ConnectionProperties>${dbcp.args}</openjpa.ConnectionProperties> + <derby.stream.error.file>target/derby.log</derby.stream.error.file> + <derby.locks.deadlockTimeout>${derby.locks.deadlockTimeout}</derby.locks.deadlockTimeout> + <derby.locks.waitTimeout>${derby.locks.waitTimeout}</derby.locks.waitTimeout> + <tests.openjpa.allowfailure>${tests.openjpa.allowfailure}</tests.openjpa.allowfailure> + </systemPropertyVariables> </configuration> </plugin> <plugin> From commits-return-8143-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 15:17:22 2010 Return-Path: <commits-return-8143-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 57186 invoked from network); 23 Nov 2010 15:17:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 15:17:22 -0000 Received: (qmail 54661 invoked by uid 500); 23 Nov 2010 15:17:53 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 54608 invoked by uid 500); 23 Nov 2010 15:17:53 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 54601 invoked by uid 99); 23 Nov 2010 15:17:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 15:17:52 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 15:17:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DBF4123889B1; Tue, 23 Nov 2010 15:16:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038158 - in /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed: AttributeXml.java FeatureIdXml.java FeatureXml.java Date: Tue, 23 Nov 2010 15:16:20 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123151620.DBF4123889B1@eris.apache.org> Author: mikedd Date: Tue Nov 23 15:16:17 2010 New Revision: 1038158 URL: http://svn.apache.org/viewvc?rev=1038158&view=rev Log: OPENJPA-1893: setting eol-style Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/AttributeXml.java (props changed) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureIdXml.java (props changed) openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureXml.java (props changed) Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/AttributeXml.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureIdXml.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/FeatureXml.java ------------------------------------------------------------------------------ svn:eol-style = native From commits-return-8144-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 17:00:27 2010 Return-Path: <commits-return-8144-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 8973 invoked from network); 23 Nov 2010 17:00:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 17:00:27 -0000 Received: (qmail 2416 invoked by uid 500); 23 Nov 2010 17:00:59 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 2377 invoked by uid 500); 23 Nov 2010 17:00:59 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 2370 invoked by uid 99); 23 Nov 2010 17:00:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 17:00:58 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 17:00:56 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id D1B3FC0161 for <commits@openjpa.apache.org>; Tue, 23 Nov 2010 17:00:35 +0000 (UTC) Date: Tue, 23 Nov 2010 17:00:35 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <378672124.8501290531635765.JavaMail.hudson@aegis> In-Reply-To: <1175057135.7831290470298608.JavaMail.hudson@aegis> References: <1175057135.7831290470298608.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJP?= =?UTF-8?Q?A-trunk_=C2=BB_OpenJPA_Persistence_JDBC_#340?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/340/changes> From commits-return-8145-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 17:00:36 2010 Return-Path: <commits-return-8145-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 9046 invoked from network); 23 Nov 2010 17:00:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 17:00:36 -0000 Received: (qmail 2508 invoked by uid 500); 23 Nov 2010 17:01:07 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 2491 invoked by uid 500); 23 Nov 2010 17:01:07 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 2484 invoked by uid 99); 23 Nov 2010 17:01:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 17:01:07 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 17:01:00 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id AF7B4C0164 for <commits@openjpa.apache.org>; Tue, 23 Nov 2010 17:00:38 +0000 (UTC) Date: Tue, 23 Nov 2010 17:00:38 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1321538896.8511290531638717.JavaMail.hudson@aegis> In-Reply-To: <2020755543.7841290470302481.JavaMail.hudson@aegis> References: <2020755543.7841290470302481.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #340 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/340/changes> Changes: [mikedd] OPENJPA-1893: setting eol-style [mikedd] remove deprecation warning from build ------------------------------------------ [...truncated 14032 lines...] 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 166 test INFO [main] Tests - ** testExtendedUni1x1JTLazyLock() 178 test INFO [main] Tests - ** testExtendedUni1x1JTLazyLock() 178 test INFO [main] Tests - -- Test find with no lock in Extended scope 178 test INFO [main] Tests - *Begin a transaction. 178 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112111) with no lock 181 test INFO [main] Tests - *Find entity 186 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@1a282af[id=1112111, ver=1, firstName=firstName 1112111] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@1e994ed[id=1122111, ver=1, lastName=lastName 1122111] 186 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112112) with pessimistic force increment lock 191 test INFO [main] Tests - *Find entity 192 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@19657e5[id=1112112, ver=1, firstName=firstName 1112112] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@19b6541[id=1122112, ver=1, lastName=lasttName 1122112] 192 test INFO [main] Tests - Committing transaction. 200 test INFO [main] Tests - -- Test query with pessimistic read lock in Extended scope 200 test INFO [main] Tests - *Begin a transaction. 200 test INFO [main] Tests - *Save ReadLockLevel before Query:READ 200 test INFO [main] Tests - *Query org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112111) with PESSIMISTIC_READ lock 202 test WARN [main] openjpa.Runtime - "javax.persistence.lock.scope" is not a supported query hint. May be you meant "javax.persistence.lock.timeout"? 207 test INFO [main] Tests - *Found 1 entity 207 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@d044fe[id=1112111, ver=1, firstName=firstName 1112111] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@1ed4306[id=1122111, ver=1, lastName=lastName 1122111] 207 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112112) with no lock to verify query lock set does not affect em lock mode. 208 test INFO [main] Tests - *Find entity 208 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@8a16d7[id=1112112, ver=2, firstName=firstName 1112112] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@718e84[id=1122112, ver=1, lastName=lasttName 1122112] 208 test INFO [main] Tests - Committing transaction. 209 test INFO [main] Tests - -- Test name query with pessimistic write lock in Extended scope 209 test INFO [main] Tests - *Begin a transaction. 209 test INFO [main] Tests - *Save ReadLockLevel before Query:READ 209 test INFO [main] Tests - *Query org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112111) with PESSIMISTIC_WRITE lock 210 test WARN [main] openjpa.Runtime - "javax.persistence.lock.scope" is not a supported query hint. May be you meant "javax.persistence.lock.timeout"? 210 test WARN [main] openjpa.Runtime - "javax.persistence.lock.scope" is not a supported query hint. May be you meant "javax.persistence.lock.timeout"? 211 test INFO [main] Tests - *Found 1 entity 212 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@13ec519[id=1112111, ver=1, firstName=firstName 1112111] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@10d63f8[id=1122111, ver=1, lastName=lastName 1122111] 212 test INFO [main] Tests - *Ensure ReadLockLevel remains at level READ 212 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112112) with no lock to verify query lock set does not affect em lock mode. 212 test INFO [main] Tests - *Find an entity 213 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@bf506d[id=1112112, ver=2, firstName=firstName 1112112] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@9c81c2[id=1122112, ver=1, lastName=lasttName 1122112] 213 test INFO [main] Tests - Committing transaction. Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.223 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindException 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.047 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerDeadlock 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 25.183 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerNonVersion 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.313 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindBasic 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.577 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerRefreshPermutation 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 294.717 sec Running org.apache.openjpa.persistence.lockmgr.TestLocking 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.017 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindPermutation 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 34 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Build timed out. Aborting Process 1290530721794 is killed. Sending e-mails to: commits@openjpa.apache.org [HUDSON] Recording test results [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to call isArchivingDisabled. Invalid object ID 13 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.IllegalStateException: Unable to call isArchivingDisabled. Invalid object ID 13 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:268) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 51 minutes 50 seconds [INFO] Finished at: Tue Nov 23 17:00:35 UTC 2010 [INFO] Final Memory: 117M/432M [INFO] ------------------------------------------------------------------------ channel stopped From commits-return-8146-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 17:30:33 2010 Return-Path: <commits-return-8146-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 30459 invoked from network); 23 Nov 2010 17:30:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 17:30:33 -0000 Received: (qmail 32438 invoked by uid 500); 23 Nov 2010 17:31:05 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 32384 invoked by uid 500); 23 Nov 2010 17:31:05 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 32377 invoked by uid 99); 23 Nov 2010 17:31:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 17:31:05 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 17:31:05 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5D72E23889B1; Tue, 23 Nov 2010 17:29:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038214 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java Date: Tue, 23 Nov 2010 17:29:33 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123172933.5D72E23889B1@eris.apache.org> Author: mikedd Date: Tue Nov 23 17:29:32 2010 New Revision: 1038214 URL: http://svn.apache.org/viewvc?rev=1038214&view=rev Log: OPENJPA-1897: Add all reserved words to invalid column name set Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java?rev=1038214&r1=1038213&r2=1038214&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java Tue Nov 23 17:29:32 2010 @@ -135,8 +135,7 @@ public class SybaseDictionary })); // reserved words specified at: - // http://manuals.sybase.com/onlinebooks/group-as/asg1250e/ - // refman/@Generic__BookTextView/26603 + // http://manuals.sybase.com/onlinebooks/group-as/asg1250e/refman/@Generic__BookTextView/26603 reservedWordSet.addAll(Arrays.asList(new String[]{ "ARITH_OVERFLOW", "BREAK", "BROWSE", "BULK", "CHAR_CONVERT", "CHECKPOINT", "CLUSTERED", "COMPUTE", "CONFIRM", "CONTROLROW", @@ -159,7 +158,8 @@ public class SybaseDictionary "USER_OPTION", "WAITFOR", "WHILE", "WRITETEXT", })); - invalidColumnWordSet.addAll(Arrays.asList(new String [] { "DUMMY" } )); + // Sybase does not allow reserved words to be used as column names. + invalidColumnWordSet.addAll(reservedWordSet); // Sybase does not support foreign key delete/update action NULL, // DEFAULT, CASCADE From commits-return-8147-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 21:01:29 2010 Return-Path: <commits-return-8147-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 53669 invoked from network); 23 Nov 2010 21:01:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 21:01:29 -0000 Received: (qmail 92413 invoked by uid 500); 23 Nov 2010 21:02:01 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 92361 invoked by uid 500); 23 Nov 2010 21:02:01 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 92354 invoked by uid 99); 23 Nov 2010 21:02:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 21:02:01 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 21:02:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 590622388A41; Tue, 23 Nov 2010 21:00:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038342 - /openjpa/trunk/pom.xml Date: Tue, 23 Nov 2010 21:00:29 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123210029.590622388A41@eris.apache.org> Author: mikedd Date: Tue Nov 23 21:00:29 2010 New Revision: 1038342 URL: http://svn.apache.org/viewvc?rev=1038342&view=rev Log: Revert to version 2.5 of the surefire plugin - seems to improve memory use Modified: openjpa/trunk/pom.xml Modified: openjpa/trunk/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/pom.xml?rev=1038342&r1=1038341&r2=1038342&view=diff ============================================================================== --- openjpa/trunk/pom.xml (original) +++ openjpa/trunk/pom.xml Tue Nov 23 21:00:29 2010 @@ -616,7 +616,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> - <version>2.6</version> + <version>2.5</version> <configuration> <argLine>${surefire.jvm.args}</argLine> <useFile>false</useFile> From commits-return-8148-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 23 22:14:41 2010 Return-Path: <commits-return-8148-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 9093 invoked from network); 23 Nov 2010 22:14:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 22:14:41 -0000 Received: (qmail 23590 invoked by uid 500); 23 Nov 2010 22:15:13 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 23571 invoked by uid 500); 23 Nov 2010 22:15:13 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 23564 invoked by uid 99); 23 Nov 2010 22:15:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 22:15:13 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 22:15:06 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 9061AC0161 for <commits@openjpa.apache.org>; Tue, 23 Nov 2010 22:14:44 +0000 (UTC) Date: Tue, 23 Nov 2010 22:14:43 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1914157994.8771290550484419.JavaMail.hudson@aegis> In-Reply-To: <1321538896.8511290531638717.JavaMail.hudson@aegis> References: <1321538896.8511290531638717.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #341 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/341/changes> Changes: [mikedd] OPENJPA-1897: Add all reserved words to invalid column name set ------------------------------------------ [...truncated 13931 lines...] 247 test INFO [main] Tests - *Begin a transaction. 247 test INFO [main] Tests - *Save ReadLockLevel before Query:READ 247 test INFO [main] Tests - *Query org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT(1112201) with PESSIMISTIC_WRITE lock 247 test INFO [main] openjpa.Runtime - The database is unable to lock this query. Each object matching the query will be locked individually after it is loaded; however, it is technically possible that another transaction could modify the data before the lock is obtained. See the documentation on Object Locking for details. "SELECT t0.id, t0.version, t0.firstName, t2.id, t2.version, t2.lastName FROM LSE1x1LfJT t0 INNER JOIN Uni1x1LfJT_Uni1x1RT t1 ON t0.id = t1.LSE1X1LFJT_ID LEFT OUTER JOIN LSE1x1Rt t2 ON t1.UNIRIGHTJT_ID = t2.id WHERE (t0.firstName LIKE ? ESCAPE '\')" 249 test INFO [main] Tests - *Found 1 entity 266 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT@82b104[id=1112201, ver=1, firstName=firstName 1112201] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@33871a[id=1122201, ver=1, lastName=lastName 1122201] 266 test INFO [main] Tests - *Ensure ReadLockLevel remains at level READ 266 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT(1112202) with no lock to verify query lock set does not affect em lock mode. 266 test INFO [main] Tests - *Find an entity 267 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT@1309ec[id=1112202, ver=2, firstName=firstName 1112202] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@1f086d7[id=1122202, ver=2, lastName=lastName 1122202] 267 test INFO [main] Tests - Committing transaction. 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 180 test INFO [main] Tests - ** testExtendedUni1x1JTLock() 192 test INFO [main] Tests - ** testExtendedUni1x1JTLock() 192 test INFO [main] Tests - -- Test find with no lock in Extended scope 192 test INFO [main] Tests - *Begin a transaction. 192 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT(1112211) with no lock 199 test INFO [main] Tests - *Find entity 199 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT@19d6246[id=1112211, ver=1, firstName=firstName 1112211] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@19f0d93[id=1122211, ver=1, lastName=lastName 1122211] 199 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT(1112212) with pessimistic force increment lock 200 test INFO [main] openjpa.Runtime - The database is unable to lock this query. Each object matching the query will be locked individually after it is loaded; however, it is technically possible that another transaction could modify the data before the lock is obtained. See the documentation on Object Locking for details. "SELECT t0.version, t0.firstName, t2.id, t2.version, t2.lastName FROM LSE1x1LfJT t0 INNER JOIN Uni1x1LfJT_Uni1x1RT t1 ON t0.id = t1.LSE1X1LFJT_ID LEFT OUTER JOIN LSE1x1Rt t2 ON t1.UNIRIGHTJT_ID = t2.id WHERE t0.id = ?" 212 test INFO [main] Tests - *Find entity 220 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT@1b1a17a[id=1112212, ver=1, firstName=firstName 1112212] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@e08dfa[id=1122212, ver=1, lastName=lastName 1122212] 220 test INFO [main] Tests - Committing transaction. 232 test INFO [main] Tests - -- Test query with pessimistic read lock in Extended scope 232 test INFO [main] Tests - *Begin a transaction. 232 test INFO [main] Tests - *Save ReadLockLevel before Query:READ 232 test INFO [main] Tests - *Query org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT(1112211) with PESSIMISTIC_READ lock 234 test WARN [main] openjpa.Runtime - "javax.persistence.lock.scope" is not a supported query hint. May be you meant "javax.persistence.lock.timeout"? 234 test INFO [main] openjpa.Runtime - The database is unable to lock this query. Each object matching the query will be locked individually after it is loaded; however, it is technically possible that another transaction could modify the data before the lock is obtained. See the documentation on Object Locking for details. "SELECT t0.id, t0.version, t0.firstName, t2.id, t2.version, t2.lastName FROM LSE1x1LfJT t0 INNER JOIN Uni1x1LfJT_Uni1x1RT t1 ON t0.id = t1.LSE1X1LFJT_ID LEFT OUTER JOIN LSE1x1Rt t2 ON t1.UNIRIGHTJT_ID = t2.id WHERE (t0.firstName LIKE ? ESCAPE '\')" 244 test INFO [main] Tests - *Found 1 entity 260 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT@14f5643[id=1112211, ver=1, firstName=firstName 1112211] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@1a881cc[id=1122211, ver=1, lastName=lastName 1122211] 260 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT(1112212) with no lock to verify query lock set does not affect em lock mode. 261 test INFO [main] Tests - *Find entity 261 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT@1cfa835[id=1112212, ver=2, firstName=firstName 1112212] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@2c61be[id=1122212, ver=2, lastName=lastName 1122212] 261 test INFO [main] Tests - Committing transaction. 262 test INFO [main] Tests - -- Test name query with pessimistic write lock in Extended scope 262 test INFO [main] Tests - *Begin a transaction. 262 test INFO [main] Tests - *Save ReadLockLevel before Query:READ 262 test INFO [main] Tests - *Query org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT(1112211) with PESSIMISTIC_WRITE lock 263 test WARN [main] openjpa.Runtime - "javax.persistence.lock.scope" is not a supported query hint. May be you meant "javax.persistence.lock.timeout"? 263 test WARN [main] openjpa.Runtime - "javax.persistence.lock.scope" is not a supported query hint. May be you meant "javax.persistence.lock.timeout"? 264 test INFO [main] openjpa.Runtime - The database is unable to lock this query. Each object matching the query will be locked individually after it is loaded; however, it is technically possible that another transaction could modify the data before the lock is obtained. See the documentation on Object Locking for details. "SELECT t0.id, t0.version, t0.firstName, t2.id, t2.version, t2.lastName FROM LSE1x1LfJT t0 INNER JOIN Uni1x1LfJT_Uni1x1RT t1 ON t0.id = t1.LSE1X1LFJT_ID LEFT OUTER JOIN LSE1x1Rt t2 ON t1.UNIRIGHTJT_ID = t2.id WHERE (t0.firstName LIKE ? ESCAPE '\')" 265 test INFO [main] Tests - *Found 1 entity 281 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT@15ae6c7[id=1112211, ver=1, firstName=firstName 1112211] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@e53663[id=1122211, ver=1, lastName=lastName 1122211] 281 test INFO [main] Tests - *Ensure ReadLockLevel remains at level READ 282 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT(1112212) with no lock to verify query lock set does not affect em lock mode. 282 test INFO [main] Tests - *Find an entity 282 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJT@12ac650[id=1112212, ver=2, firstName=firstName 1112212] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@141e734[id=1122212, ver=2, lastName=lastName 1122212] 282 test INFO [main] Tests - Committing transaction. 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 174 test INFO [main] Tests - ** testNormalUni1x1JTLazyLock() 188 test INFO [main] Tests - ** testNormalUni1x1JTLazyLock() 188 test INFO [main] Tests - -- Test find with no lock in Normal scope 188 test INFO [main] Tests - *Begin a transaction. 188 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112101) with no lock 191 test INFO [main] Tests - *Find entity 197 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@e9e799[id=1112101, ver=1, firstName=firstName 1112101] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@4421ab[id=1122101, ver=1, lastName=lastName 1122101] 197 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112102) with pessimistic force increment lock 202 test INFO [main] Tests - *Find entity 203 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@15ef3e7[id=1112102, ver=1, firstName=firstName 1112102] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@1bd07dd[id=1122102, ver=1, lastName=lasttName 1122102] 203 test INFO [main] Tests - Committing transaction. 212 test INFO [main] Tests - -- Test query with pessimistic read lock in Normal scope 212 test INFO [main] Tests - *Begin a transaction. 212 test INFO [main] Tests - *Save ReadLockLevel before Query:READ 212 test INFO [main] Tests - *Query org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112101) with PESSIMISTIC_READ lock 218 test INFO [main] Tests - *Found 1 entity 219 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@1aa38c7[id=1112101, ver=1, firstName=firstName 1112101] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@1ff7feb[id=1122101, ver=1, lastName=lastName 1122101] 219 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112102) with no lock to verify query lock set does not affect em lock mode. 220 test INFO [main] Tests - *Find entity 225 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@40f445[id=1112102, ver=2, firstName=firstName 1112102] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@ed4b7a[id=1122102, ver=1, lastName=lasttName 1122102] 225 test INFO [main] Tests - Committing transaction. 225 test INFO [main] Tests - -- Test name query with pessimistic write lock in Normal scope 225 test INFO [main] Tests - *Begin a transaction. 225 test INFO [main] Tests - *Save ReadLockLevel before Query:READ 225 test INFO [main] Tests - *Query org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112101) with PESSIMISTIC_WRITE lock 226 test INFO [main] Tests - *Found 1 entity 227 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@1cacaa7[id=1112101, ver=1, firstName=firstName 1112101] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@50b410[id=1122101, ver=1, lastName=lastName 1122101] 227 test INFO [main] Tests - *Ensure ReadLockLevel remains at level READ 227 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112102) with no lock to verify query lock set does not affect em lock mode. 227 test INFO [main] Tests - *Find an entity 228 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@bb6598[id=1112102, ver=2, firstName=firstName 1112102] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@16968c4[id=1122102, ver=1, lastName=lasttName 1122102] 228 test INFO [main] Tests - Committing transaction. 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 181 test INFO [main] Tests - ** testExtendedUni1x1JTLazyLock() 192 test INFO [main] Tests - ** testExtendedUni1x1JTLazyLock() 192 test INFO [main] Tests - -- Test find with no lock in Extended scope 192 test INFO [main] Tests - *Begin a transaction. 192 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112111) with no lock 196 test INFO [main] Tests - *Find entity 201 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@d98863[id=1112111, ver=1, firstName=firstName 1112111] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@6a0df6[id=1122111, ver=1, lastName=lastName 1122111] 201 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112112) with pessimistic force increment lock 207 test INFO [main] Tests - *Find entity 208 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@dd7f3b[id=1112112, ver=1, firstName=firstName 1112112] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@178b5d4[id=1122112, ver=1, lastName=lasttName 1122112] 208 test INFO [main] Tests - Committing transaction. 216 test INFO [main] Tests - -- Test query with pessimistic read lock in Extended scope 216 test INFO [main] Tests - *Begin a transaction. 216 test INFO [main] Tests - *Save ReadLockLevel before Query:READ 216 test INFO [main] Tests - *Query org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112111) with PESSIMISTIC_READ lock 218 test WARN [main] openjpa.Runtime - "javax.persistence.lock.scope" is not a supported query hint. May be you meant "javax.persistence.lock.timeout"? 223 test INFO [main] Tests - *Found 1 entity 224 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@114c598[id=1112111, ver=1, firstName=firstName 1112111] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@9c71bf[id=1122111, ver=1, lastName=lastName 1122111] 224 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112112) with no lock to verify query lock set does not affect em lock mode. 224 test INFO [main] Tests - *Find entity 225 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@3d3258[id=1112112, ver=2, firstName=firstName 1112112] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@a1fcba[id=1122112, ver=1, lastName=lasttName 1122112] 225 test INFO [main] Tests - Committing transaction. 226 test INFO [main] Tests - -- Test name query with pessimistic write lock in Extended scope 226 test INFO [main] Tests - *Begin a transaction. 226 test INFO [main] Tests - *Save ReadLockLevel before Query:READ 226 test INFO [main] Tests - *Query org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112111) with PESSIMISTIC_WRITE lock 226 test WARN [main] openjpa.Runtime - "javax.persistence.lock.scope" is not a supported query hint. May be you meant "javax.persistence.lock.timeout"? 227 test WARN [main] openjpa.Runtime - "javax.persistence.lock.scope" is not a supported query hint. May be you meant "javax.persistence.lock.timeout"? 228 test INFO [main] Tests - *Found 1 entity 229 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@161b46d[id=1112111, ver=1, firstName=firstName 1112111] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@1cb546b[id=1122111, ver=1, lastName=lastName 1122111] 229 test INFO [main] Tests - *Ensure ReadLockLevel remains at level READ 229 test INFO [main] Tests - *Find org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy(1112112) with no lock to verify query lock set does not affect em lock mode. 229 test INFO [main] Tests - *Find an entity 230 test INFO [main] Tests - *Found entity:org.apache.openjpa.persistence.lock.extended.LSE1x1LfJTLzy@1e1a796[id=1112112, ver=2, firstName=firstName 1112112] uniRightJT=org.apache.openjpa.persistence.lock.extended.LSE1x1Rt@14395fb[id=1122112, ver=1, lastName=lasttName 1122112] 230 test INFO [main] Tests - Committing transaction. Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.021 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindException 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.368 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerDeadlock 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 25.263 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerNonVersion 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 2 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.25 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerFindBasic 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.756 sec Running org.apache.openjpa.persistence.lockmgr.TestMixedLockManagerRefreshPermutation 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml,> jar:<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-jdbc/target/openjpa-persistence-jdbc-2.1.0-SNAPSHOT-tests.jar!/META-INF/persistence.xml]",> but persistence unit names should be unique. The first persistence unit matching the provided name in "<https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-persistence-locking/target/test-classes/META-INF/persistence.xml"> is being used. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT Build timed out. Aborting Process 1290549975841 is killed. [HUDSON] Recording test results [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to call isArchivingDisabled. Invalid object ID 13 [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.IllegalStateException: Unable to call isArchivingDisabled. Invalid object ID 13 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:268) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 44 minutes 59 seconds [INFO] Finished at: Tue Nov 23 22:14:40 UTC 2010 [INFO] Final Memory: 117M/550M [INFO] ------------------------------------------------------------------------ channel stopped From commits-return-8149-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 24 01:05:08 2010 Return-Path: <commits-return-8149-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 3500 invoked from network); 24 Nov 2010 01:05:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Nov 2010 01:05:08 -0000 Received: (qmail 93976 invoked by uid 500); 24 Nov 2010 01:05:40 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 93923 invoked by uid 500); 24 Nov 2010 01:05:40 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 93916 invoked by uid 99); 24 Nov 2010 01:05:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 01:05:40 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 01:05:40 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 0C1ABC0161 for <commits@openjpa.apache.org>; Wed, 24 Nov 2010 01:05:20 +0000 (UTC) Date: Wed, 24 Nov 2010 01:05:19 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <190565075.8911290560719844.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJPA?= =?UTF-8?Q?-trunk_=C2=BB_OpenJPA_Persistence_JDBC_#342?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/342/> From commits-return-8150-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 24 01:05:13 2010 Return-Path: <commits-return-8150-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 5333 invoked from network); 24 Nov 2010 01:05:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Nov 2010 01:05:13 -0000 Received: (qmail 94054 invoked by uid 500); 24 Nov 2010 01:05:44 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 94001 invoked by uid 500); 24 Nov 2010 01:05:44 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 93994 invoked by uid 99); 24 Nov 2010 01:05:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 01:05:44 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 01:05:42 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 6DD51C0164 for <commits@openjpa.apache.org>; Wed, 24 Nov 2010 01:05:22 +0000 (UTC) Date: Wed, 24 Nov 2010 01:05:22 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1854350446.8921290560722448.JavaMail.hudson@aegis> In-Reply-To: <1914157994.8771290550484419.JavaMail.hudson@aegis> References: <1914157994.8771290550484419.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #342 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/342/changes> Changes: [mikedd] Revert to version 2.5 of the surefire plugin - seems to improve me= mory use ------------------------------------------ [...truncated 17288 lines...] [WARNING] We have a duplicate org/apache/bval/jsr303/xml/AnnotationType.cla= ss in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubatin= g/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ElementType.class = in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/b= val-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/AnnotationIgnores.= class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incuba= ting/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/MetaConstraint.cla= ss in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubatin= g/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ObjectFactory.clas= s in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating= /bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ValidationConfigTy= pe.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-inc= ubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ValidatedByType.cl= ass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubati= ng/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ConstraintDefiniti= onType.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2= -incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ClassType.class in= /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bva= l-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/GroupsType.class i= n /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bv= al-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/FieldType.class in= /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bva= l-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ConstraintMappings= Type.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/PayloadType.class = in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/b= val-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/BeanType.class in = /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval= -jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/GroupSequenceType.= class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incuba= ting/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/PropertyType.class= in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/= bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ConstraintType.cla= ss in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubatin= g/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/GetterType.class i= n /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bv= al-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ValidationMappingP= arser.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-= incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/AnnotationProxyBui= lder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/AnnotationProxy.cl= ass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubati= ng/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/xml/ValidationParser.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/ClassHelper.class= in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/= bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeContextBuilde= rImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-= incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/PathImpl.class in= /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bva= l-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeImpl.class in= /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bva= l-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/ConstraintDefinit= ionValidator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr3= 03/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderCustom= izableContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval= -jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$1.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$2.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$3.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$4.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$5.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions$6.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/SecureActions.cla= ss in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubatin= g/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$1.class= in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/= bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils$2.class= in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/= bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/TypeUtils.class i= n /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bv= al-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/EnumerationConver= ter.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-in= cubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/NodeBuilderDefine= dContextImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr3= 03/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/util/IOUtils.class in = /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval= -jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorIde= ntity.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-= incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/JPATraversabl= eResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/= 0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingReleva= nt.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-inc= ubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/DefaultTraver= sableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr= 303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraver= sableResolver$CacheEntry.class in /home/hudson/.m2/repository/org/apache/bv= al/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraver= sableResolver$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-j= sr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/CachingTraver= sableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr= 303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/resolver/SimpleTravers= ableResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr3= 03/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ElementDescriptorImpl.= class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incuba= ting/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/Constructor= Descriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303= /0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ProcedureDe= scriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0= .2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDe= scriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0= .2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanD= escriptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/= 0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescr= iptor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-= incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterDe= scriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr3= 03/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValid= ator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodDescr= iptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/= 0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ReturnAcces= s.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incu= bating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/ParameterAc= cess.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/Constructor= DescriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-js= r303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/AppendValid= ationToList.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr30= 3/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValid= atorMetaBeanFactory.class in /home/hudson/.m2/repository/org/apache/bval/bv= al-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodBeanD= escriptorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr= 303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/extensions/MethodValid= atorImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0= .2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintViolationImp= l.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incu= bating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorCon= textImpl$ConstraintViolationBuilderImpl.class in /home/hudson/.m2/repositor= y/org/apache/bval/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidatorCon= textImpl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0= .2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidation.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContext= .class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incub= ating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintValidationLi= stener.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2= -incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Groups.class in= /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bva= l-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/Group.class in = /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval= -jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/groups/GroupsComputer.= class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incuba= ting/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultMessageInterpol= ator.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults$1.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDefaults.cla= ss in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubatin= g/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BaseAppendValidation.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidation.class= in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/= bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultValidationProvi= derResolver.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr30= 3/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303MetaBeanFactory.= class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incuba= ting/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext$X= MLMetaBeanManagerCreator.class in /home/hudson/.m2/repository/org/apache/bv= al/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheFactoryContext.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/BeanDescriptorImpl.cla= ss in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubatin= g/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorFactory= .class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incub= ating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintCached.class= in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/= bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GroupValidationContext= Impl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/DefaultConstraintValid= atorFactory.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr30= 3/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintDescriptorIm= pl.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-inc= ubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Propert= y.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incu= bating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features$Bean.cl= ass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubati= ng/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/Jsr303Features.class i= n /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bv= al-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConfigurationImpl.clas= s in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating= /bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfigu= ration$Properties.class in /home/hudson/.m2/repository/org/apache/bval/bval= -jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidatorConfigu= ration.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2= -incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/NestedMetaProperty.cla= ss in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubatin= g/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/UnknownPropertyExcepti= on.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-inc= ubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator$Jsr303V= alidationCallback.class in /home/hudson/.m2/repository/org/apache/bval/bval= -jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ClassValidator.class i= n /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bv= al-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBu= ilder$1.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.= 2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBu= ilder$ConstraintOverrides.class in /home/hudson/.m2/repository/org/apache/b= val/bval-jsr303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AnnotationConstraintBu= ilder.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-= incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToBuil= der.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-in= cubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl$1= .class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incub= ating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ConstraintFinderImpl.c= lass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubat= ing/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/PropertyDescriptorImpl= .class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incub= ating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/AppendValidationToMeta= .class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incub= ating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/ApacheValidationProvid= er.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-inc= ubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/jsr303/GraphBeanIdentity.clas= s in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating= /bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidator.cla= ss in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubatin= g/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForA= rrayOfBoolean.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr= 303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForA= rrayOfShort.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr30= 3/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForNu= mber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidat= orForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr30= 3/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidat= orForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr30= 3/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForA= rrayOfObject.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr3= 03/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MaxValidatorForSt= ring.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForA= rrayOfByte.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303= /0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotNullValidator.= class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incuba= ting/bval-jsr303-0.2-incubating.jar =1B[8mha:[HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-t= runk/ws/trunk/openjpa-all/dependency-reduced-pom.xml> to /home/hudson/hudso= n/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-all/builds/2010-11-= 24_00-16-21/archive/org.apache.openjpa/openjpa-all/2.1.0-SNAPSHOT/dependenc= y-reduced-pom.xml AAAAYx+LCAAAAAAAAABb85aBtbiIQSWjNKU4P0+vJLE4u1gvPjexLDVPzxdEhicW5WXmpfvll6S= 2fNly5fzGzauYGBgqihikoFqS8/OK83NS9ZwhNEghAwQwghQWAACwxA+XYgAAAA=3D=3D=1B[0m= [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForM= ap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-inc= ubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorFo= rString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.= 2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForSt= ring.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidator= ForCollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr= 303/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmpty.class in= /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bva= l-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMinValidat= orForNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr30= 3/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorFo= rDate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-= incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForA= rrayOfFloat.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr30= 3/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/EmailValidator.cl= ass in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubati= ng/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/Email.class in /h= ome/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubating/bval-j= sr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidator= ForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/= 0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertFalseValida= tor.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-in= cubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForD= ate.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-in= cubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DecimalMaxValidat= orForString.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr30= 3/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidator= ForMap.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2= -incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/FutureValidatorFo= rCalendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/= 0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NullValidator.cla= ss in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incubatin= g/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForC= ollection.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/= 0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForA= rrayOfLong.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303= /0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/MinValidatorForNu= mber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-i= ncubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/AssertTrueValidat= or.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-inc= ubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PatternValidator.= class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incuba= ting/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/DigitsValidatorFo= rNumber.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.= 2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForA= rrayOfDouble.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr3= 03/0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForS= tring.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-= incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForA= rrayOfChar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303= /0.2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/NotEmptyValidator= .class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.2-incub= ating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/PastValidatorForC= alendar.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/0.= 2-incubating/bval-jsr303-0.2-incubating.jar [WARNING] We have a duplicate org/apache/bval/constraints/SizeValidatorForA= rrayOfInt.class in /home/hudson/.m2/repository/org/apache/bval/bval-jsr303/= 0.2-incubating/bval-jsr303-0.2-incubating.jar [INFO] Replacing original artifact with shaded artifact. [INFO] Replacing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/tru= nk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> with <https://hudson.= apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-all/target/openjpa-all= -2.1.0-SNAPSHOT-shaded.jar> [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT.jar [INFO] Checking legal files in: openjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/tr= unk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/.m2/= repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-2.1.0-= SNAPSHOT.jar [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/tr= unk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/hudso= n/.m2/repository/org/apache/openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa-all-= 2.1.0-SNAPSHOT-tests.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/t= runk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT.jar> to /home/hudson/hud= son/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-all/builds/2010-1= 1-24_00-16-21/archive/org.apache.openjpa/openjpa-all/2.1.0-SNAPSHOT/openjpa= -all-2.1.0-SNAPSHOT.jar [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/t= runk/openjpa-all/target/openjpa-all-2.1.0-SNAPSHOT-tests.jar> to /home/huds= on/hudson/jobs/OpenJPA-trunk/modules/org.apache.openjpa$openjpa-all/builds/= 2010-11-24_00-16-21/archive/org.apache.openjpa/openjpa-all/2.1.0-SNAPSHOT/o= penjpa-all-2.1.0-SNAPSHOT-tests.jar [INFO] --------------------------------------------------------------------= ---- [INFO] Building OpenJPA Project Docs and Assemblies [INFO] task-segment: [clean, install] [INFO] --------------------------------------------------------------------= ---- [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: <https://hudson.apache.org/hudson/job/OpenJPA-tru= nk/ws/trunk/openjpa-project/target> (included: [**], excluded: []) [INFO] [buildnumber:create {execution: default}] [INFO] [enforcer:enforce {execution: default}] [INFO] [checkstyle:checkstyle {execution: default}] [INFO] Source directory does not exist - skipping report. [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [assembly:attached {execution: bin}] [INFO] Reading assembly descriptor: assembly.xml [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjp= a:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.openjpa:apache-openjp= a:pom:2.1.0-SNAPSHOT; it doesn't have an associated file or directory. [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws= /trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-= binary.zip> [WARNING] DEPRECATED [descriptor]: Please use descriptors instead [INFO] [assembly:attached {execution: sources}] [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipp= ing [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] Building zip: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws= /trunk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-= source.zip> [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/README.txt already added, skipp= ing [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/NOTICE already added, skipping [INFO] apache-openjpa-2.1.0-SNAPSHOT-source/LICENSE already added, skipping [INFO] [ianal:verify-legal-files {execution: default}] [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Checking legal files in: apache-openjpa-2.1.0-SNAPSHOT-source.zip [WARNING] Artifact does not contain any legal files: apache-openjpa-2.1.0-S= NAPSHOT-source.zip [INFO] [apache-rat:check {execution: default}] [INFO] Exclude: **/.*/** [INFO] Exclude: **/target/**/* [INFO] [install:install {execution: default-install}] [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/tr= unk/openjpa-project/pom.xml> to /home/hudson/.m2/repository/org/apache/open= jpa/apache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/tr= unk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-bin= ary.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2= .1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-binary.zip [INFO] Installing <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/tr= unk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-sou= rce.zip> to /home/hudson/.m2/repository/org/apache/openjpa/apache-openjpa/2= .1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-source.zip [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/t= runk/openjpa-project/pom.xml> to /home/hudson/hudson/jobs/OpenJPA-trunk/mod= ules/org.apache.openjpa$apache-openjpa/builds/2010-11-24_00-16-21/archive/o= rg.apache.openjpa/apache-openjpa/2.1.0-SNAPSHOT/pom.xml [HUDSON] Archiving /home/hudson/.m2/repository/org/apache/openjpa/apache-op= enjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT.pom to /home/hudson/huds= on/jobs/OpenJPA-trunk/modules/org.apache.openjpa$apache-openjpa/builds/2010= -11-24_00-16-21/archive/org.apache.openjpa/apache-openjpa/2.1.0-SNAPSHOT/ap= ache-openjpa-2.1.0-SNAPSHOT.pom [HUDSON] Archiving <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/t= runk/openjpa-project/target/site/downloads/apache-openjpa-2.1.0-SNAPSHOT-bi= nary.zip> to /home/hudson/hudson/jobs/OpenJPA-trunk/modules/org.apache.open= jpa$apache-openjpa/builds/2010-11-24_00-16-21/archive/org.apache.openjpa/ap= ache-openjpa/2.1.0-SNAPSHOT/apache-openjpa-2.1.0-SNAPSHOT-binary.zip Build timed out. Aborting Sending e-mails to: commits@openjpa.apache.org channel stopped [INFO] --------------------------------------------------------------------= ---- [ERROR] FATAL ERROR [INFO] --------------------------------------------------------------------= ---- [INFO] hudson.remoting.RequestAbortedException: hudson.remoting.Channel$Ord= erlyShutdown [INFO] --------------------------------------------------------------------= ---- [INFO] Trace hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedExce= ption: hudson.remoting.Channel$OrderlyShutdown =09at hudson.remoting.Request.call(Request.java:137) =09at hudson.remoting.Channel.call(Channel.java:630) =09at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandle= r.java:158) =09at $Proxy2.isArchivingDisabled(Unknown Source) =09at hudson.maven.MavenBuildProxy$Filter.isArchivingDisabled(MavenBuildPro= xy.java:222) =09at hudson.maven.reporters.MavenArtifact.archive(MavenArtifact.java:192) =09at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactA= rchiver.java:107) =09at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBui= ld.java:800) =09at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:3= 17) =09at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:275) =09at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(Lifec= ycleExecutorInterceptor.java:68) =09at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) =09at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) =09at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:39) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:25) =09at java.lang.reflect.Method.invoke(Method.java:597) =09at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) =09at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) =09at hudson.maven.agent.Main.launch(Main.java:165) =09at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) =09at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.jav= a:750) =09at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.jav= a:694) =09at hudson.remoting.UserRequest.perform(UserRequest.java:114) =09at hudson.remoting.UserRequest.perform(UserRequest.java:48) =09at hudson.remoting.Request$2.run(Request.java:270) =09at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44= 1) =09at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) =09at java.util.concurrent.FutureTask.run(FutureTask.java:138) =09at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec= utor.java:886) =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor= .java:908) =09at java.lang.Thread.run(Thread.java:619) Caused by: hudson.remoting.RequestAbortedException: hudson.remoting.Channel= $OrderlyShutdown =09at hudson.remoting.Request.abort(Request.java:257) =09at hudson.remoting.Channel.terminate(Channel.java:681) =09at hudson.remoting.Channel$CloseCommand.execute(Channel.java:764) From commits-return-8151-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 24 15:02:58 2010 Return-Path: <commits-return-8151-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 14326 invoked from network); 24 Nov 2010 15:02:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Nov 2010 15:02:58 -0000 Received: (qmail 93652 invoked by uid 500); 24 Nov 2010 15:03:30 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 93586 invoked by uid 500); 24 Nov 2010 15:03:28 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 93577 invoked by uid 99); 24 Nov 2010 15:03:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 15:03:27 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 15:03:25 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 1B3F6C0161 for <commits@openjpa.apache.org>; Wed, 24 Nov 2010 15:03:03 +0000 (UTC) Date: Wed, 24 Nov 2010 15:03:02 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <870701884.9451290610983031.JavaMail.hudson@aegis> In-Reply-To: <712934444.8351290518159034.JavaMail.hudson@aegis> References: <712934444.8351290518159034.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk-deploy #60 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/60/changes> Changes: [mikedd] Revert to version 2.5 of the surefire plugin - seems to improve memory use [mikedd] OPENJPA-1897: Add all reserved words to invalid column name set [mikedd] OPENJPA-1893: setting eol-style [mikedd] remove deprecation warning from build ------------------------------------------ [...truncated 6514 lines...] 304 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.Embed". Ignoring. 308 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.xml.SimpleXmlEntity". Ignoring. 308 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.xml.XmlOverrideEntity". Ignoring. 308 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.simple.AllFieldTypes". Ignoring. 313 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Automobile". Ignoring. 313 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Driver". Ignoring. 314 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Passenger". Ignoring. 314 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Owner". Ignoring. 928 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldAccess2". Ignoring. 928 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefFieldMixedPropAccess2". Ignoring. 938 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestElement1". Ignoring. 938 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestEntity1". Ignoring. 943 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldAccess2". Ignoring. 943 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefFieldMixedPropAccess2". Ignoring. 949 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLAbstractMappedSuperField". Ignoring. 949 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLAbstractMappedSuperProperty". Ignoring. 949 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLMappedSuperField". Ignoring. 949 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLMappedSuperProperty". Ignoring. 949 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLMixedMappedSuper". Ignoring. 949 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldAccess". Ignoring. 949 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropAccess". Ignoring. 949 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefFieldMixedPropAccess". Ignoring. 949 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefPropMixedFieldAccess". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropertySub". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldSub". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropertySub2". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldSub2". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLMixedFieldSub". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLSuperPropertyEntity". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldSub3". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLSuperFieldEntity". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropertySub3". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropEmbedEntity". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldEmbedEntity". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropMixedEntity". Ignoring. 950 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLEmbedFieldAccess". Ignoring. 951 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLEmbedPropAccess". Ignoring. 951 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLEmbedMixedAccess". Ignoring. 956 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestElement2". Ignoring. 956 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestEntity2". Ignoring. 961 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLOrderedManyToManyEntity". Ignoring. 961 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLOrderedOneToManyEntity". Ignoring. 962 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLOrderedElementEntity". Ignoring. 962 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLUnorderedNameEntity". Ignoring. 962 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jpql.entities.XMLOrderedNameEntity". Ignoring. 967 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.EntityA_Coll_StringXml". Ignoring. 967 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.EntityA_Coll_Embed_EmbedXml". Ignoring. 967 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.DepartmentXml". Ignoring. 967 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.EmployeeXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.ItemXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.DivisionXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.VicePresidentXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.CompanyXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.CustomerXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.OrderXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.CustomerXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.BasicEntityXML". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLOverEntity". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.FeatureXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.AttributeXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.FeatureIdXml". Ignoring. 968 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.AddressXml". Ignoring. 969 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.ZipcodeXml". Ignoring. 969 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.Embed_EmbedXml". Ignoring. 969 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.EmbedXml". Ignoring. 969 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.BasicEmbedXML". Ignoring. 974 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefPropMixedFieldAccess2". Ignoring. 974 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropAccess2". Ignoring. 979 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLFieldAccess2". Ignoring. 980 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefFieldMixedPropAccess2". Ignoring. 996 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefPropMixedFieldAccess2". Ignoring. 996 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropAccess2". Ignoring. 1036 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.inheritance.entity.XMLSuperCallback". Ignoring. 1042 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestElement3". Ignoring. 1042 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.jdbc.order.BaseTestEntity3". Ignoring. 1047 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLDefPropMixedFieldAccess2". Ignoring. 1047 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.access.xml.XMLPropAccess2". Ignoring. 1052 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.enhance.identity.Employee1Xml". Ignoring. 1052 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.enhance.identity.Dependent1Xml". Ignoring. 1053 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.enhance.identity.DependentId1Xml". Ignoring. 1058 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLAssocOverEntityA". Ignoring. 1058 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLAssocOverEntityB". Ignoring. 1058 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLAssocOverEmbed". Ignoring. 1058 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.embed.attrOverrides.XMLAssocOverEmbedB". Ignoring. 1063 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.entity.MixedMappingLocation". Ignoring. 1063 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.entity.MixedMappingLocationEmbeddedId". Ignoring. 1068 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.Security1". Ignoring. 1068 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.Country1". Ignoring. 1068 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.Embed". Ignoring. 1072 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.xml.SimpleXmlEntity". Ignoring. 1072 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.xml.XmlOverrideEntity". Ignoring. 1072 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.simple.AllFieldTypes". Ignoring. 1078 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Automobile". Ignoring. 1078 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Driver". Ignoring. 1078 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Passenger". Ignoring. 1078 xml-persistence-unit WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for "class org.apache.openjpa.persistence.detach.xml.Owner". Ignoring. 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 2 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 149 test WARN [main] openjpa.jdbc.Schema - Existing column "EJB_CLS" on table "APP.Flat1" is incompatible with the same column in the given schema definition. Existing column: Full Name: Flat1.EJB_CLS Type: varchar Size: 31 Default: null Not Null: false Given column: Full Name: Flat1.EJB_CLS Type: varchar Size: 100 Default: null Not Null: false 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 141 test WARN [main] openjpa.jdbc.Schema - Existing column "EJB_CLS" on table "APP.Flat1" is incompatible with the same column in the given schema definition. Existing column: Full Name: Flat1.EJB_CLS Type: varchar Size: 31 Default: null Not Null: false Given column: Full Name: Flat1.EJB_CLS Type: varchar Size: 100 Default: null Not Null: false 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 244 test WARN [main] openjpa.Runtime - Query "select count(o) from AllFieldTypes o where o.booleanField = TrUe" is removed from cache excluded permanently. Query "select count(o) from AllFieldTypes o where o.booleanField = TrUe" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 245 test WARN [main] openjpa.Runtime - Query "select count(o) from AllFieldTypes o where o.booleanField = falSe" is removed from cache excluded permanently. Query "select count(o) from AllFieldTypes o where o.booleanField = falSe" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT JPQL:[SELECT p FROM Person p WHERE ((p.name = 'A' OR p.name = 'B') AND (p.name = 'C' OR p.name = 'D'))] CQL :[SELECT p FROM Person p WHERE ((p.name = 'A' OR p.name = 'B') AND (p.name = 'C' OR p.name = 'D')) JPQL:[SELECT p FROM Person p WHERE ((p.name = 'A' OR p.name = 'B' OR p.name = 'C') AND p.name = 'D')] CQL :[SELECT p FROM Person p WHERE ((p.name = 'A' OR p.name = 'B' OR p.name = 'C') AND p.name = 'D') JPQL:[SELECT p FROM Person p WHERE (p.name = 'A' AND (p.name = 'B' OR p.name = 'C') AND p.name = 'D')] CQL :[SELECT p FROM Person p WHERE (p.name = 'A' AND (p.name = 'B' OR p.name = 'C') AND p.name = 'D') JPQL:[SELECT p FROM Person p WHERE (p.name = 'A' OR (p.name = 'B' AND (p.name = 'C' OR p.name = 'D')))] CQL :[SELECT p FROM Person p WHERE (p.name = 'A' OR (p.name = 'B' AND (p.name = 'C' OR p.name = 'D'))) JPQL:[SELECT p FROM Person p WHERE NOT (p.name = 'A' OR p.name = 'B')] CQL :[SELECT p FROM Person p WHERE NOT (p.name = 'A' OR p.name = 'B') JPQL:[SELECT p FROM Person p WHERE NOT p.name = 'A'] CQL :[SELECT p FROM Person p WHERE NOT p.name = 'A' JPQL:[SELECT p FROM Person p WHERE (p.name <> 'A' OR p.name <> 'B')] CQL :[SELECT p FROM Person p WHERE (p.name <> 'A' OR p.name <> 'B') 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1344 test WARN [main] openjpa.Runtime - Query "SELECT p.name as name FROM Game p ORDER BY name ASC" is removed from cache excluded permanently. Query "SELECT p.name as name FROM Game p ORDER BY name ASC" is not cached because it generates multiple SQL statements. A query can be cached only when it corresponds to a single SQL statement. . 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1068 test WARN [main] openjpa.Runtime - Query "SELECT CONCAT(p.name, '123') as cname FROM Game p ORDER BY cname DESC" is removed from cache excluded permanently. Query "SELECT CONCAT(p.name, '123') as cname FROM Game p ORDER BY cname DESC" is not cached because it generates multiple SQL statements. A query can be cached only when it corresponds to a single SQL statement. . 1 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1053 test WARN [main] openjpa.Runtime - Query "SELECT p.name as name FROM Game p ORDER BY name DESC" is removed from cache excluded permanently. Query "SELECT p.name as name FROM Game p ORDER BY name DESC" is not cached because it generates multiple SQL statements. A query can be cached only when it corresponds to a single SQL statement. . 1 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1015 test WARN [main] openjpa.Runtime - Query "SELECT p FROM Game p ORDER BY p.name ASC" is removed from cache excluded permanently. Query "SELECT p FROM Game p ORDER BY p.name ASC" is not cached because it generates multiple SQL statements. A query can be cached only when it corresponds to a single SQL statement. . 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 938 test WARN [main] openjpa.Runtime - Query "SELECT p FROM Game p ORDER BY p.name DESC" is removed from cache excluded permanently. Query "SELECT p FROM Game p ORDER BY p.name DESC" is not cached because it generates multiple SQL statements. A query can be cached only when it corresponds to a single SQL statement. . 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1008 test WARN [main] openjpa.Runtime - Query "SELECT p.name FROM Game p ORDER BY p.name ASC" is removed from cache excluded permanently. Query "SELECT p.name FROM Game p ORDER BY p.name ASC" is not cached because it generates multiple SQL statements. A query can be cached only when it corresponds to a single SQL statement. . 1 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 1091 test WARN [main] openjpa.Runtime - Query "SELECT p.name FROM Game p ORDER BY p.name DESC" is removed from cache excluded permanently. Query "SELECT p.name FROM Game p ORDER BY p.name DESC" is not cached because it generates multiple SQL statements. A query can be cached only when it corresponds to a single SQL statement. . 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 2 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 263 test WARN [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.enhance.UnenhancedIdentityIdPropertyAccess]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 3 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 162 test WARN [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.enhance.UnenhancedIdentityIdPropertyAccess]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead. 1 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 1 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 2068 test WARN [main] openjpa.MetaData - Meta class "org.apache.openjpa.persistence.relations.OneOneParent_" for entity class org.apache.openjpa.persistence.relations.OneOneParent can not be registered with following exception "java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.apache.openjpa.persistence.relations.OneOneParent_" 2072 test WARN [main] openjpa.MetaData - Meta class "org.apache.openjpa.persistence.enhance.identity.Library_" for entity class org.apache.openjpa.persistence.enhance.identity.Library can not be registered with following exception "java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.apache.openjpa.persistence.enhance.identity.Library_" 2079 test WARN [main] openjpa.MetaData - Meta class "org.apache.openjpa.persistence.relations.OneOneChild_" for entity class org.apache.openjpa.persistence.relations.OneOneChild can not be registered with following exception "java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.apache.openjpa.persistence.relations.OneOneChild_" 2081 test WARN [main] openjpa.MetaData - Meta class "org.apache.openjpa.persistence.embed.Address_" for entity class org.apache.openjpa.persistence.embed.Address can not be registered with following exception "java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.apache.openjpa.persistence.embed.Address_" 2081 test WARN [main] openjpa.MetaData - Meta class "org.apache.openjpa.persistence.enhance.identity.Book_" for entity class org.apache.openjpa.persistence.enhance.identity.Book can not be registered with following exception "java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.apache.openjpa.persistence.enhance.identity.Book_" 2082 test WARN [main] openjpa.MetaData - Meta class "org.apache.openjpa.persistence.enhance.identity.Page_" for entity class org.apache.openjpa.persistence.enhance.identity.Page can not be registered with following exception "java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.apache.openjpa.persistence.enhance.identity.Page_" 2082 test WARN [main] openjpa.MetaData - Meta class "org.apache.openjpa.persistence.embed.Geocode_" for entity class org.apache.openjpa.persistence.embed.Geocode can not be registered with following exception "java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.apache.openjpa.persistence.embed.Geocode_" 2082 test WARN [main] openjpa.MetaData - Meta class "org.apache.openjpa.persistence.embed.Geocode_" for entity class org.apache.openjpa.persistence.embed.Geocode can not be registered with following exception "java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.apache.openjpa.persistence.embed.Geocode_" org.apache.openjpa.persistence.meta.Members$SingularAttributeImpl@10f4f4d Expeceted:java.lang.IllegalArgumentException: Attribute "xyz" of any not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared singular attribute "f0" of any type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessSubclass optLock id child name optLock id child name Expeceted:java.lang.IllegalArgumentException: Attribute "unknown" of any not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Collection attribute "unknown" of any element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: List attribute "unknown" of any element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Set attribute "unknown" of any element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Singular attribute "unknown" of any type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared singular attribute "unknown" of any type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared Collection attribute "unknown" of any element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared List attribute "unknown" of any element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared Set attribute "unknown" of any element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared singular attribute "unknown" of any type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Attribute "unknown" of java.lang.Object not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Collection attribute "unknown" of java.lang.Object element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: List attribute "unknown" of java.lang.Object element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Set attribute "unknown" of java.lang.Object element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Singular attribute "unknown" of java.lang.Object type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared singular attribute "unknown" of java.lang.Object type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared Collection attribute "unknown" of java.lang.Object element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared List attribute "unknown" of java.lang.Object element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared Set attribute "unknown" of java.lang.Object element type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared singular attribute "unknown" of java.lang.Object type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Build timed out. Aborting Expeceted:java.lang.IllegalArgumentException: Map attribute "unknown" of any key type and any value type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Map attribute "unknown" of java.lang.Object key type and java.lang.Object value type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared Map attribute "unknown" of any key type and any value type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase Expeceted:java.lang.IllegalArgumentException: Declared Map attribute "unknown" of java.lang.Object key type and java.lang.Object value type not found in org.apache.openjpa.persistence.meta.ImplicitFieldAccessBase 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 414690 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 119 test INFO [main] openjpa.MetaData - A discriminator value has been specified for the abstract class "org.apache.openjpa.persistence.discriminator.fetch.Person". The discriminator will never be used and may be safely removed. 643 test INFO [main] openjpa.MetaData - A discriminator value has been specified for the abstract class "org.apache.openjpa.persistence.discriminator.fetch.Person". The discriminator will never be used and may be safely removed. 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 92 test INFO [main] openjpa.MetaData - A discriminator value has been specified for the abstract class "org.apache.openjpa.persistence.discriminator.fetch.Person". The discriminator will never be used and may be safely removed. 125 test INFO [main] openjpa.MetaData - A discriminator value has been specified for the abstract class "org.apache.openjpa.persistence.discriminator.fetch.Person". The discriminator will never be used and may be safely removed. 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT 0 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". From commits-return-8152-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Wed Nov 24 18:57:12 2010 Return-Path: <commits-return-8152-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 78670 invoked from network); 24 Nov 2010 18:57:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Nov 2010 18:57:12 -0000 Received: (qmail 26185 invoked by uid 500); 24 Nov 2010 18:57:44 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 26140 invoked by uid 500); 24 Nov 2010 18:57:43 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 26133 invoked by uid 99); 24 Nov 2010 18:57:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 18:57:43 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 18:57:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0EA612388994; Wed, 24 Nov 2010 18:56:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038765 - /openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html Date: Wed, 24 Nov 2010 18:56:09 -0000 To: commits@openjpa.apache.org From: ppoddar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101124185609.0EA612388994@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ppoddar Date: Wed Nov 24 18:56:08 2010 New Revision: 1038765 URL: http://svn.apache.org/viewvc?rev=1038765&view=rev Log: OPENJPA-1859: Correct hyperlink on the home page Modified: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html Modified: openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html URL: http://svn.apache.org/viewvc/openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html?rev=1038765&r1=1038764&r2=1038765&view=diff ============================================================================== --- openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html (original) +++ openjpa/sandboxes/jest/openjpa-examples/jest/src/main/resources/demo/index.html Wed Nov 24 18:56:08 2010 @@ -40,7 +40,7 @@ body {background-image:url("images/back4 <p> <span style="font-size:1.2em;color:green;font-weight:bold">DNA application is used to demonstrate </span> - <A HREF="../jest">JEST</A>. + <A HREF="./jest/">JEST</A>. <br> <h2>Requirement for JEST</h2> From commits-return-8153-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 26 03:57:29 2010 Return-Path: <commits-return-8153-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 39885 invoked from network); 26 Nov 2010 03:57:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 03:57:29 -0000 Received: (qmail 5702 invoked by uid 500); 26 Nov 2010 03:57:29 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 5647 invoked by uid 500); 26 Nov 2010 03:57:27 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 5636 invoked by uid 99); 26 Nov 2010 03:57:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 03:57:26 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 03:57:24 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DF82123889ED; Fri, 26 Nov 2010 03:55:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1039246 - /openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java Date: Fri, 26 Nov 2010 03:55:51 -0000 To: commits@openjpa.apache.org From: allee8285@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101126035551.DF82123889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: allee8285 Date: Fri Nov 26 03:55:51 2010 New Revision: 1039246 URL: http://svn.apache.org/viewvc?rev=1039246&view=rev Log: OPENJPA-1895 add doPriv to setAccessible call. Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java?rev=1039246&r1=1039245&r2=1039246&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ConfiguringConnectionDecorator.java Fri Nov 26 03:55:51 2010 @@ -19,12 +19,14 @@ package org.apache.openjpa.lib.jdbc; import java.lang.reflect.Constructor; +import java.security.AccessController; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Statement; import org.apache.openjpa.lib.util.ConcreteClassGenerator; +import org.apache.openjpa.lib.util.J2DoPrivHelper; /** * Connection decorator that can configure some properties of the @@ -46,7 +48,7 @@ public class ConfiguringConnectionDecora try { configuringConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(ConfiguringConnection.class, ConfiguringConnectionDecorator.class, Connection.class); - configuringConnectionImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(configuringConnectionImpl, true)); } catch (Exception e) { throw new ExceptionInInitializerError(e); } From commits-return-8155-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 26 08:37:25 2010 Return-Path: <commits-return-8155-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 38529 invoked from network); 26 Nov 2010 08:37:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 08:37:24 -0000 Received: (qmail 29824 invoked by uid 500); 26 Nov 2010 08:37:24 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 29710 invoked by uid 500); 26 Nov 2010 08:37:24 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 29687 invoked by uid 99); 26 Nov 2010 08:37:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 08:37:22 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 08:37:21 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id AF8C1C0164 for <commits@openjpa.apache.org>; Fri, 26 Nov 2010 08:37:01 +0000 (UTC) Date: Fri, 26 Nov 2010 08:37:01 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <622199476.4251290760621718.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_normal_:_OpenJPA-tru?= =?UTF-8?Q?nk_=C2=BB_OpenJPA_Project_Docs_and_Assemblies_#343?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$apache-openjpa/343/> From commits-return-8154-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 26 08:37:25 2010 Return-Path: <commits-return-8154-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 38542 invoked from network); 26 Nov 2010 08:37:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 08:37:25 -0000 Received: (qmail 29825 invoked by uid 500); 26 Nov 2010 08:37:24 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 29702 invoked by uid 500); 26 Nov 2010 08:37:23 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 29690 invoked by uid 99); 26 Nov 2010 08:37:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 08:37:22 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 08:37:21 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id AE911C0161 for <commits@openjpa.apache.org>; Fri, 26 Nov 2010 08:37:01 +0000 (UTC) Date: Fri, 26 Nov 2010 08:37:01 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <538984246.4241290760621703.JavaMail.hudson@aegis> In-Reply-To: <190565075.8911290560719844.JavaMail.hudson@aegis> References: <190565075.8911290560719844.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_stable_:_OpenJP?= =?UTF-8?Q?A-trunk_=C2=BB_OpenJPA_Persistence_JDBC_#343?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-persistence-jdbc/343/> From commits-return-8156-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 26 08:37:25 2010 Return-Path: <commits-return-8156-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 38571 invoked from network); 26 Nov 2010 08:37:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 08:37:25 -0000 Received: (qmail 29881 invoked by uid 500); 26 Nov 2010 08:37:25 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 29843 invoked by uid 500); 26 Nov 2010 08:37:25 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 29833 invoked by uid 99); 26 Nov 2010 08:37:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 08:37:25 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 08:37:22 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 0E0E1C0165 for <commits@openjpa.apache.org>; Fri, 26 Nov 2010 08:37:02 +0000 (UTC) Date: Fri, 26 Nov 2010 08:37:02 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <820492279.4261290760622056.JavaMail.hudson@aegis> In-Reply-To: <1854350446.8921290560722448.JavaMail.hudson@aegis> References: <1854350446.8921290560722448.JavaMail.hudson@aegis> Subject: Hudson build is back to normal : OpenJPA-trunk #343 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/343/changes> From commits-return-8157-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 26 10:16:07 2010 Return-Path: <commits-return-8157-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 74980 invoked from network); 26 Nov 2010 10:16:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 10:16:07 -0000 Received: (qmail 4299 invoked by uid 500); 26 Nov 2010 10:16:07 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 4244 invoked by uid 500); 26 Nov 2010 10:16:06 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 4237 invoked by uid 99); 26 Nov 2010 10:16:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 10:16:06 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 10:16:04 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 9060CC0161 for <commits@openjpa.apache.org>; Fri, 26 Nov 2010 10:15:44 +0000 (UTC) Date: Fri, 26 Nov 2010 10:15:44 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1682101676.4431290766544579.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_back_to_normal_:_OpenJPA-t?= =?UTF-8?Q?runk-deploy_=C2=BB_OpenJPA_Persistence_JDBC_#61?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-persistence-jdbc/61/> From commits-return-8158-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 26 10:16:09 2010 Return-Path: <commits-return-8158-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 74992 invoked from network); 26 Nov 2010 10:16:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 10:16:08 -0000 Received: (qmail 4339 invoked by uid 500); 26 Nov 2010 10:16:08 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 4315 invoked by uid 500); 26 Nov 2010 10:16:08 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 4308 invoked by uid 99); 26 Nov 2010 10:16:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 10:16:08 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 10:16:06 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 3659BC0164 for <commits@openjpa.apache.org>; Fri, 26 Nov 2010 10:15:45 +0000 (UTC) Date: Fri, 26 Nov 2010 10:15:45 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1560005990.4441290766545221.JavaMail.hudson@aegis> In-Reply-To: <870701884.9451290610983031.JavaMail.hudson@aegis> References: <870701884.9451290610983031.JavaMail.hudson@aegis> Subject: Hudson build is back to normal : OpenJPA-trunk-deploy #61 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/61/changes> From commits-return-8159-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 26 15:29:34 2010 Return-Path: <commits-return-8159-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 7404 invoked from network); 26 Nov 2010 15:29:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 15:29:34 -0000 Received: (qmail 17320 invoked by uid 500); 26 Nov 2010 15:29:34 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 17261 invoked by uid 500); 26 Nov 2010 15:29:33 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 17254 invoked by uid 99); 26 Nov 2010 15:29:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 15:29:32 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 15:29:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B13BC2388A32; Fri, 26 Nov 2010 15:27:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1039414 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/ Date: Fri, 26 Nov 2010 15:27:56 -0000 To: commits@openjpa.apache.org From: allee8285@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101126152756.B13BC2388A32@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: allee8285 Date: Fri Nov 26 15:27:56 2010 New Revision: 1039414 URL: http://svn.apache.org/viewvc?rev=1039414&view=rev Log: OPENJPA-1895 add doPriv to setAccessible call. Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java?rev=1039414&r1=1039413&r2=1039414&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java Fri Nov 26 15:27:56 2010 @@ -19,6 +19,7 @@ package org.apache.openjpa.jdbc.kernel; import java.lang.reflect.Constructor; +import java.security.AccessController; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; @@ -36,7 +37,6 @@ import java.util.Set; import javax.sql.DataSource; -import org.apache.commons.lang.StringUtils; import org.apache.openjpa.datacache.QueryCache; import org.apache.openjpa.datacache.QueryCacheStoreQuery; import org.apache.openjpa.enhance.PersistenceCapable; @@ -47,7 +47,6 @@ import org.apache.openjpa.jdbc.meta.Disc import org.apache.openjpa.jdbc.meta.FieldMapping; import org.apache.openjpa.jdbc.meta.ValueMapping; import org.apache.openjpa.jdbc.meta.strats.SuperclassDiscriminatorStrategy; -import org.apache.openjpa.jdbc.schema.DataSourceFactory; import org.apache.openjpa.jdbc.sql.DBDictionary; import org.apache.openjpa.jdbc.sql.JoinSyntaxes; import org.apache.openjpa.jdbc.sql.Joins; @@ -76,6 +75,7 @@ import org.apache.openjpa.lib.log.Log; import org.apache.openjpa.lib.rop.MergedResultObjectProvider; import org.apache.openjpa.lib.rop.ResultObjectProvider; import org.apache.openjpa.lib.util.ConcreteClassGenerator; +import org.apache.openjpa.lib.util.J2DoPrivHelper; import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.meta.ClassMetaData; import org.apache.openjpa.meta.FieldMetaData; @@ -125,16 +125,16 @@ public class JDBCStoreManager try { clientConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(ClientConnection.class, Connection.class); - clientConnectionImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(clientConnectionImpl, true)); refCountConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(RefCountConnection.class, JDBCStoreManager.class, Connection.class); - refCountConnectionImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(refCountConnectionImpl, true)); cancelStatementImpl = ConcreteClassGenerator.getConcreteConstructor(CancelStatement.class, JDBCStoreManager.class, Statement.class, Connection.class); - cancelStatementImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(cancelStatementImpl, true)); cancelPreparedStatementImpl = ConcreteClassGenerator.getConcreteConstructor(CancelPreparedStatement.class, JDBCStoreManager.class, PreparedStatement.class, Connection.class); - cancelPreparedStatementImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(cancelPreparedStatementImpl, true)); } catch (Exception e) { throw new ExceptionInInitializerError(e); } Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java?rev=1039414&r1=1039413&r2=1039414&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/DelegatingPreparedStatement.java Fri Nov 26 15:27:56 2010 @@ -23,6 +23,7 @@ import java.io.Reader; import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.net.URL; +import java.security.AccessController; import java.sql.Array; import java.sql.Blob; import java.sql.Clob; @@ -44,6 +45,7 @@ import java.util.Calendar; import org.apache.openjpa.lib.util.Closeable; import org.apache.openjpa.lib.util.ConcreteClassGenerator; +import org.apache.openjpa.lib.util.J2DoPrivHelper; /** * Wrapper around an existing statement. Subclasses can override the @@ -61,7 +63,7 @@ public abstract class DelegatingPrepared try { concreteImpl = ConcreteClassGenerator.getConcreteConstructor(DelegatingPreparedStatement.class, PreparedStatement.class, Connection.class); - concreteImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(concreteImpl, true)); } catch (Exception e) { throw new ExceptionInInitializerError(e); } Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java?rev=1039414&r1=1039413&r2=1039414&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java (original) +++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/jdbc/LoggingConnectionDecorator.java Fri Nov 26 15:27:56 2010 @@ -23,6 +23,7 @@ import java.io.Reader; import java.lang.reflect.Constructor; import java.math.BigDecimal; import java.net.URL; +import java.security.AccessController; import java.sql.Array; import java.sql.BatchUpdateException; import java.sql.Blob; @@ -99,27 +100,27 @@ public class LoggingConnectionDecorator try { loggingConnectionImpl = ConcreteClassGenerator.getConcreteConstructor(LoggingConnection.class, LoggingConnectionDecorator.class, Connection.class); - loggingConnectionImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(loggingConnectionImpl, true)); loggingResultSetImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingResultSet.class, LoggingConnection.class, ResultSet.class, Statement.class); - loggingResultSetImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(loggingResultSetImpl, true)); loggingStatementImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingStatement.class, LoggingConnection.class, Statement.class); - loggingStatementImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(loggingStatementImpl, true)); loggingPreparedStatementImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingPreparedStatement.class, LoggingConnection.class, PreparedStatement.class, String.class); - loggingPreparedStatementImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(loggingPreparedStatementImpl, true)); loggingCallableStatementImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingCallableStatement.class, LoggingConnection.class, CallableStatement.class, String.class); - loggingCallableStatementImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(loggingCallableStatementImpl, true)); loggingDatabaseMetaDataImpl = ConcreteClassGenerator.getConcreteConstructor( LoggingConnection.LoggingDatabaseMetaData.class, LoggingConnection.class, DatabaseMetaData.class); - loggingDatabaseMetaDataImpl.setAccessible(true); + AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(loggingDatabaseMetaDataImpl, true)); } catch (Exception e) { throw new ExceptionInInitializerError(e); } @@ -1273,7 +1274,7 @@ public class LoggingConnectionDecorator // set the current params to the saved values if (indexOfFirstFailedObject < _paramBatch.size()) - _params = (List) _paramBatch.get(indexOfFirstFailedObject); + _params = (List<String>) _paramBatch.get(indexOfFirstFailedObject); } } err = wrap(se, LoggingPreparedStatement.this, indexOfFirstFailedObject); From commits-return-8160-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 26 17:22:32 2010 Return-Path: <commits-return-8160-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 51970 invoked from network); 26 Nov 2010 17:22:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 17:22:31 -0000 Received: (qmail 53691 invoked by uid 500); 26 Nov 2010 17:22:31 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 53636 invoked by uid 500); 26 Nov 2010 17:22:31 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 53629 invoked by uid 99); 26 Nov 2010 17:22:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 17:22:31 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 17:22:29 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 62413C0161 for <commits@openjpa.apache.org>; Fri, 26 Nov 2010 17:22:08 +0000 (UTC) Date: Fri, 26 Nov 2010 17:22:08 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <181926939.5451290792128400.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__Ope?= =?UTF-8?Q?nJPA-trunk_=C2=BB_OpenJPA_XML_Store_#344?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-xmlstore/344/> From commits-return-8161-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 26 17:22:32 2010 Return-Path: <commits-return-8161-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 51974 invoked from network); 26 Nov 2010 17:22:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 17:22:31 -0000 Received: (qmail 53692 invoked by uid 500); 26 Nov 2010 17:22:31 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 53645 invoked by uid 500); 26 Nov 2010 17:22:31 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 53637 invoked by uid 99); 26 Nov 2010 17:22:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 17:22:31 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 17:22:29 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id BF773C0164 for <commits@openjpa.apache.org>; Fri, 26 Nov 2010 17:22:08 +0000 (UTC) Date: Fri, 26 Nov 2010 17:22:08 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1589929713.5461290792128783.JavaMail.hudson@aegis> Subject: Hudson build became unstable: OpenJPA-trunk #344 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/344/changes> From commits-return-8163-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 27 11:59:01 2010 Return-Path: <commits-return-8163-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 17744 invoked from network); 27 Nov 2010 11:59:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Nov 2010 11:59:01 -0000 Received: (qmail 69602 invoked by uid 500); 27 Nov 2010 11:59:01 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 69492 invoked by uid 500); 27 Nov 2010 11:59:01 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 69476 invoked by uid 99); 27 Nov 2010 11:59:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Nov 2010 11:59: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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Nov 2010 11:58:57 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id A3C12C0161 for <commits@openjpa.apache.org>; Sat, 27 Nov 2010 11:58:36 +0000 (UTC) Date: Sat, 27 Nov 2010 11:58:36 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <494729650.7281290859116583.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_became_unstable:__OpenJP?= =?UTF-8?Q?A-trunk-deploy_=C2=BB_OpenJPA_XML_Store_#62?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-xmlstore/62/> From commits-return-8162-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 27 11:59:01 2010 Return-Path: <commits-return-8162-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 17737 invoked from network); 27 Nov 2010 11:59:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Nov 2010 11:59:01 -0000 Received: (qmail 69546 invoked by uid 500); 27 Nov 2010 11:59:01 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 69490 invoked by uid 500); 27 Nov 2010 11:59:00 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 69477 invoked by uid 99); 27 Nov 2010 11:59:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Nov 2010 11:59: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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Nov 2010 11:58:58 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 28349C0164 for <commits@openjpa.apache.org>; Sat, 27 Nov 2010 11:58:37 +0000 (UTC) Date: Sat, 27 Nov 2010 11:58:37 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <35722651.7291290859117163.JavaMail.hudson@aegis> Subject: Hudson build became unstable: OpenJPA-trunk-deploy #62 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/62/changes> From commits-return-8164-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 28 13:20:20 2010 Return-Path: <commits-return-8164-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 16423 invoked from network); 28 Nov 2010 13:20:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Nov 2010 13:20:19 -0000 Received: (qmail 72726 invoked by uid 500); 28 Nov 2010 13:20:19 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 72666 invoked by uid 500); 28 Nov 2010 13:20:18 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 72659 invoked by uid 99); 28 Nov 2010 13:20:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 13:20:17 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 13:20:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 06CF323889E3; Sun, 28 Nov 2010 13:18:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1039879 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java Date: Sun, 28 Nov 2010 13:18:41 -0000 To: commits@openjpa.apache.org From: mtylenda@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101128131842.06CF323889E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mtylenda Date: Sun Nov 28 13:18:41 2010 New Revision: 1039879 URL: http://svn.apache.org/viewvc?rev=1039879&view=rev Log: OPENJPA-1863: Update HSQLDictionary for HSQLDB 2.0 - pagination and schema support. Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java?rev=1039879&r1=1039878&r2=1039879&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java Sun Nov 28 13:18:41 2010 @@ -72,13 +72,9 @@ public class HSQLDictionary extends DBDi trimTrailingFunction = "RTRIM({0})"; trimBothFunction = "LTRIM(RTRIM({0}))"; - // HSQL 1.8.0 does support schema names in the table ("schema.table"), - // but doesn't support it for columns references ("schema.table.column") - useSchemaName = false; supportsSelectForUpdate = false; supportsSelectStartIndex = true; supportsSelectEndIndex = true; - rangePosition = RANGE_PRE_DISTINCT; supportsDeferredConstraints = false; doubleTypeName = "NUMERIC"; @@ -109,6 +105,10 @@ public class HSQLDictionary extends DBDi if (dbMajorVersion == 1) { blobTypeName = "VARBINARY"; useGetObjectForBlobs = true; + rangePosition = RANGE_PRE_DISTINCT; + // HSQL 1.8.0 does support schema names in the table ("schema.table"), + // but doesn't support it for columns references ("schema.table.column") + useSchemaName = false; } } @@ -310,6 +310,13 @@ public class HSQLDictionary extends DBDi @Override protected void appendSelectRange(SQLBuffer buf, long start, long end, boolean subselect) { + if (dbMajorVersion > 1) { + if (start != 0) + buf.append(" OFFSET ").appendValue(start); + if (end != Long.MAX_VALUE) + buf.append(" LIMIT ").appendValue(end - start); + return; + } // HSQL doesn't parameters in range buf.append(" LIMIT ").append(String.valueOf(start)).append(" "); if (end == Long.MAX_VALUE) Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java?rev=1039879&r1=1039878&r2=1039879&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java Sun Nov 28 13:18:41 2010 @@ -27,6 +27,7 @@ import javax.persistence.Query; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; import org.apache.openjpa.jdbc.sql.DBDictionary; import org.apache.openjpa.jdbc.sql.H2Dictionary; +import org.apache.openjpa.jdbc.sql.HSQLDictionary; import org.apache.openjpa.jdbc.sql.MySQLDictionary; import org.apache.openjpa.jdbc.sql.OracleDictionary; import org.apache.openjpa.jdbc.sql.PostgresDictionary; @@ -42,7 +43,7 @@ import org.apache.openjpa.persistence.te public class TestMultipleSchemaNames extends SingleEMFTestCase { public void setUp() { - // Need to skip tests on MySQL, Oracle and MS SQL Server + // Need to skip tests on some databases. // See createSchemas() comment at the bottom setUnsupportedDatabases( MySQLDictionary.class, @@ -415,9 +416,9 @@ public class TestMultipleSchemaNames ext } /** - * Create necessary schemas if running on PostgreSQL or H2 as they do + * Create necessary schemas if running on PostgreSQL, H2, solidDB or HSQLDB as they do * not create them automatically. - * Oracle, MySQL and MSSQL also don't create schemas automatically but + * Oracle, MySQL, MSSQL and Sybase also don't create schemas automatically but * we give up as they treat schemas in special ways. */ private void createSchemas() { @@ -425,7 +426,7 @@ public class TestMultipleSchemaNames ext DBDictionary dict = ((JDBCConfiguration) tempEmf.getConfiguration()).getDBDictionaryInstance(); if (!(dict instanceof PostgresDictionary || dict instanceof H2Dictionary || - dict instanceof SolidDBDictionary)) { + dict instanceof SolidDBDictionary || dict instanceof HSQLDictionary)) { closeEMF(tempEmf); return; } From commits-return-8165-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 28 14:56:59 2010 Return-Path: <commits-return-8165-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 39177 invoked from network); 28 Nov 2010 14:56:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Nov 2010 14:56:58 -0000 Received: (qmail 21496 invoked by uid 500); 28 Nov 2010 14:56:58 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 21374 invoked by uid 500); 28 Nov 2010 14:56:57 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 21363 invoked by uid 99); 28 Nov 2010 14:56:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 14:56:56 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 14:56:56 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 449A2C0167 for <commits@openjpa.apache.org>; Sun, 28 Nov 2010 14:56:36 +0000 (UTC) Date: Sun, 28 Nov 2010 14:56:36 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1941280897.9761290956196173.JavaMail.hudson@aegis> In-Reply-To: <181926939.5451290792128400.JavaMail.hudson@aegis> References: <181926939.5451290792128400.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_still_unstable:_Ope?= =?UTF-8?Q?nJPA-trunk_=C2=BB_OpenJPA_XML_Store_#345?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-xmlstore/345/> From commits-return-8166-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 28 14:56:59 2010 Return-Path: <commits-return-8166-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 39178 invoked from network); 28 Nov 2010 14:56:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Nov 2010 14:56:58 -0000 Received: (qmail 21493 invoked by uid 500); 28 Nov 2010 14:56:58 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 21380 invoked by uid 500); 28 Nov 2010 14:56:58 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 21371 invoked by uid 99); 28 Nov 2010 14:56:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 14:56:57 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 14:56:57 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 024F4C0169 for <commits@openjpa.apache.org>; Sun, 28 Nov 2010 14:56:37 +0000 (UTC) Date: Sun, 28 Nov 2010 14:56:36 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <387368402.9771290956196984.JavaMail.hudson@aegis> In-Reply-To: <1589929713.5461290792128783.JavaMail.hudson@aegis> References: <1589929713.5461290792128783.JavaMail.hudson@aegis> Subject: Hudson build is still unstable: OpenJPA-trunk #345 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/changes> From commits-return-8167-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 29 09:03:28 2010 Return-Path: <commits-return-8167-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 99548 invoked from network); 29 Nov 2010 09:03:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 09:03:28 -0000 Received: (qmail 20629 invoked by uid 500); 29 Nov 2010 09:03:27 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 20555 invoked by uid 500); 29 Nov 2010 09:03:26 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 20548 invoked by uid 99); 29 Nov 2010 09:03:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 09:03:25 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 09:03:24 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 0B906C0167 for <commits@openjpa.apache.org>; Mon, 29 Nov 2010 09:03:04 +0000 (UTC) Date: Mon, 29 Nov 2010 09:03:03 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <564545767.11201291021383964.JavaMail.hudson@aegis> In-Reply-To: <494729650.7281290859116583.JavaMail.hudson@aegis> References: <494729650.7281290859116583.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_still_unstable:_OpenJP?= =?UTF-8?Q?A-trunk-deploy_=C2=BB_OpenJPA_XML_Store_#63?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-xmlstore/63/> From commits-return-8168-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 29 09:03:29 2010 Return-Path: <commits-return-8168-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 99571 invoked from network); 29 Nov 2010 09:03:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 09:03:29 -0000 Received: (qmail 20697 invoked by uid 500); 29 Nov 2010 09:03:29 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 20625 invoked by uid 500); 29 Nov 2010 09:03:27 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 20565 invoked by uid 99); 29 Nov 2010 09:03:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 09:03:27 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 09:03:25 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 8A301C0169 for <commits@openjpa.apache.org>; Mon, 29 Nov 2010 09:03:04 +0000 (UTC) Date: Mon, 29 Nov 2010 09:03:04 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1476575990.11211291021384565.JavaMail.hudson@aegis> In-Reply-To: <35722651.7291290859117163.JavaMail.hudson@aegis> References: <35722651.7291290859117163.JavaMail.hudson@aegis> Subject: Hudson build is still unstable: OpenJPA-trunk-deploy #63 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/changes> From commits-return-8169-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 29 18:58:40 2010 Return-Path: <commits-return-8169-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 60060 invoked from network); 29 Nov 2010 18:58:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 18:58:39 -0000 Received: (qmail 72289 invoked by uid 500); 29 Nov 2010 18:58:39 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 72233 invoked by uid 500); 29 Nov 2010 18:58:39 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 72224 invoked by uid 99); 29 Nov 2010 18:58:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 18:58:39 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 18:58:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 62F9623889E9; Mon, 29 Nov 2010 18:57:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040224 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/j2.security.test.policy Date: Mon, 29 Nov 2010 18:57:07 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101129185707.62F9623889E9@eris.apache.org> Author: mikedd Date: Mon Nov 29 18:57:07 2010 New Revision: 1040224 URL: http://svn.apache.org/viewvc?rev=1040224&view=rev Log: allow setSecurityManager() to be called by testcases Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/j2.security.test.policy Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/j2.security.test.policy URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/j2.security.test.policy?rev=1040224&r1=1040223&r2=1040224&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/j2.security.test.policy (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/j2.security.test.policy Mon Nov 29 18:57:07 2010 @@ -35,6 +35,7 @@ grant CodeBase "file:///${test.basedir}/ permission java.lang.RuntimePermission "createClassLoader"; permission java.lang.RuntimePermission "getClassLoader"; permission java.lang.RuntimePermission "setContextClassLoader"; + permission java.lang.RuntimePermission "setSecurityManager"; permission java.lang.RuntimePermission "setIO"; permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; permission java.util.PropertyPermission "*", "read,write"; From commits-return-8170-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 29 19:07:03 2010 Return-Path: <commits-return-8170-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 73272 invoked from network); 29 Nov 2010 19:07:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 19:07:03 -0000 Received: (qmail 90230 invoked by uid 500); 29 Nov 2010 19:07:03 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 90197 invoked by uid 500); 29 Nov 2010 19:07:03 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 90190 invoked by uid 99); 29 Nov 2010 19:07:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 19:07:03 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 19:07:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F132C23889EA; Mon, 29 Nov 2010 19:05:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040230 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java Date: Mon, 29 Nov 2010 19:05:27 -0000 To: commits@openjpa.apache.org From: faywang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101129190527.F132C23889EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: faywang Date: Mon Nov 29 19:05:27 2010 New Revision: 1040230 URL: http://svn.apache.org/viewvc?rev=1040230&view=rev Log: OPENJPA-1890: attach a test case Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java?rev=1040230&r1=1040229&r2=1040230&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java (original) +++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/embed/TestEmbeddable.java Mon Nov 29 19:05:27 2010 @@ -193,6 +193,20 @@ public class TestEmbeddable extends SQLL em.close(); } + /** + * Test for OJ-1890. + */ + public void testSettingEmbeddableMultipleTimesOnManagedEntity() { + createEntityA_Embed(); + EntityManager em = emf.createEntityManager(); + EntityA_Embed ee = em.find(EntityA_Embed.class, ID); + Embed embed = createEmbed(ID, 0); + ee.setEmbed(embed); + Embed embed1 = createEmbed(ID, 1); + ee.setEmbed(embed1); + em.close(); + } + public void queryEntityA_Embed_Coll_Map() { EntityManager em = emf.createEntityManager(); String query[] = { @@ -637,12 +651,12 @@ public class TestEmbeddable extends SQLL a.setId(id); a.setName("a" + id); a.setAge(id); - Embed_Embed embed = createEmbed_Embed(em, id, 0); + Embed_Embed embed = createEmbed_Embed(id, 0); a.setEmbed(embed); em.persist(a); } - public Embed_Embed createEmbed_Embed(EntityManager em, int id, int idx) { + public Embed_Embed createEmbed_Embed(int id, int idx) { Embed_Embed embed = new Embed_Embed(); embed.setIntVal1(id * 100 + idx * 10 + 1); embed.setIntVal2(id * 100 + idx * 10 + 2); @@ -652,6 +666,26 @@ public class TestEmbeddable extends SQLL return embed; } + public void createEntityA_Embed() { + EntityManager em = emf.createEntityManager(); + EntityTransaction tran = em.getTransaction(); + createEntityA_Embed(em, ID); + tran.begin(); + em.flush(); + tran.commit(); + em.close(); + } + + public void createEntityA_Embed(EntityManager em, int id) { + EntityA_Embed a = new EntityA_Embed(); + a.setId(id); + a.setName("a" + id); + a.setAge(id); + Embed embed = createEmbed(id, 0); + a.setEmbed(embed); + em.persist(a); + } + public Embed createEmbed(int id, int idx) { Embed embed = new Embed(); embed.setIntVal1(id * 100 + idx * 10 + 4); @@ -679,7 +713,7 @@ public class TestEmbeddable extends SQLL a.setName("a" + id); a.setAge(id); for (int i = 0; i < numEmbeddables; i++) { - Embed_Embed embed = createEmbed_Embed(em, id, i); + Embed_Embed embed = createEmbed_Embed(id, i); a.addEmbed(embed); } em.persist(a); @@ -1066,7 +1100,7 @@ public class TestEmbeddable extends SQLL em.clear(); em.getTransaction().begin(); - Embed_Embed embed = createEmbed_Embed(em, ID, 100); + Embed_Embed embed = createEmbed_Embed(ID, 100); a.addEmbed(embed); em.merge(a); em.getTransaction().commit(); @@ -2854,9 +2888,9 @@ public class TestEmbeddable extends SQLL a.addCreditRating(EntityA_Embed_Complex.CreditRating.POOR); a.addTimestamp(new Timestamp(cal.getTimeInMillis())); a.addLob("lob_0"); - a.setEmbed(createEmbed_Embed(em, numEmbeddables, 0)); + a.setEmbed(createEmbed_Embed(numEmbeddables, 0)); for (int i = 0; i < numEmbeddables; i++) { - Embed_Embed embed = createEmbed_Embed(em, id, i); + Embed_Embed embed = createEmbed_Embed(id, i); a.addEmbed(embed); } for (int i = 0; i < numEmbeddables; i++) { From commits-return-8171-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 29 20:50:43 2010 Return-Path: <commits-return-8171-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 32730 invoked from network); 29 Nov 2010 20:50:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 20:50:42 -0000 Received: (qmail 52381 invoked by uid 500); 29 Nov 2010 20:50:42 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 52318 invoked by uid 500); 29 Nov 2010 20:50:42 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 52311 invoked by uid 99); 29 Nov 2010 20:50:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 20:50:42 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 20:50:40 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 94DDFC0167 for <commits@openjpa.apache.org>; Mon, 29 Nov 2010 20:50:19 +0000 (UTC) Date: Mon, 29 Nov 2010 20:50:19 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <377058342.11681291063819580.JavaMail.hudson@aegis> In-Reply-To: <1941280897.9761290956196173.JavaMail.hudson@aegis> References: <1941280897.9761290956196173.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_still_unstable:_Ope?= =?UTF-8?Q?nJPA-trunk_=C2=BB_OpenJPA_XML_Store_#346?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-xmlstore/346/> From commits-return-8172-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 29 20:50:48 2010 Return-Path: <commits-return-8172-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 32795 invoked from network); 29 Nov 2010 20:50:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 20:50:48 -0000 Received: (qmail 52467 invoked by uid 500); 29 Nov 2010 20:50:48 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 52413 invoked by uid 500); 29 Nov 2010 20:50:48 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 52406 invoked by uid 99); 29 Nov 2010 20:50:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 20:50:48 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 20:50:42 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 9BFAFC0169 for <commits@openjpa.apache.org>; Mon, 29 Nov 2010 20:50:20 +0000 (UTC) Date: Mon, 29 Nov 2010 20:50:20 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1834921504.11691291063820629.JavaMail.hudson@aegis> In-Reply-To: <387368402.9771290956196984.JavaMail.hudson@aegis> References: <387368402.9771290956196984.JavaMail.hudson@aegis> Subject: Build failed in Hudson: OpenJPA-trunk #346 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/346/changes> Changes: [faywang] OPENJPA-1890: attach a test case [mikedd] allow setSecurityManager() to be called by testcases ------------------------------------------ [...truncated 14792 lines...] enhance.all.entities: [echo] running enhancer 287 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SingleEMFTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@98e3ec has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SingleEMFTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SingleEMFTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 292 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@98e3ec has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.EvenOddDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 295 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@98e3ec has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.SampleQueryTargetPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 298 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.SliceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@98e3ec has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.SliceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.SliceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 303 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.policy.UserDistributionPolicy" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@98e3ec has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.policy.UserDistributionPolicy" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.policy.UserDistributionPolicy". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. 388 enhance WARN [pool-1-thread-1] openjpa.Enhance - Type "class org.apache.openjpa.slice.PersistenceTestCase" loaded by org.apache.openjpa.lib.util.TemporaryClassLoader@98e3ec has no metadata; enhancing as persistence aware. If you intended for "class org.apache.openjpa.slice.PersistenceTestCase" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.apache.openjpa.slice.PersistenceTestCase". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information. [INFO] Executed tasks [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables instead. [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: <https://hudson.apache.org/hudson/job/OpenJPA-trunk/ws/trunk/openjpa-slice/target/surefire-reports> ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.openjpa.slice.TestQuery 4 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 5 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 39 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 166 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 485 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4784 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12513 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 12703 ordering WARN [main] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 12 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 10 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 393 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 487 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 11 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 9 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 205 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 340 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is removed from cache excluded permanently. Query "SELECT p FROM Person p JOIN p.address a ORDER BY a.zip ASC, a.city DESC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 191 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 277 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 287 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 298 ordering WARN [main] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 310 ordering WARN [main] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 179 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 274 ordering WARN [main] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 10 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 8 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 176 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 265 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 9 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 199 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 293 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 3 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 184 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 272 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 151 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 228 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 8 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 6 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 149 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 235 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 145 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 237 ordering WARN [main] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 266 ordering WARN [main] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 141 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 243 ordering WARN [main] openjpa.Runtime - Query "select c from Car c" is removed from cache excluded permanently. Query "select c from Car c" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 249 ordering WARN [main] openjpa.Runtime - Query "select m from Manufacturer m" is removed from cache excluded permanently. Query "select m from Manufacturer m" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.617 sec Running org.apache.openjpa.slice.TestQueryMultiThreaded 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 165 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 273 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 278 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MIN(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 285 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT SUM(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT SUM(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 292 ordering WARN [Thread-2] openjpa.Runtime - Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is removed from cache excluded permanently. Query "SELECT MIN(p.value),MAX(p.value) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 136 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 220 ordering WARN [Thread-7] openjpa.Runtime - Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is removed from cache excluded permanently. Query "SELECT MAX(p.value) FROM PObject p WHERE MOD(p.value,2)=0" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 1 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 1 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 132 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 215 ordering WARN [Thread-12] openjpa.Runtime - Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is removed from cache excluded permanently. Query "SELECT p.value,p FROM PObject p ORDER BY p.value ASC" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 6 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 7 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 7 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 146 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 225 ordering WARN [Thread-17] openjpa.Runtime - Query "SELECT p FROM PObject p" is removed from cache excluded permanently. Query "SELECT p FROM PObject p" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 350 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 513 ordering WARN [Thread-22] openjpa.Runtime - Query "SELECT p FROM PObject p ORDER BY p.value" is removed from cache excluded permanently. Query "SELECT p FROM PObject p ORDER BY p.value" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.kernel.OrderingMergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 4 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 152 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 240 ordering WARN [Thread-27] openjpa.Runtime - Query "SELECT p FROM PObject p WHERE p.value > :v" is removed from cache excluded permanently. Query "SELECT p FROM PObject p WHERE p.value > :v" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 0 ordering WARN [main] openjpa.Runtime - Slice identifiers are not explicitly listed via "openjpa.slice.Names" property.The configuration will be scanned to determine slice identifiers. 0 ordering INFO [main] openjpa.Runtime - Detected slices "[Even, Odd]" in configuration. 2 ordering INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 5 ordering INFO [main] openjpa.Runtime - Starting OpenJPA Slice 2.1.0-SNAPSHOT 5 ordering.Even INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 4 ordering.Odd INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DerbyDictionary". 178 ordering WARN [main] openjpa.Runtime - Query "SELECT COUNT(p) FROM PObject p" is removed from cache excluded permanently. Query "SELECT COUNT(p) FROM PObject p" is not cached because it returns a single value rather than a list. A query that returns single value can not be cached. . 273 ordering WARN [Thread-32] openjpa.Runtime - Query "select a from Address a where a.city = :city" is removed from cache excluded permanently. Query "select a from Address a where a.city = :city" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . 287 ordering WARN [Thread-32] openjpa.Runtime - Query "SELECT p FROM Person p WHERE p.address = :a" is removed from cache excluded permanently. Query "SELECT p FROM Person p WHERE p.address = :a" is not cached because its result is not obtained by executing a select statement. This can happen if the query was evaluated in-memory. The result was provided by org.apache.openjpa.lib.rop.MergedResultObjectProvider. . Build timed out. Aborting killed. [HUDSON] Recording test resultsSending e-mails to: commits@openjpa.apache.org [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ channel stopped [INFO] hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown [INFO] ------------------------------------------------------------------------ [INFO] Trace hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Request.call(Request.java:137) at hudson.remoting.Channel.call(Channel.java:630) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy2.isArchivingDisabled(Unknown Source) at hudson.maven.MavenBuildProxy$Filter.isArchivingDisabled(MavenBuildProxy.java:222) at hudson.maven.reporters.MavenArtifact.archive(MavenArtifact.java:192) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:107) at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:800) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:317) at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:275) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:750) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Request.abort(Request.java:257) at hudson.remoting.Channel.terminate(Channel.java:681) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:764) at hudson.remoting.Channel$ReaderThread.run(Channel.java:963) Caused by: hudson.remoting.Channel$OrderlyShutdown ... 2 more Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:58) at hudson.remoting.Command.<init>(Command.java:47) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:760) at hudson.remoting.Channel.close(Channel.java:805) at hudson.slaves.Channels$1.close(Channels.java:91) at hudson.maven.ProcessCache$MavenProcess.discard(ProcessCache.java:145) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:541) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1324) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 86 minutes 27 seconds [INFO] Finished at: Mon Nov 29 20:50:19 UTC 2010 From commits-return-8173-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Mon Nov 29 22:59:02 2010 Return-Path: <commits-return-8173-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 96313 invoked from network); 29 Nov 2010 22:59:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 22:59:02 -0000 Received: (qmail 29765 invoked by uid 500); 29 Nov 2010 22:59:02 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 29743 invoked by uid 500); 29 Nov 2010 22:59:02 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 29736 invoked by uid 99); 29 Nov 2010 22:59:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 22:59:02 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 22:58:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A419523889E3; Mon, 29 Nov 2010 22:57:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040332 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/QueryResultMapping.java Date: Mon, 29 Nov 2010 22:57:25 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101129225725.A419523889E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Mon Nov 29 22:57:25 2010 New Revision: 1040332 URL: http://svn.apache.org/viewvc?rev=1040332&view=rev Log: fixing compiler warnings and minor code reformatting for QueryResultMapping Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/QueryResultMapping.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/QueryResultMapping.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/QueryResultMapping.java?rev=1040332&r1=1040331&r2=1040332&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/QueryResultMapping.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/QueryResultMapping.java Mon Nov 29 22:57:25 2010 @@ -24,7 +24,6 @@ import java.util.Arrays; import java.util.BitSet; import java.util.Collection; import java.util.HashMap; -import java.util.Iterator; import java.util.List; import java.util.Map; @@ -35,6 +34,7 @@ import org.apache.openjpa.lib.meta.Sourc import org.apache.openjpa.lib.util.Localizer; import org.apache.openjpa.lib.xml.Commentable; import org.apache.openjpa.meta.JavaTypes; +import org.apache.openjpa.meta.MetaDataContext; import org.apache.openjpa.meta.MetaDataModes; import org.apache.openjpa.util.MetaDataException; import serp.util.Strings; @@ -60,11 +60,11 @@ public class QueryResultMapping private int _lineNum = 0; private int _colNum = 0; private int _mode = MODE_QUERY; - private Class _class = null; + private Class<?> _class = null; private int _idx = 0; private String[] _comments = null; - private List _colList = null; - private List _pcList = null; + private List<Object> _colList = null; // list of column ids, typically the column name. + private List<PCResult> _pcList = null; private PCResult[] _pcs = null; private Object[] _cols = null; @@ -87,14 +87,14 @@ public class QueryResultMapping /** * The class that defines this query result, or null if none. */ - public Class getDefiningType() { + public Class<?> getDefiningType() { return _class; } /** * The class that defines this query result, or null if none. */ - public void setDefiningType(Class cls) { + public void setDefiningType(Class<?> cls) { _class = cls; } @@ -124,8 +124,9 @@ public class QueryResultMapping */ public void addColumnResult(Object id) { _cols = null; - if (_colList == null) - _colList = new ArrayList(); + if (_colList == null) { + _colList = new ArrayList<Object>(); + } _colList.add(id); } @@ -135,11 +136,12 @@ public class QueryResultMapping public PCResult[] getPCResults() { if (_pcs == null) { PCResult[] pcs; - if (_pcList == null) + if (_pcList == null) { pcs = new PCResult[0]; - else - pcs = (PCResult[]) _pcList.toArray - (new PCResult[_pcList.size()]); + } + else { + pcs = _pcList.toArray(new PCResult[_pcList.size()]); + } _pcs = pcs; } return _pcs; @@ -148,11 +150,12 @@ public class QueryResultMapping /** * Add a mapped persistence-capable result with the given candidate type. */ - public PCResult addPCResult(Class candidate) { + public PCResult addPCResult(Class<?> candidate) { _pcs = null; PCResult pc = new PCResult(candidate); - if (_pcList == null) - _pcList = new ArrayList(); + if (_pcList == null) { + _pcList = new ArrayList<PCResult>(); + } _pcList.add(pc); return pc; } @@ -253,24 +256,24 @@ public class QueryResultMapping */ public static final String DISCRIMINATOR = "<discriminator>"; - private final Class _candidate; + private final Class<?> _candidate; private ClassMapping _candidateMap = null; - private Map _rawMappings = null; // string->object - private Map _mappings = null; // list->columnmap - private Map _eager = null; // list->fetchinfo + private Map<String, Object> _rawMappings = null; + private Map<List<MetaDataContext>, ColumnMap> _mappings = null; + private Map<List<MetaDataContext>, FetchInfo> _eager = null; private FetchInfo _fetchInfo = null; // for top-level /** * Supply candidate type on construction. */ - private PCResult(Class candidate) { + private PCResult(Class<?> candidate) { _candidate = candidate; } /** * The result candidate class. */ - public Class getCandidateType() { + public Class<?> getCandidateType() { return _candidate; } @@ -288,10 +291,11 @@ public class QueryResultMapping * empty array if none. */ public String[] getMappingPaths() { - if (_rawMappings == null) + if (_rawMappings == null) { return new String[0]; - Collection keys = _rawMappings.keySet(); - return (String[]) keys.toArray(new String[keys.size()]); + } + Collection<String> keys = _rawMappings.keySet(); + return keys.toArray(new String[keys.size()]); } /** @@ -313,8 +317,9 @@ public class QueryResultMapping _mappings = null; _eager = null; _fetchInfo = null; - if (_rawMappings == null) - _rawMappings = new HashMap(); + if (_rawMappings == null) { + _rawMappings = new HashMap<String, Object>(); + } _rawMappings.put(path, id); } @@ -329,12 +334,13 @@ public class QueryResultMapping * @return the id or column to fetch from the result * (typically a column name) */ - public Object map(List path, Object id, Joins joins) { - if (_rawMappings == null || !(id instanceof Column)) + public Object map(List<MetaDataContext> path, Object id, Joins joins) { + if (_rawMappings == null || !(id instanceof Column)) { return id; + } resolve(); - ColumnMap cm = (ColumnMap) _mappings.get(path); + ColumnMap cm = _mappings.get(path); return (cm == null) ? id : cm.map((Column) id); } @@ -345,16 +351,19 @@ public class QueryResultMapping * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) */ - public boolean hasEager(List path, FieldMapping field) { - if (_rawMappings == null) + public boolean hasEager(List<MetaDataContext> path, FieldMapping field) { + if (_rawMappings == null) { return false; + } resolve(); - if (path.isEmpty()) + if (path.isEmpty()) { return _fetchInfo.eager.get(field.getIndex()); - if (_eager == null) + } + if (_eager == null) { return false; - FetchInfo info = (FetchInfo) _eager.get(path); + } + FetchInfo info = _eager.get(path); return info != null && info.eager.get(field.getIndex()); } @@ -362,16 +371,19 @@ public class QueryResultMapping * Return the field indexes to exclude when loading data for the * given path. */ - public BitSet getExcludes(List path) { - if (_rawMappings == null) + public BitSet getExcludes(List<MetaDataContext> path) { + if (_rawMappings == null) { return null; + } resolve(); - if (path.isEmpty()) - return _fetchInfo.excludes; - if (_eager == null) + if (path.isEmpty()) { + return _fetchInfo.excludes; + } + if (_eager == null) { return null; - FetchInfo info = (FetchInfo) _eager.get(path); + } + FetchInfo info = _eager.get(path); return (info == null) ? null : info.excludes; } @@ -379,17 +391,15 @@ public class QueryResultMapping * Resolve internal datastructures from raw mappings. */ private synchronized void resolve() { - if (_rawMappings == null || _mappings != null) + if (_rawMappings == null || _mappings != null) { return; + } - _mappings = new HashMap(); + _mappings = new HashMap<List<MetaDataContext>, ColumnMap>(); _fetchInfo = new FetchInfo(getCandidateTypeMapping()); - Map.Entry entry; - for (Iterator itr = _rawMappings.entrySet().iterator(); - itr.hasNext();) { - entry = (Map.Entry) itr.next(); - resolveMapping((String) entry.getKey(), entry.getValue()); + for(Map.Entry<String, Object> entry : _rawMappings.entrySet()) { + resolveMapping(entry.getKey(), entry.getValue()); } } @@ -399,7 +409,7 @@ public class QueryResultMapping private void resolveMapping(String path, Object id) { // build up path to second-to-last token String[] tokens = Strings.split(path, ".", 0); - List rpath = new ArrayList(tokens.length); + List<MetaDataContext> rpath = new ArrayList<MetaDataContext>(tokens.length); ClassMapping candidate = getCandidateTypeMapping(); FieldMapping fm = null; for (int i = 0; i < tokens.length - 1; i++) { @@ -447,7 +457,7 @@ public class QueryResultMapping // otherwise, record that we have an eager result Column fkCol = fm.getForeignKey().getColumn(col); if (fkCol != null) - addComplexColumnMapping(fm, new ArrayList(rpath), + addComplexColumnMapping(fm, new ArrayList<MetaDataContext>(rpath), fkCol, id); else { recordEager(candidate, rpath, fm); @@ -467,7 +477,7 @@ public class QueryResultMapping /** * Create an appropriate column mapping for the given field. */ - private void addComplexColumnMapping(FieldMapping fm, List rpath, + private void addComplexColumnMapping(FieldMapping fm, List<MetaDataContext> rpath, Column col, Object id) { if (fm.getColumns().length == 1) _mappings.put(rpath, new SingleColumnMap(id)); @@ -495,20 +505,20 @@ public class QueryResultMapping * Record that there may be eager data for the given field at the given * path. */ - private void recordEager(ClassMapping candidate, List path, + private void recordEager(ClassMapping candidate, List<MetaDataContext> path, FieldMapping fm) { if (path.size() == 1) { _fetchInfo.eager.set(fm.getIndex()); _fetchInfo.excludes.clear(fm.getIndex()); } else { // record at previous path - List copy = new ArrayList(path.size() - 1); + List<MetaDataContext> copy = new ArrayList<MetaDataContext>(path.size() - 1); for (int i = 0; i < copy.size(); i++) copy.add(path.get(i)); if (_eager == null) - _eager = new HashMap(); - FetchInfo info = (FetchInfo) _eager.get(copy); + _eager = new HashMap<List<MetaDataContext>, FetchInfo>(); + FetchInfo info = _eager.get(copy); if (info == null) { info = new FetchInfo(candidate); _eager.put(copy, info); @@ -521,17 +531,17 @@ public class QueryResultMapping /** * Record that the field at the given path is included in the results. */ - private void recordIncluded(ClassMapping candidate, List path, + private void recordIncluded(ClassMapping candidate, List<MetaDataContext> path, FieldMapping fm) { if (path.isEmpty()) _fetchInfo.excludes.clear(fm.getIndex()); else { if (_eager == null) - _eager = new HashMap(); - FetchInfo info = (FetchInfo) _eager.get(path); + _eager = new HashMap<List<MetaDataContext>, FetchInfo>(); + FetchInfo info = _eager.get(path); if (info == null) { info = new FetchInfo(candidate); - _eager.put(new ArrayList(path), info); + _eager.put(new ArrayList<MetaDataContext>(path), info); } info.excludes.clear(fm.getIndex()); } @@ -603,7 +613,7 @@ public class QueryResultMapping private static class MultiColumnMap implements ColumnMap { - private final List _cols; + private final List<Column> _cols; private final Object[] _ids; public MultiColumnMap(Column[] cols) { From commits-return-8174-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 00:04:19 2010 Return-Path: <commits-return-8174-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 25465 invoked from network); 30 Nov 2010 00:04:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 00:04:19 -0000 Received: (qmail 98230 invoked by uid 500); 30 Nov 2010 00:04:19 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 98211 invoked by uid 500); 30 Nov 2010 00:04:19 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 98203 invoked by uid 99); 30 Nov 2010 00:04:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 00:04:19 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 00:04:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B674C23889B9; Tue, 30 Nov 2010 00:02:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040350 - in /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc: schema/SchemaTool.java schema/Table.java sql/DBDictionary.java sql/SybaseDictionary.java Date: Tue, 30 Nov 2010 00:02:46 -0000 To: commits@openjpa.apache.org From: faywang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130000246.B674C23889B9@eris.apache.org> Author: faywang Date: Tue Nov 30 00:02:46 2010 New Revision: 1040350 URL: http://svn.apache.org/viewvc?rev=1040350&view=rev Log: OPENJPA-1893: The test case exposes a reserved-word column name problem for Oracle and Sybase with SchemaAction='drop,add' Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java?rev=1040350&r1=1040349&r2=1040350&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java Tue Nov 30 00:02:46 2010 @@ -807,10 +807,11 @@ public class SchemaTool { continue; dbCols = dbTable.getColumns(); - for (int k = 0; k < dbCols.length; k++) - if (tabs[j].getColumn(dbCols[k].getIdentifier()) == null) + for (int k = 0; k < dbCols.length; k++) { + if (!dbCols[k].getIdentifier().getName().equals(_dict.getIdentityColumnName()) && + !tabs[j].containsColumn(dbCols[k])) continue tables; - + } drops.add(tabs[j]); } } Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java?rev=1040350&r1=1040349&r2=1040350&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Table.java Tue Nov 30 00:02:46 2010 @@ -364,6 +364,21 @@ public class Table return _colMap.containsKey(sName); } + public boolean containsColumn(Column col) { + DBIdentifier colName = col.getIdentifier(); + if (DBIdentifier.isNull(colName) || _colMap == null) { + return false; + } + DBIdentifier sName = DBIdentifier.toUpper(colName); + Collection<Column> coll = _colMap.values(); + for (Column column : coll) { + if (column.getIdentifier().equals(sName)) + return true; + } + + return false; + } + /** * Add a column to the table. * @deprecated Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=1040350&r1=1040349&r2=1040350&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java Tue Nov 30 00:02:46 2010 @@ -5460,4 +5460,9 @@ public class DBDictionary public String getIsNotNullSQL(String colAlias, int colType) { return String.format("%s IS NOT NULL", colAlias); } + + public String getIdentityColumnName() { + return null; + } + } Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java?rev=1040350&r1=1040349&r2=1040350&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java Tue Nov 30 00:02:46 2010 @@ -479,4 +479,10 @@ public class SybaseDictionary } return super.getIsNotNullSQL(colAlias, colType); } + + @Override + public String getIdentityColumnName() { + return identityColumnName; + } + } From commits-return-8175-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 08:21:49 2010 Return-Path: <commits-return-8175-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 42988 invoked from network); 30 Nov 2010 08:21:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 08:21:49 -0000 Received: (qmail 55861 invoked by uid 500); 30 Nov 2010 08:21:49 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 55804 invoked by uid 500); 30 Nov 2010 08:21:49 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 55796 invoked by uid 99); 30 Nov 2010 08:21:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 08:21:48 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 08:21:47 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id A6339C0169 for <commits@openjpa.apache.org>; Tue, 30 Nov 2010 08:21:27 +0000 (UTC) Date: Tue, 30 Nov 2010 08:21:27 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1470736883.12251291105287680.JavaMail.hudson@aegis> In-Reply-To: <1834921504.11691291063820629.JavaMail.hudson@aegis> References: <1834921504.11691291063820629.JavaMail.hudson@aegis> Subject: Hudson build is unstable: OpenJPA-trunk #347 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/347/changes> From commits-return-8176-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 08:21:50 2010 Return-Path: <commits-return-8176-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 43014 invoked from network); 30 Nov 2010 08:21:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 08:21:50 -0000 Received: (qmail 55902 invoked by uid 500); 30 Nov 2010 08:21:50 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 55880 invoked by uid 500); 30 Nov 2010 08:21:50 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 55873 invoked by uid 99); 30 Nov 2010 08:21:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 08:21:50 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 08:21:48 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 2A897C0167 for <commits@openjpa.apache.org>; Tue, 30 Nov 2010 08:21:27 +0000 (UTC) Date: Tue, 30 Nov 2010 08:21:27 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1540287742.12241291105287138.JavaMail.hudson@aegis> In-Reply-To: <377058342.11681291063819580.JavaMail.hudson@aegis> References: <377058342.11681291063819580.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_still_unstable:_Ope?= =?UTF-8?Q?nJPA-trunk_=C2=BB_OpenJPA_XML_Store_#347?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-xmlstore/347/> From commits-return-8177-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 15:28:02 2010 Return-Path: <commits-return-8177-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 61507 invoked from network); 30 Nov 2010 15:28:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 15:28:02 -0000 Received: (qmail 98795 invoked by uid 500); 30 Nov 2010 15:28:02 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 98732 invoked by uid 500); 30 Nov 2010 15:28:01 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 98717 invoked by uid 99); 30 Nov 2010 15:28:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 15:28: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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 15:27:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7D2EF23889D7; Tue, 30 Nov 2010 15:26:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040578 - /openjpa/trunk/openjpa-examples/openbooks/pom.xml Date: Tue, 30 Nov 2010 15:26:25 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130152625.7D2EF23889D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Tue Nov 30 15:26:25 2010 New Revision: 1040578 URL: http://svn.apache.org/viewvc?rev=1040578&view=rev Log: minor formatting for openbooks pom.xml Modified: openjpa/trunk/openjpa-examples/openbooks/pom.xml Modified: openjpa/trunk/openjpa-examples/openbooks/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/pom.xml?rev=1040578&r1=1040577&r2=1040578&view=diff ============================================================================== --- openjpa/trunk/openjpa-examples/openbooks/pom.xml (original) +++ openjpa/trunk/openjpa-examples/openbooks/pom.xml Tue Nov 30 15:26:25 2010 @@ -170,12 +170,9 @@ <target name="generate-source" /> </ant> <copy todir="${basedir}/target"> - <fileset dir="${basedir}" - includes="index.html"/> - <fileset dir="${basedir}" - includes="*.txt"/> - <fileset dir="${basedir}" - includes="run.*"/> + <fileset dir="${basedir}" includes="index.html"/> + <fileset dir="${basedir}" includes="*.txt"/> + <fileset dir="${basedir}" includes="run.*"/> </copy> </tasks> </configuration> @@ -224,8 +221,7 @@ <echo>Launching OpenBooks</echo> <property name="openjpa.version" value="${project.version}" /> <property name="maven.repos" value="${settings.localRepository}" /> - <ant antfile="run.xml" - dir="${basedir}/target"> + <ant antfile="run.xml" dir="${basedir}/target"> <target name="run" /> </ant> </tasks> From commits-return-8178-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 15:33:30 2010 Return-Path: <commits-return-8178-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 63048 invoked from network); 30 Nov 2010 15:33:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 15:33:30 -0000 Received: (qmail 7002 invoked by uid 500); 30 Nov 2010 15:33:30 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 6934 invoked by uid 500); 30 Nov 2010 15:33:29 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 6922 invoked by uid 99); 30 Nov 2010 15:33:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 15:33:29 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 15:33:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B062923889D7; Tue, 30 Nov 2010 15:31:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040582 - in /openjpa/trunk: openjpa-examples/openbooks/pom.xml openjpa-lib/pom.xml pom.xml Date: Tue, 30 Nov 2010 15:31:53 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130153153.B062923889D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Tue Nov 30 15:31:53 2010 New Revision: 1040582 URL: http://svn.apache.org/viewvc?rev=1040582&view=rev Log: [maven-release-plugin] prepare branch 2.1.x Modified: openjpa/trunk/openjpa-examples/openbooks/pom.xml openjpa/trunk/openjpa-lib/pom.xml openjpa/trunk/pom.xml Modified: openjpa/trunk/openjpa-examples/openbooks/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/pom.xml?rev=1040582&r1=1040581&r2=1040582&view=diff ============================================================================== --- openjpa/trunk/openjpa-examples/openbooks/pom.xml (original) +++ openjpa/trunk/openjpa-examples/openbooks/pom.xml Tue Nov 30 15:31:53 2010 @@ -170,9 +170,9 @@ <target name="generate-source" /> </ant> <copy todir="${basedir}/target"> - <fileset dir="${basedir}" includes="index.html"/> - <fileset dir="${basedir}" includes="*.txt"/> - <fileset dir="${basedir}" includes="run.*"/> + <fileset dir="${basedir}" includes="index.html" /> + <fileset dir="${basedir}" includes="*.txt" /> + <fileset dir="${basedir}" includes="run.*" /> </copy> </tasks> </configuration> Modified: openjpa/trunk/openjpa-lib/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/pom.xml?rev=1040582&r1=1040581&r2=1040582&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/pom.xml (original) +++ openjpa/trunk/openjpa-lib/pom.xml Tue Nov 30 15:31:53 2010 @@ -110,16 +110,16 @@ <arg line="-c ${basedir}/.." /> </exec> # Write the svn info to a temp file - <echo file="pcenhancer.revision.file"/> + <echo file="pcenhancer.revision.file" /> <exec output="pcenhancer.revision.file" failonerror="false" failifexecutionfails="false" executable="svn" append="false"> <arg line="info ../openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java" /> </exec> # Remove all spaces so we can have a proper key - <replace file="pcenhancer.revision.file" token=" " value=""/> + <replace file="pcenhancer.revision.file" token=" " value="" /> # Load the property file - <property prefix="pcenhancer" file="pcenhancer.revision.file"/> - <delete file="pcenhancer.revision.file"/> + <property prefix="pcenhancer" file="pcenhancer.revision.file" /> + <delete file="pcenhancer.revision.file" /> <property name="subversion.revision" value="unknown" /> <property name="pcenhancer.LastChangedRev" value="-1" /> Modified: openjpa/trunk/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/pom.xml?rev=1040582&r1=1040581&r2=1040582&view=diff ============================================================================== --- openjpa/trunk/pom.xml (original) +++ openjpa/trunk/pom.xml Tue Nov 30 15:31:53 2010 @@ -27,7 +27,7 @@ <groupId>org.apache</groupId> <artifactId>apache</artifactId> <version>7</version> - <relativePath/> + <relativePath /> </parent> <groupId>org.apache.openjpa</groupId> @@ -139,9 +139,9 @@ </distributionManagement> <scm> - <connection>scm:svn:http://svn.apache.org/repos/asf/openjpa/trunk</connection> - <developerConnection>scm:svn:https://svn.apache.org/repos/asf/openjpa/trunk</developerConnection> - <url>http://svn.apache.org/repos/asf/openjpa/trunk</url> + <connection>scm:svn:http://svn.apache.org/repos/asf/openjpa/branches/2.1.x</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/openjpa/branches/2.1.x</developerConnection> + <url>http://svn.apache.org/repos/asf/openjpa/branches/2.1.x</url> </scm> <modules> From commits-return-8179-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 15:33:35 2010 Return-Path: <commits-return-8179-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 63077 invoked from network); 30 Nov 2010 15:33:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 15:33:34 -0000 Received: (qmail 7100 invoked by uid 500); 30 Nov 2010 15:33:34 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 7075 invoked by uid 500); 30 Nov 2010 15:33:34 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 7068 invoked by uid 99); 30 Nov 2010 15:33:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 15:33:34 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 15:33:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D9DB42388A3C; Tue, 30 Nov 2010 15:31:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040583 - /openjpa/branches/2.1.x/ Date: Tue, 30 Nov 2010 15:31:59 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130153159.D9DB42388A3C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Tue Nov 30 15:31:59 2010 New Revision: 1040583 URL: http://svn.apache.org/viewvc?rev=1040583&view=rev Log: [maven-release-plugin] copy for branch 2.1.x Added: openjpa/branches/2.1.x/ (props changed) - copied from r1040582, openjpa/trunk/ Propchange: openjpa/branches/2.1.x/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Tue Nov 30 15:31:59 2010 @@ -0,0 +1,12 @@ +.* +openjpa-database +target +subs +*.bat +enhance.xml +user.dict +wip +patches +bin +*.log +maven-eclipse.xml Propchange: openjpa/branches/2.1.x/ ------------------------------------------------------------------------------ svn:mergeinfo = /openjpa/branches/1.0.x:736493 From commits-return-8180-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 15:33:49 2010 Return-Path: <commits-return-8180-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 63346 invoked from network); 30 Nov 2010 15:33:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 15:33:49 -0000 Received: (qmail 8432 invoked by uid 500); 30 Nov 2010 15:33:49 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 8406 invoked by uid 500); 30 Nov 2010 15:33:49 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 8391 invoked by uid 99); 30 Nov 2010 15:33:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 15:33:49 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 15:33:47 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6363323889DA; Tue, 30 Nov 2010 15:32:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040584 - in /openjpa/trunk: ./ openjpa-all/ openjpa-examples/ openjpa-examples/image-gallery/ openjpa-examples/openbooks/ openjpa-examples/simple/ openjpa-integration/ openjpa-integration/daytrader/ openjpa-integration/examples/ openjpa-i... Date: Tue, 30 Nov 2010 15:32:12 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130153213.6363323889DA@eris.apache.org> Author: mikedd Date: Tue Nov 30 15:32:12 2010 New Revision: 1040584 URL: http://svn.apache.org/viewvc?rev=1040584&view=rev Log: [maven-release-plugin] prepare release 2.1.x Modified: openjpa/trunk/openjpa-all/pom.xml openjpa/trunk/openjpa-examples/image-gallery/pom.xml openjpa/trunk/openjpa-examples/openbooks/pom.xml openjpa/trunk/openjpa-examples/pom.xml openjpa/trunk/openjpa-examples/simple/pom.xml openjpa/trunk/openjpa-integration/daytrader/pom.xml openjpa/trunk/openjpa-integration/examples/pom.xml openjpa/trunk/openjpa-integration/jmx/pom.xml openjpa/trunk/openjpa-integration/pom.xml openjpa/trunk/openjpa-integration/slf4j/pom.xml openjpa/trunk/openjpa-integration/tck/pom.xml openjpa/trunk/openjpa-integration/validation/pom.xml openjpa/trunk/openjpa-jdbc/pom.xml openjpa/trunk/openjpa-kernel/pom.xml openjpa/trunk/openjpa-lib/pom.xml openjpa/trunk/openjpa-persistence-jdbc/pom.xml openjpa/trunk/openjpa-persistence-locking/pom.xml openjpa/trunk/openjpa-persistence/pom.xml openjpa/trunk/openjpa-project/pom.xml openjpa/trunk/openjpa-slice/pom.xml openjpa/trunk/openjpa-xmlstore/pom.xml openjpa/trunk/openjpa/pom.xml openjpa/trunk/pom.xml Modified: openjpa/trunk/openjpa-all/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-all/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-all/pom.xml (original) +++ openjpa/trunk/openjpa-all/pom.xml Tue Nov 30 15:32:12 2010 @@ -28,7 +28,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-examples/image-gallery/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/image-gallery/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-examples/image-gallery/pom.xml (original) +++ openjpa/trunk/openjpa-examples/image-gallery/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-examples</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa.openjpa-examples</groupId> Modified: openjpa/trunk/openjpa-examples/openbooks/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-examples/openbooks/pom.xml (original) +++ openjpa/trunk/openjpa-examples/openbooks/pom.xml Tue Nov 30 15:32:12 2010 @@ -29,7 +29,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-examples</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa.openjpa-examples</groupId> Modified: openjpa/trunk/openjpa-examples/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-examples/pom.xml (original) +++ openjpa/trunk/openjpa-examples/pom.xml Tue Nov 30 15:32:12 2010 @@ -28,7 +28,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-examples/simple/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/simple/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-examples/simple/pom.xml (original) +++ openjpa/trunk/openjpa-examples/simple/pom.xml Tue Nov 30 15:32:12 2010 @@ -28,7 +28,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-examples</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa.openjpa-examples</groupId> Modified: openjpa/trunk/openjpa-integration/daytrader/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-integration/daytrader/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-integration/daytrader/pom.xml (original) +++ openjpa/trunk/openjpa-integration/daytrader/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-integration</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <artifactId>openjpa-integration-daytrader</artifactId> Modified: openjpa/trunk/openjpa-integration/examples/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-integration/examples/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-integration/examples/pom.xml (original) +++ openjpa/trunk/openjpa-integration/examples/pom.xml Tue Nov 30 15:32:12 2010 @@ -37,7 +37,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-integration</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-integration/jmx/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-integration/jmx/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-integration/jmx/pom.xml (original) +++ openjpa/trunk/openjpa-integration/jmx/pom.xml Tue Nov 30 15:32:12 2010 @@ -28,7 +28,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-integration</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <artifactId>openjpa-integration-jmx</artifactId> Modified: openjpa/trunk/openjpa-integration/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-integration/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-integration/pom.xml (original) +++ openjpa/trunk/openjpa-integration/pom.xml Tue Nov 30 15:32:12 2010 @@ -28,7 +28,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-integration/slf4j/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-integration/slf4j/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-integration/slf4j/pom.xml (original) +++ openjpa/trunk/openjpa-integration/slf4j/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-integration</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <artifactId>openjpa-integration-slf4j</artifactId> Modified: openjpa/trunk/openjpa-integration/tck/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-integration/tck/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-integration/tck/pom.xml (original) +++ openjpa/trunk/openjpa-integration/tck/pom.xml Tue Nov 30 15:32:12 2010 @@ -68,7 +68,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-integration</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-integration/validation/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-integration/validation/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-integration/validation/pom.xml (original) +++ openjpa/trunk/openjpa-integration/validation/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-integration</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-jdbc/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/pom.xml (original) +++ openjpa/trunk/openjpa-jdbc/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-kernel/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-kernel/pom.xml (original) +++ openjpa/trunk/openjpa-kernel/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-lib/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-lib/pom.xml (original) +++ openjpa/trunk/openjpa-lib/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-persistence-jdbc/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-jdbc/pom.xml (original) +++ openjpa/trunk/openjpa-persistence-jdbc/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-persistence-locking/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-locking/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence-locking/pom.xml (original) +++ openjpa/trunk/openjpa-persistence-locking/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-persistence/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-persistence/pom.xml (original) +++ openjpa/trunk/openjpa-persistence/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-project/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-project/pom.xml (original) +++ openjpa/trunk/openjpa-project/pom.xml Tue Nov 30 15:32:12 2010 @@ -39,7 +39,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-slice/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-slice/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-slice/pom.xml (original) +++ openjpa/trunk/openjpa-slice/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa-xmlstore/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-xmlstore/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa-xmlstore/pom.xml (original) +++ openjpa/trunk/openjpa-xmlstore/pom.xml Tue Nov 30 15:32:12 2010 @@ -27,7 +27,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <groupId>org.apache.openjpa</groupId> Modified: openjpa/trunk/openjpa/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/openjpa/pom.xml (original) +++ openjpa/trunk/openjpa/pom.xml Tue Nov 30 15:32:12 2010 @@ -28,7 +28,7 @@ <parent> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-parent</artifactId> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> </parent> <artifactId>openjpa</artifactId> Modified: openjpa/trunk/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/pom.xml?rev=1040584&r1=1040583&r2=1040584&view=diff ============================================================================== --- openjpa/trunk/pom.xml (original) +++ openjpa/trunk/pom.xml Tue Nov 30 15:32:12 2010 @@ -40,7 +40,7 @@ Changing this version needs to also be done in all children poms See: http://jira.codehaus.org/browse/MNG-624 --> - <version>2.1.0-SNAPSHOT</version> + <version>2.2.0-SNAPSHOT</version> <properties> <openjpa.version>${project.version}</openjpa.version> @@ -139,9 +139,9 @@ </distributionManagement> <scm> - <connection>scm:svn:http://svn.apache.org/repos/asf/openjpa/branches/2.1.x</connection> - <developerConnection>scm:svn:https://svn.apache.org/repos/asf/openjpa/branches/2.1.x</developerConnection> - <url>http://svn.apache.org/repos/asf/openjpa/branches/2.1.x</url> + <connection>scm:svn:http://svn.apache.org/repos/asf/openjpa/trunk</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/openjpa/trunk</developerConnection> + <url>http://svn.apache.org/repos/asf/openjpa/trunk</url> </scm> <modules> From commits-return-8182-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 16:10:46 2010 Return-Path: <commits-return-8182-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 83823 invoked from network); 30 Nov 2010 16:10:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 16:10:42 -0000 Received: (qmail 84358 invoked by uid 500); 30 Nov 2010 16:10:42 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 84288 invoked by uid 500); 30 Nov 2010 16:10:41 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 84261 invoked by uid 99); 30 Nov 2010 16:10:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 16:10:40 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 16:10:38 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id C6FBBC0169 for <commits@openjpa.apache.org>; Tue, 30 Nov 2010 16:10:17 +0000 (UTC) Date: Tue, 30 Nov 2010 16:10:17 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <2091297514.12421291133417795.JavaMail.hudson@aegis> In-Reply-To: <1476575990.11211291021384565.JavaMail.hudson@aegis> References: <1476575990.11211291021384565.JavaMail.hudson@aegis> Subject: Hudson build is still unstable: OpenJPA-trunk-deploy #64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/changes> From commits-return-8181-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 16:10:47 2010 Return-Path: <commits-return-8181-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 83803 invoked from network); 30 Nov 2010 16:10:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 16:10:42 -0000 Received: (qmail 84333 invoked by uid 500); 30 Nov 2010 16:10:42 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 84272 invoked by uid 500); 30 Nov 2010 16:10:41 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 84254 invoked by uid 99); 30 Nov 2010 16:10:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 16:10:40 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 16:10:38 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 2CE2AC0167 for <commits@openjpa.apache.org>; Tue, 30 Nov 2010 16:10:17 +0000 (UTC) Date: Tue, 30 Nov 2010 16:10:17 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <22557648.12411291133417162.JavaMail.hudson@aegis> In-Reply-To: <564545767.11201291021383964.JavaMail.hudson@aegis> References: <564545767.11201291021383964.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_still_unstable:_OpenJP?= =?UTF-8?Q?A-trunk-deploy_=C2=BB_OpenJPA_XML_Store_#64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-trunk-deploy/org.apache.openjpa$openjpa-xmlstore/64/> From commits-return-8183-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 19:04:48 2010 Return-Path: <commits-return-8183-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 67511 invoked from network); 30 Nov 2010 19:04:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 19:04:48 -0000 Received: (qmail 57081 invoked by uid 500); 30 Nov 2010 19:04:46 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 56990 invoked by uid 500); 30 Nov 2010 19:04:45 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 56530 invoked by uid 99); 30 Nov 2010 19:04:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 19:04:45 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 19:04:42 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5F5EC23889ED; Tue, 30 Nov 2010 19:03:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040702 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java Date: Tue, 30 Nov 2010 19:03:10 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130190310.5F5EC23889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Tue Nov 30 19:03:10 2010 New Revision: 1040702 URL: http://svn.apache.org/viewvc?rev=1040702&view=rev Log: OPENJPA-1902: add all reserved words to invalidColumnWordSet for SQLServer Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java?rev=1040702&r1=1040701&r2=1040702&view=diff ============================================================================== --- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java (original) +++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java Tue Nov 30 19:03:10 2010 @@ -38,6 +38,7 @@ public abstract class AbstractSQLServerD public AbstractSQLServerDictionary() { reservedWordSet.addAll(Arrays.asList(new String[]{ "FILE", "INDEX" })); + invalidColumnWordSet.addAll(reservedWordSet); systemTableSet.add("DTPROPERTIES"); validationSQL = "SELECT GETDATE()"; rangePosition = RANGE_POST_DISTINCT; From commits-return-8184-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 19:12:42 2010 Return-Path: <commits-return-8184-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 78313 invoked from network); 30 Nov 2010 19:12:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 19:12:42 -0000 Received: (qmail 65043 invoked by uid 500); 30 Nov 2010 19:12:42 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 64999 invoked by uid 500); 30 Nov 2010 19:12:42 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 64992 invoked by uid 99); 30 Nov 2010 19:12:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 19:12:42 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 19:12:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 29F8A2388ABC; Tue, 30 Nov 2010 19:11:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040709 - /openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java Date: Tue, 30 Nov 2010 19:11:10 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130191110.29F8A2388ABC@eris.apache.org> Author: mikedd Date: Tue Nov 30 19:11:09 2010 New Revision: 1040709 URL: http://svn.apache.org/viewvc?rev=1040709&view=rev Log: OPENJPA-1902: add all reserved words to invalidColumnWordSet for SQLServer Modified: openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java Modified: openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java?rev=1040709&r1=1040708&r2=1040709&view=diff ============================================================================== --- openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java (original) +++ openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractSQLServerDictionary.java Tue Nov 30 19:11:09 2010 @@ -38,6 +38,7 @@ public abstract class AbstractSQLServerD public AbstractSQLServerDictionary() { reservedWordSet.addAll(Arrays.asList(new String[]{ "FILE", "INDEX" })); + invalidColumnWordSet.addAll(reservedWordSet); systemTableSet.add("DTPROPERTIES"); validationSQL = "SELECT GETDATE()"; rangePosition = RANGE_POST_DISTINCT; From commits-return-8185-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 19:58:42 2010 Return-Path: <commits-return-8185-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 132 invoked from network); 30 Nov 2010 19:58:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 19:58:42 -0000 Received: (qmail 41707 invoked by uid 500); 30 Nov 2010 19:58:42 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 41687 invoked by uid 500); 30 Nov 2010 19:58:42 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 41680 invoked by uid 99); 30 Nov 2010 19:58:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 19:58:42 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 19:58:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3536423889B9; Tue, 30 Nov 2010 19:57:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040742 - /openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java Date: Tue, 30 Nov 2010 19:57:10 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130195710.3536423889B9@eris.apache.org> Author: mikedd Date: Tue Nov 30 19:57:09 2010 New Revision: 1040742 URL: http://svn.apache.org/viewvc?rev=1040742&view=rev Log: OPENJPA-1898: reduce number of threads in testcase. Submitted By: Mark Struberg Modified: openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java Modified: openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java?rev=1040742&r1=1040741&r2=1040742&view=diff ============================================================================== --- openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java (original) +++ openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java Tue Nov 30 19:57:09 2010 @@ -218,8 +218,8 @@ public class TestQueryMultiThreaded exte } public void testHeavyLoad() { - Thread[] threads = new Thread[1000]; - for (int i = 0; i < 1000; i++) { + Thread[] threads = new Thread[800]; + for (int i = 0; i < 800; i++) { Runnable r = new Runnable() { public void run() { EntityManager em = emf.createEntityManager(); From commits-return-8186-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 20:05:02 2010 Return-Path: <commits-return-8186-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 4698 invoked from network); 30 Nov 2010 20:05:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 20:05:02 -0000 Received: (qmail 54977 invoked by uid 500); 30 Nov 2010 20:05:02 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 54951 invoked by uid 500); 30 Nov 2010 20:05:02 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 54940 invoked by uid 99); 30 Nov 2010 20:05:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 20:05:02 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 20:05:01 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id CD440C0164 for <commits@openjpa.apache.org>; Tue, 30 Nov 2010 20:04:40 +0000 (UTC) Date: Tue, 30 Nov 2010 20:04:40 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1847406229.12591291147480769.JavaMail.hudson@aegis> In-Reply-To: <1540287742.12241291105287138.JavaMail.hudson@aegis> References: <1540287742.12241291105287138.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_still_unstable:_Ope?= =?UTF-8?Q?nJPA-trunk_=C2=BB_OpenJPA_XML_Store_#348?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/org.apache.openjpa$openjpa-xmlstore/changes> From commits-return-8187-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 20:05:02 2010 Return-Path: <commits-return-8187-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 4710 invoked from network); 30 Nov 2010 20:05:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 20:05:02 -0000 Received: (qmail 55069 invoked by uid 500); 30 Nov 2010 20:05:02 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 54985 invoked by uid 500); 30 Nov 2010 20:05:02 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 54944 invoked by uid 99); 30 Nov 2010 20:05:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 20:05:02 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 20:05:01 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 5CB35C0167 for <commits@openjpa.apache.org>; Tue, 30 Nov 2010 20:04:41 +0000 (UTC) Date: Tue, 30 Nov 2010 20:04:41 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <125029320.12601291147481348.JavaMail.hudson@aegis> In-Reply-To: <1470736883.12251291105287680.JavaMail.hudson@aegis> References: <1470736883.12251291105287680.JavaMail.hudson@aegis> Subject: Hudson build is still unstable: OpenJPA-trunk #348 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-trunk/changes> From commits-return-8188-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 20:18:44 2010 Return-Path: <commits-return-8188-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 19970 invoked from network); 30 Nov 2010 20:18:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 20:18:44 -0000 Received: (qmail 69725 invoked by uid 500); 30 Nov 2010 20:18:44 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 69703 invoked by uid 500); 30 Nov 2010 20:18:44 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 69695 invoked by uid 99); 30 Nov 2010 20:18:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 20:18:43 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 20:18:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F103D23889EB; Tue, 30 Nov 2010 20:17:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040753 - /openjpa/branches/2.1.x/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java Date: Tue, 30 Nov 2010 20:17:11 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130201711.F103D23889EB@eris.apache.org> Author: mikedd Date: Tue Nov 30 20:17:11 2010 New Revision: 1040753 URL: http://svn.apache.org/viewvc?rev=1040753&view=rev Log: OPENJPA-1898: reduce number of threads in testcase. Submitted By: Mark Struberg Modified: openjpa/branches/2.1.x/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java Modified: openjpa/branches/2.1.x/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java URL: http://svn.apache.org/viewvc/openjpa/branches/2.1.x/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java?rev=1040753&r1=1040752&r2=1040753&view=diff ============================================================================== --- openjpa/branches/2.1.x/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java (original) +++ openjpa/branches/2.1.x/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java Tue Nov 30 20:17:11 2010 @@ -218,8 +218,8 @@ public class TestQueryMultiThreaded exte } public void testHeavyLoad() { - Thread[] threads = new Thread[1000]; - for (int i = 0; i < 1000; i++) { + Thread[] threads = new Thread[800]; + for (int i = 0; i < 800; i++) { Runnable r = new Runnable() { public void run() { EntityManager em = emf.createEntityManager(); From commits-return-8189-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 21:58:32 2010 Return-Path: <commits-return-8189-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 61605 invoked from network); 30 Nov 2010 21:58:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 21:58:32 -0000 Received: (qmail 31648 invoked by uid 500); 30 Nov 2010 21:58:32 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 31597 invoked by uid 500); 30 Nov 2010 21:58:32 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 31590 invoked by uid 99); 30 Nov 2010 21:58:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 21:58:32 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 21:58:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7746423889E9; Tue, 30 Nov 2010 21:57:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040790 - /openjpa/branches/2.1.x/pom.xml Date: Tue, 30 Nov 2010 21:57:00 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130215700.7746423889E9@eris.apache.org> Author: mikedd Date: Tue Nov 30 21:57:00 2010 New Revision: 1040790 URL: http://svn.apache.org/viewvc?rev=1040790&view=rev Log: rollback rev 1038109 which caused problems with xmlstore module Modified: openjpa/branches/2.1.x/pom.xml Modified: openjpa/branches/2.1.x/pom.xml URL: http://svn.apache.org/viewvc/openjpa/branches/2.1.x/pom.xml?rev=1040790&r1=1040789&r2=1040790&view=diff ============================================================================== --- openjpa/branches/2.1.x/pom.xml (original) +++ openjpa/branches/2.1.x/pom.xml Tue Nov 30 21:57:00 2010 @@ -622,19 +622,52 @@ <useFile>false</useFile> <trimStackTrace>false</trimStackTrace> <useSystemClassLoader>true</useSystemClassLoader> - <systemPropertyVariables> - <openjpa.Log>${openjpa.Log}</openjpa.Log> - <openjpa.DynamicEnhancementAgent>${openjpa.DynamicEnhancementAgent}</openjpa.DynamicEnhancementAgent> - <openjpa.ConnectionDriverName>${connection.driver.name}</openjpa.ConnectionDriverName> - <openjpa.ConnectionURL>${connection.url}</openjpa.ConnectionURL> - <openjpa.ConnectionUserName>${connection.username}</openjpa.ConnectionUserName> - <openjpa.ConnectionPassword>${connection.password}</openjpa.ConnectionPassword> - <openjpa.ConnectionProperties>${dbcp.args}</openjpa.ConnectionProperties> - <derby.stream.error.file>target/derby.log</derby.stream.error.file> - <derby.locks.deadlockTimeout>${derby.locks.deadlockTimeout}</derby.locks.deadlockTimeout> - <derby.locks.waitTimeout>${derby.locks.waitTimeout}</derby.locks.waitTimeout> - <tests.openjpa.allowfailure>${tests.openjpa.allowfailure}</tests.openjpa.allowfailure> - </systemPropertyVariables> + <systemProperties> + <property> + <name>openjpa.Log</name> + <value>${openjpa.Log}</value> + </property> + <property> + <name>openjpa.DynamicEnhancementAgent</name> + <value>${openjpa.DynamicEnhancementAgent}</value> + </property> + <property> + <name>openjpa.ConnectionDriverName</name> + <value>${connection.driver.name}</value> + </property> + <property> + <name>openjpa.ConnectionURL</name> + <value>${connection.url}</value> + </property> + <property> + <name>openjpa.ConnectionUserName</name> + <value>${connection.username}</value> + </property> + <property> + <name>openjpa.ConnectionPassword</name> + <value>${connection.password}</value> + </property> + <property> + <name>derby.stream.error.file</name> + <value>target/derby.log</value> + </property> + <property> + <name>derby.locks.deadlockTimeout</name> + <value>${derby.locks.deadlockTimeout}</value> + </property> + <property> + <name>derby.locks.waitTimeout</name> + <value>${derby.locks.waitTimeout}</value> + </property> + <property> + <name>openjpa.ConnectionProperties</name> + <value>${dbcp.args}</value> + </property> + <property> + <name>tests.openjpa.allowfailure</name> + <value>${tests.openjpa.allowfailure}</value> + </property> + </systemProperties> </configuration> </plugin> <plugin> From commits-return-8190-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 22:03:23 2010 Return-Path: <commits-return-8190-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 63089 invoked from network); 30 Nov 2010 22:03:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 22:03:23 -0000 Received: (qmail 34434 invoked by uid 500); 30 Nov 2010 22:03:23 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 34415 invoked by uid 500); 30 Nov 2010 22:03:23 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 34408 invoked by uid 99); 30 Nov 2010 22:03:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 22:03:23 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 22:03:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1D8792388A2C; Tue, 30 Nov 2010 22:01:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1040793 - /openjpa/trunk/pom.xml Date: Tue, 30 Nov 2010 22:01:48 -0000 To: commits@openjpa.apache.org From: mikedd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101130220148.1D8792388A2C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mikedd Date: Tue Nov 30 22:01:47 2010 New Revision: 1040793 URL: http://svn.apache.org/viewvc?rev=1040793&view=rev Log: rollback rev 1038109 which caused problems with xmlstore module Modified: openjpa/trunk/pom.xml Modified: openjpa/trunk/pom.xml URL: http://svn.apache.org/viewvc/openjpa/trunk/pom.xml?rev=1040793&r1=1040792&r2=1040793&view=diff ============================================================================== --- openjpa/trunk/pom.xml (original) +++ openjpa/trunk/pom.xml Tue Nov 30 22:01:47 2010 @@ -622,19 +622,52 @@ <useFile>false</useFile> <trimStackTrace>false</trimStackTrace> <useSystemClassLoader>true</useSystemClassLoader> - <systemPropertyVariables> - <openjpa.Log>${openjpa.Log}</openjpa.Log> - <openjpa.DynamicEnhancementAgent>${openjpa.DynamicEnhancementAgent}</openjpa.DynamicEnhancementAgent> - <openjpa.ConnectionDriverName>${connection.driver.name}</openjpa.ConnectionDriverName> - <openjpa.ConnectionURL>${connection.url}</openjpa.ConnectionURL> - <openjpa.ConnectionUserName>${connection.username}</openjpa.ConnectionUserName> - <openjpa.ConnectionPassword>${connection.password}</openjpa.ConnectionPassword> - <openjpa.ConnectionProperties>${dbcp.args}</openjpa.ConnectionProperties> - <derby.stream.error.file>target/derby.log</derby.stream.error.file> - <derby.locks.deadlockTimeout>${derby.locks.deadlockTimeout}</derby.locks.deadlockTimeout> - <derby.locks.waitTimeout>${derby.locks.waitTimeout}</derby.locks.waitTimeout> - <tests.openjpa.allowfailure>${tests.openjpa.allowfailure}</tests.openjpa.allowfailure> - </systemPropertyVariables> + <systemProperties> + <property> + <name>openjpa.Log</name> + <value>${openjpa.Log}</value> + </property> + <property> + <name>openjpa.DynamicEnhancementAgent</name> + <value>${openjpa.DynamicEnhancementAgent}</value> + </property> + <property> + <name>openjpa.ConnectionDriverName</name> + <value>${connection.driver.name}</value> + </property> + <property> + <name>openjpa.ConnectionURL</name> + <value>${connection.url}</value> + </property> + <property> + <name>openjpa.ConnectionUserName</name> + <value>${connection.username}</value> + </property> + <property> + <name>openjpa.ConnectionPassword</name> + <value>${connection.password}</value> + </property> + <property> + <name>derby.stream.error.file</name> + <value>target/derby.log</value> + </property> + <property> + <name>derby.locks.deadlockTimeout</name> + <value>${derby.locks.deadlockTimeout}</value> + </property> + <property> + <name>derby.locks.waitTimeout</name> + <value>${derby.locks.waitTimeout}</value> + </property> + <property> + <name>openjpa.ConnectionProperties</name> + <value>${dbcp.args}</value> + </property> + <property> + <name>tests.openjpa.allowfailure</name> + <value>${tests.openjpa.allowfailure}</value> + </property> + </systemProperties> </configuration> </plugin> <plugin> From commits-return-8191-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 23:14:45 2010 Return-Path: <commits-return-8191-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 98154 invoked from network); 30 Nov 2010 23:14:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 23:14:44 -0000 Received: (qmail 21996 invoked by uid 500); 30 Nov 2010 23:14:44 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 21976 invoked by uid 500); 30 Nov 2010 23:14:44 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 21964 invoked by uid 99); 30 Nov 2010 23:14:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 23:14:44 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 23:14:44 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 073C7C0169 for <commits@openjpa.apache.org>; Tue, 30 Nov 2010 23:14:24 +0000 (UTC) Date: Tue, 30 Nov 2010 23:14:24 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <1292958566.12801291158864008.JavaMail.hudson@aegis> Subject: Hudson build is unstable: OpenJPA-2.1.x #1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit See <https://hudson.apache.org/hudson/job/OpenJPA-2.1.x/1/> From commits-return-8192-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org Tue Nov 30 23:14:46 2010 Return-Path: <commits-return-8192-apmail-openjpa-commits-archive=openjpa.apache.org@openjpa.apache.org> Delivered-To: apmail-openjpa-commits-archive@www.apache.org Received: (qmail 98191 invoked from network); 30 Nov 2010 23:14:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 23:14:46 -0000 Received: (qmail 22081 invoked by uid 500); 30 Nov 2010 23:14:46 -0000 Delivered-To: apmail-openjpa-commits-archive@openjpa.apache.org Received: (qmail 22048 invoked by uid 500); 30 Nov 2010 23:14:46 -0000 Mailing-List: contact commits-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: <mailto:commits-help@openjpa.apache.org> List-Unsubscribe: <mailto:commits-unsubscribe@openjpa.apache.org> List-Post: <mailto:commits@openjpa.apache.org> List-Id: <commits.openjpa.apache.org> Reply-To: dev@openjpa.apache.org Delivered-To: mailing list commits@openjpa.apache.org Received: (qmail 22041 invoked by uid 99); 30 Nov 2010 23:14:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 23:14:46 +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.8] (HELO aegis.apache.org) (140.211.11.8) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 23:14:44 +0000 Received: from aegis (localhost [127.0.0.1]) by aegis.apache.org (Postfix) with ESMTP id 77E31C0167 for <commits@openjpa.apache.org>; Tue, 30 Nov 2010 23:14:23 +0000 (UTC) Date: Tue, 30 Nov 2010 23:14:23 +0000 (UTC) From: Apache Hudson Server <hudson@hudson.apache.org> To: commits@openjpa.apache.org Message-ID: <2006376523.12791291158863415.JavaMail.hudson@aegis> Subject: =?UTF-8?Q?Hudson_build_is_unstable:_OpenJPA-?= =?UTF-8?Q?2.1.x_=C2=BB_OpenJPA_Persistence_JDBC_#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org See <https://hudson.apache.org/hudson/job/OpenJPA-2.1.x/org.apache.openjpa$openjpa-persistence-jdbc/1/>