File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts exception " Watch "struts exception " New topic
Author

struts exception

Abhijeet Thacker
Greenhorn

Joined: Jan 15, 2005
Posts: 16
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)


Always code as if person who is going to maintain your code is a maniac serial killer and knows where you live
Tad Dicks
Ranch Hand

Joined: Nov 16, 2004
Posts: 264
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

Joined: Jan 15, 2005
Posts: 16
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

Joined: Jul 04, 2003
Posts: 1312
java.lang.NullPointerException


please post your jsp.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts exception