aspose file tools*
The moose likes Beginning Java and the fly likes how to tell if nullpointerexception is really a JDBC question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to tell if nullpointerexception is really a JDBC question" Watch "how to tell if nullpointerexception is really a JDBC question" New topic
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: 4419
    
    5

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to tell if nullpointerexception is really a JDBC question
 
Similar Threads
jdbc DRIVER for MS Sql
CMP EJB Creation with id generated by an independent class
MySQL
Can I use array of beans of length greater that 500 suppose?
JDBC-ODBC Bridge