Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 51188 invoked from network); 26 Apr 2010 16:05:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Apr 2010 16:05:41 -0000 Received: (qmail 60947 invoked by uid 500); 26 Apr 2010 16:05:41 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 60917 invoked by uid 500); 26 Apr 2010 16:05:40 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 60909 invoked by uid 99); 26 Apr 2010 16:05:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 16:05:40 +0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.222.198] (HELO mail-pz0-f198.google.com) (209.85.222.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 16:05:34 +0000 Received: by pzk36 with SMTP id 36so4682006pzk.24 for ; Mon, 26 Apr 2010 09:05:13 -0700 (PDT) Received: by 10.142.249.15 with SMTP id w15mr1993975wfh.119.1272297913357; Mon, 26 Apr 2010 09:05:13 -0700 (PDT) Received: from brevsnb005 ([58.165.162.219]) by mx.google.com with ESMTPS id e40sm492112wfj.11.2010.04.26.09.05.10 (version=SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 09:05:12 -0700 (PDT) Reply-To: From: "C N Davies" To: "'Fay Wang'" , References: <003101cae45c$f52ad6b0$df808410$@com> <884069.78574.qm@web55902.mail.re3.yahoo.com> In-Reply-To: <884069.78574.qm@web55902.mail.re3.yahoo.com> Subject: RE: IOB Error Date: Tue, 27 Apr 2010 02:04:56 +1000 Organization: C N Davies Pty Ltd Message-ID: <003f01cae55a$3ed14580$bc73d080$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcrlVaxZ518OUPNHQ8GKGzbYB964HwAA7ulw Content-Language: en-au Hi Fay, I have worked out that it is to do with one of the other apache commons jars in the class path, but I haven't worked out yet which one. Commons is the bain of my existence, so many of the APIs need different versions and if you get them in the wrong order something will break. Once I have worked out which one it is I'll post it to the list on case someone else hits this issue. Regards Chris -----Original Message----- From: Fay Wang [mailto:fyw300@yahoo.com] Sent: Tuesday, 27 April 2010 1:32 AM To: users@openjpa.apache.org; cnd@cndavies.com Subject: Re: IOB Error Hi, Chris, Can you provide the entity definitions? Thanks, Fay ----- Original Message ---- From: C N Davies To: users@openjpa.apache.org Sent: Sun, April 25, 2010 2:51:56 AM Subject: IOB Error This application has been running just fine for the last few months, suddenly I am starting to get this error. I have restored the DB and there have been no code changes to this software for months other than updating to OpenJPA Beta 3 a few weeks ago. I tested on the latest OpenJPA 2.0 release and have the same issue. The code is just calling final(Class, key) and the key is valid. Using JPA 2.0 Beta 3 java.lang.ArrayIndexOutOfBoundsException: 1 org.apache.openjpa.jdbc.sql.SelectImpl.where(SelectImpl.java:1369) org.apache.openjpa.jdbc.sql.SelectImpl.wherePrimaryKey(SelectImpl.java:1293) org.apache.openjpa.jdbc.sql.SelectImpl.wherePrimaryKey(SelectImpl.java:1270) org.apache.openjpa.jdbc.sql.LogicalUnion$UnionSelect.wherePrimaryKey(Logical Union.java:751) org.apache.openjpa.jdbc.kernel.JDBCStoreManager$1.select(JDBCStoreManager.ja va:612) org.apache.openjpa.jdbc.sql.LogicalUnion.select(LogicalUnion.java:297) org.apache.openjpa.jdbc.kernel.JDBCStoreManager.getInitializeStateUnionResul t(JDBCStoreManager.java:608) org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initializeState(JDBCStoreMan ager.java:392) org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initialize(JDBCStoreManager. java:342) org.apache.openjpa.kernel.DelegatingStoreManager.initialize(DelegatingStoreM anager.java:112) org.apache.openjpa.kernel.ROPStoreManager.initialize(ROPStoreManager.java:57 ) org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:1005) org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:963) org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:880) org.apache.openjpa.kernel.DelegatingBroker.find(DelegatingBroker.java:223) org.apache.openjpa.persistence.EntityManagerImpl.find(EntityManagerImpl.java :476) Thx Chris