01-02-2014 04:16 PM
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,
ByteArrayInputStream inputStream = new ByteArrayInputStream(uploadReceiver.getBuffer().toByteArray());
ZipInputStream zipInputStream = new ZipInputStream(inputStream);
repositoryService.createDeployment().name(fileName).addZipInputStream(zipInputStream).deploy();
Caused by: org.activiti.engine.ActivitiException: problem reading zip input stream
at org.activiti.engine.impl.repository.DeploymentBuilderImpl.addZipInputStream(DeploymentBuilderImpl.java:102) ~[activiti-engine-5.14.jar:5.14]
at ProcessUploadView.deployProcess(ProcessUploadView.java:190) ~[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(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_45]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_45]
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510) ~[vaadin-6.8.7.jar:6.8.7]
… 76 common frames omitted
Caused by: java.lang.IllegalArgumentException: null
at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:317) ~[na:1.6.0_45]
at java.util.zip.ZipInputStream.getFileName(ZipInputStream.java:436) ~[na:1.6.0_45]
at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:255) ~[na:1.6.0_45]
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:82) ~[na:1.6.0_45]
at org.activiti.engine.impl.repository.DeploymentBuilderImpl.addZipInputStream(DeploymentBuilderImpl.java:99) ~[activiti-engine-5.14.jar:5.14]
01-06-2014 07:14 AM
01-10-2014 04:47 AM
01-17-2014 03:38 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.