-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Milestone
Description
Woodstox is a popular implementation of XMLEventReader among other things. But since com.ctc.wstx.evt.WstxEventReader only implements XMLEventReader through two hops, our code doesn't recognize it as implementing XMLEventReader. Instead we get the following error when we add woodstox to pom.xml by adding:
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>woodstox-core-asl</artifactId>
<version>4.4.1</version>
</dependency>
then run
mvn test -Dtest=HandleAsTest
we get the following
java.lang.IllegalArgumentException: No factory for class com.ctc.wstx.evt.WstxEventReader
at com.marklogic.client.impl.HandleFactoryRegistryImpl.makeHandle(HandleFactoryRegistryImpl.java:98)
at com.marklogic.client.impl.DocumentManagerImpl.writeAs(DocumentManagerImpl.java:608)
at com.marklogic.client.impl.DocumentManagerImpl.writeAs(DocumentManagerImpl.java:575)
at com.marklogic.client.test.HandleAsTest.testBuiltinReadWrite(HandleAsTest.java:190)
Which means DocumentManager.writeAs can't find a handle registered for WstxEventReader or any of the interfaces it implements.