[ https://issues.apache.org/jira/browse/WSCOMMONS-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762214#action_12762214 ]
Aaron McIver commented on WSCOMMONS-489: ---------------------------------------- Test information: ------------------------------------------------------------------------------- Test set: ParserTest ------------------------------------------------------------------------------- Tests run: 3500, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 50.548 sec <<< FAILURE! testCreateXMLStreamWriterIsThreadSafe(org.apache.axiom.om.util.StAXUtilsTest) Time elapsed: 0.047 sec <<< FAILURE! junit.framework.ComparisonFailure: expected:<[<root>951</root>]> but was:<[]> at junit.framework.Assert.assertEquals(Assert.java:81) at junit.framework.Assert.assertEquals(Assert.java:87) at org.apache.axiom.om.util.StAXUtilsTest$3.execute(StAXUtilsTest.java:104) at org.apache.axiom.om.util.StAXUtilsTest$1.run(StAXUtilsTest.java:47) at java.lang.Thread.run(Thread.java:619) Dialect information: 00067: Oct 5, 2009 8:23:24 AM org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect 00068: INFO: Detected StAX dialect: Woodstox 00069: Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.188 sec 00153: Oct 5, 2009 8:23:38 AM org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect 00154: INFO: Detected StAX dialect: Woodstox 00155: Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.5 sec 00243: Oct 5, 2009 8:23:57 AM org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect 00244: INFO: Detected StAX dialect: Woodstox 00245: Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.093 sec 00336: Oct 5, 2009 8:24:10 AM org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect 00337: INFO: Detected StAX dialect: Woodstox 00338: Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.36 sec 00400: Oct 5, 2009 8:24:17 AM org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect 00401: INFO: Detected StAX dialect: Woodstox 00402: Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.266 sec 00717: Oct 5, 2009 8:24:50 AM org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect 00718: INFO: Detected StAX dialect: SJSXP 00719: Oct 5, 2009 8:24:52 AM org.apache.axiom.util.blob.OverflowBlob finalize 00737: Oct 5, 2009 8:25:13 AM org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect 00738: INFO: Detected StAX dialect: SJSXP 00739: Oct 5, 2009 8:25:15 AM org.apache.axiom.util.blob.OverflowBlob finalize 00757: Oct 5, 2009 8:25:33 AM org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect 00758: INFO: Detected StAX dialect: BEA 00759: Oct 5, 2009 8:25:34 AM org.apache.axiom.util.blob.OverflowBlob finalize 00777: Oct 5, 2009 8:25:44 AM org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect 00778: INFO: Detected StAX dialect: Woodstox 00779: Oct 5, 2009 8:25:45 AM org.apache.axiom.util.blob.OverflowBlob finalize The below 2 lines appeared in the console but did not make it to the output file...for what that is worth...performed a mvn clean followed by a mvn install > install.txt The current artifact axiom-osgi-run-1.2.9-SNAPSHOT.jar is not a valid bundle [INFO] Detected StAX dialect: SJSXP Java information: -JDK = Sun 1.6.5 -JRE = Sun 1.6.13 -JAVA_HOME = JDK Just to clarify...if I build this as a one off and drop it in an axis2 jar...this is not going to 'fix' things per se as long as the only StAX implementation on the box is what ships with the Sun JDK/JRE? > StAXUtils incorrectly assumes that XMLInputFactory and XMLOutputFactory > instances are thread safe > ------------------------------------------------------------------------------------------------- > > Key: WSCOMMONS-489 > URL: https://issues.apache.org/jira/browse/WSCOMMONS-489 > Project: WS-Commons > Issue Type: Bug > Components: AXIOM > Affects Versions: Axiom 1.2.8 > Reporter: Andreas Veithen > Assignee: Andreas Veithen > Fix For: Axiom 1.2.9 > > > StAXUtil uses a single XMLInputFactory or XMLOutputFactory instance (per > classloader). This means that it makes the assumption that these instances > are thread safe. However, there is nothing in the StAX specs that guarantees > that, and Sun's implementation in JDK 6 is not thread safe, at least with the > default properties [1] [2]. > [1] > http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Modules-com.sun/xml/com/sun/xml/internal/stream/XMLInputFactoryImpl.java.htm > [2] > http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Modules-com.sun/xml/com/sun/xml/internal/stream/XMLOutputFactoryImpl.java.htm -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.