tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Claver <kcla...@yahoo.com>
Subject Re: error-page for http 500 error code does not work
Date Fri, 03 Jun 2011 13:43:17 GMT
Thanks for the quick reply!=0A=0AI zipped the tomcat install and deployed i=
t to my Win 7 machine where it works without issue.=0A=0AWhen the custom er=
ror servlet fails to display, I get the stock tomcat http 500 error page.=
=0A=0AIf I look at the access log, I see the 500 error:=0A=0A192.168.xxx.xx=
x - - [02/Jun/2011:13:53:14 -0600] "POST /HMAApp/faces/main/TaskSearchTab.j=
sp HTTP/1.0" 500 1000=0A=0AI also see the com.sun.rave.web.ui.appbase.Appli=
cationException and java.lang.NullPointerException in the localhost log fil=
e (both of which are set to display the custom error page in the applicatio=
n specific web.xml):=0A=0AJun 2, 2011 1:53:14 PM org.apache.catalina.core.S=
tandardWrapperValve invoke=0ASEVERE: Servlet.service() for servlet Faces Se=
rvlet threw exception=0Acom.sun.rave.web.ui.appbase.ApplicationException=0A=
=A0=A0=A0=A0=A0=A0=A0 at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.=
cleanup(ViewHandlerImpl.java:559)=0A=A0=A0=A0=A0=A0=A0=A0 at com.sun.rave.w=
eb.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:276)=0A=
=A0=A0=A0=A0=A0=A0=A0 at com.sun.faces.lifecycle.RenderResponsePhase.execut=
e(RenderResponsePhase.java:107)=0A=A0=A0=A0=A0=A0=A0=A0 at com.sun.faces.li=
fecycle.LifecycleImpl.phase(LifecycleImpl.java:245)=0A=A0=A0=A0=A0=A0=A0=A0=
 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)=0A=
=A0=A0=A0=A0=A0=A0=A0 at javax.faces.webapp.FacesServlet.service(FacesServl=
et.java:214)=0A=A0=A0=A0=A0=A0=A0=A0 at org.apache.catalina.core.Applicatio=
nFilterChain.internalDoFilter(ApplicationFilterChain.java:269)=0A=A0=A0=A0=
=A0=A0=A0=A0 at org.apache.catalina.core.ApplicationFilterChain.doFilter(Ap=
plicationFilterChain.java:188)=0A=A0=A0=A0=A0=A0=A0=A0 at com.sun.rave.web.=
ui.util.UploadFilter.doFilter(UploadFilter.java:198)=0A=A0=A0=A0=A0=A0=A0=
=A0 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App=
licationFilterChain.java:215)=0A=A0=A0=A0=A0=A0=A0=A0 at org.apache.catalin=
a.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)=0A=
=A0=A0=A0=A0=A0=A0=A0 at org.apache.catalina.core.StandardWrapperValve.invo=
ke(StandardWrapperValve.java:213)=0A=A0=A0=A0=A0=A0=A0=A0 at org.apache.cat=
alina.core.StandardContextValve.invoke(StandardContextValve.java:172)=0A=A0=
=A0=A0=A0=A0=A0=A0 at org.apache.catalina.core.StandardHostValve.invoke(Sta=
ndardHostValve.java:127)=0A=A0=A0=A0=A0=A0=A0=A0 at org.apache.catalina.val=
ves.ErrorReportValve.invoke(ErrorReportValve.java:117)=0A=A0=A0=A0=A0=A0=A0=
=A0 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java=
:581)=0A=A0=A0=A0=A0=A0=A0=A0 at org.apache.catalina.core.StandardEngineVal=
ve.invoke(StandardEngineValve.java:108)=0A=A0=A0=A0=A0=A0=A0=A0 at org.apac=
he.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)=0A=A0=
=A0=A0=A0=A0=A0=A0 at org.apache.coyote.http11.Http11Processor.process(Http=
11Processor.java:879)=0A=A0=A0=A0=A0=A0=A0=A0 at org.apache.coyote.http11.H=
ttp11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProto=
col.java:665)=0A=A0=A0=A0=A0=A0=A0=A0 at org.apache.tomcat.util.net.PoolTcp=
Endpoint.processSocket(PoolTcpEndpoint.java:528)=0A=A0=A0=A0=A0=A0=A0=A0 at=
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollower=
WorkerThread.java:81)=0A=A0=A0=A0=A0=A0=A0=A0 at org.apache.tomcat.util.thr=
eads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)=0A=A0=A0=A0=A0=A0=
=A0=A0 at java.lang.Thread.run(Thread.java:662)=0ACaused by: java.lang.Null=
PointerException=0A=A0=A0=A0=A0=A0=A0=A0 at hmaapp.utilmanagement.OPProcMai=
n.prerender(OPProcMain.java:2355)=0A=A0=A0=A0=A0=A0=A0=A0 at com.sun.rave.w=
eb.ui.appbase.faces.ViewHandlerImpl.prerender(ViewHandlerImpl.java:771)=0A=
=A0=A0=A0=A0=A0=A0=A0 at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.=
renderView(ViewHandlerImpl.java:268)=0A=A0=A0=A0=A0=A0=A0=A0 ... 22 more=0A=
=0A=0A=0A---------------------------------=0A=0A=0AOn 02/06/2011 21:45, Kev=
in Claver wrote:=0A> Two things I would like to note:=0A>=3D20=0A> 1.=A0 Wh=
en I invoke the Java HMAExceptionHandlerServlet configured to be =3D=0Aused=
 in the error-page block in the application specific web.xml directly=3D=0A=
=A0from the URL in the browser, it works.=0A>=3D20=0A> 2.=A0 Tomcat 5.5.33 =
does correctly redirect to the error-page when runnin=3D=0Ag on a Windows 7=
 machine.=A0 The only time I have an issue is on the Linux =3D=0Aconfigurat=
ion above.=0A=0AThe first things I'd check is whether there's something dif=
ferent about=0Ayour Tomcat installation on Linux.=0A=0AYou can ZIP the whol=
e Tomcat install (including the app(s), if they're=0Ain tomcat/webapps) and=
 transfer the file & unzip on your Linux install.=0A=A0Start it up & see if=
 the same thing happens.=0A=0A=0AAlso: what error do you see, when the cust=
om error servlet/page fails to=0Adisplay?=A0 Is it the same error as you ex=
pect or a different one?=0A=0A- if an NPE occurs in your app, do you see a =
500 + NPE stacktrace?=0A- or if a 500 occurs, do you see a 404?=0A=0A=0Ap=
=0A
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message