AnsweredAssumed Answered

NullPointerException in JUEL evaluation in FormService

Question asked by frauke on Nov 3, 2010
Latest reply on Nov 4, 2010 by frauke
Hi,

I have a problem after switching to release RC1, concerning the new FormService.
The code

processEngine.getFormService().getRenderedTaskForm(taskId);
throws an exception:

java.lang.NullPointerException
   at org.activiti.engine.impl.form.JuelFormEngine.getFormTemplateString(JuelFormEngine.java:58)
   at org.activiti.engine.impl.form.JuelFormEngine.renderTaskForm(JuelFormEngine.java:44)
   at org.activiti.engine.impl.cmd.GetRenderedTaskFormCmd.execute(GetRenderedTaskFormCmd.java:62)
   at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:36)
   at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
   at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
   at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
   at org.activiti.engine.impl.FormServiceImpl.getRenderedTaskForm(FormServiceImpl.java:44)

Outcomes