• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NULL Pointer Exception.

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Samantha,

Can you post some part of the code and the entire Exception??
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic