StAX the odds with Woodstox

Java , woodstox , stax , exception , xml Edmonton, Canada
  • 9 years ago

    I'm getting an exception thrown because of this line

    xtw = (XMLStreamWriter2)xof.createXMLStreamWriter(new FileWriter(filename));

    Exception occurred while writing java.lang.ClassCastException: com.sun.xml.internal.stream.XMLOutputFactoryImpl cannot be cast to org.codehaus.stax2.XMLStreamWriter2

    is what the terminal is spitting back at me! Just wondering how to resolve this issue so I can continue to follow along.

    Thanks in advance! Cheers DJ

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are 10 types of people in the world, those who can read binary, and those who can't.”