IBM Support

PI26201: UNSUPPORTEDOPERATIONEXCEPTION WHEN USING APPLICATION SCOPE JSF BEAN WITH DEPENDENCY INJECTION VIA @MANAGEDPROPERTY & EAGER=TRUE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following UnsupportedOperationException is encountered when
    using an application scoped JSF bean, with dependency
    injection via @ManagedProperty and eager=true.  This issue is
    addressed by MYFACES-3116
    (https://issues.apache.org/jira/browse/MYFACES-3116 ).
    
    AbstractFaces E   An error occured while initializing MyFaces:
    This method is not supported during startup
    
    java.lang.UnsupportedOperationException: This method is not
    supported during startup
    at
    org.apache.myfaces.context.servlet.StartupServletExternalContext
    Impl.getRequestMap(StartupServletExternalContextImpl.java:149)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.getScope(ManagedBea
    nBuilder.java:540)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.getNarrowestScope(M
    anagedBeanBuilder.java:462)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.isInValidScope(Mana
    gedBeanBuilder.java:433)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.initializePropertie
    s(ManagedBeanBuilder.java:322)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(Ma
    nagedBeanBuilder.java:169)
    at
    org.apache.myfaces.webapp.AbstractFacesInitializer._createEagerB
    eans(AbstractFacesInitializer.java:235)
    at
    org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(Abs
    tractFacesInitializer.java:152)
    ..........
    

Local fix

  • N/A
    

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.UnsupportedOperationException *
    *                      will be encountered when initializing   *
    *                      an eager application-scoped JSF         *
    *                      ManagedBean.                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The following java.lang.UnsupportedOperationException will be
    encountered when initializing an eager application-scoped JSF
    bean which utilizes dependency injection via @ManagedProperty:
    AbstractFaces E   An error occured while initializing MyFaces:
    This method is not supported during startup
    java.lang.UnsupportedOperationException: This method is not
    supported during startup
    at
    org.apache.myfaces.context.servlet.StartupServletExternalContext
    Impl.getRequestMap(StartupServletExternalContextImpl.java:149)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.getScope(ManagedBea
    nBuilder.java:540)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.getNarrowestScope(M
    anagedBeanBuilder.java:462)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.isInValidScope(Mana
    gedBeanBuilder.java:433)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.initializePropertie
    s(ManagedBeanBuilder.java:322)
    at
    org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(Ma
    nagedBeanBuilder.java:169)
    at
    org.apache.myfaces.webapp.AbstractFacesInitializer._createEagerB
    eans(AbstractFacesInitializer.java:235)
    at
    org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(Abs
    tractFacesInitializer.java:152)
    ..........
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI26201

  • 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-09-22

  • Closed date

    2014-10-14

  • Last modified date

    2015-01-16

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

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

    PI32156 PI32159 PI32405

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