cancel
Showing results for 
Search instead for 
Did you mean: 

No Starting Form

swa1
Champ in-the-making
Champ in-the-making
When I want to start the process with a click on "Show Start Form", the popup which should show the form just shows "Failure" and the Ok-Button.
The form is there and it is a correct HTML file. Anybody an idea what problem this could be?
8 REPLIES 8

frederikherema1
Star Contributor
Star Contributor
What does the log-file say?
Can you double-check the form has the same name as the name you use in the activiti:formKey?

swa1
Champ in-the-making
Champ in-the-making
The form name is the same.

The log-file says:
09:14:51,468 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: null
java.lang.NullPointerException
at org.activiti.engine.impl.form.JuelFormEngine.getFormTemplateString(JuelFormEngine.java:62)
at org.activiti.engine.impl.form.JuelFormEngine.renderStartForm(JuelFormEngine.java:38)
at org.activiti.engine.impl.cmd.GetRenderedStartFormCmd.execute(GetRenderedStartFormCmd.java:61)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:37)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.FormServiceImpl.getRenderedStartForm(FormServiceImpl.java:36)
at org.activiti.rest.api.process.ProcessDefinitionFormGet.executeStreamingWebScript(ProcessDefinitionFormGet.java:32)
at org.activiti.rest.util.ActivitiStreamingWebScript.execute(ActivitiStreamingWebScript.java:65)
at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)

frederikherema1
Star Contributor
Star Contributor
What's the name of the form-file, and what activiti:formKey are you using on your start-event.
There seems to be a mismatch, or maybe the form isn't found within the deployment.

swa1
Champ in-the-making
Champ in-the-making
This is the start event:
<startEvent id="StartNoneEvent" name="StartNoneEvent" activiti:formKey="emailAbrufen.form">

And the form-file is emailAbrufen.form as you can see in the screenshot.

frederikherema1
Star Contributor
Star Contributor
Swa,

Is the form-file deployed alongside the process-definition in your business-archive (.bar file). Can you check (using probe or DB-tool) that the deployment that holds your process-definition (ACT_RE_PROCDEF_ .DEPLOYMENT_ID_) contains 2 resources (ACT_GE_RESOURCE_), one form and the other your process?

swa1
Champ in-the-making
Champ in-the-making
Ah yes, that was the problem. The form wasn't there. Thanks a lot.
Now it works.

cyan747
Champ in-the-making
Champ in-the-making
Swa,

Is the form-file deployed alongside the process-definition in your business-archive (.bar file). Can you check (using probe or DB-tool) that the deployment that holds your process-definition (ACT_RE_PROCDEF_ .DEPLOYMENT_ID_) contains 2 resources (ACT_GE_RESOURCE_), one form and the other your process?
i have checked the datebase. the form has already deploy .But I still get the error. why?

jbarrez
Star Contributor
Star Contributor
Are you referecing the form in the right way? Ie if  your form lives in a certain folder in the .bar file, you must also make sure that folder structure is mimicked in the form attribute.