9 Replies Latest reply on Mar 2, 2016 10:34 PM by phqhuy

    Task cannot have more than one incoming connection?

    gtn66

      Hi Everybody,

       

      I'm jBPM-newbie and i need some help.

       

      I have installed jbpm-5.4.0.Final using the full installer. After starting the eclipse (with ant start.demo)  I have created a new jBPM project and modelled a new Process using BPMN2 Modeler.

       

      After process validation i get the following error: "This type of node cannot have more than one incoming connection".

       

      I know that the same problem has been solved see https://issues.jboss.org/browse/JBPM-3586.

       

      But my question is: where to set the system property (-Djbpm.enable.multi.con=true)   concretely?

       

      I don't know how to do that

       

      Thanks in Advance for any answer.

       

      PS: I hope that I'm in the right dicussion forum to ask such question.

        • 1. Re: Task cannot have more than one incoming connection?
          doboss

          You would set any system properties like that in the standalone.conf or alternatively in the standalone.sh/bat files or potentially on the command line. You basically need to pass that argument to java itself. You can also do it via command line into the runtime system.

           

          Here are a couple of posts:

          http://javahowto.blogspot.com/2012/09/how-to-add-system-properties-to-jboss.html

          https://community.jboss.org/thread/197273

           

          HTH

          • 2. Re: Task cannot have more than one incoming connection?
            gtn66

            @doboss: First, thanks for the answer.

             

            I have  done what you have suggested but without success. The error still occurs.

             

            I have simply added the following line at the end of standalone.conf: JAVA_OPTS="$JAVA_OPTS -Djbpm.enable.multi.con=true".

             

            Could somebody help me?

             

            by the way: I have attached my bpmn file representing my process, what i want to model.

            • 3. Re: Task cannot have more than one incoming connection?
              doboss

              Keep in mind, I don't know about the original problem, just how to define system properties. I will try to have a look in more detail later.

              • 4. Re: Task cannot have more than one incoming connection?
                swiderski.maciej

                you can do that in couple of ways, and two of them follows:

                1. if you use ant to start the demo environment you could edit build.xml and find target: start.jboss7 and there you find <arg> tags that you can use to define that system property

                2. configure system properties inside JBoss AS7 standalone.xml according to these documentation

                 

                HTH

                1 of 1 people found this helpful
                • 5. Re: Task cannot have more than one incoming connection?
                  gtn66

                  @Maciej: Thanks for the answer.

                   

                  As you mentioned I've added the system property successively first in Build.xml then in standalone.xml but without success. The error still occurs.

                   

                  I'm now clueless and i still need help.

                   

                  Thanks again in advance for any answer.

                  • 6. Re: Task cannot have more than one incoming connection?
                    gtn66

                    Now I have simplified my process (instead of many incoming connection i use a gateway).

                     

                    The error "This type of node cannot have more than one incoming connection" does NOT occur anymore.

                     

                     

                    Now I'm still fighting with another error, which is the following:

                     

                        ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null

                     

                     

                    This is the java stack trace:

                     

                    java.lang.NullPointerException

                              at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateNodes(RuleFlowProcessValidator.java:193)

                              at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateProcess(RuleFlowProcessValidator.java:117)

                              at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateProcess(RuleFlowProcessValidator.java:555)

                              at org.jbpm.compiler.ProcessBuilderImpl.buildProcess(ProcessBuilderImpl.java:124)

                              at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:267)

                              at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:673)

                              at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:709)

                              at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:51)

                              at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:40)

                              at com.sample.ProcessMain.readKnowledgeBase(ProcessMain.java:28)

                              at com.sample.ProcessMain.main(ProcessMain.java:19)

                    212836 15/01 09:10:32,448[main] ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null

                     

                     

                    Could somebody give me a quick hint?

                    • 7. Re: Task cannot have more than one incoming connection?
                      gtn66

                      Now I have solved the problem with java.lang.NullPointerException happened in at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateNodes(RuleFlowProcessValidator.java:193)

                       

                      Diverging gateways should have constraints. For further information see the following  documentation (chapter 6.8.2 constraints) http://docs.jboss.org/jbpm/v5.4/userguide/ch.core-basics.html#d0e2175

                       

                       

                      @ALL: Thanks a lot for your help.

                      1 of 1 people found this helpful
                      • 8. Re: Task cannot have more than one incoming connection?
                        swathi123

                        Hi,

                         

                        Even I am facing same problem as nullpointer exception as  u mentiond., though i have added constraints.

                        can you plz explain it how did u resolve?

                        Thanks in advance

                         


                        • 9. Re: Task cannot have more than one incoming connection?
                          phqhuy

                          Update in build.xml

                           

                          <target name="start.jboss">

                              ....

                            <arg value="-Djbpm.enable.multi.con=true" />

                           

                          .....