AnsweredAssumed Answered

Creating BAR File Without Modeler

Question asked by gokceng1 on Jan 2, 2014
Latest reply on Jan 17, 2014 by jbarrez
I'm not using Eclipse Modeler. I need to create BAR files though. I've seen a post at this link:

Here trademak says:

A BAR file is just a ZIP file containing the process definition file and optionally some other files.
So just create a ZIP file with these files and you're fine.

Best regards,

Does that mean creating a zip file using some arbitrary program gives the same result? I've created a zip file, changed extension from zip to bar. But It yields an error with a code like that:

ByteArrayInputStream inputStream = new ByteArrayInputStream(uploadReceiver.getBuffer().toByteArray());
ZipInputStream zipInputStream = new ZipInputStream(inputStream);

Exception is:

Caused by: org.activiti.engine.ActivitiException: problem reading zip input stream
   at org.activiti.engine.impl.repository.DeploymentBuilderImpl.addZipInputStream( ~[activiti-engine-5.14.jar:5.14]
   at ProcessUploadView.deployProcess( ~[my.ui-1.1.0-20140102.160736-223.jar:na]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_45]
   at sun.reflect.NativeMethodAccessorImpl.invoke( ~[na:1.6.0_45]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke( ~[na:1.6.0_45]
   at java.lang.reflect.Method.invoke( ~[na:1.6.0_45]
   at com.vaadin.event.ListenerMethod.receiveEvent( ~[vaadin-6.8.7.jar:6.8.7]
   … 76 common frames omitted
Caused by: java.lang.IllegalArgumentException: null
   at ~[na:1.6.0_45]
   at ~[na:1.6.0_45]
   at ~[na:1.6.0_45]
   at ~[na:1.6.0_45]
   at org.activiti.engine.impl.repository.DeploymentBuilderImpl.addZipInputStream( ~[activiti-engine-5.14.jar:5.14]