Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NULL Pointer Exception.

 
Samantha O'Neil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On my servlet program I'm calling a file(given in HTML with herf action)whichgo to server and that server file pick up data from particular table(which determined previously) and show its data. But as I performed click on one line given with herf in herfHTML doc.it shows error of NULL Pointer Exception. Why It all this? Tell me where I'm wrong. tomcat server is in functioning.
 
Neeraj Dheer
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samantha,

Can you post some part of the code and the entire Exception??
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15482
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As with any exception: Look at the stack trace of the exception. It shows you exactly in which line of code in which source file the exception happened. Go to that place in your source code and think what could be null there.

More info: How to resolve a java.lang.NullPointerException
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic