IBM Support

PI12666: ILLEGALSTATEEXCEPTION: COMPONENT WITH DUPLICATE ID MESSAGE WHEN USING THE SHIPPED MYFACES 2.0

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Getting the IllegalStateException: component with duplicate id
    message when using WebSphere Application Server's shipped
    MyFaces 2.0.
    

Local fix

  • No work around
    
    this is resolved by MyFaces 2.1.13
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Full       *
    *                  Profile versions 8.0 and 8.5.5 and Liberty  *
    *                  Profile version 8.5.5 users of JavaServer   *
    *                  Faces(JSF) MyFaces.                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: A "java.lang.IllegalStateException:     *
    *                      component with duplicate id"            *
    *                      exception can occur when dynamically    *
    *                      creating components in JSF.             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    An IllegalStateException such as the following may be thrown
    when dynamically creating components:
    Error Rendering View[/action.xhtml]
    java.lang.IllegalStateException: component with duplicate
    id "dynamic_component_X" found
    at
    org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementS
    trategy.checkIds(DefaultFaceletsStateManagementStrategy.java:781
    )
    ...
    at
    org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementS
    trategy.saveView(DefaultFaceletsStateManagementStrategy.java:438
    )
    at
    org.apache.myfaces.application.jsp.JspStateManagerImpl.saveView(
    JspStateManagerImpl.java:447)
    at
    org.apache.myfaces.application.jsp.JspStateManagerImpl.getViewSt
    ate(JspStateManagerImpl.java:626)
    at
    org.apache.myfaces.context.servlet.PartialViewContextImpl.proces
    sPartialRendering(PartialViewContextImpl.java:462)
    at
    org.apache.myfaces.context.servlet.PartialViewContextImpl.proces
    sPartial(PartialViewContextImpl.java:363)
    

Problem conclusion

  • To allow components with dynamically created children to be
    correctly preserved, the following JSF context parameter needs
    to be set to "true":
    
    com.ibm.ws.jsf.fullyRestoreDynamicComponent (true / false -
    default)
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.10 and 8.5.5.4.  Please refer to the
    Recommended Updates page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI12666

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-02-27

  • Closed date

    2014-07-30

  • Last modified date

    2015-01-15

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022