Not able to Open Knime

Capture
**

ENTRY IN LOG FILE

**
!ENTRY org.eclipse.osgi 4 0 2021-05-01 17:52:03.671
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin
at org.eclipse.emf.ecore.plugin.EcorePlugin.getWorkspaceRoot(EcorePlugin.java:1149)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.getWorkspaceRoot(PlatformResourceURIHandlerImpl.java:488)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.(PlatformResourceURIHandlerImpl.java:456)
at org.eclipse.emf.ecore.resource.URIHandler.(URIHandler.java:51)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.(ExtensibleURIConverterImpl.java:138)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getURIConverter(ResourceSetImpl.java:499)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:369)
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.getResource(ResourceHandler.java:287)
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadResource(ResourceHandler.java:263)
at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:169)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:384)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:260)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:579)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
at org.knime.product.rcp.KNIMEApplication.start(KNIMEApplication.java:176)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
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:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.resources (489).
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:126)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:571)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:346)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:41)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
… 29 more
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:863)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1015)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
at org.eclipse.osgi.container.Module.doStart(Module.java:603)
at org.eclipse.osgi.container.Module.start(Module.java:467)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:493)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
… 36 more
Caused by: org.eclipse.core.internal.resources.ResourceException: Incompatible file format. Workspace was saved with an incompatible version: 0.
at org.eclipse.core.internal.resources.WorkspaceTreeReader.getReader(WorkspaceTreeReader.java:62)
at org.eclipse.core.internal.resources.WorkspaceTreeReader.getReader(WorkspaceTreeReader.java:70)
at org.eclipse.core.internal.resources.SaveManager.restoreTree(SaveManager.java:1038)
at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:708)
at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1555)
at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2452)
at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:2210)
at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:489)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)
… 43 more
Caused by: java.lang.Exception: Incompatible file format. Workspace was saved with an incompatible version: 0.
at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
at org.eclipse.core.internal.resources.ResourceException.(ResourceException.java:38)
… 55 more

Hi @ganeshpawar,

could you maybe provide more information about the problem?

Do you get this problem on a “fresh” Installation of Knime?
(does the problem still accure if you re-install knime?)
Is this the newest Version?
What operating system are you using? (Windows10?)
Did you change anything on the knime.ini?
Is this the knime installer or zip version?
Did you install some extensions?
How much RAM do you have availible? Is this enough for the start?
Could there be problems with a firewall blocking the start of knime?
Can you try to start knime with the -clean command (adding -clean to the knime.ini located in the installation folder)
grafik

3 Likes

Do you get this problem on a “fresh” Installation of Knime?

Not a fresh install. Just saved my workflow and restarted my computer.

(does the problem still accure if you re-install knime?)

Reinstalled knime on different location but error continued.

Is this the newest Version?

yes KNIME 4.3.2

What operating system are you using? (Windows10?)

Yes Win10 64x

Did you change anything on the knime.ini?

NO

Is this the knime installer or zip version?

zip version

Did you install some extensions?

NO.

How much RAM do you have availible? Is this enough for the start?

I have installed 8gb allocated 4gb

Could there be problems with a firewall blocking the start of knime?

No, because it was working fine for a couple of months.

Can you try to start knime with the -clean command (adding -clean to the knime.ini located in the installation folder)

Did not try this but tried diff trial and error method :sweat_smile:
which is,

  • I took a backup of the workflow folder.
  • Deleted the default workflow folder
  • Started knime finally it opened.
  • created new workflow and pasted old workflow folder in that new workflow folder (Except .metadata folder)
  • And everything was working fine

Can guide me on how to avoid such problem in future.

1 Like

Hi @ganeshpawar

thanks for the detailed info.
I think this is a rare error that occurs when something goes wrong when saving a workflow (indicated by this part of the error: Workspace was saved with an incompatible version

As a workaround for now, incase this ever happens again, try using a different workflow location or try cleaning up the current workflow folder.

Kind regards
Marvin

2 Likes

Hi @marvin.kickuth , this exact same issue happened to me last week for some reason. The circumstance that happened to me was, I usually never shut down my computer, it’s usually on sleep, but it got hard shut down (as in it lost power) by mistake, and when I booted up and launched Knime, I got that error “Workspace was saved with an incompatible version”.

I was not sure what the solution would be, so I did almost exactly the same thing as @ganeshpawar did. The only difference is I renamed the old workspace folder, which essentially does the same as backup + delete from @ganeshpawar 's list but in 1 operation, and then started Knime which finally opened, and then copied each of the workflow folders from the old workspace to the new one.

I did get some complaints when opening some of the workflows though, that some nodes were “corrupted” which I fixed.

So, I’m not sure what caused the issue - I don’t remember if Knime was open when the computer got hard shut down, and I’m not sure what the “proper” solution might have been in this case.

I’ll try the option “-clean” suggested by @AnotherFraudUser if this happens again.

4 Likes

Hi @marvin.kickuth

How to change different workflow location if knime doesn’t Start?

Regards
Ganesh Pawar

Hey @ganeshpawar

This is a setting in org.eclipse.ui.ide.prefs, located within your KNIME installation, e.g.
C:\Program Files\KNIME\configuration\.settings\org.eclipse.ui.ide.prefs

Within the file, the corresponding setting is
RECENT_WORKSPACES=

Kind regards
Marvin

2 Likes