Unhandled event loop exception

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Unhandled event loop exception

Postby domfe » Wed Dec 15, 2010 6:11 am

Hi.
I've a custom component with a Row layout. After adding a widget to it and moving
it with the mouse I get the following error.

Code: Select all
null
Error
Wed Dec 15 15:08:07 CET 2010
Unhandled event loop exception

java.lang.reflect.UndeclaredThrowableException
at $Proxy1.mouseMove(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:205)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.instantiations.draw2d.EventManager$8.invoke(EventManager.java:289)
... 26 more
Caused by: [Error: failed to access property: isHorizontal(): unable to invoke method: isHorizontal]
[Near : {... isHorizontal( ....}]
^
[Line: 1, Column: 0]
at org.mvel2.PropertyAccessor.get(PropertyAccessor.java:220)
at org.mvel2.PropertyAccessor.get(PropertyAccessor.java:117)
at org.mvel2.ast.ASTNode.getReducedValue(ASTNode.java:164)
at org.mvel2.MVELInterpretedRuntime.parseAndExecuteInterpreted(MVELInterpretedRuntime.java:90)
at org.mvel2.MVELInterpretedRuntime.parse(MVELInterpretedRuntime.java:44)
at org.mvel2.MVEL.eval(MVEL.java:218)
at org.mvel2.MVEL.evalToBoolean(MVEL.java:699)
at com.instantiations.designer.core.model.util.predicate.ExpressionPredicate.apply(ExpressionPredicate.java:38)
at com.instantiations.designer.core.xml.model.generic.FlowContainer_Configurable.isHorizontal(FlowContainer_Configurable.java:37)
at com.instantiations.designer.core.gef.policy.layout.generic.FlowContainer_LayoutEditPolicy.isHorizontal(FlowContainer_LayoutEditPolicy.java:58)
at com.instantiations.designer.core.gef.policy.layout.flow.AbstractFlowLayoutEditPolicy.showLayoutTargetFeedback(AbstractFlowLayoutEditPolicy.java:194)
at com.instantiations.gef.graphical.editpolicies.LayoutEditPolicy.showTargetFeedback(LayoutEditPolicy.java:181)
at com.instantiations.gef.core.EditPart.showTargetFeedback(EditPart.java:751)
at com.instantiations.gef.core.tools.TargetingTool.showTargetFeedback(TargetingTool.java:210)
at com.instantiations.gef.core.tools.AbstractCreationTool.handleMove(AbstractCreationTool.java:61)
at com.instantiations.gef.core.tools.Tool.mouseMove(Tool.java:381)
at com.instantiations.gef.core.EditDomain.mouseMove(EditDomain.java:233)
at com.instantiations.gef.graphical.EditEventManager.mouseMove(EditEventManager.java:151)
... 30 more
Caused by: [Error: unable to invoke method: isHorizontal]
[Near : {... Unknown ....}]
^
[Line: 1, Column: 0]
at org.mvel2.PropertyAccessor.getMethod(PropertyAccessor.java:890)
at org.mvel2.PropertyAccessor.get(PropertyAccessor.java:146)
... 47 more
Caused by: java.lang.reflect.InvocationTargetException
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.mvel2.PropertyAccessor.getMethod(PropertyAccessor.java:877)
... 48 more
Caused by: com.instantiations.designer.core.utils.check.AssertionFailedException: null argument:
at com.instantiations.designer.core.utils.check.Assert.fail(Assert.java:198)
at com.instantiations.designer.core.utils.check.Assert.isNotNull(Assert.java:151)
at com.instantiations.designer.core.utils.check.Assert.isNotNull(Assert.java:138)
at com.instantiations.designer.core.utils.reflect.ReflectionUtils.getFieldObject(ReflectionUtils.java:1015)
at com.instantiations.designer.core.utils.reflect.ReflectionUtils.getFieldInt(ReflectionUtils.java:1039)
at com.instantiations.designer.xwt.model.layout.RowLayout_Info.isHorizontal(RowLayout_Info.java:43)
... 53 more



In my code there's a method isHorizontal that isn't called. Any suggestion?

thank you.
domfe
 
Posts: 46
Joined: Mon Oct 04, 2010 6:42 am

Re: Unhandled event loop exception

Postby Eric Clayberg » Thu Dec 16, 2010 8:25 pm

Give this a try using the latest build...

http://code.google.com/javadevtools/dow ... -beta.html
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Unhandled event loop exception

Postby domfe » Fri Dec 17, 2010 12:35 am

The latest build solved the problem!

Thanks!
domfe
 
Posts: 46
Joined: Mon Oct 04, 2010 6:42 am

Re: Unhandled event loop exception

Postby Eric Clayberg » Fri Dec 17, 2010 4:27 am

Glad that helped.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron