You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Richard Sitze <rs...@us.ibm.com> on 2002/09/18 18:21:52 UTC
Re: discovery error
This does not appear to be a discovery error.
That said, there are a few NPE exception in commons-logging 1.0.1. And
these were fixed. Please a recent nightly build and see if that corrects
this problem.
*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development
Hi all,
I'using the last discovery release.
I have the following error :
Sep 18 17:03:47 2002: java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java, Compiled Code)
at
org.apache.commons.logging.LogFactory.getCachedFactory(LogFactory.java,
Compiled Code)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java,
Compiled Code)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java,
Compiled Code)
at com.accor.util.logger.LogFactory.getLog(Unknown Source)
my LogFactory class
package com.accor.util.logger;
import org.apache.commons.discovery.tools.DiscoverSingleton;
import org.apache.commons.logging.Log;
/**
* @author Olivier lamy
*/
public class LogFactory {
/**
* permet de retrouver le logger dans le context
*/
private static final org.apache.commons.logging.LogFactory logFactory
=
(org.apache.commons.logging.LogFactory)
DiscoverSingleton.find(org.apache.commons.logging.LogFactory.class,
org.apache.commons.logging.LogFactory.FACTORY_PROPERTIES,
org.apache.commons.logging.LogFactory.FACTORY_DEFAULT);
public static Log getLog(String name) {
return logFactory.getLog(name);
}
}
--
To unsubscribe, e-mail: <
mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <
mailto:commons-dev-help@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>