Problem Statement : Application throw exception when it is using oracle.xml.jaxp.JXSAXParserFactory parser. Command : cmd $PID JFR.start name=MyRecording dumponexit=true filename=/tmp/JFR_recording.jfr duration=600s settings=profile Exception: Could not start recording. Unexpected error occured when loading setting profile from JRE_HOME/lib/jfr. UnsupportedOperationException: This parser does not support specification “null” version “null” Parser used : SAXParserFactory implementation oracle.xml.jaxp.JXSAXParserFactory With -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl JFR is able to launch but application started throwing exception :: JAXBException occured while unmarshalling string to AV Message.unexpected element (uri:“”, local:“AVMessage”). Expected elements are <{http://xmlns.oracle.com/av/agent}AVMessage> [com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:523) com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199) com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194) Requesting JFR team to introduce a way to disable validation of the .jfc file in a JDK 8 updates release, for example the system property -jfr.validate.jfc=false.
|