[JBoss jBPM] - How to run jBPM 4.0 examples
by showmanlkz
I am a newbie to jBPM, I just tried to run the test java from the package in Eclipse (i.e. DecisionConditionsTest.java etc)
But I was given the follow exception
Could not connect to: : 3081
| java.net.ConnectException: Connection refused: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(Unknown Source)
| at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
| at java.net.PlainSocketImpl.connect(Unknown Source)
| at java.net.SocksSocketImpl.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at java.net.Socket.<init>(Unknown Source)
| at java.net.Socket.<init>(Unknown Source)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:570)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:381)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
It seems that could not connect to jBPM server??
Appreciate any help :)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244458#4244458
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244458
16 years, 8 months
[JBoss jBPM] - About a exception with jbpmContext.getGraphSession().findAll
by sweet_yangyz
Hello:
I used jbpm 3.1.3 in my project , I writed a method of a business service class like this:
@Transactional(readOnly = true)
public List listAllProcessDefinition() {
return (List) jbpmTemplate.execute(new JbpmCallback() {
public Object doInJbpm(JbpmContext jbpmContext)
throws JbpmException {
return jbpmContext.getGraphSession()
.findAllProcessDefinitions();
}
});
}
there is no process definition record in table "JBPM_PROCESSDEFINITION" when the project is initialized,when I used mysql database, the method "findAllProcessDefinitions()" had been invoke fine,but when I change to oracle database,it will throw a IndexOutOfBoundsException ,it like this:java.lang.IndexOutOfBoundsException: Index: 0, Size: 0.
when I deploy a new process definition , this exception will disappeare,I have no good ideal about it ,can you help me?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244449#4244449
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244449
16 years, 8 months