| Author |
how to tell if nullpointerexception is really a JDBC question
|
Barbara Norway
Ranch Hand
Joined: Sep 30, 2003
Posts: 150
|
|
Hi, 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.
|
farmkitty
|
 |
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
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.
|
[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
|
 |
Junilu Lacar
Bartender
Joined: Feb 26, 2001
Posts: 4118
|
|
|
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.
|
Junilu - [How to Ask Questions] [How to Answer Questions] [MiH]
|
 |
 |
|
|
subject: how to tell if nullpointerexception is really a JDBC question
|
|
|