Activity Stream Gadget Error Due To XMLOutputFactory Instantiation Issue

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Activity Stream gadget returning the following error in the UI.

An error occurred while trying to retrieve recent activities.

A sample screenshot of the gadget is as below:

(Auto-migrated image: description temporarily unavailable)

Environment

All Jira versions

Diagnosis

An error similar to the following snippet is returned in the atlassian-jira.log indicating that something went wrong during the instantiation of the XMLOutputFactory class.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 022-10-31 14:26:42,177+0800 https-jsse-nio-8443-exec-9 ERROR [c.a.j.web.servlet.InternalServerErrorServlet] {errorId=565f1871-65ef-4168-af06-d990365ae45c, interpretedMsg=, cause=javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException, stacktrace=javax.xml.stream.FactoryConfigurationError: Provider null could not be instantiated: java.lang.NullPointerException at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:75) [?:?] at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:136) [?:?] at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) [?:?] at javax.xml.stream.XMLOutputFactory.newInstance(XMLOutputFactory.java:98) [?:?] at org.apache.axiom.om.util.StAXUtils$9.run(StAXUtils.java:655) [?:?] at java.base/java.security.AccessController.doPrivileged(Native Method) [?:?] at org.apache.axiom.om.util.StAXUtils.newXMLOutputFactory(StAXUtils.java:645) [?:?] at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory_perClassLoader(StAXUtils.java:709) [?:?] at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java:348) [?:?] at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java:313) [?:?] at org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:436) [?:?] at org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:431) [?:?] at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:149) [?:?] at org.apache.abdera.parser.stax.FOMElement.writeTo(FOMElement.java:341) [?:?] at org.apache.abdera.parser.stax.FOMWriter.writeTo(FOMWriter.java:73) [?:?] at org.apache.abdera.util.AbstractWriter.writeTo(AbstractWriter.java:80) [?:?] at org.apache.abdera.parser.stax.FOMElement.writeTo(FOMElement.java:314) [?:?] at com.atlassian.streams.internal.atom.abdera.AbderaAtomFeedRenderer.writeFeed(AbderaAtomFeedRenderer.java:116) [?:?] at com.atlassian.streams.internal.servlet.StreamsActivityServlet.doGet(StreamsActivityServlet.java:90) [?:?] ...

Cause

Cause 1

The bundled wstx-asl-3.2.4.jar (Woodstox) is missing from the /$JIRA_INSTALL/atlassian-jira/WEB-INF/lib directory.

Cause 2

A third-party plugin might have overwritten the XMLOutputFactory class implementation at its code level.

Solution

For Cause 1

  • Stop Jira.

  • Ensure the originally bundled wstx-asl-3.2.4.jar (Woodstox) is added to the /$JIRA_INSTALL/atlassian-jira/WEB-INF/lib directory. You can copy it from a backup or another Jira install. If you can’t locate the file at all, please contact Atlassian support.

  • Start Jira.

For Cause 2

  • Uninstall the offending third-party plugin. In some cases, disabling the plugin may not be sufficient.

  • Alternatively, we can also force the implementation of the XMLOutputFactory class with the steps below:

    • Stop Jira.

    • Append the following JVM startup parameter following the steps in the Setting properties and options on startup page.

      1 -Djavax.xml.stream.XMLOutputFactory=com.ctc.wstx.stax.WstxOutputFactory

      It should look something like the below:

      1 JVM_SUPPORT_RECOMMENDED_ARGS="-Djavax.xml.stream.XMLOutputFactory=com.ctc.wstx.stax.WstxOutputFactory"
    • Start Jira.

Updated on April 14, 2025

Still need help?

The Atlassian Community is here for you.