Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-1707

pageflow parsing is slow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jBPM 3.3.0 GA, jBPM 3.2.4 GA
    • jBPM 3.2.3
    • Runtime Engine
    • None
    • Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
      enterprise-installer-4.3.0.GA-1.ep1.8.jar
      jdk-1.5.0_16-fcs

      On a RHEL machine, while deploying a seam based ear, which contains 13 pageflow definitions, the parsing of these 13 pageflow files takes more than 34 minutes .

      The culprit seems to be the usage of the original systemId (http://jboss.com/products/seam/pageflow-2.0.xsd) in the org.jbpm.jdpl.xml.JpdlParser$JpdlEntityResolver class, as this
      apparently results in slow internet lookups:

      log.debug("original systemId as input source");
      inputSource = new InputSource(systemId);

      Using a null InputSource:

      inputSource = new InputSource((InputStream)null);

      brings the parsing time down to less than 1 second.

      Of course it would be better to actually pass in a reference to the local pageflow-2.0.xsd file, which is inside the jboss-seam.jar.

              aguizar_jira Alejandro Guizar (Inactive)
              aguizar_jira Alejandro Guizar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: