IBM Support

PM41734: NULL POINTER EXCEPTION WHEN LOADING XML DOCUMENTS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • NullPointerException is thrown from the NamedDeclaration class
    when an XML document is loaded:
    
    com.ibm.xml.xlxp.internal.s1.grammar.NamedDeclaration.createMap
    (NamedDeclaration.java:123)
    com.ibm.xml.xlxp.internal.s1.grammar.Grammar.setGlobalTypes
    (Grammar.java:242)
    com.ibm.xml.xlxp.internal.s1.converter.Converter.fillGrammar
    (Converter.java:608)
    com.ibm.xml.xlxp.internal.s1.converter.Converter.convert
    (Converter.java:244)
    com.ibm.xml.xlxp.internal.s1.converter.Merger.convert
    (Merger.java:144)
    com.ibm.xml.xlxp.internal.s1.converter.MergerContext.
    convertGrammar(MergerContext.java:153)
    com.ibm.xml.xci.adapters.xlxp.util.XLXPResourceManager.
    getGrammars(XLXPResourceManager.java:93)
    com.ibm.xml.xci.adapters.xlxp.util.XLXPResourceManager.
    setupScanner(XLXPResourceManager.java:322)
    com.ibm.xml.xci.adapters.xlxp.XLXPCursorFactory.
    document(XLXPCursorFactory.java:93)
    com.ibm.xml.xci.adapters.xlxp.XLXPCursorFactory.
    document(XLXPCursorFactory.java:250)
    com.ibm.xml.xci.SessionContext.document(SessionContext.java:312)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of the XML API for IBM WebSphere      *
    *                  Application Server V8.0                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: Null pointer exception when loading     *
    *                      XML documents using the XML API.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When an XML document is loaded using the XML code, or through
    another stack product that uses the XML code, sometimes the
    following exception may be thrown:
    
    com.ibm.xml.xlxp.internal.s1.grammar.NamedDeclaration.createMap(
    NamedDeclaration.java:123)
    com.ibm.xml.xlxp.internal.s1.grammar.Grammar.setGlobalTypes(Gram
    mar.java:242)
    com.ibm.xml.xlxp.internal.s1.converter.Converter.fillGrammar(Con
    verter.java:608)
    com.ibm.xml.xlxp.internal.s1.converter.Converter.convert(Convert
    er.java:244)
    com.ibm.xml.xlxp.internal.s1.converter.Merger.convert(Merger.jav
    a:144)
    com.ibm.xml.xlxp.internal.s1.converter.MergerContext.convertGram
    mar(MergerContext.java:153)
    com.ibm.xml.xci.adapters.xlxp.util.XLXPResourceManager.getGramma
    rs(XLXPResourceManager.java:93)
    com.ibm.xml.xci.adapters.xlxp.util.XLXPResourceManager.setupScan
    ner(XLXPResourceManager.java:322)
    com.ibm.xml.xci.adapters.xlxp.XLXPCursorFactory.document(XLXPCur
    sorFactory.java:93)
    com.ibm.xml.xci.adapters.xlxp.XLXPCursorFactory.document(XLXPCur
    sorFactory.java:250)com.ibm.xml.xci.SessionContext.document(Sess
    ionContext.java:312)
    ...
    

Problem conclusion

  • The component that loads and assembles XML Schemas sometimes
    needs to create copies of the container objects to reuse
    schema components. When the copy occurs, other container
    objects that reference the original container object need to
    be updated to reference the new copy, to maintain consistency
    within the schema. There are cases where a copy is made but
    the references still point to the old object. When a schema
    containing these objects is used, it gets confused by the
    duplicate objects.
    
    The fix is to ensure the schema is always consistent by
    updating all relevant references when a container object is
    copied.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.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

    PM41734

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-15

  • Closed date

    2011-06-15

  • Last modified date

    2011-06-28

  • APAR is sysrouted FROM one or more of the following:

    PM36721

  • 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

  • R800 PSY

       

[{"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:
27 October 2021