tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zeltser, Mark" <Mark.Zelt...@Cybic.com>
Subject Tomcat 3.2 Beta 4 ClassCastException when log methods are overwri tten
Date Thu, 14 Sep 2000 21:12:43 GMT
Hi All,

Tomcat 3.2Beta4, Windows NT 4, struts.

I am trying to overwrite log(String) and log( String, Exception )
methods in ActionServlet (from struts). I have an instance variable
(handle to log) which gets initialized in init() method. Proprietary
logging works as a standalone application. However, once integrated in
ActionServlet, tomcat throws the following exception:

java.lang.ClassCastException: java.lang.NullPointerException
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:354)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:749)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:207)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
	at java.lang.Thread.run(Thread.java:479)

If code that overwriting methods is removed everything works fine. Can
anyone explain what I am doing wrong?

Thanks, Mark.

Mime
View raw message