is
causing the problem and should lead you to the bug.
Jim
-Original Message-
From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 8:52 AM
To: Tomcat Users List
Subject: RE: Problem with Tomcat or Servlet?
okay, here is the part that builds
Since Tomcat knows nothing about MySQL (or your database in
particular), I would be willing to be that you have a problem in your code.
You probably want to look at the line where the NullPointer is being thrown.
A random guess - you only create your Connection or Statement
Sounds like a servlet problem. To determine the cause of your problem we
will need to see the servlet source code (at least the part that builds the
list).
Jim
-Original Message-
From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 8:28 AM
To: Tomcat Users
A random guess - you only create your Connection or Statement object
when you create a new record and not for select.
Another guess...
Do you have fields in your table(s) which allow nulls? If so, the result
set will return a null when you get the contents of one of these fields and
the
okay, here is the part that builds the list:
//My Query to get all records from my table
r = s.executeQuery(SELECT * FROM fahrzeuge ORDER BY kaufdatum);
//a loop to parse the content of my records in my htmlpage
//chtml is my htmlpage as a String
//helpers.StrTran is a method to replace my
Well, i don't get any linenumbers where the problem occurs...
No, my Connection is correct, i made this in several servlet and i don't
have any problems with them.
Since Tomcat knows nothing about MySQL (or your database in
particular), I would be willing to be that you have a problem in your
No, i don't allow any nulls in my fields.
Stephan
At 08:43 01.03.2002 -0600, you wrote:
A random guess - you only create your Connection or Statement object
when you create a new record and not for select.
Another guess...
Do you have fields in your table(s) which allow nulls? If
what line is
causing the problem and should lead you to the bug.
Jim
-Original Message-
From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 8:52 AM
To: Tomcat Users List
Subject: RE: Problem with Tomcat or Servlet?
okay, here is the part that builds the list