[JBoss jBPM] - problem when traversing to end state
by twiceknightly
Hi,
First of all I'd just like to say that the jbpm code looks of very high quality and it's a great framework. Hopefully if I get to the point where I understand it sufficiently I may be able to contribute some bug fixes.
I have a UI that allows shows me task list, allows me to create new tasks and update variables at each stage. I'm using container managed persistence as set up in accordance with
http://wiki.jboss.org/wiki/Wiki.jsp?page=Jbpm32UsingCMT
I'm having problems when calling taskInstance.end() on a task which leads to an end state. The persistance seems to be working because new rows in the database are appearing for new task instances etc. However when I take a transition from a penultimate state to an end state I get the stack trace below.
| javax.faces.FacesException: Error calling action method of component with id taskform:transitionButton
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
| at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
| at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
| at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
| at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
| at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
| at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
| at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
| at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
| at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
| at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
| at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
| at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
| Caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{taskBean.saveAndClose}
| at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| ... 18 more
| Caused by: java.lang.ClassCastException: cannot assign instance of org.hibernate.exception.NestableDelegate to field org.hibernate.exception.NestableRuntimeException.delegate of type org.hibernate.exception.NestableDelegate in instance of org.hibernate.SessionException
| at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(Ljava.lang.Object;[Ljava.lang.Object;)V(Unknown Source)
| at java.io.ObjectStreamClass.setObjFieldValues(Ljava.lang.Object;[Ljava.lang.Object;)V(Unknown Source)
| at java.io.ObjectInputStream.defaultReadFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
| at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
| at java.io.ObjectInputStream.defaultReadFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
| at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
| at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
| at weblogic.rmi.extensions.server.CBVInputStream.readObjectInternal(CBVInputStream.java:71)
| at weblogic.rmi.extensions.server.CBVInputStream.readObject(CBVInputStream.java:65)
| at weblogic.rmi.internal.ServerRequest.unmarshalThrowable(ServerRequest.java:352)
| at weblogic.rmi.internal.ServerRequest.getThrowable(ServerRequest.java:62)
| at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:203)
| at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335)
| at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
| at com.nr.tms.workflow.interaction.ejb.TMSWorkflowService_7jxszs_EOImpl_920_WLStub.saveAndCloseTask(JLjava.lang.String;Ljava.util.List;)V(Unknown Source)
| at org.jbpm.webapp.bean.TaskBean.saveAndClose(TaskBean.java:100)
| at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
| at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
| at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121757#4121757
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121757
18 years, 6 months
[JBoss Tools (users)] - Re: GDI leak in FreeMarker IDE
by krogh
*bump*
I noticed the same problem, on Vista and XP/SP2, using freemarker-ide-1.0.0.beta3, an up-to-date eclipse 3.3 and freemarker 2.3.9
-BUT- I'm not using the outline view
I'm unable to spot when it's exactly happening. Sometimes eclipse crashes after 5 minutes and sometimes it takes hours.
Here are some observations:
When working on an FTL file, copy-paste operations and using auto-completion seem to cause crashes faster.
If i've some ftl files open but work on a Java file, there's no problem.
By monitoring Task Manager, the crash is cleary due to a GDI handle leak
As the GDI handle count is increasing, freemarker ide becomes slower until it becomes unresponsive, and then so does eclipse; unable to save or do anything else such as close a file.
I just updated to a nightly build and hope this will solve my problem :)
Hope this help to reproduce it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121755#4121755
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121755
18 years, 6 months