cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get the pallette for editing/creating BPMN flows

himangshu_chowd
Champ in-the-making
Champ in-the-making
Getting error while trying to edit a BPMN flow.Unable to see the palette


Mar 22, 2016 4:08:20 PM com.vaadin.Application terminalError
SEVERE: Terminal error:
java.lang.NullPointerException
   at org.activiti.image.impl.DefaultProcessDiagramGenerator.prepareBpmnModel(DefaultProcessDiagramGenerator.java:513)
   at org.activiti.image.impl.DefaultProcessDiagramGenerator.generateProcessDiagram(DefaultProcessDiagramGenerator.java:474)
   at org.activiti.image.impl.DefaultProcessDiagramGenerator.generateDiagram(DefaultProcessDiagramGenerator.java:404)
   at org.activiti.image.impl.DefaultProcessDiagramGenerator.generateDiagram(DefaultProcessDiagramGenerator.java:426)
   at org.activiti.explorer.ui.process.simple.editor.SimpleTableEditor$5.getStream(SimpleTableEditor.java:253)
   at com.vaadin.terminal.StreamResource.getStream(StreamResource.java:167)
   at com.vaadin.Application.handleURI(Application.java:798)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleURI(AbstractCommunicationManager.java:2289)
   at com.vaadin.terminal.gwt.server.CommunicationManager.handleURI(CommunicationManager.java:377)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleURI(AbstractApplicationServlet.java:1099)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:535)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:53)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:745)

Mar 22, 2016 4:08:20 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [Vaadin Application Servlet] in context with path [/BIP1.0] threw exception [java.lang.NullPointerException] with root cause
java.lang.NullPointerException
   at org.activiti.explorer.ExplorerApp.terminalError(ExplorerApp.java:246)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleURI(AbstractCommunicationManager.java:2310)
   at com.vaadin.terminal.gwt.server.CommunicationManager.handleURI(CommunicationManager.java:377)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleURI(AbstractApplicationServlet.java:1099)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:535)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:53)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:745)

7 REPLIES 7

jbarrez
Star Contributor
Star Contributor
Seems to be an error while generating the process diagram. Can you attach your process xml so we can have a look?

himangshu_chowd
Champ in-the-making
Champ in-the-making
I have attached my process.xml file. As far as your observation is concerned, I would say that if that had been the issue, the same xml file wouldn't have shown up when imported directly in the deployed activiti-explorer.war file.
Infact even while trying to create a new BPMN model in the explorer itself, the palette doesn't appear. So I guess it has nothing to do with the xml file.

jbarrez
Star Contributor
Star Contributor
I've tried it here with the latest version and could import the process definition just fine in Explorer.
Which version are you using? Which setup (java version, tomcat, etc). You're running all with UTF-8?

himangshu_chowd
Champ in-the-making
Champ in-the-making
I am using Java 7 and Tomcat 8.0.
Well although I'm able to import the xml file now, the PALETTE doesn't show up in the modeler when I try to edit the xml in Activiti Explorer.
I'm using BPMN IO to create the workflow xml and using it in Activiti Explorer and I suspect there's some disparity between the way, the xml is generated using BPMN IO and Activiti Modeler.
Pulling up the palette is a big challenge now because without it I'm unable to create/edit any workflow model.

jbarrez
Star Contributor
Star Contributor
I imported the process.txt from above just fine, palette being visible and all.
Do you see any errors in the console tab of Chrome?

himangshu_chowd
Champ in-the-making
Champ in-the-making
Yes I am using the Actviti 5.19.0.2 version sourecode and I do indeed see an error in the debugger's console in Mozilla.
Would you mind sharing the project which you say that you have used to import the process.txt xml file an also are able to see the palette?
My Email Is: himaang@rediffmail.com

jbarrez
Star Contributor
Star Contributor
"Would you mind sharing the project which you say that you have used to import the process.txt xml file an also are able to see the palette?"

Um … this is open source … no sharing via email needed 😉
I simply ran the latest version via this script: https://github.com/Activiti/Activiti/blob/master/scripts/start-explorer.sh

If you're saying you see an error … can you also share with us what error … ?