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 D3B1117479 for ; Wed, 15 Apr 2015 01:25:41 +0000 (UTC) Received: (qmail 21881 invoked by uid 500); 15 Apr 2015 01:25:41 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 21840 invoked by uid 500); 15 Apr 2015 01:25:41 -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 21828 invoked by uid 99); 15 Apr 2015 01:25:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2015 01:25:41 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of curtisr7@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-qk0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2015 01:25:16 +0000 Received: by qkgx75 with SMTP id x75so48297836qkg.1 for ; Tue, 14 Apr 2015 18:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lCpU1k3oAN5B4RO5T9hFVc4YGBtw5D/FUk5/l3O6OUg=; b=B9K23UOzVsKoAPiG8TFO9vvoaMHqR8LjaG0zZIHw75UgDRQXsqaOsUO2B5NQVqWJKY ZkXovfZLOBD4dkxKY+VHB/hK+wFHSM5LcwuvikAkysk8c6/Pn/mnDTC+HRx7QRdJg5Ew C3tERX1j8hFujan9DwCWItzHb0huPoLnYvp67TvaKQhsBOl8SE3d7RsmkPZ2ExXpfQR8 NAqSQ4uShIdqQrDP+N7HqFFtTDw0fv2ye9W2fWZe6AL3TWQi7e6lF4jQIQz1rLvpskQQ IfGyLaFIENcwqbwhm0OxSTxRYEUoMr0KRmdibWuEV8guGcC1dNArrgL9sUpA3F3kRNix ll2w== MIME-Version: 1.0 X-Received: by 10.182.216.135 with SMTP id oq7mr19041186obc.66.1429061114417; Tue, 14 Apr 2015 18:25:14 -0700 (PDT) Received: by 10.60.167.49 with HTTP; Tue, 14 Apr 2015 18:25:14 -0700 (PDT) In-Reply-To: <2b673a167a134f3a87e6d684b1e2e811@LON02-ExM-02.corp.monitise.net> References: <2b673a167a134f3a87e6d684b1e2e811@LON02-ExM-02.corp.monitise.net> Date: Tue, 14 Apr 2015 20:25:14 -0500 Message-ID: Subject: Re: Occasional IllegalArgumentException (Illegal Capacity) inside ManagedCache From: Rick Curtis To: users Content-Type: multipart/alternative; boundary=001a113485c816592d0513b93844 X-Virus-Checked: Checked by ClamAV on apache.org --001a113485c816592d0513b93844 Content-Type: text/plain; charset=ISO-8859-1 I haven't ever encountered this problem, and I'm pretty certain it hasn't been fixed in 2.2.2... that being said, the runtime itself isn't multithreaded. If I were going to take a off the cuff guess, I'd wager there is some odd interaction going on with the aries container. > Once this has occurred, the only way to recovery is a platform restart. That is a very interesting comment. It doesn't make much sense that this sort of an exception on EM.clear() would be persistent. On Tue, Apr 14, 2015 at 6:30 AM, Raimund Klein wrote: > 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 this one: > > > > Caused by: > org.apache.openjpa.persistence.PersistenceException: Illegal Capacity: -12 > at org.apache.openjpa.kernel.BrokerImpl.detachAll(BrokerImpl.java:3407) > at > org.apache.openjpa.kernel.DelegatingBroker.detachAll(DelegatingBroker.java:1206) > at > org.apache.openjpa.persistence.EntityManagerImpl.clear(EntityManagerImpl.java:1169) > at > org.apache.aries.jpa.container.impl.EntityManagerWrapper.clear(EntityManagerWrapper.java:49) > at > org.apache.aries.jpa.container.context.transaction.impl.SynchronizedEntityManagerWrapper.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:4054) > at > org.apache.openjpa.kernel.BrokerImpl.detachAllInternal(BrokerImpl.java:3418) > 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. > Hoping for the best, we've upgraded to 2.2.2 just now and will test with > this one, but I'd just like to know if anyone has encountered this before > and maybe 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 > > > > [image: > http://mailmedia.monitisegroup.com/MonitiseUpdate/Images/Email_logo.gif] > *www.monitisegroup.com* > [image: > http://mailmedia.monitisegroup.com/NewsletterImages/youtube_sig.gif] > [image: > http://mailmedia.monitisegroup.com/MonitiseUpdate/Images/linked_in_sig.gif] > [image: > http://mailmedia.monitisegroup.com/MonitiseUpdate/Images/twitter_sig.gif] > > > > > ------------------------------ > > This message contains confidential and proprietary information of the > sender, 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 data of the recipient > (including as a result of software virus infection or where this e-mail is > modified or amended in 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. > 5556711), Monitise Europe Limited (Reg. No. 4831976) and Mobile Money > Network Limited (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 > Mimecast. > For more information please visit http://www.mimecast.com > ------------------------------ > -- *Rick Curtis* --001a113485c816592d0513b93844--