• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error: JspCompile runtime

 
raju sangam
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I am working on webapplication using IDE (RAD6.0).
When I publish the project, its show error(mention below)

JspCompile runtime: java.lang.NullPointerException.

Can anybody resolve this issue would be great.

Thanks,
Sangam
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It must be showing you the line no., the method and the class where it occurs.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be really helpful if you can paste the complete stack trace.
 
sathish kannan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error is because you operate methods on Null objects without instantiating. The null could be of various reason:

1. You may be passing some objects through Request/Session to jsp and trying to operate on that without checking for null value.
2. Without instantiating an object in the JSP you may try to operate on that.

So better give more debug statements and execute the jsp. It is highly recommended that you check for not null on java objects before executing any methods on it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!