Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

Null Pointer Exception error

 
Viral Patel
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi...

I am getting error of java.lang.NullPointerException.

Previously I used Tomcat 4.0 and my code is working fone...

but when I upgraded my tomcat 4.0 to tomcat 6.0 it gives me the error of java.lang.NullPointerException.

Please help me ....
it gives error of on line
int id = Integer.parseInt(cachedRS.getString("SerialNo"));

here is the code...

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65534
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Step one is to move the Java code out of the JSP and into a controller of bean class so that it follows best practices and is easier to debug.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35744
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing duplicate thread. Please only post a question in one forum.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!