Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3944

java.lang.NullPointerException in org.jbpm.bpmn2.xml.di.BPMNPlaneHandler.end() when missing process id.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0
    • 6.0.0
    • jBPM Core
    • None

        • Description of problem:

      A java.lang.NullPointerException will be thrown during parsing of the process if the definition (see attached file) contains 'xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"' elements and the process element is missing the 'id' attribute.

        • How reproducible:

      File file = new File("/path/to/the/attached/process/definition");
      Resource process = ResourceFactory.newFileResource(file);

      KieServices ks = KieServices.Factory.get();
      KieFileSystem kfs = ks.newKieFileSystem();
      kfs.write(process);

      KieBuilder kb = ks.newKieBuilder(kfs);
      kb.buildAll();

        • Actual results:

      java.lang.NullPointerException on the kb.buildAll(); line.

            kverlaen@redhat.com Kris Verlaenen
            mbaluch@redhat.com Marek Baluch
            Marek Baluch Marek Baluch
            Marek Baluch Marek Baluch
            Cheng Zhang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: