commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34063] New: - [modeler] Null Pointer Exception - Non-Singleton Registry
Date Thu, 17 Mar 2005 21:18:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34063>.
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


Mime
View raw message