wood burning stoves 2.0*
The moose likes JSP and the fly likes Null Pointer Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Null Pointer Exception" Watch "Null Pointer Exception" New topic
Author

Null Pointer Exception

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Why do i normally get a Null Pointer Exception while working with JSps. The JSP contains a code to save a string into a file
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

An NPE is caused by de-referencing a null reference. Without more details, that's about all that can be said.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Originally posted by Abiodun Oyesiji:
Why do i normally get a Null Pointer Exception while working with JSps. The JSP contains a code to save a string into a file


If you post your code, its easier to answer your query.
 
Don't get me started about those stupid light bulbs.
 
subject: Null Pointer Exception