IBM Support

PM43978: WHEN USING JSF 2.0 CUSTOM COMPONENT DATE VALUES ARE NOT CONVERTED CORRECTLY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using a JavaServer Faces (JSF) 2.0 custom compenent, the
    following exception is encountered:
    
    0000002d webapp        I
    com.ibm.ws.webcontainer.webapp.WebApp log SRVE0296E:
    [catalogWeb_war#catalogWeb.war][/catalog][Servlet.LOG]:./resourc
    es/components/inputDate.xhtml at line 21 and column 57
    value="#{cc.attrs.dateValue}": Cannot convert 3/8/10 6:00 PM of
    type class java.util.Date to class
    org.apache.openjpa.util.java$util$Date$proxy:.javax.el.ELExcepti
    on: /resources/components/inputDate.xhtml at line 21 and column
    57 value="#{cc.attrs.dateValue}": Cannot convert 3/8/10 6:00 PM
    of type class java.util.Date to class
    org.apache.openjpa.util.java$util$Date$proxy
    at
    org.apache.myfaces.view.facelets.el.TagValueExpression.setValue(
    TagValueExpression.java:129)
    at
    org.apache.myfaces.view.facelets.el.LocationValueExpression.setV
    alue(LocationValueExpression.java:120)
    at javax.faces.component.UIInput.updateModel(UIInput.java:380)
    at
    javax.faces.component.UIInput.processUpdates(UIInput.java:299)
    at
    javax.faces.component.UIComponentBase.processUpdates(UIComponent
    Base.java:1258)
    at
    javax.faces.component.UIComponentBase.processUpdates(UIComponent
    Base.java:1258)
    at
    javax.faces.component.UIComponentBase.processUpdates(UIComponent
    Base.java:1258)
    at javax.faces.component.UIForm.processUpdates(UIForm.java:187)
    ....
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Version    *
    *                  8.0 users of the MyFaces implementation of  *
    *                  JavaServer Faces (JSF) 2.0.                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: An error can occur when using a         *
    *                      MyFaces 2.0 Composite Component.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The error that can occur will look similar to the following:
    Cannot convert <object1> of type class <type1> to class
    <type2>, where <type1> and <type2> can be any Class depending
    on what is being stored in the Composite Component.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM43978

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-07-19

  • Closed date

    2012-01-06

  • Last modified date

    2012-01-06

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 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.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 October 2021