Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C46101758D for ; Tue, 14 Apr 2015 11:31:02 +0000 (UTC) Received: (qmail 65488 invoked by uid 500); 14 Apr 2015 11:30:57 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 65451 invoked by uid 500); 14 Apr 2015 11:30:57 -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 65440 invoked by uid 99); 14 Apr 2015 11:30:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 11:30:57 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of raimund.klein@monitise.com designates 195.130.217.88 as permitted sender) Received: from [195.130.217.88] (HELO service136.mimecast.com) (195.130.217.88) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 11:30:53 +0000 Received: from mail.monitise.net (smtp-02.monitise.net [80.64.50.239]) (Using TLS) by service136.mimecast.com; Tue, 14 Apr 2015 12:30:30 +0100 Received: from LON02-ExM-03.corp.monitise.net (10.75.0.122) by lon02-cas-01a.corp.monitise.net (10.75.0.99) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 14 Apr 2015 12:30:29 +0100 Received: from LON02-ExM-02.corp.monitise.net (10.75.0.121) by LON02-ExM-03.corp.monitise.net (10.75.0.122) with Microsoft SMTP Server (TLS) id 15.0.847.32; Tue, 14 Apr 2015 12:30:29 +0100 Received: from LON02-ExM-02.corp.monitise.net ([fe80::897:5a2d:4438:3b8d]) by LON02-ExM-02.corp.monitise.net ([fe80::897:5a2d:4438:3b8d%18]) with mapi id 15.00.0847.030; Tue, 14 Apr 2015 12:30:29 +0100 From: Raimund Klein To: "users@openjpa.apache.org" Subject: Occasional IllegalArgumentException (Illegal Capacity) inside ManagedCache Thread-Topic: Occasional IllegalArgumentException (Illegal Capacity) inside ManagedCache Thread-Index: AdB2paJzOVOWM4fJSsa9ovnWgHZjXw== Date: Tue, 14 Apr 2015 11:30:28 +0000 Message-ID: <2b673a167a134f3a87e6d684b1e2e811@LON02-ExM-02.corp.monitise.net> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.75.0.201] MIME-Version: 1.0 X-MC-Unique: 115041412303006602 Content-Type: multipart/related; boundary="_007_2b673a167a134f3a87e6d684b1e2e811LON02ExM02corpmonitisen_"; type="multipart/alternative" X-Virus-Checked: Checked by ClamAV on apache.org --_007_2b673a167a134f3a87e6d684b1e2e811LON02ExM02corpmonitisen_ Content-Type: multipart/alternative; boundary="_000_2b673a167a134f3a87e6d684b1e2e811LON02ExM02corpmonitisen_" --_000_2b673a167a134f3a87e6d684b1e2e811LON02ExM02corpmonitisen_ Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Hi all, We are using OpenJPA 2.2.0 as part of our JBoss Fuse installation. Every co= uple of months we run into a stack trace such as this one: Caused by: org.apach= e.openjpa.persistence.PersistenceException: Illegal Capacity: -12 at org.apache.openjpa.kernel.BrokerImpl.detachAll(BrokerImpl.java:3407) at org.apache.openjpa.kernel.DelegatingBroker.detachAll(DelegatingBroker.ja= va:1206) at org.apache.openjpa.persistence.EntityManagerImpl.clear(EntityManagerImpl= .java:1169) at org.apache.aries.jpa.container.impl.EntityManagerWrapper.clear(EntityMan= agerWrapper.java:49) at org.apache.aries.jpa.container.context.transaction.impl.SynchronizedEnti= tyManagerWrapper.clear(SynchronizedEntityManagerWrapper.java:113) at org.apache.aries.jpa.container.context.transaction.impl.JTAEntityManager= .createNamedQuery(JTAEntityManager.java:315) [...] ... 90 more Caused by: java.lang.IllegalArgumentException: Illegal Capacity: -12 at java.util.ArrayList.(ArrayList.java:142)[:1.7.0_55] at org.apache.openjpa.kernel.ManagedCache.copy(ManagedCache.java:259) at org.apache.openjpa.kernel.BrokerImpl.getManagedStates(BrokerImpl.java:40= 54) at org.apache.openjpa.kernel.BrokerImpl.detachAllInternal(BrokerImpl.java:3= 418) at org.apache.openjpa.kernel.BrokerImpl.detachAll(BrokerImpl.java:3403) ... 101 more Once this has occurred, the only way to recovery is a platform restart. Our impression is that this is a multithreading issue inside OpenJPA. Hopin= g for the best, we've upgraded to 2.2.2 just now and will test with this on= e, but I'd just like to know if anyone has encountered this before and mayb= e can help us with an idea what's going here? We scanned the recent release= notes, but haven't found anything like this mentioned. Kind regards Raimund Klein Technical Architect t. +44 (0)203 657 0481 raimund.klein@monitisegroup.com [http://mailmedia.monitisegroup.com/MonitiseUpdate/Images/Email_logo.gif] www.monitisegroup.com [http://mailmedia.monitisegroup.com/NewsletterImages/youtube_sig.gif][http://mailmedia.monitisegroup.com/Mo= nitiseUpdate/Images/linked_in_sig.gif][http://mailmedia.monitisegroup.com/MonitiseUpdate/Images/twitter_sig.= gif] ________________________________ This message contains confidential and proprietary information of the sende= r, and is intended only for the person(s) to whom it is addressed. Any use,= distribution, copying, disclosure or taking of any action in reliance upon= it by any other person is strictly prohibited. If you have received this m= essage in error, please notify the e-mail sender immediately, and delete th= e original message without making a copy. Monitise accepts no liability if = this email harms any systems or data of the recipient (including as a resul= t of software virus infection or where this e-mail is modified or amended i= n any way during or following transmission) or if this email is accessed by= anyone other than the person(s) to whom it is addressed. The Monitise group includes Monitise plc (Reg. No. 6011822), Monitise Group= Limited (Reg. No. 5590897), Monitise International Limited (Reg. No. 55567= 11), Monitise Europe Limited (Reg. No. 4831976) and Mobile Money Network Li= mited (Reg. No. 7153130). These companies are registered in England and Wal= es and their registered office address is 95 Gresham Street, London, EC2V 7= NA United Kingdom. ---------------------------------------------------------------------------= -------------------------------------------------------------- This email message has been delivered safely and archived online by Mimecas= t. For more information please visit http://www.mimecast.com=20 ---------------------------------------------------------------------------= -------------------------------------------------------------- --_000_2b673a167a134f3a87e6d684b1e2e811LON02ExM02corpmonitisen_ Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable =20 =20

Hi all,

 

We are using OpenJPA 2.2.0 as part of our JBoss Fuse= installation. Every couple of months we run into a stack trace such as thi= s one:

 

Caused by: <openjpa-2.2.0-r422266:124499= 0 nonfatal general error> org.apache.openjpa.persistence.PersistenceExce= ption: Illegal Capacity: -12
at org.apache.openjpa.kernel.BrokerImpl.detachAll(BrokerImpl.java:3407)
at org.apache.openjpa.kernel.DelegatingBroker.detachAll(DelegatingBroker.ja= va:1206)
at org.apache.openjpa.persistence.EntityManagerImpl.clear(EntityManagerImpl= .java:1169)
at org.apache.aries.jpa.container.impl.EntityManagerWrapper.clear(EntityMan= agerWrapper.java:49)
at org.apache.aries.jpa.container.context.transaction.impl.SynchronizedEnti= tyManagerWrapper.clear(SynchronizedEntityManagerWrapper.java:113)
at org.apache.aries.jpa.container.context.transaction.impl.JTAEntityManager= .createNamedQuery(JTAEntityManager.java:315)
[…]

... 90 more
Caused by: java.lang.IllegalArgumentException: Illegal Capacity: -12
at java.util.ArrayList.<init>(ArrayList.java:142)[:1.7.0_55]
at org.apache.openjpa.kernel.ManagedCache.copy(ManagedCache.java:259)
at org.apache.openjpa.kernel.BrokerImpl.getManagedStates(BrokerImpl.java:40= 54)
at org.apache.openjpa.kernel.BrokerImpl.detachAllInternal(BrokerImpl.java:3= 418)
at org.apache.openjpa.kernel.BrokerImpl.detachAll(BrokerImpl.java:3403)
... 101 more

 

Once this has occurred, the only way to recovery is = a platform restart.

 

Our impression is that this is a multithreading issu= e inside OpenJPA. Hoping for the best, we’ve upgraded to 2.2.2 just n= ow and will test with this one, but I’d just like to know if anyone h= as encountered this before and maybe can help us with an idea what’s going here? We scanned the recent release not= es, but haven’t found anything like this mentioned.

 

 

Kin= d regards

=  

= Raimund Klein Technical Arch= itect

t. +44 (0)203= 657 0481
raimund.klein@monitisegroup.com

 

3D"http://mailmedia.monitisegroup.com/MonitiseUpdate/Images/Email_=
www.monitisegroup.com
3D"http://mailmedia.monitisegroup.com/Newslet=3D"http://mailmedia.mo=3D"http://mailmedia.monitisegroup.com/MonitiseUpdate/Images/twitter_sig=

 




This message contains confidential and proprietary information of the sende= r, and is intended only for the person(s) to whom it is addressed. Any use,= distribution, copying, disclosure or taking of any action in reliance upon= it by any other person is strictly prohibited. If you have received this message in error, please notify the = e-mail sender immediately, and delete the original message without making a= copy. Monitise accepts no liability if this email harms any systems or dat= a of the recipient (including as a result of software virus infection or where this e-mail is modified or a= mended in any way during or following transmission) or if this email is acc= essed by anyone other than the person(s) to whom it is addressed.

The Monitise group includes Monitise plc (Reg. No. 6011822), Monitise Group= Limited (Reg. No. 5590897), Monitise International Limited (Reg. No. 55567= 11), Monitise Europe Limited (Reg. No. 4831976) and Mobile Money Network Li= mited (Reg. No. 7153130). These companies are registered in England and Wales and their registered office = address is 95 Gresham Street, London, EC2V 7NA United Kingdom.



This email message has been delivered safely and archived online by Mimecas= t.
For more information please visit http:= //www.mimecast.com
--_000_2b673a167a134f3a87e6d684b1e2e811LON02ExM02corpmonitisen_-- --_007_2b673a167a134f3a87e6d684b1e2e811LON02ExM02corpmonitisen_--