IBM Support

PI05575: JAVA.LANG.NULLPOINTEREXCEPTION MAY BE THROWN FROM THE JAXB UNMAR SHALLER UNDER LOAD.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • While processing an XML document the IBM JAXB Unmarshaller may
    throw a java.lang.NullPointerException in a multi-threaded
    application that reuses Unmarshaller objects.
    
    Sample stack traces:
    
    java.lang.NullPointerException
     at
    com.ibm.xml.xlxp2.scan.util.ParsedEntity$1.hasReferenceTo(Parsed
    Entity.java:108)
     at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory$DataBufferRe
    ferrerQueue.isReferenced(SimpleDataBufferFactory.java:52)
     at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory.reclaimBuffe
    rs(SimpleDataBufferFactory.java:309)
     at
    com.ibm.xml.xlxp2.scan.DocumentScanner.incrementalCleanup(Docume
    ntScanner.java:1183)
     at
    com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner
    .java:1271)
     at
    com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.next(XMLStreamRea
    derImpl.java:581)
     at
    com.ibm.xml.xlxp2.api.stax.XMLInputFactoryImpl$XMLStreamReaderPr
    oxyImpl.next(XMLInputFactoryImpl.java:183)
     at
    com.ibm.xml.xlxp2.api.wssec.WSSXMLInputFactory$WSSStreamReaderPr
    oxy.next(WSSXMLInputFactory.java:55)
     at
    com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(Unma
    rshallerImpl.java:264)
     ...
    
    java.lang.NullPointerException
     at
    com.ibm.xml.xlxp2.scan.util.XMLString$1.hasReferenceTo(XMLString
    .java:111)
     at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory$DataBufferRe
    ferrerQueue.isReferenced(SimpleDataBufferFactory.java:52)
     at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory.reclaimBuffe
    rs(SimpleDataBufferFactory.java:309)
     at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory.reset(Simple
    DataBufferFactory.java:285)
     at
    com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.reset(XMLStreamRe
    aderImpl.java:360)
     at
    com.ibm.xml.xlxp2.api.jaxb.JAXBXMLStreamReader.reset(JAXBXMLStre
    amReader.java:392)
     at
    com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.close(XMLStreamRe
    aderImpl.java:749)
     at
    com.ibm.xml.xlxp2.api.wssec.WSSXMLStreamReader.close(WSSXMLStrea
    mReader.java:122)
     at
    com.ibm.xml.xlxp2.api.stax.XMLInputFactoryImpl$XMLStreamReaderPr
    oxyImpl.next(XMLInputFactoryImpl.java:193)
     at
    com.ibm.xml.xlxp2.api.wssec.WSSXMLInputFactory$WSSStreamReaderPr
    oxy.next(WSSXMLInputFactory.java:55)
     at
    com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(Unma
    rshallerImpl.java:264)
     at
    com.ibm.xml.xlxp2.jaxb.unmarshal.AbstractUnmarshallerImpl.unmars
    hal(AbstractUnmarshallerImpl.java:127)
     ...
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All IBM WebSphere Application Server V8.5   *
    *                  users of JAX-WS and JAXB.                   *
    ****************************************************************
    * PROBLEM DESCRIPTION: A java.lang.NullPointerException may    *
    *                      be thrown from the JAXB Unmarshaller    *
    *                      under load.                             *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this       *
    *                  APAR.                                       *
    ****************************************************************
    While processing an XML document the IBM JAXB Unmarshaller may
    throw a java.lang.NullPointerException in a multi-threaded
    application that reuses Unmarshaller objects.
    Sample stack traces:
    java.lang.NullPointerException
    at
    com.ibm.xml.xlxp2.scan.util.ParsedEntity$1.hasReferenceTo(Parsed
    Entity.java:108)
    at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory$DataBufferRe
    ferrerQueue.isReferenced(SimpleDataBufferFactory.java:52)
    at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory.reclaimBuffe
    rs(SimpleDataBufferFactory.java:309)
    at
    com.ibm.xml.xlxp2.scan.DocumentScanner.incrementalCleanup(Docume
    ntScanner.java:1183)
    at
    com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner
    .java:1271)
    at
    com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.next(XMLStreamRea
    derImpl.java:581)
    at
    com.ibm.xml.xlxp2.api.stax.XMLInputFactoryImpl$XMLStreamReaderPr
    oxyImpl.next(XMLInputFactoryImpl.java:183)
    at
    com.ibm.xml.xlxp2.api.wssec.WSSXMLInputFactory$WSSStreamReaderPr
    oxy.next(WSSXMLInputFactory.java:55)
    at
    com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(Unma
    rshallerImpl.java:264)
    ...
    java.lang.NullPointerException
    at
    com.ibm.xml.xlxp2.scan.util.XMLString$1.hasReferenceTo(XMLString
    .java:111)
    at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory$DataBufferRe
    ferrerQueue.isReferenced(SimpleDataBufferFactory.java:52)
    at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory.reclaimBuffe
    rs(SimpleDataBufferFactory.java:309)
    at
    com.ibm.xml.xlxp2.scan.util.SimpleDataBufferFactory.reset(Simple
    DataBufferFactory.java:285)
    at
    com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.reset(XMLStreamRe
    aderImpl.java:360)
    at
    com.ibm.xml.xlxp2.api.jaxb.JAXBXMLStreamReader.reset(JAXBXMLStre
    amReader.java:392)
    at
    com.ibm.xml.xlxp2.api.stax.XMLStreamReaderImpl.close(XMLStreamRe
    aderImpl.java:749)
    at
    com.ibm.xml.xlxp2.api.wssec.WSSXMLStreamReader.close(WSSXMLStrea
    mReader.java:122)
    at
    com.ibm.xml.xlxp2.api.stax.XMLInputFactoryImpl$XMLStreamReaderPr
    oxyImpl.next(XMLInputFactoryImpl.java:193)
    at
    com.ibm.xml.xlxp2.api.wssec.WSSXMLInputFactory$WSSStreamReaderPr
    oxy.next(WSSXMLInputFactory.java:55)
    at
    com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(Unma
    rshallerImpl.java:264)
    at
    com.ibm.xml.xlxp2.jaxb.unmarshal.AbstractUnmarshallerImpl.unmars
    hal(AbstractUnmarshallerImpl.java:127)
    ...
    

Problem conclusion

  • A stale reference to a shared data structure allowed multiple
    JAXB Unmarshaller instances on different threads to update
    the data structure at the same time and that could result in a
    NullPointerException. The issue was fixed by ensuring that
    only one JAXB Unmarshaller at a time accesses or updates the
    shared data structure.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.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

    PI05575

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-11-07

  • Closed date

    2013-11-07

  • Last modified date

    2013-11-07

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

    PM88820

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

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

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

Document Information

Modified date:
28 April 2022