One possible cause of the problem is that the parser expects the code to provide support for the XML namespace with later versions of JDK 1.8.
If you use the SAX parser to parse an XML document, make sure the namespaceAware API is set to true
final SAXParserFactory sax = SAXParserFactory.newInstance (); sax.setNamespaceAware (true);
The default value is set to false.
I ran into the same problem using the JDK versions 1.8.121 and 1.8.131 with the SAX-based parser, and the problem was solved by simply setting true for the namespaceAware API for the SAXParserFactory instance.
NOTE. JAXB classes were created from eclipse
source share