[seam-issues] [JBoss JIRA] Commented: (JBSEAM-3837) JobExecutorServlet as seam component
Hector Mendoza (JIRA)
jira-events at lists.jboss.org
Fri May 13 10:58:50 EDT 2011
[ https://issues.jboss.org/browse/JBSEAM-3837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601977#comment-12601977 ]
Hector Mendoza commented on JBSEAM-3837:
----------------------------------------
Using this component dont throw the other exception but log this on the console:
[Token] lock owner 'Job(17)' tries to unlock token '182' which is not locked
execute the node 1 time, log the above line, execute again the node and throw a NullPointerException:
java.lang.NullPointerException
at org.jbpm.graph.node.ProcessState.leave(ProcessState.java:216)
at org.jbpm.graph.def.Node.leave(Node.java:436)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.graph.def.Node_$$_javassist_80.leave(Node_$$_javassist_80.java)
at org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:138)
at com.kaf.applications.ActionHandler1.execute(ActionHandler1.java:33)
at org.jbpm.graph.def.Action.execute(Action.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.graph.def.Action_$$_javassist_34.execute(Action_$$_javassist_34.java)
at org.jboss.seam.bpm.SeamUserCodeInterceptor$1.process(SeamUserCodeInterceptor.java:80)
at org.jboss.seam.bpm.SeamUserCodeInterceptor$ContextualCall.run(SeamUserCodeInterceptor.java:33)
at org.jboss.seam.bpm.SeamUserCodeInterceptor.executeAction(SeamUserCodeInterceptor.java:74)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:279)
at org.jbpm.graph.def.Node.execute(Node.java:412)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.graph.def.Node_$$_javassist_80.execute(Node_$$_javassist_80.java)
at org.jbpm.job.ExecuteNodeJob.execute(ExecuteNodeJob.java:35)
at jbpm.JobExecutorThread.executeJob(JobExecutorThread.java:249)
at jbpm.JobExecutorThread.run(JobExecutorThread.java:115)
In this line (I add some logs for see whats happen) the null is job variale i think.
if (job.execute(jbpmContext)) {
> JobExecutorServlet as seam component
> ------------------------------------
>
> Key: JBSEAM-3837
> URL: https://issues.jboss.org/browse/JBSEAM-3837
> Project: Seam 2
> Issue Type: Feature Request
> Components: BPM
> Affects Versions: 2.0.3.CR1
> Environment: Seam 2.0.3, JBPM 3.2.2
> Reporter: Marko Strukelj
> Priority: Optional
> Attachments: jbpm.zip
>
>
> JBPM Job Execution using JobExecutorServlet doesn't work in Seam. Attached are modified sources to turn JobExecutorServlet into a Seam component and to have it use Seam's contexts and transactions.
> This is probably not the best way to do it but it works for me where I'm using it. There is a proper solution in the making - see related issues.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list