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 33221] - [logging] null pointer exception in LogFactory.getLog
Date Sun, 30 Jan 2005 19:27:11 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=33221>.
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=33221





------- Additional Comments From apache@netdpb.net  2005-01-30 20:27 -------
Could this be because the docs for Class.getClassLoader() include:

"Returns the class loader for the class. Some implementations may use  null to represent the
bootstrap 
class loader. This method will return  null in such implementations if this class was loaded
by the 
bootstrap  class loader."

If Apple's JRE does return null, and commons-logging is in the system classpath (/Library/Java/
Extensions)...

The relevant snippet from 1.0.4 source (ultimate cause at LogFactoryImpl:374) is:

            logInterface = this.getClass().getClassLoader().loadClass
                (LOG_INTERFACE);

If getClassLoader() indeed returns null, as the API spec allows?...

-- 
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