cancel
Showing results for 
Search instead for 
Did you mean: 

Create of BPML XML failed null

viggo_navarsete
Champ in-the-making
Champ in-the-making
Hi,

I've made a new model in Activiti Designer and when I try to export (or deploy) it it fails with "Create of BPML XML failed   null". From the tomcat log I can see the following output:
03:09:10,143 [http-nio-8084-exec-10] ERROR org.activiti.editor.ui.EditorProcessDefinitionDetailPanel  - failed to export model to BPMN XML
java.util.NoSuchElementException
   at java.util.ArrayList$Itr.next(ArrayList.java:834)
   at org.activiti.editor.language.json.converter.BpmnJsonConverter.readEdgeDI(BpmnJsonConverter.java:775)
   at org.activiti.editor.language.json.converter.BpmnJsonConverter.convertToBpmnModel(BpmnJsonConverter.java:279)
   at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel$2.getStream(EditorProcessDefinitionDetailPanel.java:250)
   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:725)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:301)
   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.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
   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:44)
   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:219)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:652)
   at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
java.util.NoSuchElementException
   at java.util.ArrayList$Itr.next(ArrayList.java:834)
   at org.activiti.editor.language.json.converter.BpmnJsonConverter.readEdgeDI(BpmnJsonConverter.java:775)
   at org.activiti.editor.language.json.converter.BpmnJsonConverter.convertToBpmnModel(BpmnJsonConverter.java:279)
   at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel.deployModelerModel(EditorProcessDefinitionDetailPanel.java:344)
   at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel.deployModel(EditorProcessDefinitionDetailPanel.java:278)
   at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel$1.valueChange(EditorProcessDefinitionDetailPanel.java:162)
   at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
   at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
   at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219)
   at com.vaadin.ui.AbstractField.fireValueChange(AbstractField.java:897)
   at com.vaadin.ui.AbstractField.setValue(AbstractField.java:529)
   at com.vaadin.ui.AbstractSelect.setValue(AbstractSelect.java:676)
   at com.vaadin.ui.Select.changeVariables(Select.java:664)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.changeVariables(AbstractCommunicationManager.java:1460)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1404)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1329)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:761)
   at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:325)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:301)
   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.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
   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:44)
   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:219)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:652)
   at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
03:14:00,406 [http-nio-8084-exec-1] ERROR org.activiti.editor.ui.EditorProcessDefinitionDetailPanel  - failed to export model to BPMN XML
java.util.NoSuchElementException
   at java.util.ArrayList$Itr.next(ArrayList.java:834)
   at org.activiti.editor.language.json.converter.BpmnJsonConverter.readEdgeDI(BpmnJsonConverter.java:775)
   at org.activiti.editor.language.json.converter.BpmnJsonConverter.convertToBpmnModel(BpmnJsonConverter.java:279)
   at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel$2.getStream(EditorProcessDefinitionDetailPanel.java:250)
   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:725)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:301)
   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.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
   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:44)
   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:219)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:652)
   at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)


but it's hard for me (especially as a newie to Activiti) to know exactly what I've done wrong in my model. Probably something missing, but don't know what. How can I narrow down this issue, and how can I export the model so I'm not loosing it (since I'm currently only using the in memory database, and assume it will be gone as soon as I stop my tomcat server).

Best regards
Viggo
10 REPLIES 10

viggo_navarsete
Champ in-the-making
Champ in-the-making
When I delete all connections between the user tasks it is possible to export it to XML, so it must be related to some of the connections. It seems that if I tweak the line (if it's not a strict line), then it fails. Any clue?

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Could you create jUnit test with process definition deploy?

Regards
Martin

viggo_navarsete
Champ in-the-making
Champ in-the-making
Hi Martin. Sure I can, but since I'm new to Activiti, I don't know how to get the process definition out of Activiti Explorer. Isn't it by exporting it to XML and then import it in Java as a JUnit test? As soon as you give me some hints, I'll provide you whatever you need, JUnit test included Smiley Happy

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

How to write jUnit test:
http://forums.activiti.org/content/sticky-how-write-unit-test
Isn't it by exporting it to XML
yes.

You have to deploy this process definition (by annotation or code) into the process engine in the jUni test.

Regards
Martin

viggo_navarsete
Champ in-the-making
Champ in-the-making
Hi Martin,

great to see the template project, and will of course use it to provide as much information as possible. BUT, in my case, I'm not able to get hold of a XML file containing the process definition since it's the export of the process definition which fails Smiley Sad

What do I do then?

martin_grofcik
Confirmed Champ
Confirmed Champ
🙂 Really good point 🙂
I do  not know where modeler stores its models.

Regards
Martin

viggo_navarsete
Champ in-the-making
Champ in-the-making
Martin, how do I get in contact with either Nicolas Peters, Stefan Krumnow or Linton Baddeley, who seem to be developers of Activiti Modeler (http://activiti.org/team.html).

jbarrez
Star Contributor
Star Contributor
They are not the developers of the modeler (Linton for example is a UX guy of Alfresco)

The models are stored in ACT_RE_MODEL

viggo_navarsete
Champ in-the-making
Champ in-the-making
Thanks a lot Smiley Happy Is the model blobed into the ACT_RE_MODEL? What's the easiest way to get it out of the table?