IBM Support

PH02212: APPLICATION WITH CDI 1.2 IN LIBERTY 18.0.0.2 FAIL TO START

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • WLP 18.0.0.2, their application use CDI 1.2. Its very
    sporadic
    
    but they see NPE when starting / restarting WLPs when
    launching
    
    a WAR file.
    
    
    
    Exception = org.jboss.weld.exceptions.DefinitionException
    
    Stack Dump = org.jboss.weld.exceptions.DefinitionException
    
    at
    
    org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fir
    ePro
    
    cessAnnotatedType(ContainerLifecycleEvents.java:182)
    
    at
    
    org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fir
    ePro
    
    cessAnnotatedType(ContainerLifecycleEvents.java:166)
    
    at
    
    org.jboss.weld.bootstrap.BeanDeployer.processAnnotatedTypes(
    Bean
    
    Deployer.java:156)
    
    at
    
    org.jboss.weld.bootstrap.BeanDeployment.createTypes(BeanDepl
    oyme
    
    nt.java:245)
    
    at
    
    org.jboss.weld.bootstrap.WeldStartup.startInitialization(Wel
    dSta
    
    rtup.java:407)
    
    at
    
    org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(W
    eldB
    
    ootstrap.java:76)
    
    at
    
    com.ibm.ws.cdi.impl.CDIContainerImpl$2.run(CDIContainerImpl.
    java
    
    :144)
    
    Caused by: java.lang.NullPointerException
    
    at
    
    java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHash
    Map.
    
    java:1022)
    
    at
    
    java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap
    .jav
    
    a:1017)
    
    at
    
    com.ibm.ws.microprofile.config.sources.SystemConfigSource.ge
    tPro
    
    perties(SystemConfigSource.java:43)
    
    at
    
    com.ibm.ws.microprofile.config.sources.SystemConfigSource.ge
    tPro
    
    perties(SystemConfigSource.java:28)
    
    at
    
    com.ibm.ws.microprofile.config.sources.InternalConfigSource.
    getV
    
    alue(InternalConfigSource.java:41)
    
    at
    
    org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(S
    tati
    
    cMethodInjectionPoint.java:88)
    

Local fix

  • Add Null Guard
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty mpConfig feature             *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException prevents           *
    *                      application from starting when mpConfig *
    *                      feature is enabled                      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the WebSphere Application Server Liberty mpConfig feature
    is enabled, applications may intermittently fail to start and
    the following exception will be seen:
    
    Caused by: java.lang.NullPointerException
    at
    java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.
    java:1022)
    at
    java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.jav
    a:1017)
    at
    com.ibm.ws.microprofile.config.sources.SystemConfigSource.getPro
    perties(SystemConfigSource.java:43)
    
    The SystemConfigSource class calls System.getProperties() and
    builds a map from the results.  If System.getProperties()
    returns a null property name, this triggers a
    NullPointerException when the null value is used as a key in a
    ConcurrentHashMap.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH02212

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-08-27

  • Closed date

    2018-12-06

  • Last modified date

    2018-12-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

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • R855 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 October 2021