Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 16132 invoked from network); 17 Mar 2005 21:18:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Mar 2005 21:18:54 -0000 Received: (qmail 22955 invoked by uid 500); 17 Mar 2005 21:18:51 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 22844 invoked by uid 500); 17 Mar 2005 21:18:50 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 22784 invoked by uid 99); 17 Mar 2005 21:18:50 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 17 Mar 2005 13:18:48 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j2HLIjcs024714 for ; Thu, 17 Mar 2005 22:18:45 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id j2HLIjLD024711; Thu, 17 Mar 2005 22:18:45 +0100 Date: Thu, 17 Mar 2005 22:18:45 +0100 Message-Id: <200503172118.j2HLIjLD024711@ajax.apache.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 34063] New: - [modeler] Null Pointer Exception - Non-Singleton Registry X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34063 Summary: [modeler] Null Pointer Exception - Non-Singleton Registry Product: Commons Version: unspecified Platform: Other URL: http://cvs.apache.org/viewcvs.cgi/jakarta- commons/modeler/src/java/org/apache/commons/modeler/Regi stry.java?annotate=HEAD OS/Version: other Status: NEW Severity: blocker Priority: P2 Component: Modeler AssignedTo: commons-dev@jakarta.apache.org ReportedBy: mstanley@mstanley.net There are many instance methods in the Registry class that still refer to the static singleton registry instance (registerComponent, findManagedBean, etc). This will end up causing a Null Pointer exception in applications that never instantiate the singleton instance (through getRegistry). In containers that mix singleton and non-signleton instances, the behavior would be unexpected. I'm using the latest release, but from the looks of the HEAD in CVS this problem still exists (line 816 for example). It should be a pretty straight forward fix - search for the static registry references, and if it's an instance method, replace 'registry' with 'this' keyword. Since the Singleton Registry is deprecated (and for good reason ;-), this should be considered a high priority issue. Thanks. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org