tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amos Shapira <amos.shap...@webcollage.com>
Subject RE: Help me !
Date Tue, 11 Jul 2000 09:07:53 GMT
Hi,

Run this under a debugger (Tomcat is really easy to use under
JBuilder for instance, from my personal experience) and put a
breakpoint at that line.  Looks like you have a null pointer there.

Standard debugging practices....

--Amos Shapira
WebCollage

> -----Original Message-----
> From: Darren Lee Deliang [mailto:just_darren@hotmail.com]
> Sent: Tuesday, July 11, 2000 8:04 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Help me !
> 
> 
> I have this rather impossible error:
> 
> Internal Servlet Error:
> 
> javax.servlet.ServletException
> 	at 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:386)
> 	at 
> jsp.RetrainingWebApp._0002fjsp_0002fRetrainingWebApp_0002freco
> rds_0002ejsprecords_jsp_3._jspService(_0002fjsp_0002fRetrainin
gWebApp_0002frecords_0002ejsprecords_jsp_3.java:276)
> 	at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at 
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> (JspServlet.java:174)
> 	at 
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
.java:261)
> 	at 
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
pper.java:503)
> 	at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> 	at 
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpConnectionHandler.java:160)
> 	at 
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:338)
> 	at java.lang.Thread.run(Unknown Source)
> 
> Root cause:
> java.lang.NullPointerException
> 	at Retraining.StaffRecords.getRecords(StaffRecords.java:253)
> 	at 
> jsp.RetrainingWebApp._0002fjsp_0002fRetrainingWebApp_0002freco
> rds_0002ejsprecords_jsp_3._jspService(_0002fjsp_0002fRetrainin
gWebApp_0002frecords_0002ejsprecords_jsp_3.java:230)
> 	at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at 
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> (JspServlet.java:174)
> 	at 
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
.java:261)
> 	at 
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
pper.java:503)
> 	at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> 	at 
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpConnectionHandler.java:160)
> 	at 
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:338)
> 	at java.lang.Thread.run(Unknown Source)
> 
> and i believe it is the following line:
> 
> Statement st = con.createStatement();
> 
> that causes the error. (line 253) although i have no idea 
> why, the exact 
> codes work fine in another bean!
> 
> Can any1 help?
> 
> Darren
> 
> 
> >From: S.Zeeh@vpms.de
> >Reply-To: tomcat-user@jakarta.apache.org
> >To: tomcat-user@jakarta.apache.org
> >Subject: How to configure IIS 4.0 to work with Tomcat 3.2beta1
> >Date: Tue, 11 Jul 2000 10:39:45 +0200
> >
> >Hi,
> >
> >The isapi_redirect.dll worked on Tomcat 3.1 fine.
> >
> >Now I upgraded to Tomcat 3.2beta1 and
> >I did the same, like I did with Tomcat 3.1 (IIS-HowTo),
> >but I can't get it to work.
> >
> >The filter is marked with a red down-pointing arrow
> >(status: not loaded).
> >
> >What is different between 3.1 and 3.2beta1?
> >I think, I have to make any additional changes?
> >
> >Thanks,
> >
> >Stephan
> 
> ______________________________________________________________
> __________
> Get Your Private, Free E-mail from MSN Hotmail at 
> http://www.hotmail.com
> 

Mime
View raw message