ParameterNotFoundException when accessing a custom
view
|
Technote
(troubleshooting)
Problem(Abstract)
|
You upgrade to WebSphere Commerce 6.0 where struts are
used for views and URLs. When you try to access a custom, view you receive
a ParameterNotFoundException.
|
Symptom
|
The migrated view would appear in the
struts-config-migrate.xml similar to the following:
<struts-config>
<global-forwards>
<forward name="MyMigratedView/10001" path="/MyMigratedView.jsp"
className="com.ibm.commerce.struts.ECActionForward">
<set-property property="resourceClassName"
value="com.abc.commands.view.MyMigratedViewCmdImpl"/>
<set-property property="implClassName"
value="com.abc.commands.view.MyMigratedViewCmdImpl" />
<set-property property="interfaceName"
value="com.abc.commands.view.MyMigratedViewCmd"/>
<set-property property="direct" value="true"/>
<set-property property="properties"
value="docname=/MyMigratedView.jsp"/>
</forward>
</global-forwards>
<action-mappings>
<action path="/MyMigratedView">
<set-property property="https" value="10001:0"/>
</action>
</action-mappings>
</struts-config>
Invoking the custom view results in an exception such as the following:
[01/27/08 20:39:48:703 EDT] 00000031 SystemErr R
com.ibm.commerce.exception.ParameterNotFoundException: The following error
has occurred during processing: {0}.
at
com.ibm.commerce.datatype.MapBasedTypedProperty.getString(MapBasedTypedProperty.java:191)
at
com.ibm.commerce.command.HttpForwardViewCommandImpl.performExecute(HttpForwardViewCommandImpl.java:224)
at
com.ibm.commerce.command.AbstractECCommand.execute(AbstractECCommand.java:247)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at
com.ibm.commerce.struts.ECDirectActionForward.getPath(ECDirectActionForward.java:225)
at com.ibm.commerce.struts.BaseAction.executeAction(BaseAction.java:777)
at com.ibm.commerce.struts.BaseAction.execute(BaseAction.java:161)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
com.ibm.commerce.struts.ECActionServlet.processRequest(ECActionServlet.java:189)
at
com.ibm.commerce.struts.ECActionServlet.doPost(ECActionServlet.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
|
Cause
|
The viewStoreId and docPathName properties are not passed
properly to the parent classes.
|
Resolving the
problem
|
The problem (APAR JR27726) is resolved in Fix Pack 6.0.0.2
or newer. You can obtain the Fix Pack or newer one from the Fixes
by version page.
|
|
|
Current web document: http://www.ibm.com/support/docview.wss?uid=swg21294879
|