struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <j...@apache.org>
Subject [jira] Closed: (STR-3135) TagUtils java.lang.NullPointerException org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:446)
Date Wed, 17 Dec 2008 03:46:37 GMT

     [ https://issues.apache.org/struts/browse/STR-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul Benedict closed STR-3135.
------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: Pending Review)

This issue cannot be reproduced. We can reopen this ticket if the reporter follows-up and
says it is still a problem with 1.3.10.

> TagUtils java.lang.NullPointerException org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:446)
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: STR-3135
>                 URL: https://issues.apache.org/struts/browse/STR-3135
>             Project: Struts 1
>          Issue Type: Bug
>    Affects Versions: 1.3.8
>         Environment: Tomcat 5.5.25 as App server and Struts 1.3.8 OS: Windows XP
>            Reporter: premkumar
>
> Hi 
> Am trying to create a sample app using the Tomcat 5.5.25 as App server and Struts 1.3.8.
> While am accessing the index.jsp file, am getting the error: (Html taglib in index.jsp
causes the issue : <html:link forward="search">Search an Employe</html:link>)

> root cause 
> java.lang.NullPointerException
> 	org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:446)
> 	org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:329)
> 	org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:475)
> 	org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:334)
> 	org.apache.jsp.index_jsp._jspx_meth_html_005flink_005f0(index_jsp.java:94)
> 	org.apache.jsp.index_jsp._jspService(index_jsp.java:66)
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> Even I had added the all the libs in the Struts1.3.8/lib folder to the WB-INF lib folder
and Classpath of my machine.
> Here my Web.xml:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <web-app>
>     <servlet>
>         <servlet-name>action</servlet-name>
>         <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>         <init-param>
>         <param-name>config</param-name>
>         <param-value>/WEB-INF/struts-config.xml</param-value>
>         <load-on-startup>1</load-on-startup>
>         </init-param>
>     </servlet>
>     
>     <servlet-mapping>
>         <servlet-name>action</servlet-name>
>         <url-pattern>*.do</url-pattern>
>     </servlet-mapping>
>     
>     <welcome-file-list>
>     <welcome-file>/index.jsp</welcome-file>
>    </welcome-file-list>  
> </web-app>
> ---------------------------
> Struts-config.xml
> <?xml version="1.0"?>
> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration
1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd">
> <struts-config>
>  <form-beans>
>     <form-bean name="searchForm" type="com.hr.SearchForm"/>
>  </form-beans>
>  <global-forwards>
>   <forward name="search" path="/search.jsp"/>
>  </global-forwards>
>  <action-mappings>
>     <action path="/search" 
>     	    type="com.hr.SearchAction" 
>     	    name="searchForm" 
>     	    scope="request" 
>     	    input="/search.jsp" 
>     	    validate="true"> 
>     </action>
>  </action-mappings>
>  
>  <message-resources parameter="com.hr.MessageResources"/>
> </struts-config>
> ---------------
> following are the jars included in the lib folder of WEB-INF and classpath
> servlet-api.jar
> antlr-2.7.2.jar
> bsf-2.3.0.jar 
> commons-beanutils-1.7.0.jar
> commons-chain-1.1.jar
> commons-digester-1.8.jar
> commons-fileupload-1.1.1.jar
> commons-io-1.1.jar
> commons-logging-1.0.4.jar
> commons-validator-1.3.1.jar 
> oro-2.0.8.jar 
> struts-core-1.3.8.jar 
> struts-el-1.3.8.jar 
> struts-extras-1.3.8.jar
> struts-faces-1.3.8.jar 
> struts-scripting-1.3.8.jar
> struts-taglib-1.3.8.jar 
> struts-tiles-1.3.8.jar
> jstl-1.0.2.jar
> standard-1.0.2.jar
> struts-mailreader-dao-1.3.8.jar
> Please reply me if any changes to be made in action mapping / setting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message