KNIME 4.5 freezes for loop

Hello KNIME community,
Did someone else experiences KNIME 4.5 freezing because of an " Unhandled event loop exception"? I tried everything I could to avoid it but it seems out of my hands. The error:
"
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.knime.workbench.explorer.view.actions.export.WorkflowExportWizard.addPages(WorkflowExportWizard.java:116)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:632)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1094)
at org.knime.workbench.explorer.view.actions.export.WorkflowExportHelper.openExportWizard(WorkflowExportHelper.java:84)
at org.knime.workbench.explorer.view.actions.export.WorkflowExportApplicationAction.run(WorkflowExportApplicationAction.java:103)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:414)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5831)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1427)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5092)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4570)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
at org.knime.product.rcp.KNIMEApplication.start(KNIMEApplication.java:183)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1461)
at org.eclipse.equinox.launcher.Main.main(Main.java:1434)
Thanks in advance for any help :slight_smile:
Cheers,
Silvia

Hi Silvia,

thanks for including the KNIME version and even grabbing logs with your request. :slight_smile:

The unhandled event loop may be a byproduct of the underlying issue, and it is hard to investigate without being able to reliably reproduce the issue (e.g. by executing a specific example workflow).

However, an always applicable suggestion is updating :slight_smile:
If you’re not limited by company requirements (missing installation rights, older server environment, …), would an update to KNIME 4.7 be an option?
Even if you need (or want) to stay on 4.5, you may be able to use the .zip download of version 4.7 (which can be extracted anywhere and doesn’t need to be installed) as a secondary setup to test whether the issue comes up there as well.
Sorry I don’t have a more concrete suggestion at hand. Maybe others do and can chime in. :slight_smile:

Kind regards
Marvin

3 Likes

Hi Marvin,
thank you very much for the reply and sorry for the delay! Sadly I am limited by company requirements (compatibility with the version on the KNIME server). I actually tried the same on KNIME 4.7 and it worked, so I guess I’ll continue with that for the moment. Are there some ways to “downgrade” the workflow before uploading it to the server? I guess it is all about the nodes in the workflow right?
Cheers,
Silvia

Hi Silvia,

thanks for the update. Sounds like a working workaround. :slight_smile:
Maybe a fresh 4.5 install may even resolve the issue, without introducing the need to “downgrade” workflows. On the topic of “downgrading”: in many cases, there is no difference in the workflow compared to it being created in an older version. New nodes will not be known and in rare cases nodes may have new settings that are missing in old versions, preventing their (expected) execution.

What you can do is develop the workflow in the newer version, but before uploading it to the server or a shared repository, open it in an older version, check that it still works and save it again; then upload.

This can be done by exporting and importing the workflow, or by having both KNIME versions use the same workspace folder (though then only one KNIME instance can be running at a time).

Kind regards
Marvin

2 Likes

Thank you so much for the detailed answer!

You are most welcome :slight_smile:

I’d give the fresh 4.5 version a try first (fingers crossed that it solves the issue :crossed_fingers:), but if you do end up using two different versions, note that saving workflows in the older version is important, as that sets the version of the workflow.

Kind regards
Marvin

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.