IBM Support

PI38899: JAVA.LANG.NULLPOINTEREXCEPTION MIGHT OCCUR WHEN THE DEPLOYED J2EE APPLICATION WITH CDI ANNOTATIONS IS STOPPED.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Under some conditions you can observe NPE in WebSphere FFDC
    logs when you stop the J2EE application with CDI annotations
    deployed in WebSphere, such as:
    ------------------------------
    [15/01/21 14:13:53:011 JST]     FFDC
    Exception:java.lang.NullPointerException
    SourceId:org.apache.webbeans.ejb.WSEJBInterceptor.preDestroy()
    ProbeId:52
    Reporter:org.apache.webbeans.ejb.WSEJBInterceptor@20585ac6
    java.lang.NullPointerException
     at
    org.apache.webbeans.ejb.common.interceptor.OpenWebBeansEjbInterc
    eptor.preDestroy(OpenWebBeansEjbInterceptor.java:343)
     at sun.reflect.GeneratedMethodAccessor1194.invoke(Unknown
    Source)
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:55)
     at java.lang.reflect.Method.invoke(Method.java:619)
     at
    com.ibm.ejs.container.interceptors.InterceptorProxy.invokeInterc
    eptor(InterceptorProxy.java:227)
     at
    com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed
    (InvocationContextImpl.java:548)
     at
    org.apache.webbeans.ejb.WSEJBInterceptor.preDestroy(WSEJBInterce
    ptor.java:76)
     at sun.reflect.GeneratedMethodAccessor1193.invoke(Unknown
    Source)
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:55)
     at java.lang.reflect.Method.invoke(Method.java:619)
     at
    com.ibm.ejs.container.interceptors.InterceptorProxy.invokeInterc
    eptor(InterceptorProxy.java:227)
     at
    com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed
    (InvocationContextImpl.java:548)
     at
    com.ibm.ejs.container.interceptors.InvocationContextImpl.doLifeC
    ycle(InvocationContextImpl.java:273)
     at
    com.ibm.ejs.container.MessageDrivenBeanO.destroy(MessageDrivenBe
    anO.java:782)
     at com.ibm.ejs.container.EJSHome.discard(EJSHome.java:3745)
     at
    com.ibm.ws.ejbcontainer.util.PoolImplThreadSafe.completeDrain(Po
    olImplThreadSafe.java:317)
     at
    com.ibm.ws.ejbcontainer.util.PoolImplBase.destroy(PoolImplBase.j
    ava:89)
     at com.ibm.ejs.container.EJSHome.destroy(EJSHome.java:943)
     at
    com.ibm.ejs.container.EJSContainer.uninstallBean(EJSContainer.ja
    va:1412)
     at
    com.ibm.ejs.container.EJSContainer.stopBean(EJSContainer.java:13
    29)
     at
    com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.stopBean(Abst
    ractEJBRuntime.java:1728)
     at
    com.ibm.ws.ejbcontainer.runtime.SharedEJBRuntimeImpl.stopBean(Sh
    aredEJBRuntimeImpl.java:423)
     at
    com.ibm.ws.runtime.component.WASEJBRuntimeImpl.stopBean(WASEJBRu
    ntimeImpl.java:646)
     at
    com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.uninstall(Abs
    tractEJBRuntime.java:891)
     at
    com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.stopModule(Ab
    stractEJBRuntime.java:823)
     at
    com.ibm.ws.ejbcontainer.runtime.SharedEJBRuntimeImpl.stopModule(
    SharedEJBRuntimeImpl.java:392)
     at
    com.ibm.ws.runtime.component.WASEJBRuntimeImpl.stopModule(WASEJB
    RuntimeImpl.java:1643)
     at
    com.ibm.ws.runtime.component.EJBContainerImpl.stop(EJBContainerI
    mpl.java:3594)
     at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.stop(Application
    MgrImpl.java:1218)
     at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeploye
    dObjectStop(DeployedApplicationImpl.java:1375)
     at
    com.ibm.ws.runtime.component.DeployedModuleImpl.stop(DeployedMod
    uleImpl.java:671)
     at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.stop(Deploy
    edApplicationImpl.java:1149)
     at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.stopApplication(
    ApplicationMgrImpl.java:952)
     at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.stopApplicationI
    mpl(ApplicationMgrImpl.java:1488)
     at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.stop(Application
    MgrImpl.java:2249)
     at
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl.stop(Composi
    tionUnitMgrImpl.java:503)
     at
    com.ibm.ws.runtime.component.CompositionUnitImpl.stop(Compositio
    nUnitImpl.java:141)
     at
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl$2.run(Compos
    itionUnitMgrImpl.java:806)
        ...
    
    This problem was reported by our customers in WebSphere
    V8.5.5.2 release.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using Contexts and Dependency        *
    *                  Injection (CDI)                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: When an application is shutting down    *
    *                      harmless null pointer exceptions may    *
    *                      occur                                   *
    ****************************************************************
    * RECOMMENDATION:  Ignore the exceptions                       *
    ****************************************************************
    Harmless NullPointerExceptions coming from
    OpenWebBeansEjbInterceptor.preDestroy when an application
    shuts down.
    The exception only occurs during shutdown and is not causing
    problems
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI38899

  • 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

    2015-04-10

  • Closed date

    2015-08-12

  • Last modified date

    2015-08-12

  • 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

  • R700 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:
27 April 2022