Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [xtext-dev] ClassNotFound exception when running against Xtext 2.10

Hello,
Unfortunately I was wrong in my previous answer. This is still happening even when building and launching from Eclipse Neon with latest m2e plugins.
We are using Tycho version 0.22.0, albeit this issue is seen when building and launching from within Eclipse itself.

Thanks for your help,

/M


-----Original Message-----
From: Mario Pierro 
Sent: den 8 augusti 2016 12:55
To: xtext-dev@xxxxxxxxxxx
Subject: RE: ClassNotFound exception when running against Xtext 2.10

Hello Jeff,

Thanks for your tip. The problem is resolved when launching from an Eclipse Neon running m2e version 1.7.0.20160603-1933.
I was previously working with an Eclipse Mars instance using an older version.

Kind regards,

/M

-----Original Message-----
Date: Mon, 8 Aug 2016 12:05:38 +0200
From: Jeff MAURY <jeffmaury@xxxxxxxxx>
To: Xtext dev list <xtext-dev@xxxxxxxxxxx>
Subject: Re: [xtext-dev] ClassNotFound exception when running against
	Xtext	2.10
Message-ID:
	<CANyrOm7dzvAH75w3nHqobCQUVyKfUcwkiNmQxtF5iU+9-49fHQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

With which version  of tycho was you code generated

Jeff

Le 8 ao?t 2016 10:59, "Mario Pierro" <Mario.Pierro@xxxxxxx> a ?crit :

> Hello,
>
>
>
> After updating our target platform to Xtext 2.10 / Eclipse Neon I am 
> getting the following error very often when testing our plugins in a 
> runtime Eclipse, apparently when executing tasks which are not 
> directly related to Xtext itself (e.g. creating a new CDT project).
>
> This seems to be a dependency injection issue of some sort. Any 
> pointers on how these exceptions can be debugged? I tried re-creating 
> the launch configuration without success.
>
>
>
> java.lang.NoClassDefFoundError: org/eclipse/xtext/service/ 
> AbstractGenericModule
>
>                 at java.lang.ClassLoader.defineClass1(Native Method)
>
>                 at
> java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>
>                 at org.eclipse.osgi.internal.loader.ModuleClassLoader.
> defineClass(ModuleClassLoader.java:273)
>
>                 at org.eclipse.osgi.internal.loader.classpath.
> ClasspathManager.defineClass(ClasspathManager.java:632)
>
>                 at org.eclipse.osgi.internal.loader.classpath.
> ClasspathManager.findClassImpl(ClasspathManager.java:586)
>
>                 at org.eclipse.osgi.internal.loader.classpath.
> ClasspathManager.findLocalClassImpl(ClasspathManager.java:538)
>
>                 at org.eclipse.osgi.internal.loader.classpath.
> ClasspathManager.findLocalClass(ClasspathManager.java:525)
>
>                 at org.eclipse.osgi.internal.loader.ModuleClassLoader.
> findLocalClass(ModuleClassLoader.java:325)
>
>                 at org.eclipse.osgi.internal.loader.BundleLoader.
> findLocalClass(BundleLoader.java:334)
>
>                 at org.eclipse.osgi.internal.loader.sources.
> SingleSourcePackage.loadClass(SingleSourcePackage.java:36)
>
>                 at org.eclipse.osgi.internal.loader.BundleLoader.
> findClassInternal(BundleLoader.java:407)
>
>                 at org.eclipse.osgi.internal.
> loader.BundleLoader.findClass(BundleLoader.java:361)
>
>                 at org.eclipse.osgi.internal.
> loader.BundleLoader.findClass(BundleLoader.java:353)
>
>                 at org.eclipse.osgi.internal.loader.ModuleClassLoader.
> loadClass(ModuleClassLoader.java:161)
>
>                 at
> java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
>                 at org.eclipse.xtext.common.types.shared.Activator.
> getInjector(Activator.java:29)
>
>                 at org.eclipse.xtext.common.types.shared.
> SharedCommonTypesExecutableExtensionFactory.getInjector(
> SharedCommonTypesExecutableExtensionFactory.java:24)
>
>                 at org.eclipse.xtext.ui.guice.
> AbstractGuiceAwareExecutableExtensionFactory.create(
> AbstractGuiceAwareExecutableExtensionFactory.java:51)
>
>                 at org.eclipse.core.internal.
> registry.ConfigurationElement.createExecutableExtension(
> ConfigurationElement.java:262)
>
>                 at org.eclipse.core.internal.registry.
> ConfigurationElementHandle.createExecutableExtension(
> ConfigurationElementHandle.java:55)
>
>                 at org.eclipse.ui.internal.ide.
> EditorAssociationOverrideDescriptor$1.run(EditorAssociationOverrideDes
> cr
> iptor.java:90)
>
>                 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.
> java:42)
>
>                 at org.eclipse.ui.internal.ide.
> EditorAssociationOverrideDescriptor.createOverride(
> EditorAssociationOverrideDescriptor.java:103)
>
>                 at
> org.eclipse.ui.ide.IDE.getEditorAssociationOverrides(
> IDE.java:1893)
>
>                 at
> org.eclipse.ui.ide.IDE.overrideDefaultEditorAssociati
> on(IDE.java:895)
>
>                 at
> org.eclipse.ui.ide.IDE.getDefaultEditor(IDE.java:1610)
>
>                 at org.eclipse.ui.ide.IDE.getEditorDescriptor(IDE.java:
> 807)
>
>                 at org.eclipse.ui.ide.IDE.openEditor(IDE.java:596)
>
>                 at org.eclipse.cdt.ui.templateengine.processes.
> OpenFiles.process(OpenFiles.java:54)
>
>                 at org.eclipse.cdt.core.templateengine.process.
> Process.process(Process.java:163)
>
>                 at org.eclipse.cdt.core.templateengine.process.
> ConditionalProcessGroup.process(ConditionalProcessGroup.java:219)
>
>                 at org.eclipse.cdt.core.templateengine.process.
> TemplateProcessHandler.processAll(TemplateProcessHandler.java:65)
>
>                 at org.eclipse.cdt.ui.templateengine.Template$1.
> execute(Template.java:192)
>
>                 at org.eclipse.ui.actions.WorkspaceModifyOperation.
> lambda$0(WorkspaceModifyOperation.java:107)
>
>                 at org.eclipse.ui.actions.WorkspaceModifyOperation$$
> Lambda$79/940722919.run(Unknown Source)
>
>                 at org.eclipse.core.internal.resources.Workspace.run(
> Workspace.java:2240)
>
>                 at org.eclipse.core.internal.resources.Workspace.run(
> Workspace.java:2267)
>
>                 at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(
> WorkspaceModifyOperation.java:128)
>
>                 at org.eclipse.cdt.ui.templateengine.Template.
> executeTemplateProcesses(Template.java:202)
>
>                 at org.eclipse.cdt.managedbuilder.ui.wizards.
> MBSWizardHandler.doTemplatesPostProcess(MBSWizardHandler.java:639)
>
>                 at org.eclipse.cdt.managedbuilder.ui.wizards.
> MBSWizardHandler.createProject(MBSWizardHandler.java:559)
>
>                 at org.eclipse.cdt.ui.wizards.
> CDTCommonProjectWizard$1$1$1.run(CDTCommonProjectWizard.java:259)
>
>                 at
> org.eclipse.ui.actions.WorkspaceModifyDelegatingOpera
> tion.execute(WorkspaceModifyDelegatingOperation.java:67)
>
>                 at org.eclipse.ui.actions.WorkspaceModifyOperation.
> lambda$0(WorkspaceModifyOperation.java:107)
>
>                 at org.eclipse.ui.actions.WorkspaceModifyOperation$$
> Lambda$79/940722919.run(Unknown Source)
>
>                 at org.eclipse.core.internal.resources.Workspace.run(
> Workspace.java:2240)
>
>                 at org.eclipse.core.internal.resources.Workspace.run(
> Workspace.java:2267)
>
>                 at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(
> WorkspaceModifyOperation.java:128)
>
>                 at org.eclipse.jface.operation.ModalContext.
> runInCurrentThread(ModalContext.java:437)
>
>                 at org.eclipse.jface.operation.
> ModalContext.run(ModalContext.java:353)
>
>                 at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.
> java:993)
>
>                 at org.eclipse.cdt.ui.wizards.CDTCommonProjectWizard$1$1.
> run(CDTCommonProjectWizard.java:268)
>
>                 at
> org.eclipse.ui.internal.UILockListener.doPendingWork(
> UILockListener.java:162)
>
>                 at org.eclipse.ui.internal.UISynchronizer$3.run(
> UISynchronizer.java:154)
>
>                 at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.
> java:35)
>
>                 at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
> Synchronizer.java:182)
>
>                 at org.eclipse.swt.widgets.Display.runAsyncMessages(
> Display.java:4203)
>
>                 at org.eclipse.swt.widgets.Display.readAndDispatch(
> Display.java:3819)
>
>                 at org.eclipse.jface.operation.ModalContext$
> ModalContextThread.block(ModalContext.java:165)
>
>                 at org.eclipse.jface.operation.
> ModalContext.run(ModalContext.java:369)
>
>                 at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.
> java:993)
>
>                 at org.eclipse.cdt.ui.wizards.CDTCommonProjectWizard.
> invokeRunnable(CDTCommonProjectWizard.java:177)
>
>                 at org.eclipse.cdt.ui.wizards.CDTCommonProjectWizard.
> getProject(CDTCommonProjectWizard.java:155)
>
>                 at org.eclipse.cdt.ui.wizards.CDTCommonProjectWizard.
> performFinish(CDTCommonProjectWizard.java:193)
>
>                 at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(
> WizardDialog.java:790)
>
>                 at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(
> WizardDialog.java:423)
>
>                 at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(
> Dialog.java:618)
>
>                 at org.eclipse.swt.widgets.TypedListener.handleEvent(
> TypedListener.java:249)
>
>                 at org.eclipse.swt.widgets.EventTable.sendEvent(
> EventTable.java:84)
>
>                 at org.eclipse.swt.widgets.Display.sendEvent(Display.
> java:4410)
>
>                 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:
> 1079)
>
>                 at org.eclipse.swt.widgets.Display.runDeferredEvents(
> Display.java:4228)
>
>                 at org.eclipse.swt.widgets.Display.readAndDispatch(
> Display.java:3816)
>
>                 at org.eclipse.jface.window.Window.runEventLoop(Window.
> java:818)
>
>                 at
> org.eclipse.jface.window.Window.open(Window.java:794)
>
>                 at org.eclipse.ui.internal.navigator.wizards.
> WizardShortcutAction.run(WizardShortcutAction.java:99)
>
>                 at org.eclipse.jface.action.Action.runWithEvent(Action.
> java:473)
>
>                 at org.eclipse.jface.action.ActionContributionItem.
> handleWidgetSelection(ActionContributionItem.java:565)
>
>                 at
> org.eclipse.jface.action.ActionContributionItem.lambda$
> 4(ActionContributionItem.java:397)
>
>                 at org.eclipse.jface.action.ActionContributionItem$$
> Lambda$38/1011254112.handleEvent(Unknown Source)
>
>                 at org.eclipse.swt.widgets.EventTable.sendEvent(
> EventTable.java:84)
>
>                 at org.eclipse.swt.widgets.Display.sendEvent(Display.
> java:4410)
>
>                 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:
> 1079)
>
>                 at org.eclipse.swt.widgets.Display.runDeferredEvents(
> Display.java:4228)
>
>                 at org.eclipse.swt.widgets.Display.readAndDispatch(
> Display.java:3816)
>
>                 at org.eclipse.e4.ui.internal.workbench.swt.
> PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
>
>                 at org.eclipse.core.databinding.observable.Realm.
> runWithDefault(Realm.java:336)
>
>                 at org.eclipse.e4.ui.internal.workbench.swt.
> PartRenderingEngine.run(PartRenderingEngine.java:1022)
>
>                 at org.eclipse.e4.ui.internal.workbench.E4Workbench.
> createAndRunUI(E4Workbench.java:150)
>
>                 at org.eclipse.ui.internal.Workbench$5.run(Workbench.
> java:687)
>
>                 at org.eclipse.core.databinding.observable.Realm.
> runWithDefault(Realm.java:336)
>
>                 at org.eclipse.ui.internal.Workbench.
> createAndRunWorkbench(Workbench.java:604)
>
>                 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
> PlatformUI.java:148)
>
>                 at org.eclipse.ui.internal.ide.application.IDEApplication.
> start(IDEApplication.java:138)
>
>                 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:483)
>
>                 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.
> java:673)
>
>                 at org.eclipse.equinox.launcher.
> Main.basicRun(Main.java:610)
>
>                 at
> org.eclipse.equinox.launcher.Main.run(Main.java:1519)
>
>                 at
> org.eclipse.equinox.launcher.Main.main(Main.java:1492)
>
> Caused by: java.lang.ClassNotFoundException: 
> org.eclipse.xtext.service.AbstractGenericModule
> cannot be found by org.eclipse.xtext.ui.shared_2.10.0.v201605250459
>
>                 at org.eclipse.osgi.internal.loader.BundleLoader.
> findClassInternal(BundleLoader.java:448)
>
>                 at org.eclipse.osgi.internal.
> loader.BundleLoader.findClass(BundleLoader.java:361)
>
>                 at org.eclipse.osgi.internal.
> loader.BundleLoader.findClass(BundleLoader.java:353)
>
>                 at org.eclipse.osgi.internal.loader.ModuleClassLoader.
> loadClass(ModuleClassLoader.java:161)
>
>                 at
> java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
>                 ... 107 more
>
>
>
> Thank you.
>
>
>
> Kind regards,
>
>
>
> /Mario Pierro
>
>
>
> _______________________________________________
> xtext-dev mailing list
> xtext-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or 
> unsubscribe from this list, visit 
> https://dev.eclipse.org/mailman/listinfo/xtext-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/xtext-dev/attachments/20160808/99d972f9/attachment.html>

------------------------------

_______________________________________________
xtext-dev mailing list
xtext-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/xtext-dev

End of xtext-dev Digest, Vol 77, Issue 2
****************************************


Back to the top