IBM Support

JavaServer Faces page fails when you pass a URL parameter

Troubleshooting


Problem

When you attempt to pass a URL parameter, a JavaServer Faces (JSF) page fails.

Symptom

When this issue occurs, you might see error messages that are similar to the following text in your log files:
0000002b lifecycle     E  
JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: "")
Exception thrown during phase execution:
javax.faces.event.PhaseEvent[source=
com.sun.faces.lifecycle.LifecycleImpl@6bd36bd3]

0000002b servlet      

E com.ibm.ws.webcontainer.servlet.ServletWrapper service
SRVE0068E: Uncaught exception created in one of
the service methods of the servlet Faces Servlet in
application application_name.
Exception created: javax.servlet.ServletException: viewId:/
updater.faces - View /updater.faces could not be restored.

Cause

The behavior of the RestoreView method has changed from the Sun Microsystems JavaServer Faces reference implementation Version 1.1 to 1.2.

Resolving The Problem

Add the following context parameter to your application:
<context-param>
    <param-name>com.sun.faces.enableRestoreView11Compatibility
    </param-name>
    <param-value>true
    </param-value>
</context-param>

Related Information

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Java SDK","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Java SDK","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
06 June 2019

UID

swg21318188