JS - JobScheduler
  1. JS - JobScheduler
  2. JS-1396

Provide readiness of JITL job implementation for the SAX parser

    Details

    • Type: Feature Feature
    • Status: In Progress (View Workflow)
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      Tasks

      • It should be proved that the built-in SAX parser of Java 8 is capable to replace the Xerces implementation. The result will tell us if Xerces is still required or can be replaced by SAX from the Java version, since Java includes a SAX parser a while ago.
      • Provide an example of a JITL job that is migrated from Xerces to SAX that shows if this works as expected.
      • Create a list of JITL jobs that make use of Xerces.
      • Determine the effort for migration of additional JITL jobs.

      Hint

      • The Xerces project had no changes in the implementation since 2010, therefore it can be concluded that no further development for the project takes place.

      Note
      To enable the SAX parser

      In factory.ini

      options                 = -Djavax.xml.transform.TransformerFactory="net.sf.saxon.TransformerFactoryImpl" -Dlog4j.configuration="file:///${SCHEDULER_HOME}/lib/log4j.properties"
      

      in scheduler_mail.xsl
      <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "2.0">

      To use the newest Saxon class change the Saxon...jar in $scheduler_home/lib/3rd-party

      Maintainer Notes

      • This feature is dismissed for branch 1.x as we do not intend to break existing functionality.
      • Branch 2.x will not include classes of the Apache Xerces libraries.
      • Release 1.12 includes both the SAX parser and Apache Xerces libraries.

        Issue Links

          Activity

          Hide
          Uwe Risse added a comment -

          org.apache.xerces.parsers.SaxParser is used in these classes

          Maybe can be removed

          • sos.marshalling.SOSImport
          • com.sos.scheduler.model.xmldoc.DescriptionTest
          • sos.scheduler.launcher.JobSchedulerLoadTestLauncher

          These implementations must be change to use built-in SAX parser of Java 8

          • sos.xml.SOSXMLValidator
          • sos.xml.SOSXMLXPath
          • com.sos.JSHelper.Options.JSOptionsClass
          • com.sos.JSHelper.io.Files.JSXMLFile
          • com.sos.joe.wizard.forms.JobAssistentImportJobParamsForm
          Show
          Uwe Risse added a comment - org.apache.xerces.parsers.SaxParser is used in these classes Maybe can be removed sos.marshalling.SOSImport com.sos.scheduler.model.xmldoc.DescriptionTest sos.scheduler.launcher.JobSchedulerLoadTestLauncher These implementations must be change to use built-in SAX parser of Java 8 sos.xml.SOSXMLValidator sos.xml.SOSXMLXPath com.sos.JSHelper.Options.JSOptionsClass com.sos.JSHelper.io.Files.JSXMLFile com.sos.joe.wizard.forms.JobAssistentImportJobParamsForm

            People

            • Assignee:
              Uwe Risse
              Reporter:
              Victor Garcia-Beltran (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: