[JBoss jBPM] - CommandExecuter thread and CMT
by Olivier_Debels
Hello,
I'm currently using Jbpm 3.1.1 with CMT configured (by setting 'isTransactionEnabled' to false in my jbpm.cfg.xml).
Whenever an exception occurs in the command executer thread, I get the exception: "setRollbackOnly was invoked while configuration specifies user managed transactions".
The reason for this is that in the commandExecuterThread any error is catched by:
| ...
| } catch (Throwable t) {
| // rollback the transaction
| log.debug("command '"+message+"' threw exception. rolling back transaction", t);
| jbpmContext.setRollbackOnly();
| ...
|
And when the context is closed afterwards (jbpmContext.close()), all services will be closed. Looking at the DbPersistenceServiceProvider code this results in:
| public void close() {
| if ( (session!=null)
| && (transaction==null)
| && (isRollbackOnly)
| ) {
| throw new JbpmException("setRollbackOnly was invoked while configuration specifies user managed transactions");
| }
| ...
|
Since we have no transaction (we configured it this way) and the isRollbackOnly is true (set by previous code) we get this exception.
So I seems like the command executor thread is not behaving well when working in a CMT.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964957#3964957
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964957
19 years, 10 months
[JBoss Seam] - In attribute requires value for component: Register.members
by legolas.w@gmail.com
hi
Thank you for reading my post
I have problem with my code , and i can not resolve it even by readin some post by other people
here is the session bean code :
|
|
| @DataModel(value="members")
| @In(scope=ScopeType.SESSION, value="members")
| private List<Member> members;
|
| @Factory("members")
| public void getmembers(){
| members = em.createQuery(" from members member order by member.joinDate").getResultList();
| }
|
|
and here is my jsp file code :
| <h:dataTable var="mem" value="#{members}" >
| <h:column>
| <f:facet name="header">
| <h:outputText value="name"/>
| </f:facet>
| <h:outputText value="#{mem.name}"/>
| </h:column>
| <h:column>
| <f:facet name="header">
| <h:outputText value="user name"/>
| </f:facet>
| <h:outputText value="#{mem.uName}" />
| </h:column>
| <h:column>
| <f:facet name="header">
| <h:outputText value="password"/>
| </f:facet>
| <h:outputText value="#{mem.password}"/>
|
| </h:column>
|
| </h:dataTable>
|
|
|
i get the following exception :
| org.jboss.seam.RequiredException: In attribute requires value for component: Register.members
|
can some one please tell me what is wrong here ?
I add what ever annotation that i know to members with no luck
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964949#3964949
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964949
19 years, 10 months