[Clustering/JBoss] - Re: ConcurrentModificationException during session serializa
by smarlow@redhat.com
Brian,
We will have to try to get access to the StandardSessionFacade from there as well (perhaps through the ClusteredSession).
anonymous wrote :
| The concern I have is StandardSession.facade is not thread safe, and what's returned from getSession() needs to be if we are going to use it as a mutex.
|
We will only synchronize on the StandardSession.facade object and not modify it. Since we are not modifying the StandardSession.facade object, we do not need it to be thread safe. At least that is my thinking, let me know if I'm missing something :-)
anonymous wrote :
| There's no ref to facade outside StandardSession.getSession(), so ClusteredSession can override the getSession() method and replace the field with a volatile field and synchronize the construction if null.
|
I don't really understand the case when getSession would return null. I wonder if the null session case signify something special that needs to be preserved? For what its worth, the javadoc for Requests.getsession() is:
/**
| * Return the session associated with this Request, creating one if necessary.
| */
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240146#4240146
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240146
15 years, 3 months
[JBoss jBPM] - Error while completing task
by rams.rapol
Hi,
Following error is thrown when last task in a process is completed.
This happens only for the last task before the process is ended and not for intermediate tasks.
Also, should i explicitly set the value of result in variables? something like this? I'm assuming this to be only in case of sub process and is not needed even if task has multiple transitions?
taskService.setVariable(taskImpl.getDbid(), "result", action);
Code & Process Definition:
| taskService.completeTask(taskImpl.getDbid());
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process name="SimpleProcess" xmlns="http://jbpm.org/4.0/jpdl">
|
| <start g="20,20,48,48">
| <transition to="review1" />
| </start>
|
| <task name="review1" g="96,16,127,52">
| <assignment-handler class="com.test.tasks.TaskHandler">
| </assignment-handler>
| <transition to="review2" />
| </task>
|
| <task name="review2" g="96,16,127,52">
| <assignment-handler class="com.test.tasks.TaskHandler">
| </assignment-handler>
| <transition to="endstate" />
| </task>
|
| <end name="endstate" g="255,16,88,52" />
|
| </process>
|
|
| java.lang.NullPointerException
| at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:47)
| at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:31)
| at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
| at org.jbpm.pvm.internal.spring.CommandTransactionCallback.doInTransaction(CommandTransactionCallback.java:50)
| at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
| at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:76)
| at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
| at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
|
|
|
|
Thanks,
-Rams
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240135#4240135
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240135
15 years, 3 months