IBM Support

PM36733: SAXEXCEPTION "FWK005 PARSE MAY NOT BE CALLED WHILE PARSING" DURING SCA COMPOSITION UNIT STARTUP

Fixes are available

7.0.0.17: Java SDK 1.6 SR9 FP1 Cumulative Fix for WebSphere Application Server
8.0.0.4: WebSphere Application Server V8.0 Fix Pack 4
8.5.0.1: WebSphere Application Server V8.5 Fix Pack 1
8.0.0.5: WebSphere Application Server V8.0 Fix Pack 5
8.5.0.2: WebSphere Application Server V8.5 Fix Pack 2
8.0.0.6: WebSphere Application Server V8.0 Fix Pack 6
8.0.0.7: WebSphere Application Server V8.0 Fix Pack 7
8.0.0.8: WebSphere Application Server V8.0 Fix Pack 8
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
8.0.0.9: WebSphere Application Server V8.0 Fix Pack 9
8.0.0.10: WebSphere Application Server V8.0 Fix Pack 10
8.0.0.11: WebSphere Application Server V8.0 Fix Pack 11
8.0.0.12: WebSphere Application Server V8.0 Fix Pack 12
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
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

  • Under stress, a SAXException can occur during composition unit
    startup. The exception will cause the composition unit startup
    to fail. The core exception occurs in
    org.apache.xerces.parsers.DOMParser.parse, and displays the
    exception text "FWK005 parse may not be called while parsing".
    The topmost exception occurs in SCARuntimeImpl.start, and
    displays the error text "Unable to generate Dynamic Ear".
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V7.0                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: When deploying JavaEE enterprise        *
    *                      applications, in cases where more than  *
    *                      one application is present, some of the *
    *                      application startups can fail with the  *
    *                      exception and excetpion text:           *
    *                      org.xml.sax.SAXException: FWK005 parse  *
    *                      may not be called while parsing.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When deploying JavaEE enterprise applications, in cases where
    more than one application is present, some of the application
    startups can fail with the exception and exception text:
    org.xml.sax.SAXException: FWK005 parse may not be called while
    parsing.  The problem occurs because of unsafe concurrent use
    of parse utility objects while processing application
    metadata.  The problem is timing dependent, and will be seen
    intermittently.  A typical stack for the SAXException will
    show a call from SaveStrategyImpl.saveMofResource, from a call
    to ArchiveImpl.save.
    
    SAXException is possible from any XML processing.  For this
    APAR, a typical stack trace is as follows:
    
    [3/17/11 9:08:10:437 EDT] 0000000f EJBContainerI I
    WSVR0057I: EJB jar started:
    SOAAssureServiceComponentViaAnyEJB_SOAAssureServiceSCA.jar
    [3/17/11 9:08:10:468 EDT] 0000000f ApplicationMg A
    WSVR0221I: Application started: SOAAssureCompositeEJBApp
    [3/17/11 9:08:10:468 EDT] 0000000f CompositionUn A
    WSVR0191I: Composition unit
    WebSphere:cuname=SOAAssureCompositeEJBApp in BLA
    WebSphere:blaname=soaservice_ejb started.
    [3/17/11 9:08:10:468 EDT] 00000000 ContainerHelp E
    WSVR0501E: Error creating component
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl@51045104
    com.ibm.ws.exception.RuntimeWarning:
    java.lang.RuntimeException: Unable to generate Dynamic Ear:
    SOAAssureCompositeEJB
      at
    com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start(SCARu
    ntimeImpl.java:485)
      at
    com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start(SCARu
    ntimeImpl.java:581)
      at
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Compos
    itionUnitMgrImpl.java:439)
      at
    com.ibm.ws.runtime.component.CompositionUnitImpl.start(Compositi
    onUnitImpl.java:123)
      at
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Compos
    itionUnitMgrImpl.java:382)
      at
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(C
    ompositionUnitMgrImpl.java:110)
      at
    com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitialize
    r.run(CompositionUnitMgrImpl.java:949)
      at
    com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializ
    er.run(WsComponentImpl.java:349)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
    Caused by: java.lang.RuntimeException: Unable to generate
    Dynamic Ear: SOAAssureCompositeEJB
      at
    com.ibm.ws.soa.sca.admin.wargen.runtime.DynamicWARStartHandlerWi
    thEar.getEar(DynamicWARStartHandlerWithEar.java:298)
      at
    com.ibm.ws.soa.sca.admin.wargen.runtime.DynamicWARStartHandlerWi
    thEar.startModule(DynamicWARStartHandlerWithEar.java:109)
      at
    com.ibm.ws.soa.sca.admin.runtime.impl.SCARuntimeImpl.start(SCARu
    ntimeImpl.java:451)
      ... 8 more
    Caused by:
    org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFa
    ilureException: META-INF/application.xml
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStr
    ategyImpl.saveMofResource(SaveStrategyImpl.java:403)
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStr
    ategyImpl.basicSaveMofResources(SaveStrategyImpl.java:377)
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStr
    ategyImpl.saveMofResources(SaveStrategyImpl.java:368)
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStr
    ategyImpl.save(SaveStrategyImpl.java:216)
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl
    .save(ArchiveImpl.java:2687)
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileI
    mpl.save(ModuleFileImpl.java:497)
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl
    .extractTo(ArchiveImpl.java:1149)
      at
    com.ibm.ws.soa.sca.admin.wargen.runtime.DynamicWARStartHandlerWi
    thEar.getEar(DynamicWARStartHandlerWithEar.java:293)
      ... 10 more
    Caused by: org.eclipse.emf.common.util.WrappedException:
    org.xml.sax.SAXException: FWK005 parse may not be called while
    parsing.
      at
    org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.cre
    ateDocument(EMF2DOMRenderer.java:491)
      at
    org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.cre
    ateDOMTree(EMF2DOMRenderer.java:424)
      at
    org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.cre
    ateDOMTreeIfNecessary(EMF2DOMRenderer.java:410)
      at
    org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.doS
    ave(EMF2DOMRenderer.java:382)
      at
    org.eclipse.wst.common.internal.emf.resource.TranslatorResourceI
    mpl.doSave(TranslatorResourceImpl.java:769)
      at
    org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceIm
    pl.java:993)
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStr
    ategyImpl.saveMofResource(SaveStrategyImpl.java:417)
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Directo
    rySaveStrategyImpl.saveMofResource(DirectorySaveStrategyImpl.jav
    a:292)
      at
    org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStr
    ategyImpl.saveMofResource(SaveStrategyImpl.java:396)
      ... 17 more
    Caused by: org.xml.sax.SAXException: FWK005 parse may not be
    called while parsing.
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
    Source)
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at
    org.eclipse.wst.common.internal.emf.utilities.DOMUtilities.creat
    eNewDocument(DOMUtilities.java:617)
      at
    org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.cre
    ateDocument(EMF2DOMRenderer.java:474)
      ... 25 more
    

Problem conclusion

  • The problem was fixed by the addition of synchronization to
    the utility objects use to parse application metadata.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 7.0.0.17.  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

    PM36733

  • 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

    2011-04-11

  • Closed date

    2011-05-13

  • Last modified date

    2011-05-13

  • 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":"BU059","label":"IBM Software w\/o TPS"},"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:
27 October 2021