Knime is not opening (Illegal Argument Exception)

Hello,

I have a problem that after Knime (3.6.0) once crashed, I’m not able to open it anymore. I always get the log where I can find:

!SESSION 2018-08-28 11:32:59.979 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_152
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2018-08-28 11:56:18.361
!MESSAGE Application error
!STACK 1
java.lang.IllegalArgumentException: -2147483647 > 1
at java.util.Arrays.copyOfRange(Arrays.java:3480)
at java.util.Arrays.copyOfRange(Arrays.java:3441)
at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.lambda$6(ChooseWorkspaceDialog.java:384)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.createUniqueWorkspaceNameMap(ChooseWorkspaceDialog.java:388)
at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.createRecentWorkspacesComposite(ChooseWorkspaceDialog.java:322)
at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.createDialogArea(ChooseWorkspaceDialog.java:176)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:158)
at org.eclipse.jface.window.Window.create(Window.java:426)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)
at org.eclipse.jface.window.Window.open(Window.java:783)
at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt(ChooseWorkspaceDialog.java:114)
at org.knime.product.rcp.KNIMEApplication.promptForWorkspace(KNIMEApplication.java:335)
at org.knime.product.rcp.KNIMEApplication.checkInstanceLocation(KNIMEApplication.java:282)
at org.knime.product.rcp.KNIMEApplication.start(KNIMEApplication.java:111)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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:1499)

Maybe somebody had the same problem, because there are workflows I would like to export and I would like to understand what actually the problem is.

Regards
Magomed.

Looks like something with your “recent workspaces” is so f*** up that the workspace chooser dialog cannot be opened. You will want to have a look at the org.eclipse.ui.ide.prefs file in your KNIME installation directory under Eclipse/configuration/.settings/org.eclipse.ui.ide.prefs with a text editor.

Relevant would be the RECENT_WORKSPACES entry which is a \n separated string of recent workspace locations. You’ll probably notice right-away that something looks weird and just delete anything except your actual workspace location.

Also feel free to post the file content here, so that someone else can have a look.

Else wise, I think it shouldn’t be a big issue just deleting the file – you’ll basically have to re-select your workspace location upon next Eclipse launch.

– Philipp

Disclaimer: I’m not a KNIME official and take no responsibility for the hints given above. In any case, please make a backup of any files which you delete or edit!

1 Like

Hi Philipp,

Thank you very much! The content of the .prefs file is:

MAX_RECENT_WORKSPACES=10
RECENT_WORKSPACES=C:\nC:\Users\tha-anasov\knime-workspace\nC:\
RECENT_WORKSPACES_PROTOCOL=3
SHOW_RECENT_WORKSPACES=true
SHOW_WORKSPACE_SELECTION_DIALOG=true
eclipse.preferences.version=1

I did not delete anything yet, because I want to avoid deleting my workflows and I’m just newbie to Knime.

Maybe you could say what is wrong in the file?

Thanks in advance!

Regards
Magomed.

Hi Magomed,

looks like this is your actual workspace location: C:\Users\tha-anasov\knime-workspace

So, I’d simply replace the second line starting with RECENT_WORKSPACES as follows (the other entries listed there do not seem to make much sense and probably cause the exception shown above):

RECENT_WORKSPACES=C:\Users\tha-anasov\knime-workspace

Hope that helps!

4 Likes

Hi Philipp,

Thank you very much, it worked fine for me. It was really difficult to find out what the problem was, especially for a newbie :).

Have a nice day!

Regards
Magomed.

1 Like

Great to hear, and thx for the feedback.

And for your reassurance: This error is definitely not “usual” behavior and probably only happened due to bad circumstances in conjunction with the mentioned crash.

Best,
Philipp

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