SAXNotRecognizedException Occurs During XML Read After Updating to java6→java8

Asked 2 years ago, Updated 2 years ago, 84 views

The XML load that worked properly in java6 is updated to java8 and
The following Excepiton is now available.
If you have experienced a similar phenomenon or know how to solve it, could you give me some advice?

critical:null
org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
        at org.apache.xerces.parsers.AbstractSAXParser.setFeature (Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.setFeatures (Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.<init> (Unknown Source)
        at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl (Unknown Source)
        at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature (Unknown Source)
        atcom.sun.xml.internal.bind.v2.util.XmlFactory.createParserFactory(XmlFactory.java:121)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getXMLReader (UnmarshallerImpl.java:139)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal (AbstractUnmarshallerImpl.java:157)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal (AbstractUnmarshallerImpl.java:214)

java java8

2022-09-30 20:22

1 Answers

Thank you Kenji Noguchi.
As you said, I was able to move it well when I updated the jar of Xerces.

http://xml.apache.org/xalan-j/downloads.html
http://archive.apache.org/dist/xml/xalan-j/
Download xalan-j_2_7_1-bin.zip from the above site. xercesImpl.jar
xml-apis.jar
serializer.jar
xalan.jar
By replacing these files, we were able to solve the problem.

Once again, thank you.


2022-09-30 20:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.