3 Replies Latest reply: Dec 19, 2012 5:22 AM by Matti Linnanvuori RSS

    Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.

    Matti Linnanvuori Newbie

      When I try to open files in a Java project, I get the following errors:

       

      org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.

      at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)

      at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)

      at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)

      at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)

      at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)

      at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:273)

      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

      at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:269)

      at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235)

      at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:283)

      at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:249)

      at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPart(CompatibilityEditor.java:60)

      at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:286)

      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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)

      at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)

      at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:839)

      at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)

      at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:319)

      at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)

      at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)

      at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)

      at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)

      at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)

      at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:896)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:630)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)

      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)

      at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:91)

      at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)

      at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)

      at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)

      at org.eclipse.swt.widgets.Display.syncExec(Display.java:4291)

      at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)

      at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)

      at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)

      at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)

      at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)

      at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

      at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

      at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)

      at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)

      at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)

      at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)

      at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)

      at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)

      at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)

      at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)

      at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)

      at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:579)

      at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:315)

      at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:985)

      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3079)

      at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:3003)

      at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2985)

      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2981)

      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2940)

      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2923)

      at org.eclipse.ui.internal.ReopenEditorMenu.open(ReopenEditorMenu.java:272)

      at org.eclipse.ui.internal.ReopenEditorMenu.access$1(ReopenEditorMenu.java:256)

      at org.eclipse.ui.internal.ReopenEditorMenu$1$1.widgetSelected(ReopenEditorMenu.java:232)

      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)

      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)

      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554)

      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)

      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)

      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)

      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)

      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)

      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)

      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

      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:353)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)

      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:629)

      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

      at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

      at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

      Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.jdt.ui (348).

      at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)

      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)

      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

      at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)

      at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)

      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      at java.lang.Class.getDeclaredConstructors0(Native Method)

      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)

      at java.lang.Class.getConstructor0(Class.java:2699)

      at java.lang.Class.newInstance0(Class.java:326)

      at java.lang.Class.newInstance(Class.java:308)

      at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)

      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

      at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)

      at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)

      at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)

      at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)

      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)

      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

      at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)

      at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)

      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      at org.hibernate.eclipse.jdt.ui.internal.HQLExpressionCompilerParticipant.isActive(HQLExpressionCompilerParticipant.java:56)

      at org.eclipse.jdt.internal.core.JavaModelManager$CompilationParticipants.getCompilationParticipants(JavaModelManager.java:328)

      at org.eclipse.jdt.internal.core.builder.JavaBuilder.initializeBuilder(JavaBuilder.java:587)

      at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:167)

      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)

      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)

      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)

      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)

      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)

      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)

      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)

      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)

      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)

      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

      Caused by: org.osgi.framework.BundleException: The activator org.eclipse.jdt.internal.ui.JavaPlugin for bundle org.eclipse.jdt.ui is invalid

      at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:172)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)

      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

      at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)

      at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)

      at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)

      at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)

      ... 46 more

      Caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/editors/text/templates/ContributionTemplateStore

      at java.lang.Class.getDeclaredConstructors0(Native Method)

      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)

      at java.lang.Class.getConstructor0(Class.java:2699)

      at java.lang.Class.newInstance0(Class.java:326)

      at java.lang.Class.newInstance(Class.java:308)

      at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167)

      ... 52 more

      Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.ui.editors (588).

      at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)

      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)

      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

      at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)

      at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)

      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)

      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      ... 58 more

      Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.ui.internal.editors.text.EditorsPlugin.start() of bundle org.eclipse.ui.editors.

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

      at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)

      at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)

      at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)

      at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)

      ... 67 more

      Caused by: org.eclipse.swt.SWTException: Invalid thread access

      at org.eclipse.swt.SWT.error(SWT.java:4361)

      at org.eclipse.swt.SWT.error(SWT.java:4276)

      at org.eclipse.swt.SWT.error(SWT.java:4247)

      at org.eclipse.swt.widgets.Display.error(Display.java:1157)

      at org.eclipse.swt.widgets.Display.checkDevice(Display.java:749)

      at org.eclipse.swt.widgets.Display.disposeExec(Display.java:1134)

      at org.eclipse.jface.resource.ColorRegistry.hookDisplayDispose(ColorRegistry.java:268)

      at org.eclipse.jface.resource.ColorRegistry.<init>(ColorRegistry.java:123)

      at org.eclipse.jface.resource.ColorRegistry.<init>(ColorRegistry.java:106)

      at org.eclipse.ui.internal.themes.WorkbenchThemeManager.<init>(WorkbenchThemeManager.java:98)

      at org.eclipse.ui.internal.themes.WorkbenchThemeManager.getInstance(WorkbenchThemeManager.java:58)

      at org.eclipse.ui.internal.Workbench.getThemeManager(Workbench.java:3016)

      at org.eclipse.ui.internal.editors.text.EditorsPlugin.start(EditorsPlugin.java:214)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

      ... 73 more

       

      eclipse.buildId=unknown

      java.version=1.6.0_29

      java.vendor=Sun Microsystems Inc.

      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

      Framework arguments:  -product com.jboss.jbds.product.product

      Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.jbds.product.product