Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not use woodstox SAX Parser with JAXB due to unrecognized feature #77

Closed
PascalSchumacher opened this issue Jun 12, 2019 · 2 comments
Milestone

Comments

@PascalSchumacher
Copy link

It currently not possible to use the Woodstox SAX Parser with JAXB (2.3.0+).

I'm using com.sun.xml.bind:jaxb-impl:2.3.2. When I set the javax.xml.parsers.SAXParserFactory=com.ctc.wstx.sax.WstxSAXParserFactory system property unmarshalling fails with:

Juni 12, 2019 9:58:03 VORM. com.sun.xml.bind.v2.util.XmlFactory createParserFactory
SEVERE: null
org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' not recognized
	at com.ctc.wstx.sax.WstxSAXParserFactory.setFeature(WstxSAXParserFactory.java:154)
	at com.sun.xml.bind.v2.util.XmlFactory.createParserFactory(XmlFactory.java:106)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getXMLReader(UnmarshallerImpl.java:124)
	at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:170)
	at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:219)
	...

I guess this issue would be solved if #61 is implemented.

By the way: Thank you very much for providing woodstox.

@cowtowncoder cowtowncoder changed the title Can use woodstox SAX Parser with JAXB Can not use woodstox SAX Parser with JAXB due to unrecognized feature Jun 14, 2019
@cowtowncoder
Copy link
Member

Fixed via #61, will be in 5.3.0 which I hope to release soon

@cowtowncoder cowtowncoder added this to the 5.3.0 milestone Jul 14, 2019
@PascalSchumacher
Copy link
Author

Thank you very much! 👍

I am looking forward to the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants