cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying the 'simple' example in jbpm plugin

kaya
Champ in-the-making
Champ in-the-making
Hello everyone,

I am trying to deploy a workflow example : I chose the "simple" example whitch is included in every jbpm project created by the Eclipse plugin.
The deployment went well (I used the workflow console) but then when running the workflow, I get a nullpointer exception (sorry but the message is in french):

Veuillez corriger les erreurs ci-dessous puis cliquez sur Terminer.
* Une erreur système s'est produite pendant l'opération : null

the stack trace shows :


14:50:03,609 ERROR [ui.common.Utils] Une erreur système s'est produite pendant l'opération : null
java.lang.NullPointerException
   at org.alfresco.web.bean.workflow.WorkflowUtil.prepareTaskParams(WorkflowUtil.java:190)
   at org.alfresco.web.bean.workflow.StartWorkflowWizard.finishImpl(StartWorkflowWizard.java:150)
   at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:118)
   at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:115)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
   at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:124)
   at org.alfresco.web.bean.wizard.WizardManager.finish(WizardManager.java:520)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Unknown Source)

Does anybody know where this could come from?
Thanks a lot!!

Edit :
When I look at StartWorkflowWizard.java:150 I see a
// TODO: Deal with workflows that don't require any data
The "simple" example doesn't seem to have any data so may this be the cause?
2 REPLIES 2

mabayona
Champ on-the-rise
Champ on-the-rise
To deploy and run an advanced workflow, you have to do a few things. Not just deploying the workflow.

For details, have a look at:

http://wiki.alfresco.com/wiki/WorkflowAdministration

nicolasraoul
Star Contributor
Star Contributor
Hi Kaya,

This seems to be a known bug. See http://www.eshea.net/2009/01/26/alfresco-jbpm/

The XML generated by the Diagram view generates a NullPointerException in WorkflowUtil.prepareTaskParams because the start step has no task, so just insert <task name="wf:someRandomText"/> in the start node using the XML view.

I updated the wiki to explain this.

Cheers,
Nicolas Raoul