Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 19871 invoked from network); 2 Jun 2006 21:43:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 21:43:29 -0000 Received: (qmail 41112 invoked by uid 500); 2 Jun 2006 21:43:28 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 40609 invoked by uid 500); 2 Jun 2006 21:43:26 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 40598 invoked by uid 99); 2 Jun 2006 21:43:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 14:43:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 14:43:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 03DC2714022 for ; Fri, 2 Jun 2006 21:42:31 +0000 (GMT) Message-ID: <9350968.1149284551013.JavaMail.jira@brutus> Date: Fri, 2 Jun 2006 21:42:31 +0000 (GMT+00:00) From: "David Jencks (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Closed: (GERONIMO-2077) Under load receiving Null Pointer Exceptions in CMPGetter In-Reply-To: <22446369.1149284070254.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-2077?page=all ] David Jencks closed GERONIMO-2077: ---------------------------------- Resolution: Fixed Fixed in openejb rev 2662. Moral of story: be sure to clean up pool entries BEFORE returning them to the pool, not after they have been checked out and put in use by another thread. As a warning to others, here's the change: --- src/java/org/openejb/entity/EntityInstanceContext.java (revision 2660) +++ src/java/org/openejb/entity/EntityInstanceContext.java (working copy) @@ -160,6 +160,8 @@ if (id != null) { ejbPassivate(); } + loaded = false; + setTransactionContext(null); if (pool != null) { pool.release(this); } } } catch (Throwable t) { // problem passivating instance - discard it and throw the problem (will cause rollback) if (pool != null) { pool.remove(this); } throw t; - } finally { - loaded = false; - setTransactionContext(null); } } > Under load receiving Null Pointer Exceptions in CMPGetter > --------------------------------------------------------- > > Key: GERONIMO-2077 > URL: http://issues.apache.org/jira/browse/GERONIMO-2077 > Project: Geronimo > Type: Bug > Security: public(Regular issues) > Reporter: Matt Hogstrom > Assignee: David Jencks > Priority: Blocker > Fix For: 1.1 > > When running DayTrader EJB primitives there are some periodic exceptions being thrown in CMPGetter. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira