aspose file tools
The moose likes JSP and the fly likes javalangnullpointerexception. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 56224
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56224
    
  13

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
Please advise how to catch runtimeException in servlet level.
Debugging in jsp
Error Message
customize error message
IE 7 Error on Page