Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8222122

Provision to disable XML validation in .jfc file in JFR

    Details

    • Subcomponent:
      jfr
    • Resolved In Build:
      b01

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              fmatte Fairoz Matte
              Reporter:
              vaibhav Vaibhav Choudhary
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: