[EL Severe]: moxy: 2018-03-16 13:02:42.349--java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V

当我尝试使用JAXB解组xml和json时,我收到此错误 . 我有eclipselink 3.0和javax,json 1.0.4 . 此错误不会影响功能 . 我的意思是将xml解析为Objects没有任何问题 . 但错误是在控制台抛出,这有点刺激 .

JAXBContext jc = JAXBContextFactory.createContext(new Class [] ,jaxBProperties); Unmarshaller unmarshaller = jc.createUnmarshaller(); JAXBElement library =(JAXBElement)unmarshaller.unmarshal(new StringReader(fileContent));