IBM Support

PI75677: JAVAX.XML.STREAM.XMLINPUTFACTORY COULD NOT BE INSTANTIATED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Connect db2 from java code in WebSphere Application Server
    and get following exception:
    javax.xml.stream.FactoryConfigurationError: Provider
    javax.xml.stream.XMLInputFactory could not be instantiated:
    java.util.ServiceConfigurationError:
    javax.xml.stream.XMLInputFactory: Provider
    com.sun.xml.internal.stream.XMLInputFactoryImpl not a subtype
    at javax.xml.stream.XMLInputFactory.newFactory(Unknown Source)
    at javax.xml.stream.XMLInputFactory.newInstance(Unknown
    Source) at
    com.ibm.websphere.product.metadata.im.IMMetadata.setHistoryEvent
    sFromHistoryXml
    
    The root cause might be the default Websphere Application
    Server XmlInputFactory has been redefined somehow, by use of a
    properties file or system property
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: XMLInputFactory could not be            *
    *                      instantiated:                           *
    *                      java.util.ServiceConfigurationError:    *
    *                      javax.xml.stream.XMLInputFactory:       *
    *                      Provider                                *
    *                      com.sun.xml.internal.stream.XML         *
    *                      InputFactoryImpl not a subtype          *
    *                      .....                                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The
    com.ibm.websphere.product.metadata.im.IMMetadata.setHistoryEvent
    sFromHistoryXml calls STax to parser Installation Manager
    history.xml. At default, it will use XMLInputFactory
    implemented by IBM Java. However, the default XMLInputFactory
    can be overwritten by users' XMLInputFactory. That's why the
    exception happens.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI75677

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-01-31

  • Closed date

    2017-03-07

  • Last modified date

    2018-09-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

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"900","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
19 October 2021