Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Exception using latest 3.2.1 jar under JDK1.6 - When running Axis2 build harness
java.lang.IllegalArgumentException: Can not instantiate StAX reader for XML source type class javax.xml.transform.stax.StAXSource (unrecognized type)
at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:751)
at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:341)
at org.apache.axis2.jaxws.dispatch.StreamSourceDispatch.testAsyncPollingPayloadMode(StreamSourceDispatch.java:240)
thanks,
dims
Hmmh. This probably can only be resolved if StAXSource can be added to stax api jar. Otherwise it would be a JDK 1.6 dependency, and Woodstox aims to be 1.4 compatible at least for now (version 4.0).
I will send an email to stax-builders list to see how people feel about StAXSource being added (if that's feasible and desirable).
But on the other hand, even if possible, would such an operation even make sense? If one has StaxSource, it already implies a reader of some kind is available. Is this to be able to create an event reader for given stream reader?