File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes javalangnullpointerexception. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "javalangnullpointerexception." Watch "javalangnullpointerexception." New topic
Author

javalangnullpointerexception.

bobby reddy
Greenhorn

Joined: Nov 05, 2007
Posts: 27
Hello everyone,
my jsp program displays the error message: "java.lang.nullpointerexception".
could any one tell me know how to solve this error message and also how can we know to which field on the jsp this error message is reffering to?

Thanks,
bobby.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

This means that a reference in your code is null when you tried to use it.

Without further details, it's impossible to say any more.

Please read this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
bobby reddy
Greenhorn

Joined: Nov 05, 2007
Posts: 27
for example: if i have three fields- f1,f2 and f3.
how can we know for which field the code is null and i am using it.

bobby
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

I could have nothing at all to do with your fields. You should start by posting the stack trace from the error.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javalangnullpointerexception.
 
Similar Threads
Error Message
IE 7 Error on Page
Debugging in jsp
customize error message
Please advise how to catch runtimeException in servlet level.