Choose Composite 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

Choose Composite Exception

Postby frankc01 » Sat Sep 29, 2007 3:41 am

RCP Developer 2.7.1 w/SWT Designer 6.4.1:

Attempting to use a Composite as per the Designer Guide results in exception and I can not use this feature:

Exception:
!SESSION 2007-09-29 06:20:18.984 -----------------------------------------------
eclipse.buildId=I20070625-1500
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY com.swtdesigner 4 4 2007-09-29 07:54:37.796
!MESSAGE Designer internal error [6.4.1.20070911130912]: Error reading class org.fvjc.homeword.ui.internal.composites.TestComposite
!STACK 0
java.lang.ClassNotFoundException: Error reading class org.fvjc.homeword.ui.internal.composites.TestComposite
at com.instantiations.utils.reflect.ProjectClassLoader.findClass(ProjectClassLoader.java:142)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.swtdesigner.gef.tools.swt.SWTBeanCreationToolEntry.createTool(SWTBeanCreationToolEntry.java:100)
at org.eclipse.gef.EditDomain.handlePaletteToolChanged(EditDomain.java:124)
at org.eclipse.gef.EditDomain.access$000(EditDomain.java:29)
at org.eclipse.gef.EditDomain$1.activeToolChanged(EditDomain.java:43)
at org.eclipse.gef.ui.palette.PaletteViewer.fireModeChanged(PaletteViewer.java:120)
at org.eclipse.gef.ui.palette.PaletteViewer.setActiveTool(PaletteViewer.java:266)
at org.eclipse.gef.internal.ui.palette.editparts.ToolEntryEditPart$2.actionPerformed(ToolEntryEditPart.java:165)
at org.eclipse.draw2d.Clickable.fireActionPerformed(Clickable.java:195)
at org.eclipse.draw2d.Clickable$1.actionPerformed(Clickable.java:167)
at org.eclipse.draw2d.ButtonModel.fireActionPerformed(ButtonModel.java:131)
at org.eclipse.draw2d.ToggleModel.fireActionPerformed(ToggleModel.java:28)
at org.eclipse.draw2d.ButtonModel$DefaultFiringBehavior.released(ButtonModel.java:484)
at org.eclipse.draw2d.ButtonModel.fireReleased(ButtonModel.java:169)
at org.eclipse.draw2d.ButtonModel.setPressed(ButtonModel.java:444)
at org.eclipse.gef.internal.ui.palette.editparts.ToolEntryEditPart$ToggleButtonTracker.handleButtonUp(ToolEntryEditPart.java:94)
at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1006)
at org.eclipse.gef.tools.SelectionTool.mouseUp(SelectionTool.java:504)
at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:229)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:346)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:511)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:206)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
frankc01
 
Posts: 28
Joined: Mon Sep 24, 2007 3:16 am

Re: Choose Composite Exception

Postby Eric Clayberg » Sat Sep 29, 2007 4:35 am

Looks like a problem with the org.fvjc.homeword.ui.internal.composites.TestComposite class.

Make sure that your classpath is correct and that the class is compiled (check that a .class file exists).
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

Postby frankc01 » Sat Sep 29, 2007 5:05 am

Eric,

I've verified that the class is built without error. It is in the classpath as well. One thing to note is that for this Plug-In I am using the JDK 1.6.0_02 system libraries.
frankc01
 
Posts: 28
Joined: Mon Sep 24, 2007 3:16 am

Postby Eric Clayberg » Sat Sep 29, 2007 7:54 am

frankc01 wrote:I've verified that the class is built without error. It is in the classpath as well. One thing to note is that for this Plug-In I am using the JDK 1.6.0_02 system libraries.

Make sure that you are running Eclipse with the same JDK version.

JDK 1.5 may not be able to read/load classes compiled with JDK 1.6.
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

Postby frankc01 » Sat Sep 29, 2007 9:32 am

That worked, thanks
frankc01
 
Posts: 28
Joined: Mon Sep 24, 2007 3:16 am

Postby frankc01 » Sat Sep 29, 2007 11:56 am

Ok, maybe I talked to soon

It would appear that if I add DataBindings to the composite then a host of different exceptions occur.

Is this a known limitation? Otherwise I will post the exception.
frankc01
 
Posts: 28
Joined: Mon Sep 24, 2007 3:16 am

Postby Eric Clayberg » Sat Sep 29, 2007 12:05 pm

We need to see a test case and yoru entire Eclipse ".log" file.
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: No registered users and 2 guests