[jboss-dev-forums] [Design of JBoss jBPM] - ProcessDefinition with no startTask

mteira do-not-reply at jboss.com
Mon Oct 9 07:53:20 EDT 2006


Trying to create a new ProcessInstance using the jbpm-console from a ProcessDefinition with no startTask throws an error in the jbpm-console. Something like:

An Error Occurred:
  | /common/taskform.xhtml @21,50 src="#{taskBean.taskFormPath}" /common/taskform.xhtml @21,50 src="#{taskBean.taskFormPath}": java.lang.NullPointerException

The error is caused by:

Caused by: java.lang.NullPointerException
  | 	at org.jbpm.webapp.taskforms.TaskForms.getTaskFormPath(TaskForms.java:44)
  | 	at org.jbpm.webapp.bean.TaskBean.getTaskFormPath(TaskBean.java:92)
  | 	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 javax.el.BeanELResolver.getValue(BeanELResolver.java:218)
  | 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
  | 	at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)
  | 	at com.sun.el.parser.AstValue.getValue(AstValue.java:96)
  | 	at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
  | 	at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  | 

It seems that the root of the problem is org.jbpm.webapp.bean.TaskBean getTask() method returning  null for a ProcessInstance without an StartTask, and so, we are eventually calling TaskForms.getTaskFormPath with a null argument from taskform.xhtml:

  <ui:define name="body">
  |     <ui:include src="#{taskBean.taskFormPath}" />
  | ...
  | 


So, should all ProcessDefinition has an StartTask form? Or should that form be included from taskform.xhtml only when it exists?

Regards.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976949#3976949

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976949



More information about the jboss-dev-forums mailing list