Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 31671 invoked from network); 18 Aug 2009 19:09:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 19:09:48 -0000 Received: (qmail 32878 invoked by uid 500); 18 Aug 2009 19:10:07 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 32842 invoked by uid 500); 18 Aug 2009 19:10:06 -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 32832 invoked by uid 99); 18 Aug 2009 19:10:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 19:10:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.d.dick@gmail.com designates 209.85.218.211 as permitted sender) Received: from [209.85.218.211] (HELO mail-bw0-f211.google.com) (209.85.218.211) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 19:09:57 +0000 Received: by bwz8 with SMTP id 8so3280371bwz.28 for ; Tue, 18 Aug 2009 12:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=EYteO2O/EB0x6Aie94l7o7wtuo+rsh2IxHQMRwEtoFo=; b=CnhfRtTrTAcTZDMvNAXNlYzUwguNs68eCVjZvjP3OJ7pjOFg01sjJguImYigkH9Q9G AZXXYj1cscaH0zzQKeoc42cx7qzEA1xa3Flz4Wj1R2OG5yqA3emXqM3HKb3kG90TCevg zQip5YklsCioN1OowxN7MWbcdhV085kW2fdmE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=W1oGCIdeHxxmGKUENWbPAqNxsqwFeajNPHJcXFW8ghIeoe5PlhnK4BKvRZDoYlL70G 4a9zjRCHRLUYp1zBV6BWEaNqdOXV2E4xVVdnvig+/pB5FxsZxvw92XipXbb7yytNSFS8 8CP3PfmG/n4Kx/AUmQX+dRtyoXPn7lTqwEHAQ= MIME-Version: 1.0 Received: by 10.204.24.19 with SMTP id t19mr4053413bkb.16.1250622576318; Tue, 18 Aug 2009 12:09:36 -0700 (PDT) In-Reply-To: <1250622072511-3467935.post@n2.nabble.com> References: <1250511316542-3458426.post@n2.nabble.com> <200908170933.56857.lfpg.dev@gmail.com> <200908170937.20740.lfpg.dev@gmail.com> <1250581384861-3464534.post@n2.nabble.com> <1250622072511-3467935.post@n2.nabble.com> Date: Tue, 18 Aug 2009 14:09:36 -0500 Message-ID: <72c1350f0908181209o5438cb10s6b9c920a127ce9cd@mail.gmail.com> Subject: Re: java.lang.StackOverflowError Exception after enabling cach From: Michael Dick To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=00032555ab1268d9c904716f424c X-Virus-Checked: Checked by ClamAV on apache.org --00032555ab1268d9c904716f424c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Glassfish should automatically enhance your entities if you use a container managed EntityManagerFactory. The container is required to use the createContainerEntityManagerFactory method, this is where OpenJPA provides a ClassTransformer (actually the same agent that you mentioned before). So if you're using @PersistenceContext or @PersistenceUnit you should get enhancement for free in a JEE environment. If you create the EntityManagerFactory yourself through javax.persistence.Persistence then you'll have to do your own enhancement. Of course doing the enhancement yourself like Rick mentioned never hurts. I have no real experience with Glassfish either, there might be something you need to do to install a third party provider (non EclipseLink / Toplink). It might be worth posting on the Glassfish email lists and see if anyone else has had similar experiences. Hope this helps, -mike On Tue, Aug 18, 2009 at 2:01 PM, Rick Curtis wrote: > > Another option would be to enhance your classes at build time. That would > ensure that you are running with enhanced Entities. > > -Rick > > http://openjpa.apache.org/entity-enhancement.html -- Checkout the Build > Time > Enhancement section. > -- > View this message in context: > http://n2.nabble.com/java.lang.StackOverflowError-Exception-after-enabling-cach-tp3458426p3467935.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. > --00032555ab1268d9c904716f424c--