wood burning stoves 2.0*
The moose likes Struts and the fly likes TagUtils. computeURLWithCharEncoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "TagUtils. computeURLWithCharEncoding" Watch "TagUtils. computeURLWithCharEncoding" New topic
Author

TagUtils. computeURLWithCharEncoding

Arul Jose
Ranch Hand

Joined: Jan 14, 2005
Posts: 131
Hi,

Have u faced with this problem before?

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NullPointerException
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:428)
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:311)
org.apache.struts.taglib.logic.RedirectTag.generateRedirectURL(RedirectTag.java:294)
org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:268)
org.apache.jsp.index_jsp._jspx_meth_logic_redirect_0(index_jsp.java:83)
org.apache.jsp.index_jsp._jspService(index_jsp.java:5Cool
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
Apache Tomcat/5.0.28
Arul Jose
Ranch Hand

Joined: Jan 14, 2005
Posts: 131
Previously there was an error in the struts-config.xml. now that has been corrected. now it seems like there is a problem in the web.xml. Im trying to trace it. i have given the source.
[ August 31, 2005: Message edited by: Arul Jose ]
Srinivasan Madhavan
Greenhorn

Joined: Sep 21, 2004
Posts: 10
Ensure that the lib directory under WEB-INF has the following jars:
commons-beanutils
commons-digester
commons-fileupload
commons-logging
commons-validator
jakarta-oro
struts

Refer:
http://struts.apache.org/userGuide/installation.html

Regards,
Srini
Maniganda Prakashh
Greenhorn

Joined: Oct 01, 2005
Posts: 9
Hey,
You have problem with your struts-config.xml.
Some XML tags might be improper.
For eg:

<action path="/login.do" type="UserClass">
<forward name="success" path="/menu.jsp"/>

In the above eg, I didn't close <action> tag, so it caused me the above said error.
 
 
subject: TagUtils. computeURLWithCharEncoding
 
Similar Threads
Throwing NullPoninterException
NullPointerException in struts
Module 'null' not found struts1.3.8+spring2.0
not able to run html:text tag of struts tld
what's the problem ?