tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cavan Morris" <cavan.mor...@worldnet.att.net>
Subject NullPointerException in org.apache.catalina.valves.ErrorDispatcherValve.status()
Date Thu, 31 Jan 2002 04:58:32 GMT
I tried to add acustom error page for http status 403 by putting the following in my web.xml
file.

<error-page>
   <error-code>403</error-code>
   <location>/assets/error403.jsp</location>
</error-page>

Unfortunatly when I hit a page with the wrong role I get the following in catalina.log
2002-01-30 20:22:31 JDBCRealm[Standalone]: Username user does NOT have role admin
2002-01-30 20:22:31 HttpProcessor[8080][4] process.invoke
java.lang.NullPointerException
 at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:291)
 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Thread.java:484)

It appears that request.getWrapper() is returning null.  Any ideas?

Cavan Morris


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message