IBM Support

PM15627: NullPointerException when an application contains an EJB class that resides outside of the EJB JAR file

Fixes are available

7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for AIX
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for HP-UX
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for IBM i
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Linux
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Solaris
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Windows
7.0.0.13: Java SDK 1.6 SR8FP1 Cumulative Fix for WebSphere Application Server
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for AIX
7.0.0.15: Java SDK 1.6 SR9 Cumulative Fix for WebSphere Application Server
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for HP-UX
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for IBM i
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Linux
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Solaris
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Windows
7.0.0.17: WebSphere Application Server V7.0 Fix Pack 17
7.0.0.17: Java SDK 1.6 SR9 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.19: WebSphere Application Server V7.0 Fix Pack 19
7.0.0.21: WebSphere Application Server V7.0 Fix Pack 21
7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Problem:
    
    Null pointer exception occurs when annotated EJB class resides
    outside of the EJB module JAR file and contains an @Remote
    annotationbut no @Local annotation.
    
    The logs will contain an exception similar to this:
    [5/27/10 17:08:06:098 CST] 00000016 EJBContainerI E   WSVR0040E:
    addEjbModule failed for ejb/component.jar [class
    com.ibm.ws.runtime.component.DeployedEJBModuleImpl]
    java.lang.NullPointerException
    at
    com.ibm.ws.metadata.ComponentDataObject.reflectLocal(ComponentDa
    taObject.java:1338)
    omponentDataObject.java:1101)
    at
    com.ibm.ws.metadata.ComponentDataObject.finishCDO(ComponentDataO
    bject.java:308)
    ainerImpl.java:2610)
    at
    com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainer
    Impl.java:3826)
    MgrImpl.java:1122)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeploye
    dObjectStart(DeployedApplicationImpl.java:1315)
    uleImpl.java:619)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.start(Deplo
    yedApplicationImpl.java:940)
    ApplicationMgrImpl.java:725)
    at
    com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(Applicatio
    nMgrImpl.java:1266)
    mpl.java:4575)
    at
    com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextM
    anagerImpl.java:4663)
    ext.java:255)
    at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
    Dynamically(ApplicationMgrImpl.java:1271)
    MgrImpl.java:2043)
    at
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Compos
    itionUnitMgrImpl.java:439)
    nUnitImpl.java:123)
    at
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Compos
    itionUnitMgrImpl.java:382)
    ionUnit(CompositionUnitMgrImpl.java:653)
    at
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startComposi
    tionUnit(CompositionUnitMgrImpl.java:615)
    ApplicationMgrImpl.java:1177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:48)
    ccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:48)
    ccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244)
    at
    javax.management.modelmbean.RequiredModelMBean.invokeMethod(Requ
    iredModelMBean.java:1086)
    elMBean.java:967)
    at
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Def
    aultMBeanServerInterceptor.java:848)
    :773)
    at
    com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.ja
    va:1320)
    at
    com.ibm.ws.security.util.AccessController.doPrivileged(AccessCon
    troller.java:118)
    va:1213)
    at
    com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.ex
    ecute(AdminServiceCommands.java:251)
    :239)
    at
    com.ibm.ws.console.appdeployment.ApplicationDeploymentCollection
    Action.execute(ApplicationDeploymentCollectionAction.java:564)
    known Source)
    at org.apache.struts.action.RequestProcessor.process(Unknown
    Source)
    at org.apache.struts.action.ActionServlet.process(Unknown
    Source)
    at org.apache.struts.action.ActionServlet.doPost(Unknown
    Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWr
    apper.java:1655)
    pper.java:1595)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebApp
    FilterChain.java:104)
    FilterChain.java:77)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebA
    ppFilterManager.java:895)
    letWrapper.java:932)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser
    vletWrapper.java:500)
    ServletWrapperImpl.java:178)
    at
    com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(W
    ebAppRequestDispatcher.java:341)
    e)
    at
    org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown
    Source)
    at
    org.apache.struts.action.RequestProcessor.processForwardConfig(U
    nknownSource)
    at
    org.apache.struts.tiles.TilesRequestProcessor.processForwardConf
    ig(Unkno
    wn
    er.processForwardConfig(InformationController.java:217)
    at org.apache.struts.action.RequestProcessor.process(Unknown
    Source)
    at org.apache.struts.action.ActionServlet.process(Unknown
    Source)
    at org.apache.struts.action.ActionServlet.doPost(Unknown
    Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWr
    apper.java:1655)
    pper.java:1595)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebApp
    FilterChain.java:131)
    ce(WSCUrlFilter.java:927)
    at
    com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTask
    State(WSCUrlFilter.java:494)
    r.java:315)
    at
    com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(Fi
    lterInstanceWrapper.java:188)
    ilterChain.java:116)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAp
    pFilterChain.java:77)
    pFilterManager.java:895)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser
    vletWrapper.java:932)
    letWrapper.java:500)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest
    (ServletWrapperImpl.java:178)
    810)
    at
    com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.j
    ava:276)
    at
    com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.
    java:931)
    er.java:1583)
    at
    com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLin
    k.java:183)
    mination(HttpInboundLink.java:455)
    at
    com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewIn
    formation(HttpInboundLink.java:384)
    (HttpICLReadCallback.java:83)
    at
    com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadComplet
    edCallback.complete(SSLReadServiceContext.java:1772)
    eted(AioReadCompletionListener.java:165)
    at
    com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyn
    cFuture.java:217)
    annelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at
    com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at
    com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHand
    ler.java:775)
    com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
    

Local fix

  • <NONE>
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V7.0 with EJB 3.0 beans via          *
    *                  annotations in classes outside of the EJB   *
    *                  JAR file that contain the @Remote           *
    *                  annotation with no @Local annotation        *
    ****************************************************************
    * PROBLEM DESCRIPTION: A NullPointerException can occur when   *
    *                      an application contains an EJB class    *
    *                      that resides outside of the EJB JAR     *
    *                      file.                                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If an EJB class resides outside of the EJB JAR file and that
    class file contains the @Remote annotation but does not
    contain the @Local annotation as well, a NullPointerException
    may occur during Application startup that will prevent the
    application from starting.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM15627

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-06-02

  • Closed date

    2010-06-22

  • Last modified date

    2010-06-22

  • 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

  • R700 PSY

       UP

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

Document Information

Modified date:
24 October 2021