exception thrown when exporting workflow

Hi,

I am using the 2.1.1 developer version. When trying to export a workflow I get the following error message see below. Can you reproduce this? do you have any suggestions?

Thanks,

Bernd

java.lang.reflect.InvocationTargetException: Unable to close destination file: ZIP file must have at least one entry at org.knime.workbench.ui.wizards.export.OffsetArchiveFileExportOperation.run(OffsetArchiveFileExportOperation.java:153) at org.knime.workbench.ui.wizards.export.WorkflowExportWizard.doFinish(WorkflowExportWizard.java:326) at org.knime.workbench.ui.wizards.export.WorkflowExportWizard.access$1(WorkflowExportWizard.java:291) at org.knime.workbench.ui.wizards.export.WorkflowExportWizard$1.run(WorkflowExportWizard.java:215) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: java.util.zip.ZipException: ZIP file must have at least one entry at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304) at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:146) at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321) at org.eclipse.ui.internal.wizards.datatransfer.ZipFileExporter.finished(ZipFileExporter.java:51) at org.knime.workbench.ui.wizards.export.OffsetArchiveFileExportOperation.run(OffsetArchiveFileExportOperation.java:151) ... 4 more java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934) at org.knime.workbench.ui.wizards.export.WorkflowExportWizard.performFinish(WorkflowExportWizard.java:224) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.knime.workbench.ui.navigator.actions.ExportKnimeWorkflowAction.run(ExportKnimeWorkflowAction.java:162) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.knime.product.rcp.KNIMEApplication.start(KNIMEApplication.java:112) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) Caused by: org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:3777) at org.eclipse.swt.SWT.error(SWT.java:3695) at org.eclipse.swt.SWT.error(SWT.java:3666) at org.eclipse.swt.widgets.Display.error(Display.java:1180) at org.eclipse.swt.widgets.Display.checkDevice(Display.java:703) at org.eclipse.swt.widgets.Display.getActiveShell(Display.java:1349) at org.knime.workbench.ui.wizards.export.WorkflowExportWizard.doFinish(WorkflowExportWizard.java:330) at org.knime.workbench.ui.wizards.export.WorkflowExportWizard.access$1(WorkflowExportWizard.java:291) at org.knime.workbench.ui.wizards.export.WorkflowExportWizard$1.run(WorkflowExportWizard.java:215) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Hi Bernd,

I can reproduce the problem only if no workflow is selected for exporting (which also explains the “ZIP file must have at least one entry” message). This should obviously better handled by the dialog (disabling OK button if nothing is selected, just opened a bug on it) but it should be easy to workaround: Just make a reasonable selection.

Hope this helps,
– Bernd

Thank you.
That’s it. I had a workflow group selected and then went to file->export, expecting that the current workflow would be exported… Well it is a learning process…

Thanks,

Bernd