IBM Support

PK57660: JAVA.LANG.CLASSCASTEXCEPTION FOR SAXPARSERFACTORYIMPL DURING CLUSTER START

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The cause of the problem is that the thread context class loader
    is set
    to an application class loader that has overriden the XML parser
    implementation.  The application code calls SIB, which calls SM,
    which
    calls EMF to read an XML document, which uses the incompatible
    XML
    parser implementation, which causes a ClassCastException.
    

Local fix

  • non
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: IBM WebSphere Application Server version     *
    *                 6.1 users.                                   *
    ****************************************************************
    * PROBLEM DESCRIPTION: java.lang.ClassCastException during     *
    *                      SAXParserFactoryImpl instance           *
    *                      creation in WorkspaceHelper.java        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Customer has a cluster with two nodes with a service
    integration bus (SIB) and a msssage engine running on each
    node. He has a web application which attempts to send JMS
    messages to the messsage engine running on the same server it
    runs on. The application on one node can send but on the other
    node it can not send due to this exception
    
    ADMG0003E: The system failed to load document
    
    com.ibm.websphere.management.exception.
                        ConfigDocumentLoadException:
    ADMG0003E: The system failed to load document
    
    cells/GLNetwork1/clusters/gtsscluster/sib-engines.xml
    
    at com.ibm.ws.management.configservice.
     WorkspaceHelper.getDocAccessorInternal
                             (WorkspaceHelper.java:176)
    
    
    at com.ibm.ws.management.configservice.
     WorkspaceHelper.getDocAccessor
                             (WorkspaceHelper.java:127)
    at com.ibm.ws.management.configservice.
     WorkspaceHelper.getDocAccessor
                             (WorkspaceHelper.java:118)
    
    ...
    ...
    
    Caused by: java.lang.ClassCastException:
    
    org.apache.xerces.jaxp.SAXParserFactoryImpl incompatible
    with javax.xml.parsers.SAXParserFactory
    
     at javax.xml.parsers.SAXParserFactory.
                             newInstance(Unknown Source)
     at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.
                             makeParser(XMLLoadImpl.java:299)
     at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.
                             load(XMLLoadImpl.java:140)
     at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.
                             doLoad(XMLResourceImpl.java:179)
    
     at org.eclipse.wst.common.internal.emf.resource.
      CompatibilityXMIResourceImpl.basicDoLoad
       (CompatibilityXMIResourceImpl.java:180)
    

Problem conclusion

  • The source code has been modified to avoid the
    ClassCastException during SAXParserFactory.newInstance() in
    WorkspaceHelper class.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 6.0.2.29 & 6.1.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

    PK57660

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    61I

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-12-05

  • Closed date

    2008-04-01

  • Last modified date

    2008-08-15

  • 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

  • R61A PSY

       UP

  • R61H PSY

       UP

  • R61I PSY

       UP

  • R61P PSY

       UP

  • R61S PSY

       UP

  • R61W PSY

       UP

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

Document Information

Modified date:
28 December 2021