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

kiesession startprocess stackoverflow hashmap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • jBPM 6.0.0.CR1
    • jBPM 6.0.0.Beta5
    • Runtime Engine
    • None
    • Hide

      this is my processMain code:

      public class ProcessMain {

      public static final void main(String[] args) throws Exception

      { KieSession ksession = createKieSession(); Map<String, Object> params = new HashMap<String, Object>(); params.put("action", "CreateAgent"); ksession.startProcess("InterfaceLayer.bpmn",params); ksession.dispose(); }

      private static KieSession createKieSession()

      { KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add(ResourceFactory.newClassPathResource("InterfaceLayer.bpmn"), ResourceType.BPMN2); KieBase kbase = kbuilder.newKnowledgeBase(); return kbase.newKieSession(); }

      }

      Show
      this is my processMain code: public class ProcessMain { public static final void main(String[] args) throws Exception { KieSession ksession = createKieSession(); Map<String, Object> params = new HashMap<String, Object>(); params.put("action", "CreateAgent"); ksession.startProcess("InterfaceLayer.bpmn",params); ksession.dispose(); } private static KieSession createKieSession() { KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add(ResourceFactory.newClassPathResource("InterfaceLayer.bpmn"), ResourceType.BPMN2); KieBase kbase = kbuilder.newKnowledgeBase(); return kbase.newKieSession(); } }

    Description

      in previous versions this error does not exist. I'm running a simple process bpmn that have a divergent node.
      this is the error:

      Exception in thread "main" java.lang.StackOverflowError
      at java.util.HashMap.hash(HashMap.java:351)
      at java.util.HashMap.getEntry(HashMap.java:443)
      at java.util.HashMap.get(HashMap.java:405)
      at org.jbpm.workflow.core.impl.NodeImpl.getOutgoingConnections(NodeImpl.java:146)
      at org.jbpm.workflow.instance.node.SplitInstance.checkNodes(SplitInstance.java:238)

      Attachments

        1. InterfaceLayer.bpmn
          16 kB
        2. ProcessMain.java
          1 kB
        3. TestEventListener.java
          2 kB

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            brunov_jira Bruno Veloso (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: