-
Enhancement
-
Resolution: Fixed
-
P3
-
8
-
b01
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8239755 | emb-8u251 | Fairoz Matte | P3 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8239755 Provision to disable XML validation in .jfc file in JFR
-
- Resolved
-