XML : Error Unmarshalling in Java 8, secure-processing feature not recognized

I'm attempting to unmarshal something with a JAXB unmarshaller. However, the following error is thrown:

  java.lang.IllegalStateException: org.xml.sax.SAXNotRecognizedException:       Feature 'http://javax.xml.XMLConstants/feature/secure-processing' not recognized    

My first attempt at a fix was suggested in this stack overflow post. I tried including the xerces 2.11 jar in my module but it did not solve the issue. I then tried many other combinations of versions with xerces and xml-apis.

I then banned anything that could be a xerces dependency using the maven enforcer plugin (including any packages from groups apache-xerces, xerces, and xml-apis). Using this plugin I was able to quickly identify which of my dependencies depended on xerces and excluded xerces from the dependencies. It didn't work, the same error was thrown.

From there I tried adding back a dependency on xerces 2.11 and 2.9.1 just in case, who knows. That didn't solve the problem either.

At least it's good to know that I am not alone in my frustration.

So, does anyone have any suggestions for resolving this issue?

No comments:

Post a Comment