how to tell if nullpointerexception is really a JDBC question
Joined: Sep 30, 2003
The sheriff moved my question (Another null pointer exception) to the JDBC forum but, as a real newbie, how can I tell that's what is causing the problem? When I get an Oracle error (e.g. ORA-xxxx: Unexpected end to SQL statement , etc. I can tell; but in this case?
Please let me know how I can determine this. I wasn't really looking for someone to debug my code for me but, rather, give me a tip or clue about where to start looking. Thanks.
Joined: Dec 10, 2001
You still haven't posted any example code to demonstrate your problem, so I'm partially guessing about things.
From your posts in that thread, your questions seemed to center on inserting a null reference into a database (as a number), and then wondering if that would cause a NullPointerException. So, it seemed that the thread was JDBC-specific.
Looking through the stacktrace in your other post, would you happen to have a JSP called display.jsp in your app? If you do, then there's probably something in there where you're trying to display a numeric value (possibly also formatting it) and you don't have a valid number.