[jboss-user] [jBPM] - Re: New Local human task service in JBPM5.2

Zeliang Huang do-not-reply at jboss.com
Wed Dec 14 01:05:18 EST 2011


Zeliang Huang [http://community.jboss.org/people/ossa] created the discussion

"Re: New Local human task service in JBPM5.2"

To view the discussion, visit: http://community.jboss.org/message/641443#641443

--------------------------------------------------------------
thanks guys. 

I have got this error when I try to start a new process instance.  This is my code.  Any solution to this?

+factory = Persistence.createEntityManagerFactory("org.jbpm.task");+
+TaskService tService = new TaskService(factory,SystemEventListenerFactory.getSystemEventListener())+
+TaskServiceSession tSession = tService.createSession();+

+org.jbpm.task.TaskService client = new org.jbpm.task.service.local.LocalTaskService(tSession);+
+SyncWSHumanTaskHandler handler = new SyncWSHumanTaskHandler(client,    session);+
+handler.connect();+



java.lang.reflect.InvocationTargetException
    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:585)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269)
    at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170)
    at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
    at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
    at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
    at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
    at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at iwork.common.web.ControllerServlet.service(ControllerServlet.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at iwork.common.web.TransactionCheckFilter.doFilter(TransactionCheckFilter.java:49)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at iwork.common.web.RequestLoggingFilter.doFilter(RequestLoggingFilter.java:176)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3243)
    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:2003)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.lang.NoSuchMethodError: org.jbpm.task.service.TaskServiceSession.getService()Lorg/jbpm/task/service/TaskService;
    at org.jbpm.task.service.local.LocalTaskService.registerForEvent(LocalTaskService.java:188)
    at org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler.registerTaskEvents(SyncWSHumanTaskHandler.java:115)
    at org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler.connect(SyncWSHumanTaskHandler.java:103)
    ... 35 more
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/641443#641443]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111214/3303e741/attachment-0001.html 


More information about the jboss-user mailing list