MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
adn
Post subject: Unhandled event loop exception  PostPosted: Nov 22, 2010 - 04:25 PM



Joined: Oct 25, 2010
Posts: 5

Hi all,

frequently I get the following error when I use Matisse.

Specifically when I create complex forms : one form contains 1 or n Panels.

Here is the log :


eclipse.buildId=unknown
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments: -os win32 -ws win32 -arch x86


Error
Mon Nov 22 17:16:08 CET 2010
Unhandled event loop exception

java.lang.NullPointerException
at com.genuitec.eclipse.dehory.FormPropertySheetPage$SwingFormPropertySheetControl.setSourceMode(FormPropertySheetPage.java:95)
at com.genuitec.eclipse.dehory.FormPropertySheetPage.setSourceMode(FormPropertySheetPage.java:76)
at com.genuitec.eclipse.dehory.DehoryEditor.widgetSelected(DehoryEditor.java:799)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
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.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3256)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2045)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:323)
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:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
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)


Can anyone help me.
Code:
 
 View user's profile Send private message  
Reply with quote Back to top
adn
Post subject:   PostPosted: Nov 24, 2010 - 07:49 AM



Joined: Oct 25, 2010
Posts: 5

I'm quite surprised that nobody got this exception !

Perhaps more description of the context would help readers :

We add in Matiss some custom component from swingx (JXTaskPaneContainer for example).

Please notice that this component is not display correctly in the designer : it's impossible to visualize what we add in this container when we use MyEclipse, but in Netbeans the designed form is displayed correctly.

So, when we design one form that contains one of this cutom component, all is right until this Exception happens.

Does anyone meet got this exception ? Is that a Matiss bug ?

thks
 
 View user's profile Send private message  
Reply with quote Back to top
adn
Post subject:   PostPosted: Nov 26, 2010 - 02:12 PM



Joined: Oct 25, 2010
Posts: 5

We had resolved our problem.

For people who meet this kind of problem :
When you have complex forms (one form contains multiple one), edit the .form file and replace the package name of your embedded Panel by javax.swing.JPanel (the basic one) and you should see the form in the designer.

This means that one of your embedded form have a problem and step by step you could identify wich one cause the error.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits