Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts exception

 
Abhijeet Thacker
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody please help me I am fed up with this error.
initially my code was working properly and suddenly it start giving me this weird error. I am using struts 1.1 tomcat 5

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.NullPointerException
org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1596)
org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:541)
org.apache.struts.taglib.html.RewriteTag.doStartTag(RewriteTag.java:99)
org.apache.strutsel.taglib.html.ELRewriteTag.doStartTag(ELRewriteTag.java:291)
org.apache.jsp.index_jsp._jspx_meth_html_rewrite_0(index_jsp.java:102)
org.apache.jsp.index_jsp._jspService(index_jsp.java:66)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its something in your index.jsp


Have you tried looking in the work directory under tomcat?
/tomcat/work/Catalina/localhost/<your webapp>/org/apache/jsp/<relative path to your jsps>/index_jsp.java

or just search your file system for index_jsp.java (you may have a few of these but one should stick out as the one your looking for).

look in that file for line 66.

maybe you've already tried this... if not I might help.

-Tad
 
Abhijeet Thacker
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tad,
Thanks for reply. but I have tried the solution suggested by you but line suggested by error page aontains following code
if (_jspx_meth_bean_message_0(_jspx_page_context))
return;
can you give me any hint whats wrong with it??
I m new to struts
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.NullPointerException


please post your jsp.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic