-
1. Re: Task cannot have more than one incoming connection?
doboss Jan 14, 2013 9:38 AM (in response to gtn66)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 Jan 15, 2013 3:25 AM (in response to doboss)@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 Jan 14, 2013 10:44 AM (in response to gtn66)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 Jan 14, 2013 12:33 PM (in response to gtn66)1 of 1 people found this helpfulyou 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
-
5. Re: Task cannot have more than one incoming connection?
gtn66 Jan 15, 2013 2:23 AM (in response to swiderski.maciej)@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 Jan 15, 2013 3:11 AM (in response to 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 Jan 15, 2013 5:00 AM (in response to gtn66)1 of 1 people found this helpfulNow 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.
-
8. Re: Task cannot have more than one incoming connection?
swathi123 Nov 17, 2014 2:59 AM (in response to gtn66)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 Mar 2, 2016 10:34 PM (in response to gtn66)Update in build.xml
<target name="start.jboss">
....
<arg value="-Djbpm.enable.multi.con=true" />
.....