Andreas Veithen created AXIOM-443:
-------------------------------------
Summary: StAX dialect detection fails on IBM JRE 1.7
Key: AXIOM-443
URL: https://issues.apache.org/jira/browse/AXIOM-443
Project: Axiom
Issue Type: Bug
Components: API
Affects Versions: 1.2.14
Reporter: Andreas Veithen
Assignee: Andreas Veithen
Fix For: 1.2.15
On IBM Java 1.7, Axiom fails to detect the dialect of the StAX implementation
in the JRE. It identifies the StAX implementation as SJSXP although it is XLXP.
This then results in the following error:
Exception in thread "main" java.lang.IllegalArgumentException: The
XMLInputFactory does not recognize the property "reuse-instance".
at
com.ibm.xml.xlxp.api.stax.msg.StAXMessageProvider.throwIllegalArgumentException(StAXMessageProvider.java:42)
at
com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.setProperty(XMLInputFactoryImpl.java:1870)
at
org.apache.axiom.util.stax.dialect.SJSXPDialect.makeThreadSafe(SJSXPDialect.java:65)
at org.apache.axiom.om.util.StAXUtils$1.run(StAXUtils.java:454)
at java.security.AccessController.doPrivileged(AccessController.java:229)
at org.apache.axiom.om.util.StAXUtils.newXMLInputFactory(StAXUtils.java:427)
at
org.apache.axiom.om.util.StAXUtils.getXMLInputFactory_perClassLoader(StAXUtils.java:498)
at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:169)
at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:134)
at
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:235)
at
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:229)
A workaround is to add Woodstox to the class path.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]