IBM Support

PM21207: OSGI CODE SHOWS DEADLOCK AT SERVER STARTUP

Fixes are available

6.1.0.35: Java SDK 1.5 SR12 FP2 Cumulative Fix for WebSphere
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
6.1.0.37: Java SDK 1.5 SR12 FP3 Cumulative Fix for WebSphere
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
6.1.0.47: WebSphere Application Server V6.1 Fix Pack 47
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
6.1.0.39: Java SDK 1.5 SR12 FP4 Cumulative Fix for WebSphere Application Server
6.1.0.41: Java SDK 1.5 SR12 FP5 Cumulative Fix for WebSphere Application Server
6.1.0.43: Java SDK 1.5 SR13 Cumulative Fix for WebSphere Application Server
6.1.0.45: Java SDK 1.5 SR14 Cumulative Fix for WebSphere Application Server
6.1.0.47: Java SDK 1.5 SR16 Cumulative Fix for WebSphere Application Server
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

  • WebSphere Application Server V7.0.0.9 startup hang, and java
    core dump shows deadlock
    
    server.startup : 2":
    
    at
    org.eclipse.equinox.servletbridge.FrameworkLauncher$ChildFirstUR
    LClassLoader.loadClass(FrameworkLauncher.java:739)
    - waiting to lock <9fffffff7d14f168> (a
    org.eclipse.equinox.servletbridge.FrameworkLauncher$ChildFirstUR
    LClassLoader)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at sun.misc.Unsafe.defineClass(Native Method)
    at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
    at
    sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerato
    r.java:381)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGener
    ator.java:377)
    at
    sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccesso
    rGenerator.java:59)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:28)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.eclipse.osgi.framework.internal.protocol.MultiplexingFactory
    .findAuthorizedFactory(MultiplexingFactory.java:126)
    - locked <9ffffffeff770698> (a
    org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactor
    y)
    at
    org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactor
    y.findAuthorizedURLStreamHandler(StreamHandlerFactory.java:149)
    at
    org.eclipse.osgi.framework.internal.protocol.MultiplexingURLStre
    amHandler.parseURL(MultiplexingURLStreamHandler.java:162)
    at java.net.URL.<init>(URL.java:596)
    at java.net.URL.<init>(URL.java:464)
    at java.net.URL.<init>(URL.java:413)
    at
    org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unkno
    wnSource)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.disp
    atch(Unknown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
    nt(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
    Source)
    at
    org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
    Source)
    at
    org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doL
    oad(EMF2SAXRenderer.java:123)
    at
    org.eclipse.wst.common.internal.emf.resource.TranslatorResourceI
    mpl.basicDoLoad(TranslatorResourceImpl.java:633)
    at
    org.eclipse.jst.j2ee.internal.xmltrim.XMLTrimResourceImpl.basicD
    oLoad(XMLTrimResourceImpl.java:231)
    at
    org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIRes
    ourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceIm
    pl.java:1094)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceIm
    pl.java:900)
    at
    org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIRes
    ourceImpl.load(CompatibilityXMIResourceImpl.java:259)
    at
    org.eclipse.wst.common.internal.emf.resource.TranslatorResourceI
    mpl.load(TranslatorResourceImpl.java:589)
    - locked <9fffffff7e351fd0> (a
    org.eclipse.jst.j2ee.application.internal.impl.ApplicationResour
    ceImpl)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(R
    esourceSetImpl.java:249)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHe
    lper(ResourceSetImpl.java:264)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(
    ResourceSetImpl.java:390)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStr
    ategyImpl.getMofResource(LoadStrategyImpl.java:851)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl
    .getMofResource(ArchiveImpl.java:1620)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileI
    mpl.getDeploymentDescriptorResource(ModuleFileImpl.java:233)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.XmlBase
    dImportStrategyImpl.primLoadDeploymentDescriptor(XmlBasedImportS
    trategyImpl.java:46)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear12Im
    portStrategyImpl.loadDeploymentDescriptor(Ear12ImportStrategyImp
    l.java:122)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear12Im
    portStrategyImpl.importMetaData(Ear12ImportStrategyImpl.java:118
    )
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl
    .getDeploymentDescriptor(EARFileImpl.java:597)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.Commonarchi
    veFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:1212)
    at
    com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openE
    ARFile(CommonarchiveFactoryImpl.java:612)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl$MappableCon
    tentsArchive.open(DeployedApplicationImpl.java:1702)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(
    DeployedApplicationImpl.java:574)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(
    DeployedApplicationImpl.java:417)
    at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplic
    ation(ApplicationMgrImpl.java:364)
    - locked
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V6.1, and V7.0                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: Startup hang,java core dump shows       *
    *                      deadlock between:                       *
    *                      servletbridge.FrameworkLauncher,and     *
    *                      StreamHandlerFactory.                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A Thread dump of the hung process will show the stacks from
    2 threads in deadlock:
    
    server.startup : 2":
    
    at
    org.eclipse.equinox.servletbridge.FrameworkLauncher$ChildFirstUR
    LClassLo
    ader.loadClass(FrameworkLauncher.java:739)
    - waiting to lock <9fffffff7d14f168> (a
    org.eclipse.equinox.servletbridge.FrameworkLauncher$ChildFirstUR
    LClassLo
    ader)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at sun.misc.Unsafe.defineClass(Native Method)
    at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
    at
    sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerato
    r.java:3
    81)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGener
    ator.jav
    a:377)
    at
    sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccesso
    rGenerat
    or.java:59)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.jav
    a:28)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    Accessor
    Impl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.eclipse.osgi.framework.internal.protocol.MultiplexingFactory
    .findAut
    horizedFactory(MultiplexingFactory.java:126)
    - locked <9ffffffeff770698> (a
    org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactor
    y)
    at
    org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactor
    y.findAu
    thorizedURLStreamHandler(StreamHandlerFactory.java:149)
    at
    org.eclipse.osgi.framework.internal.protocol.MultiplexingURLStre
    amHandle
    r.parseURL(MultiplexingURLStreamHandler.java:162)
    at java.net.URL.<init>(URL.java:596)
    at java.net.URL.<init>(URL.java:464)
    at java.net.URL.<init>(URL.java:413)
    at
    org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unkno
    wn
    Source)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.disp
    atch(Unk
    nown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
    nt(Unkno
    wn Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
    Source)
    at
    org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
    Source)
    at
    org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doL
    oad(EMF2
    SAXRenderer.java:123)
    at
    org.eclipse.wst.common.internal.emf.resource.TranslatorResourceI
    mpl.basi
    cDoLoad(TranslatorResourceImpl.java:633)
    at
    org.eclipse.jst.j2ee.internal.xmltrim.XMLTrimResourceImpl.basicD
    oLoad(XM
    LTrimResourceImpl.java:231)
    at
    org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIRes
    ourceImp
    l.doLoad(CompatibilityXMIResourceImpl.java:173)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceIm
    pl.java:
    1094)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceIm
    pl.java:
    900)
    at
    org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIRes
    ourceImp
    l.load(CompatibilityXMIResourceImpl.java:259)
    at
    org.eclipse.wst.common.internal.emf.resource.TranslatorResourceI
    mpl.load
    (TranslatorResourceImpl.java:589)
    - locked <9fffffff7e351fd0> (a
    org.eclipse.jst.j2ee.application.internal.impl.ApplicationResour
    ceImpl)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(R
    esourceS
    etImpl.java:249)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHe
    lper(Res
    ourceSetImpl.java:264)
    at
    org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(
    Resource
    SetImpl.java:390)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStr
    ategyImp
    l.getMofResource(LoadStrategyImpl.java:851)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl
    .getMofR
    esource(ArchiveImpl.java:1620)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileI
    mpl.getD
    eploymentDescriptorResource(ModuleFileImpl.java:233)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.XmlBase
    dImportS
    trategyImpl.primLoadDeploymentDescriptor(XmlBasedImportStrategyI
    mpl.java
    :46)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear12Im
    portStra
    tegyImpl.loadDeploymentDescriptor(Ear12ImportStrategyImpl.java:1
    22)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear12Im
    portStra
    tegyImpl.importMetaData(Ear12ImportStrategyImpl.java:118)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl
    .getDepl
    oymentDescriptor(EARFileImpl.java:597)
    at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.Commonarchi
    veFactor
    yImpl.openEARFile(CommonarchiveFactoryImpl.java:1212)
    at
    com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openE
    ARFile(C
    ommonarchiveFactoryImpl.java:612)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl$MappableCon
    tentsArc
    hive.open(DeployedApplicationImpl.java:1702)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(
    Deployed
    ApplicationImpl.java:574)
    at
    com.ibm.ws.runtime.component.DeployedApplicationImpl.initialize(
    Deployed
    ApplicationImpl.java:417)
    at
    com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplic
    ation(Ap
    plicationMgrImpl.java:364)
    - locked
    

Problem conclusion

  • Method synchronizations in the MultiplexingFactory class were
    changed so as to not cause a deadlock situation. Refer to
    bugzilla defect
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=318277 for more
    details.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 6.1.0.33 and 7.0.0.15.  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

    PM21207

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-08-25

  • Closed date

    2010-09-07

  • Last modified date

    2010-09-07

  • 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

  • R61A PSY

       UP

  • R61H PSY

       UP

  • R61I PSY

       UP

  • R61P PSY

       UP

  • R61S PSY

       UP

  • R61W PSY

       UP

  • R61Z PSY

       UP

  • R700 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 7.0

Reference #: PM21207

Modified date: 07 September 2010