dcsimg
java.lang.ClassCastException - Plz explain y
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sangeetha_Rao
Posted On:   Friday, July 29, 2005 10:17 AM

I have a class called MyApp. It has this line: private final static MyLogger logger =(MyLogger) MyLogger.getLogger(MyApp.class.getName()); MyLogger extends Logger.It has getLogger method that returns Logger object based on the loggerFactory. Now in the properties file if I have this line: "log4j.logger.LoggerPkg.MyApp=debug, A1" it shows the exception java.lang.ClassCastException on the previously mentioned line. If I have only the rootLogger in the properties file, I dont get this Exception. Can anybody say y ?? Seetha can u ??

About | Sitemap | Contact