Can't compile in eclipe - unhandled event loop exception

815 views
Skip to first unread message

Stephan T

unread,
Nov 2, 2010, 11:12:18 AM11/2/10
to Google Web Toolkit
I can't compile my gwt application in Eclipse. Works in Maven outside
Eclipse though. I'm getting an error related to IPixelConverter (see
below for full stacktrace). The version of Eclipse is 3.5.1
(SpringSource Tool Suite2.3.0) and version 2.1.0 of GWT Plugin
installed from the 3.5 update site.

Any ideas why it doesn't work?


eclipse.buildId=2.3.0.200912171331-RELEASE
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=sv_SE
Framework arguments: -product com.springsource.sts.ide
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product
com.springsource.sts.ide


java.lang.NoClassDefFoundError: com/google/gdt/eclipse/platform/shared/
ui/IPixelConverter
at
com.google.gwt.eclipse.core.compile.ui.GWTCompileDialog.createAdvancedOptions(GWTCompileDialog.java:
337)
at
com.google.gwt.eclipse.core.compile.ui.GWTCompileDialog.createDialogArea(GWTCompileDialog.java:
250)
at
org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:
147)
at
com.google.gwt.eclipse.core.compile.ui.GWTCompileDialog.createContents(GWTCompileDialog.java:
215)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at
com.google.gwt.eclipse.core.actions.GWTCompileToolbarAction.run(GWTCompileToolbarAction.java:
64)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:
251)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:
229)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:
584)
at org.eclipse.jface.action.ActionContributionItem.access
$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem
$6.handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
194)
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:
368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.ClassNotFoundException:
com.google.gdt.eclipse.platform.shared.ui.IPixelConverter
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:
494)
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(DefaultClassLoader.java:
105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 38 more

Rajeev Dayal

unread,
Nov 2, 2010, 11:24:03 AM11/2/10
to google-we...@googlegroups.com
Can you drop into your Eclipse installation's plugin directory and tell me the names of all of the plugins in there that start with com.google.gdt.*?

Also, do you see any errors in your Error Log (Window -> Show View -> Error Log)?


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Stephan T

unread,
Nov 3, 2010, 4:52:26 AM11/3/10
to Google Web Toolkit
Yes, it's the "Unhandled event loop exception" that shows up in the
Error log.

In my plugin folder:
com.google.gdt.eclipse.core_1.4.0.v201010280047.jar
com.google.gdt.eclipse.maven_1.4.0.v201010280047.jar
com.google.gdt.eclipse.platform.e35_1.4.0.v201010280047.jar
com.google.gdt.eclipse.platform.shared_1.4.0.v201010280047.jar
com.google.gdt.eclipse.platform_1.4.0.v201010280047.jar
com.google.gdt.eclipse.suite_1.4.0.v201010280047.jar


On 2 Nov, 16:24, Rajeev Dayal <rda...@google.com> wrote:
> Can you drop into your Eclipse installation's plugin directory and tell me
> the names of all of the plugins in there that start with com.google.gdt.*?
>
> Also, do you see any errors in your Error Log (Window -> Show View -> Error
> Log)?
>
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .

Stephan T

unread,
Nov 3, 2010, 5:06:40 AM11/3/10
to Google Web Toolkit
Sometimes I also get this error in the Error log:

Problems occurred when invoking code from plug-in:
"org.eclipse.core.resources".

java.lang.NoClassDefFoundError: com/google/gdt/eclipse/platform/jdt/
model/PlatformJavaModelUtilities$IAnnotationNotAvailableException
at
com.google.gwt.eclipse.core.uibinder.UiBinderXmlModelUtilities.computeQualifiedWidgetTypeName(UiBinderXmlModelUtilities.java:
70)
at
com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.tryParseWidgetFromElement(UiBinderXmlParser.java:
632)
at
com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.parseElement(UiBinderXmlParser.java:
301)
at
com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.parse(UiBinderXmlParser.java:
285)
at
com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.access
$0(UiBinderXmlParser.java:282)
at
com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser
$1.visitNode(UiBinderXmlParser.java:170)
at
com.google.gdt.eclipse.core.XmlUtilities.visitNodes(XmlUtilities.java:
410)
at
com.google.gwt.eclipse.core.uibinder.model.reference.UiBinderXmlParser.parse(UiBinderXmlParser.java:
226)
at
com.google.gwt.eclipse.core.uibinder.validators.UiBinderJavaValidator
$UiBinderSubtypeVisitor.parseAndValidateUiXml(UiBinderJavaValidator.java:
319)
at
com.google.gwt.eclipse.core.uibinder.validators.UiBinderJavaValidator
$UiBinderSubtypeVisitor.visit(UiBinderJavaValidator.java:276)
at
org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:
467)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2551)
at
org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:
484)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2551)
at
org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:
219)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
at
com.google.gwt.eclipse.core.uibinder.validators.UiBinderJavaValidator.validate(UiBinderJavaValidator.java:
538)
at
com.google.gwt.eclipse.core.validators.java.JavaCompilationParticipant.buildStarting(JavaCompilationParticipant.java:
223)
at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.notifyParticipants(AbstractImageBuilder.java:
565)
at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:
287)
at
org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:
60)
at
org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:
254)
at
org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:
178)
at org.eclipse.core.internal.events.BuildManager
$2.run(BuildManager.java:627)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
170)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
201)
at org.eclipse.core.internal.events.BuildManager
$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
256)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
309)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
341)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
140)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.ClassNotFoundException:
com.google.gdt.eclipse.platform.jdt.model.PlatformJavaModelUtilities
$IAnnotationNotAvailableException
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:
494)
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(DefaultClassLoader.java:
105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 37 more


On 3 Nov, 09:52, Stephan T <stephan.tern...@gmail.com> wrote:
> Yes, it's the "Unhandledeventloopexception" that shows up in the
> Error log.
>
> In my plugin folder:
> com.google.gdt.eclipse.core_1.4.0.v201010280047.jar
> com.google.gdt.eclipse.maven_1.4.0.v201010280047.jar
> com.google.gdt.eclipse.platform.e35_1.4.0.v201010280047.jar
> com.google.gdt.eclipse.platform.shared_1.4.0.v201010280047.jar
> com.google.gdt.eclipse.platform_1.4.0.v201010280047.jar
> com.google.gdt.eclipse.suite_1.4.0.v201010280047.jar
>
> On 2 Nov, 16:24, Rajeev Dayal <rda...@google.com> wrote:
>
> > Can you drop into your Eclipse installation's plugin directory and tell me
> > the names of all of the plugins in there that start with com.google.gdt.*?
>
> > Also, do you see any errors in your Error Log (Window -> Show View -> Error
> > Log)?
>
> > On Tue, Nov 2, 2010 at 11:12 AM, Stephan T <stephan.tern...@gmail.com>wrote:
>
> > > Ican'tcompilemy gwt application in Eclipse. Works in Maven outside

Rajeev Dayal

unread,
Nov 3, 2010, 11:30:00 AM11/3/10
to google-we...@googlegroups.com
This seems really odd - I know that we really only tested GPE against STS 2.5.0 (if you want GPE to work with Roo and Maven project in STS, you need to be using STS 2.5.0), but I still do not understand why you'd be running into problems against an Eclipse 3.5 version of an older incarnation of STS.

Did you have the Google Plugin for Eclipse installed previously? Was this an upgrade?

To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

Stephan T

unread,
Nov 4, 2010, 9:47:35 AM11/4/10
to Google Web Toolkit
Yes, I agree, really odd. When using STS 2.5.0 GWT seems to work, but
I get some issues with Maven and dependecies. And my colleagues are
using STS 2.3.0 and everything works for them. But they are using GWT
Plugin 2.0.4. Is it possible to download version 2.0.4 and try? Only
2.1 seems to be available on the update site.

// Stephan

On 3 Nov, 16:30, Rajeev Dayal <rda...@google.com> wrote:
> This seems really odd - I know that we really only tested GPE against STS
> 2.5.0 (if you want GPE to work with Roo and Maven project in STS, you need
> to be using STS 2.5.0), but I still do not understand why you'd be running
> into problems against an Eclipse 3.5 version of an older incarnation of STS.
>
> Did you have the Google Plugin for Eclipse installed previously? Was this an
> upgrade?
>
> ...
>
> läs mer »

Rajeev Dayal

unread,
Nov 4, 2010, 11:31:00 AM11/4/10
to google-we...@googlegroups.com
On Thu, Nov 4, 2010 at 9:47 AM, Stephan T <stephan...@gmail.com> wrote:
Yes, I agree, really odd. When using STS 2.5.0 GWT seems to work, but
I get some issues with Maven and dependecies. And my colleagues are
using STS 2.3.0 and everything works for them. But they are using GWT
Plugin 2.0.4. Is it possible to download version 2.0.4 and try? Only
2.1 seems to be available on the update site.

What maven issues are you seeing?

You can install the older version of the plugin in zip format from here:


You'll need to uninstall all existing versions of the Google Plugin for Eclipse first. Note that this distro does not include the SDKs, so you'll have to download them manually.

Also, have you tried re-installing the latest version of GPE against a fresh install of STS 2.3.0 and a fresh workspace? I'm wondering if there was possibly some sort of odd problem during installation that corrupted the jars (unlikely, I know).


--

Ocky Jugim Hartama

unread,
Aug 4, 2013, 2:26:27 PM8/4/13
to google-we...@googlegroups.com
Hi,

I have the same problem above.

Error An error has occurred. See error log for more details. com/google/gdt/eclipse/platform/shared/ui/IPixelConverter.

You need to Install / reinstall
"Jetty-9 Bundles Composite Repository" - http://download.eclipse.org/jetty/updates/jetty-bundles-9.x
Checklist only: Jetty - Bundles: all the jetty bundles.

slonik

unread,
Sep 20, 2013, 3:59:31 AM9/20/13
to google-we...@googlegroups.com
Not sure if its the same problem as I get but I can only compile my project in eclipse if I first clear my error log - weird!

toon...@gmail.com

unread,
Sep 20, 2013, 9:24:55 AM9/20/13
to google-we...@googlegroups.com
Clearing the error log fixes this for me too. GPE 3.4.1

When I click 'Deploy to App Engine ...' I get a dialog and am able to compile prior to deploying.

eclipse.buildId=4.3.0.I20130605-2000
java.version=1.7.0_17
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

Error
Fri Sep 20 14:18:01 BST 2013
Unhandled event loop exception

org.eclipse.e4.core.di.InjectionException: java.lang.ClassCastException: org.eclipse.jface.text.TextSelection cannot be cast to org.eclipse.jface.viewers.IStructuredSelection
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:850)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:743)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:727)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:662)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
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.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.ClassCastException: org.eclipse.jface.text.TextSelection cannot be cast to org.eclipse.jface.viewers.IStructuredSelection
at com.google.gwt.eclipse.core.actions.GWTCompileToolbarHandler.execute(GWTCompileToolbarHandler.java:69)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
... 37 more

Reply all
Reply to author
Forward
0 new messages