Re: DBCP Configuration with Tomcat 4.1.27 and mySQL

From: Jared Dykstra (dyksjare_at_hotmail.com)
Date: 12/30/03


Date: 29 Dec 2003 21:23:58 -0800

webmaster@sanjamar.com (Tom Martin) wrote in message news:<1e5c5944.0312291224.66e34aa@posting.google.com>...
> I'm a Java Web developer NEWBIE that has inherited a website that
> fails every 2 hours due to poor connection pooling between Tomcat
> 4.0.6 and mySQL. In efforts to resolve this problem, I've created
> another replica DEVELOPMENT website and upgraded it to Tomcat 4.1.27.

Well, tomcat is telling you where the program fails:
java.lang.NullPointerException
 at jsp.sanjamar.test.CatMan.SelectSubCategories(CatMan.java:110)
 at jsp.sanjamar.test.CatMan.ListSubCategories(CatMan.java:54)

Unfortunately, from your previous post, I have no idea what line 110
of CatMan.java is, nor do I know which line corresponds to #54. Some
operation is being performed on a NULL object. Look at these two
lines and the problem will probably become obvious. It's likely a
logic problem, not a server configuration issue.

---
Jared Dykstra
http://www.bork.org/~jared


Relevant Pages

  • DBCP Configuration with Tomcat 4.1.27 and mySQL
    ... I'm a Java Web developer NEWBIE that has inherited a website that ... another replica DEVELOPMENT website and upgraded it to Tomcat 4.1.27. ... I was told this version of Tomcat supports Database Connection Pooling ...
    (comp.lang.java)
  • Re: which s/w tools should i use?
    ... I use Netbeans for Java website programming. ... generally HTML tags in JSP), can directly go from JSP to generated servlet, integrated out of the box with Tomcat, auto generates configuration files, deploys, integrated with CVS, auto starts Tomcat and allows breakpoints in JSP or servlets. ... I never was able to get all this in Eclipse, through I tried little bit with Eclipse Tomcat plugins. ...
    (comp.lang.java.softwaretools)
  • Re: Virtual hosting with tomcat
    ... > one website will serve static web pages while other will use Java and ... > I wish static webpages website will server through port 80 while other ... > How can i do the Virtual hosting with Tomcat 5.5.7. ... Apache is THE http server and you prefer a JSP/Servlet engine to serve ...
    (comp.lang.java.programmer)
  • Re: Virtual hosting with tomcat
    ... > one website will serve static web pages while other will use Java and ... > I wish static webpages website will server through port 80 while other ... > How can i do the Virtual hosting with Tomcat 5.5.7. ... Apache is THE http server and you prefer a JSP/Servlet engine to serve ...
    (comp.lang.java.help)
  • Re: Web-based network information
    ... there was a website that I found awhile back ... it's a java applet that's running on your local machine ... > translated into a servlet at compile time, ... you need the J2EE or tomcat to use those methods. ...
    (alt.2600)