Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » TerminatingClassNotFoundException when loading org.eclipse.core.runtime.Platform
icon8.gif  TerminatingClassNotFoundException when loading org.eclipse.core.runtime.Platform [message #941023] Fri, 12 October 2012 06:43
david borsodi is currently offline david borsodi
Messages: 19
Registered: July 2009
Junior Member
UPDATE2:
Update 1 was incorrect so deleted it...
The real problem was, that the .fileTable.xx file under configuration\org.eclipse.core.runtime\.manager\ was corrupted in a manner that it missed a lot of entries, so the StorageManager couldn't find the files and threw an NPE. (The checksum was the same though if I remember correctly.)
I must believe that the user have terminated the framework from the task manager but I wasn't able to reproduce it.

Hello

I have a very strange problem.
Osgi 3.5.1 runs on a win 7 machine.

I'm trying to start the osgi framework and at the point of loading org.eclipse.core.runtime.Platform it fails with the exception in the title. Sometimes I manage to reach InternalPlatform.getRegistry (when Platform.getExtensionRegistry succeeds) but then a classnotfoundexception happens there.

None of us experienced this before but now we gave the program away to someone else. For a few times initially everything works fine for her but after that the framework finally gets into this state and the only solution we found so far was to reinstall the whole app.
I've already read around and found that this has something with insufficient privileges, but can't fix it for myself.
If you need more details to help, tell.
thanks
David

Stack below:

org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNot
FoundException: An error occurred while automatically activating bundle org.ecli
pse.equinox.registry (83).
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFind
LocalClass(EclipseLazyStarter.java:125)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(C
lasspathManager.java:449)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalCla
ss(DefaultClassLoader.java:211)
        at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:381)
        at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(Single
SourcePackage.java:33)
        at org.eclipse.osgi.internal.loader.MultiSourcePackage.loadClass(MultiSo
urcePackage.java:31)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:454)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:398)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:105)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.eclipse.equinox.internal.app.Activator.start(Activator.java:55)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:783)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:774)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:755)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:352)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
tBundle.java:280)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
408)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFind
LocalClass(EclipseLazyStarter.java:111)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(C
lasspathManager.java:449)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalCla
ss(DefaultClassLoader.java:211)
        at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:381)
        at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(Single
SourcePackage.java:33)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:454)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:398)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:105)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.eclipse.core.internal.runtime.PlatformActivator.startAppContainer
(PlatformActivator.java:47)
        at org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformAct
ivator.java:32)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:783)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:774)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:755)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:352)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra
ctBundle.java:370)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame
work.java:1068)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:557)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St
artLevelManager.java:464)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart
Level(StartLevelManager.java:248)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:445)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:227)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:337)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.int
ernal.registry.osgi.Activator.start() of bundle org.eclipse.equinox.registry.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:806)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:755)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:352)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
tBundle.java:280)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
408)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFind
LocalClass(EclipseLazyStarter.java:111)
        ... 45 more
Caused by: java.lang.NullPointerException
        at org.eclipse.core.internal.registry.BufferedRandomInputStream.<init>(B
ufferedRandomInputStream.java:41)
        at org.eclipse.core.internal.registry.BufferedRandomInputStream.<init>(B
ufferedRandomInputStream.java:37)
        at org.eclipse.core.internal.registry.TableReader.setExtraDataFile(Table
Reader.java:76)
        at org.eclipse.core.internal.registry.ExtensionRegistry.<init>(Extension
Registry.java:657)
        at org.eclipse.core.runtime.RegistryFactory.createRegistry(RegistryFacto
ry.java:59)
        at org.eclipse.core.internal.registry.osgi.Activator.startRegistry(Activ
ator.java:135)
        at org.eclipse.core.internal.registry.osgi.Activator.start(Activator.jav
a:56)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:783)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:774)
        ... 50 more
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/RegistryFactory
        at org.eclipse.core.internal.runtime.InternalPlatform.getRegistry(Intern
alPlatform.java:548)
        at org.eclipse.core.runtime.Platform.getExtensionRegistry(Platform.java:
910)
        at com.ge.med.solo.workflow.WorkflowUtil.init(WorkflowUtil.java:23)
        at com.ge.med.solo.workflow.WorkflowUtil.getElement(WorkflowUtil.java:41
)
        at com.ge.med.solo.solomini.SoloMini.start(SoloMini.java:84)
        at com.ge.med.solo.solomini.SoloMini.activate(SoloMini.java:56)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(Servi
ceComponent.java:206)
        at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(S
erviceComponentProp.java:140)
        at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(Serv
iceComponentProp.java:330)
        at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(Instan
ceProcess.java:560)
        at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(Insta
nceProcess.java:182)
        at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver
.java:393)
        at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.ja
va:176)
        at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.jav
a:791)
        at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRMana
ger.java:758)
        at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:90)
        at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Ex
ecutor.java:70)
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$Terminat
ingClassNotFoundException: An error occurred while automatically activating bund
le org.eclipse.equinox.registry (83).
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFind
LocalClass(EclipseLazyStarter.java:125)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(C
lasspathManager.java:449)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalCla
ss(DefaultClassLoader.java:211)
        at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:381)
        at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(Single
SourcePackage.java:33)
        at org.eclipse.osgi.internal.loader.MultiSourcePackage.loadClass(MultiSo
urcePackage.java:31)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:454)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:398)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:105)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.eclipse.equinox.internal.app.Activator.start(Activator.java:55)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:783)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:774)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:755)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:352)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
tBundle.java:280)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
408)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFind
LocalClass(EclipseLazyStarter.java:111)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(C
lasspathManager.java:449)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalCla
ss(DefaultClassLoader.java:211)
        at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:381)
        at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(Single
SourcePackage.java:33)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:454)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:398)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:105)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.eclipse.core.internal.runtime.PlatformActivator.startAppContainer
(PlatformActivator.java:47)
        at org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformAct
ivator.java:32)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:783)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:774)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:755)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:352)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra
ctBundle.java:370)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame
work.java:1068)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:557)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St
artLevelManager.java:464)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart
Level(StartLevelManager.java:248)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:445)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:227)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:337)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.int
ernal.registry.osgi.Activator.start() of bundle org.eclipse.equinox.registry.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:806)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:755)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:352)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
tBundle.java:280)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
408)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFind
LocalClass(EclipseLazyStarter.java:111)
        ... 45 more
Caused by: java.lang.NullPointerException
        at org.eclipse.core.internal.registry.BufferedRandomInputStream.<init>(B
ufferedRandomInputStream.java:41)
        at org.eclipse.core.internal.registry.BufferedRandomInputStream.<init>(B
ufferedRandomInputStream.java:37)
        at org.eclipse.core.internal.registry.TableReader.setExtraDataFile(Table
Reader.java:76)
        at org.eclipse.core.internal.registry.ExtensionRegistry.<init>(Extension
Registry.java:657)
        at org.eclipse.core.runtime.RegistryFactory.createRegistry(RegistryFacto
ry.java:59)
        at org.eclipse.core.internal.registry.osgi.Activator.startRegistry(Activ
ator.java:135)
        at org.eclipse.core.internal.registry.osgi.Activator.start(Activator.jav
a:56)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:783)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:774)
        ... 50 more




[Updated on: Fri, 12 October 2012 14:52]

Report message to a moderator

Previous Topic:Check for PlugIn-Update automatically
Next Topic:how can I expand the editor in eclipse?
Goto Forum:
  


Current Time: Tue Sep 16 23:36:38 GMT 2014

Powered by FUDForum. Page generated in 0.11282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software