You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hermann X Lau <he...@jpmchase.com> on 2009/04/28 17:37:33 UTC

'Parameter name == null' exception

I am receiving this exception in SystemOut.log from my struts portlet.  Can anyone explain this to me?

[4/28/09 11:15:54:459 EDT] 0000005d WpRequestProc E com.ibm.portal.struts.portlet.WpRequestProcessor processException Root cause: java.lang.IllegalArgumentException: Parameter name == null
  at com.ibm.ws.portletcontainer.core.impl.PortletRequestImpl.getParameterValues(PortletRequestImpl.java:546)
  at javax.portlet.filter.PortletRequestWrapper.getParameterValues(PortletRequestWrapper.java:134)
  at com.ibm.wps.struts.pluto.base.WpsStrutsPortletRequestWrapper.getParameterValues(WpsStrutsPortletRequestWrapper.java:224)
....
[4/28/09 11:15:54:480 EDT] 0000005d ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /welcomeForward.jsp. Exception throw
n : javax.servlet.ServletException: Exception forwarding for name welcomeDispatch: javax.servlet.ServletException: Parameter name == null
        at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:660)
        at com.ibm._jsp._welcomeForward._jspService(_welcomeForward.java:99)
        at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)

Here is my struts-config:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>

      <!-- Data Sources -->
      <data-sources>
      </data-sources>

      <!-- Form Beans -->
      <form-beans>
            <form-bean name="manageFormBean"
                  type="com.chase.adf.myreports.forms.ManageFormBean">
            </form-bean>
            <form-bean name="viewFormBean" type="com.chase.adf.myreports.forms.ViewFormBean">
            </form-bean>
      </form-beans>

      <!-- Global Exceptions -->
      <global-exceptions>
      </global-exceptions>

      <!-- Global Forwards -->
      <global-forwards>
            <forward name="welcomeDispatch" path="/welcomeDispatch.do" />
            <forward name="reports" path="/reports.jsp" />
      </global-forwards>

      <!-- Action Mappings -->
      <action-mappings>
            <action path="/getReportsView"
                  type="com.chase.adf.myreports.actions.GetReportsViewAction" name="viewFormBean"
                  scope="session">
                  <forward contextRelative="false" name="failure" path="/failure.jsp">
                  </forward>
                  <forward contextRelative="false" name="success" path="/reports.jsp">
                  </forward>
            </action>
            <action path="/saveFavorites"
                  type="com.chase.adf.myreports.actions.SaveFavoritesAction" name="manageFormBean"
                  scope="request">
                  <forward contextRelative="false" name="failure" path="/failure.jsp">
                  </forward>
                  <forward contextRelative="false" name="success" path="/messages.jsp">
                  </forward>
            </action>
            <action path="/getReportsManage"
                  type="com.chase.adf.myreports.actions.GetReportsManageAction" name="manageFormBean"
                  scope="request">
                  <forward contextRelative="false" name="success" path="/manage.jsp">
                  </forward>
                  <forward contextRelative="false" name="failure" path="/failure.jsp">
                  </forward>
            </action>
            <action path="/welcomeDispatch"
                  type="com.chase.adf.myreports.actions.WelcomeDispatchAction">
                  <forward contextRelative="false" name="failure" path="/failure.jsp">
                  </forward>
                  <forward contextRelative="false" name="manage" path="/getReportsManage.do">
                  </forward>
                  <forward contextRelative="false" name="view" path="/getReportsView.do">
                  </forward>
                  <forward contextRelative="false" name="public" path="/getReportsView.do">
                  </forward>
            </action>
      </action-mappings>
      <!--Controller-->
      <controller processorClass="com.ibm.portal.struts.portlet.WpRequestProcessor">
      </controller>

      <!-- Message Resources -->
      <message-resources parameter="ApplicationResources" />

</struts-config>


welcomeForward.jsp:
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portletAPI" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%>

<portletAPI:defineObjects />
<logic:forward name="welcomeDispatch"/>




This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to European legal entities.