IBM Support

PM65053: A DUPLICATEHOMENAMEEXCEPTION ERROR CAN OCCUR DURING APPLICATION RESTART IF A FAILURE OCCURS DURING APPLICATION STOP

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • During stop of an application, a NullPointerException may occur
    on calls to getEJBMetaData, similar to the following error...
    
    [5/8/12 18:20:00:056 IST] 00000039 RemoteExcepti E   CNTR0019E:
    EJB threw an unexpected (non-declared) exception during
    invocation of method "getEJBMetaData". Exception data:
    java.lang.NullPointerException
    at
    com.ibm.ejs.container.activator.UncachedActivationStrategy.atAct
    ivate(UncachedActivationStrategy.java:108)
    at
    com.ibm.ejs.container.activator.Activator.preInvokeActivateBean(
    Activator.java:614)
    at
    com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContaine
    r.java:4090)
    at
    com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:3
    375)
    
    
    This can result in a DuplicateHomeNameException when the
    application is restarted...
    
    [5/8/12 18:21:11:634 IST] 0000004e AbstractEJBRu E   CNTR0035E:
    EJB container caught
    com.ibm.ejs.container.DuplicateHomeNameException:
    Application_name#ibmtest.jar#Bean
    at
    com.ibm.ejs.container.HomeOfHomes.addHome(HomeOfHomes.java:224)
    at
    com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.addHome(Abstr
    actEJBRuntime.java:2279)
    at
    com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.startModule(A
    bstractEJBRuntime.java:775)
    at
    com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainer
    Impl.java:3569)
    at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Applicatio
    nMgrImpl.java:1160)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeploye
    dObjectStart(DeployedApplicationImpl.java:1369)
    at
    com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedMo
    duleImpl.java:638)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.start(Deplo
    yedApplicationImpl.java:967)
    at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
    (ApplicationMgrImpl.java:766)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server that use EJB applications.           *
    ****************************************************************
    * PROBLEM DESCRIPTION: A DuplicateHomeNameException occurs     *
    *                      during EJB application start if a       *
    *                      failure occurred during the prior       *
    *                      application stop.                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When a failure occurs while an EJB application is being
    stopped, this can leave the application in an inconsistent
    state and various errors may occur on subsequent attempts to
    use or start the application.
    For example, a NullPointerException may occur on calls to
    getEJBMetaData, similar to the following error:
    RemoteExcepti E   CNTR0019E:EJB threw an unexpected
    (non-declared) exception during invocation of method
    "getEJBMetaData". Exception data:
    java.lang.NullPointerException
    at
    com.ibm.ejs.container.activator.UncachedActivationStrategy.atA
    ctivate(UncachedActivationStrategy.java:108)
    at
    com.ibm.ejs.container.activator.Activator.preInvokeActivateBean(
    Activator.java:614)
    at
    com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContaine
    r.java:4090)
    at
    com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:3
    375)
    And a DuplicateHomeNameException when the application is
    restarted...
    [5/8/12 18:21:11:634 IST] 0000004e AbstractEJBRu E   CNTR0035E:
    EJB container caught
    com.ibm.ejs.container.DuplicateHomeNameException:
    Application_name#ibmtest.jar#Bean
    at
    com.ibm.ejs.container.HomeOfHomes.addHome(HomeOfHomes.java:224)
    at
    com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.addHome(Abstr
    actEJBRuntime.java:2279)
    at
    com.ibm.ws.ejbcontainer.runtime.AbstractEJBRuntime.startModule(A
    bstractEJBRuntime.java:775)
    at
    com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainer
    Impl.java:3569)
    at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Applicatio
    nMgrImpl.java:1160)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeploye
    dObjectStart(DeployedApplicationImpl.java:1369)
    at
    com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedMo
    duleImpl.java:638)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.start(Deplo
    yedApplicationImpl.java:967)
    at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
    (ApplicationMgrImpl.java:766)
    

Problem conclusion

  • The EJB container has been changed to correct the
    NullPointerException and allow the application to be
    successfully stopped. The DuplicateHomeNameException will not
    occur when the application is then started.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.5 and 8.5.0.1.  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

    PM65053

  • 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

    2012-05-21

  • Closed date

    2012-06-05

  • Last modified date

    2012-07-17

  • 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

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

Document Information

Modified date:
28 October 2021