[JBoss jBPM] - Re: get processinstance with task id
by dleerob
The call jbpmContext.close() closes the "owning session".
Both your methods as using the "jbpmContext" variable.
So, when you call the method getTaskinstanceByID(String taskInstanceId), it calls jbpmContext.close() in your finally block. This closes the session. Now remember, your "jbpmContext" is shared by both methods, so when your getProcessInstance(String taskId) method tries to call taskInstance.getTaskMgmtInstance().getProcessInstance(), the session is already closed.
Try changing your getTaskinstanceByID method to this:
| public TaskInstance getTaskinstanceByID(String taskInstanceId){
| taskInstance = jbpmContext.getTaskInstance(Long.parseLong(taskInstanceId));
| return taskInstance;
| }
|
As you already have a jbpmContext initialized, don't recreate it in this method.
Hope this helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086508#4086508
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086508
18 years, 9 months
[JBossWS] - IllegalStateException: Cannot load SecurityAdaptor while run
by timeagentess
Hello all,
I am trying to run the SwaRef test sample from JBossWS 2.0 (working under JBoss 4.0.5).
After building the tests, I execute ant -Dtest=jaxws/samples/swaref and I get this exception:
java.lang.IllegalStateException: Cannot load SecurityAdaptor
| at org.jboss.wsf.spi.invocation.SecurityAdaptorFactory.getSecurityAdaptor(SecurityAdaptorFactory.java:40)
| at org.jboss.wsf.spi.test.TestDeployerJBoss.invokeMainDeployer(TestDeployerJBoss.java:81)
| at org.jboss.wsf.spi.test.TestDeployerJBoss.deploy(TestDeployerJBoss.java:68)
| at org.jboss.wsf.spi.test.JBossWSTestHelper.deploy(JBossWSTestHelper.java:58)
| at org.jboss.wsf.spi.test.JBossWSTestSetup.setUp(JBossWSTestSetup.java:94)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
| at junit.framework.TestResult.runProtected(TestResult.java:128)
| at junit.extensions.TestSetup.run(TestSetup.java:27)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
|
Same exception is thrown for every other test sample in the suite.
Can someone please offer some insight as to why this might be happening?
Thank you!
--Chris.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086502#4086502
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086502
18 years, 9 months
[JBoss jBPM] - Re: Version compatibility issues between JBPM 3.1.3 and JBos
by jbosspatni
Attached is the proces definition file
| <process-definition
| name="FaultProcess"
| xmlns="urn:jbpm.org:jpdl-3.1"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="urn:jbpm.org:jpdl-3.1 http://jbpm.org/xsd/jpdl-3.1.xsd"
| >
| <swimlane name="Initiator">
| <assignment expression="user(bert)"></assignment>
| </swimlane>
| <swimlane name="Identifier">
| <assignment expression="user(ernie)"></assignment>
| </swimlane>
| <swimlane name="Notifier">
| <assignment expression="user(user)"></assignment>
| </swimlane>
| <swimlane name="Resolver">
| <assignment expression="user(admin)"></assignment>
| </swimlane>
| <start-state name="Initiate">
| <task name="Initiate Fault Process">
| <controller>
| <variable name="Fault Id" access="read,write,required"></variable>
| </controller>
| </task>
| <transition name="" to="Fault Received"></transition>
| </start-state>
| <task-node name="Fault Received">
| <task name="Identify Type" swimlane="Initiator">
| <controller>
| <variable name="Fault Id" access="read"></variable>
| <variable name="Fault Type" access="read,write,required"></variable>
| </controller>
| </task>
| <transition name="" to="Check Fault Type"></transition>
| </task-node>
| <decision name="Check Fault Type">
| <handler class="com.patni.jbpm.CheckType"/>
| <transition name="Network" to="Identify Fault"></transition>
| <transition name="Hardware" to="Unresolved"></transition>
| </decision>
| <task-node name="Identify Fault">
| <task name="Identify Priority" swimlane="Identifier">
| <controller>
| <variable name="Fault Id" access="read"></variable>
| <variable name="Fault Type" access="read"></variable>
| <variable name="Fault Priority" access="read,write,required"></variable>
| <variable name="Fault Decription" access="read,write,required"></variable>
| <variable name="Fault Location" access="read,write,required"></variable>
| </controller>
| </task>
| <transition name="" to="Check Priority"></transition>
| </task-node>
| <task-node name="Unresolved">
| <task name="Fault Unresolved" swimlane="Initiator">
| <controller>
| <variable name="Fault Id" access="read"></variable>
| <variable name="Fault Type" access="read"></variable>
| </controller>
| </task>
| <transition name="" to="end1"></transition>
| </task-node>
| <end-state name="end1"></end-state>
| <decision name="Check Priority">
| <handler class="com.patni.jbpm.CheckPriority"/>
| <transition name="High" to="Notification"></transition>
| <transition name="Medium/Low" to="Resolution"></transition>
| </decision>
| <task-node name="Notification">
| <task name="Notify Manager" swimlane="Notifier">
| <controller>
| <variable name="Fault Id" access="read"></variable>
| <variable name="Fault Type" access="read"></variable>
| <variable name="Fault Priority" access="read"></variable>
| <variable name="Fault Decription" access="read"></variable>
| <variable name="Fault Location" access="read"></variable>
| </controller>
| </task>
| <transition name="" to="Resolution"></transition>
| </task-node>
| <task-node name="Resolution">
| <task name="Enter Status" swimlane="Resolver">
| <controller>
| <variable name="Fault Id" access="read"></variable>
| <variable name="Fault Type" access="read"></variable>
| <variable name="Fault Priority" access="read"></variable>
| <variable name="Fault Decription" access="read"></variable>
| <variable name="Fault Location" access="read"></variable>
| <variable name="Fault Status" access="read,write,required"></variable>
| </controller>
| </task>
| <transition name="" to="Check Status"></transition>
| </task-node>
| <decision name="Check Status">
| <handler class="com.patni.jbpm.CheckStatus"/>
| <transition name="Resolved" to="end2"></transition>
| <transition name="Not Resolved" to="Unresolved"></transition>
| </decision>
| <end-state name="end2"></end-state>
| </process-definition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086500#4086500
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086500
18 years, 9 months
[JBoss Messaging] - cant control security in a jms queue
by anderslinden
Hello!
I am running jboss-4.2.1.GA and I have a jms queue which I want clients to listen at and the server to send to. The clients uses flex and the server java (of course). I have managed to do all this without any security constraints so both clients and the server are able to read and write to and from the jms queue.
I have tried to manipulate these files:
jboss/server/default/deploy/jms/jbossmq-destinations-service.xml
jboss/server/default/data/hypersonic/localDB.script
jboss/server/all/deploy-hasingleton/jms/jbossmq-service.xml
jboss/server/all/deploy-hasingleton/jms/jbossmq-destinations-service.xml
jboss/server/all/deploy-hasingleton/jms/hsqldb-jdbc-state-service.xml
without getting anywhere, either everyone is able to both read and write or noone is able to read/write.
How do I setup this user database? I have tried to find anything about it, but without luck.
Actually, I would like to have a security model thats not password based, but based on which ip thats connected to the jms queue. I would like to setup a solution where only connections from localhost can write to the queue, in other words the server. Is that possible?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086488#4086488
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086488
18 years, 9 months