SWT Class throws NULL exception [message #60719] |
Thu, 23 September 2004 19:26  |
Eclipse User |
|
|
|
Originally posted by: bvkiran.hotmail.com
I downloaded VE 1.0 along with EMF 2.0.1 and gef 3.0.1. When I create a
visual class with SWT, I get a NULL pointer exception and the visual part
of the editor does not show up. I have include swt.jar in the class path.
Swing based one works fine.
What am I doing wrong
|
|
|
|
|
|
Re: SWT Class throws NULL exception [message #61755 is a reply to message #60727] |
Mon, 27 September 2004 16:46   |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
David Orme wrote:
> BVK wrote:
>
>> I downloaded VE 1.0 along with EMF 2.0.1 and gef 3.0.1. When I create a
>> visual class with SWT, I get a NULL pointer exception and the visual part
>> of the editor does not show up. I have include swt.jar in the class path.
>>
>> Swing based one works fine.
>>
>> What am I doing wrong
>>
> If you're on Linux/GTK, I had this problem too. The problem is that you
> have to make sure that the swt-pi and swt-mozilla jar files are on your
> classpath too. Just right-click the project, pick properties, go to the
> Java Build Path page, Libraries tab, click "Add External Jar" and add them.
>
> You should be up and running then.
>
>
> Regards,
>
> Dave
>
Actually, you need to use the JDT build path and do Add Library and add
SWT. Just adding jars to the classpath won't work. We don't recognize
SWT via jars, we recognize through the SWT library that we add.
|
|
|
|
Re: SWT Class throws NULL exception [message #61920 is a reply to message #61802] |
Mon, 27 September 2004 17:42  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
bvk wrote:
> That exactly what I did. Added library(under Java BuildPath/Library/Add
> library) and chose SWT. It still give the NULL pointer exception
>
Well, let's try this. On the Package Explorer, expand the SWT library
and tell me what jars it says are included with it.
Thanks,
Rich
|
|
|
Re: SWT Class throws NULL exception [message #599121 is a reply to message #60719] |
Fri, 24 September 2004 05:33  |
Eclipse User |
|
|
|
Hi BVK,
> I downloaded VE 1.0 along with EMF 2.0.1 and gef 3.0.1. When I create a
> visual class with SWT, I get a NULL pointer exception and the visual part
> of the editor does not show up. I have include swt.jar in the class path.
What platform are you on ? Can you include the .log file from the
..metadata directory of your workspace ?
Best regards,
Joe Winchester
|
|
|
Re: SWT Class throws NULL exception [message #599171 is a reply to message #60719] |
Fri, 24 September 2004 13:17  |
Eclipse User |
|
|
|
BVK wrote:
> I downloaded VE 1.0 along with EMF 2.0.1 and gef 3.0.1. When I create a
> visual class with SWT, I get a NULL pointer exception and the visual part
> of the editor does not show up. I have include swt.jar in the class path.
>
> Swing based one works fine.
>
> What am I doing wrong
>
If you're on Linux/GTK, I had this problem too. The problem is that you
have to make sure that the swt-pi and swt-mozilla jar files are on your
classpath too. Just right-click the project, pick properties, go to the
Java Build Path page, Libraries tab, click "Add External Jar" and add them.
You should be up and running then.
Regards,
Dave
--
Dave Orme
Eclipse Visual Editor Project Lead
Advanced Systems Concepts' Chief Architect
http://www.swtworkbench.com http://essentialdata.sf.net
|
|
|
Re: SWT Class throws NULL exception [message #599213 is a reply to message #60721] |
Fri, 24 September 2004 16:55  |
Eclipse User |
|
|
|
Originally posted by: bvkiran.hotmail.com
I am running on Windows. I do have SWT path set up. I can run other SWT
routines in the same app.
Kiran
Here the final part of the .metadata log.
Thanks
!ENTRY org.eclipse.jem.proxy 2 0 Sep 23, 2004 16:34:05.148
!MESSAGE
!STACK 0
IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
java.lang.NoClassDefFoundError: org.eclipse.swt.widgets.Control
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:143)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
IWAV0074I *** Local StackTrace:
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanProxyP roxy:
java.lang.NoClassDefFoundError: org.eclipse.swt.widgets.Control
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.createThrowableBeanProxy(REMThrowableBeanTypeProxy.java: 34)
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.newBeanProxy(REMThrowableBeanTypeProxy.java:65)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.getBeanProxy(REMStandardBeanProxyFactory.java:454)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.processErrorReturn(REMStandardBeanProxyFactory.java:50 5)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.getClassReturn(REMStandardBeanTypeProxyFactory.jav a:313)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.createBeanTypeProxy(REMStandardBeanTypeProxyFactor y.java:173)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.getBeanTypeProxy(REMStandardBeanTypeProxyFactory.j ava:290)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.getBeanTypeProxy(REMStandardBeanTypeProxyFactory.j ava:237)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspect(BeaninfoClassAdapter.java:444)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspectIfNecessary(BeaninfoClassAdapter.java:394)
at
org.eclipse.jem.java.impl.JavaClassImpl.getEAnnotations(Java ClassImpl.java:339)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorTypeIterator.f indDecorator(ClassDecoratorTypeIterator.java:37)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorIterator.initi alize(ClassDecoratorIterator.java:47)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorTypeIterator.<init >(ClassDecoratorTypeIterator.java:33)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorFeatureAccess. getDecoratorWithFeature(ClassDecoratorFeatureAccess.java:40)
at
org.eclipse.ve.internal.cde.emf.ClassDescriptorDecoratorPoli cy.findDecorator(ClassDescriptorDecoratorPolicy.java:128)
at
org.eclipse.ve.internal.cde.emf.ClassDescriptorDecoratorPoli cy.getModelAdapterClassname(ClassDescriptorDecoratorPolicy.j ava:195)
at
org.eclipse.ve.internal.cde.emf.DefaultModelAdapterFactory.c reateAdapter(DefaultModelAdapterFactory.java:76)
at
org.eclipse.ve.internal.cde.emf.DefaultModelAdapterFactory.g etAdapter(DefaultModelAdapterFactory.java:51)
at
org.eclipse.ve.internal.cde.emf.AbstractEMFContainerPolicy.i sParentAcceptable(AbstractEMFContainerPolicy.java:52)
at
org.eclipse.ve.internal.cde.emf.AbstractEMFContainerPolicy.g etCreateCommand(AbstractEMFContainerPolicy.java:65)
at
org.eclipse.ve.internal.java.core.JavaContainerPolicy.getCre ateCommand(JavaContainerPolicy.java:38)
at
org.eclipse.ve.internal.cde.core.ContainerPolicy.getCommand( ContainerPolicy.java:211)
at
org.eclipse.ve.internal.cde.core.VisualInfoXYLayoutEditPolic y.getCreateCommand(VisualInfoXYLayoutEditPolicy.java:100)
at
org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(Lay outEditPolicy.java:205)
at
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.get Command(ConstrainedLayoutEditPolicy.java:152)
at
org.eclipse.ve.internal.cde.core.XYLayoutEditPolicy.getComma nd(XYLayoutEditPolicy.java:215)
at
org.eclipse.ve.internal.cde.core.VisualInfoXYLayoutEditPolic y.getCommand(VisualInfoXYLayoutEditPolicy.java:231)
at
org.eclipse.gef.editparts.AbstractEditPart.getCommand(Abstra ctEditPart.java:501)
at org.eclipse.gef.tools.TargetingTool.getCommand(TargetingTool .java:124)
at
org.eclipse.ve.internal.cde.emf.EMFCreationTool.getCommand(E MFCreationTool.java:75)
at org.eclipse.gef.tools.CreationTool.handleMove(CreationTool.j ava:220)
at org.eclipse.gef.tools.AbstractTool.mouseMove(AbstractTool.ja va:1041)
at org.eclipse.gef.EditDomain.mouseMove(EditDomain.java:234)
at
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouse Moved(DomainEventDispatcher.java:344)
at
org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove( LightweightSystem.java:523)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:144)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
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.core.launcher.Main.basicRun(Main.java:186)
at org.eclipse.core.launcher.Main.run(Main.java:647)
at org.eclipse.core.launcher.Main.main(Main.java:631)
!ENTRY org.eclipse.jem.beaninfo 2 0 Sep 23, 2004 16:34:05.168
!MESSAGE IWAV0155E Introspection failed on class
"org.eclipse.swt.widgets.Button." msg="IWAV0135E
java.lang.NoClassDefFoundError(org.eclipse.swt.widgets.Contr ol). "
!ENTRY org.eclipse.jem.proxy 2 0 Sep 23, 2004 16:34:14.922
!MESSAGE
!STACK 0
IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
java.lang.NoClassDefFoundError: org.eclipse.swt.widgets.Control
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:143)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
IWAV0074I *** Local StackTrace:
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanProxyP roxy:
java.lang.NoClassDefFoundError: org.eclipse.swt.widgets.Control
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.createThrowableBeanProxy(REMThrowableBeanTypeProxy.java: 34)
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.newBeanProxy(REMThrowableBeanTypeProxy.java:65)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.getBeanProxy(REMStandardBeanProxyFactory.java:454)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.processErrorReturn(REMStandardBeanProxyFactory.java:50 5)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.getClassReturn(REMStandardBeanTypeProxyFactory.jav a:313)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.createBeanTypeProxy(REMStandardBeanTypeProxyFactor y.java:173)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.getBeanTypeProxy(REMStandardBeanTypeProxyFactory.j ava:290)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.getBeanTypeProxy(REMStandardBeanTypeProxyFactory.j ava:237)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspect(BeaninfoClassAdapter.java:444)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspectIfNecessary(BeaninfoClassAdapter.java:394)
at
org.eclipse.jem.java.impl.JavaClassImpl.getEAnnotations(Java ClassImpl.java:339)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorTypeIterator.f indDecorator(ClassDecoratorTypeIterator.java:37)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorIterator.initi alize(ClassDecoratorIterator.java:47)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorTypeIterator.<init >(ClassDecoratorTypeIterator.java:33)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorFeatureAccess. getDecoratorWithFeature(ClassDecoratorFeatureAccess.java:40)
at
org.eclipse.ve.internal.cde.emf.ClassDescriptorDecoratorPoli cy.findDecorator(ClassDescriptorDecoratorPolicy.java:128)
at
org.eclipse.ve.internal.cde.emf.ClassDescriptorDecoratorPoli cy.getModelAdapterClassname(ClassDescriptorDecoratorPolicy.j ava:195)
at
org.eclipse.ve.internal.cde.emf.DefaultModelAdapterFactory.c reateAdapter(DefaultModelAdapterFactory.java:76)
at
org.eclipse.ve.internal.cde.emf.DefaultModelAdapterFactory.g etAdapter(DefaultModelAdapterFactory.java:51)
at
org.eclipse.ve.internal.cde.emf.AbstractEMFContainerPolicy.i sParentAcceptable(AbstractEMFContainerPolicy.java:52)
at
org.eclipse.ve.internal.cde.emf.AbstractEMFContainerPolicy.g etCreateCommand(AbstractEMFContainerPolicy.java:65)
at
org.eclipse.ve.internal.java.core.JavaContainerPolicy.getCre ateCommand(JavaContainerPolicy.java:38)
at
org.eclipse.ve.internal.cde.core.ContainerPolicy.getCommand( ContainerPolicy.java:211)
at
org.eclipse.ve.internal.cde.core.VisualInfoXYLayoutEditPolic y.getCreateCommand(VisualInfoXYLayoutEditPolicy.java:100)
at
org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(Lay outEditPolicy.java:205)
at
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.get Command(ConstrainedLayoutEditPolicy.java:152)
at
org.eclipse.ve.internal.cde.core.XYLayoutEditPolicy.getComma nd(XYLayoutEditPolicy.java:215)
at
org.eclipse.ve.internal.cde.core.VisualInfoXYLayoutEditPolic y.getCommand(VisualInfoXYLayoutEditPolicy.java:231)
at
org.eclipse.gef.editparts.AbstractEditPart.getCommand(Abstra ctEditPart.java:501)
at org.eclipse.gef.tools.TargetingTool.getCommand(TargetingTool .java:124)
at
org.eclipse.ve.internal.cde.emf.EMFCreationTool.getCommand(E MFCreationTool.java:75)
at org.eclipse.gef.tools.CreationTool.handleMove(CreationTool.j ava:220)
at org.eclipse.gef.tools.AbstractTool.mouseMove(AbstractTool.ja va:1041)
at org.eclipse.gef.EditDomain.mouseMove(EditDomain.java:234)
at
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouse Moved(DomainEventDispatcher.java:344)
at
org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove( LightweightSystem.java:523)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:144)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
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.core.launcher.Main.basicRun(Main.java:186)
at org.eclipse.core.launcher.Main.run(Main.java:647)
at org.eclipse.core.launcher.Main.main(Main.java:631)
!ENTRY org.eclipse.jem.beaninfo 2 0 Sep 23, 2004 16:34:14.942
!MESSAGE IWAV0155E Introspection failed on class
"org.eclipse.swt.widgets.Slider." msg="IWAV0135E
java.lang.NoClassDefFoundError(org.eclipse.swt.widgets.Contr ol). "
!ENTRY org.eclipse.jem.proxy 2 0 Sep 23, 2004 16:34:23.84
!MESSAGE
!STACK 0
IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
java.lang.NoClassDefFoundError: org.eclipse.swt.widgets.Scrollable
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:143)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)
IWAV0074I *** Local StackTrace:
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanProxyP roxy:
java.lang.NoClassDefFoundError: org.eclipse.swt.widgets.Scrollable
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.createThrowableBeanProxy(REMThrowableBeanTypeProxy.java: 34)
at
org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypePr oxy.newBeanProxy(REMThrowableBeanTypeProxy.java:65)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.getBeanProxy(REMStandardBeanProxyFactory.java:454)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.processErrorReturn(REMStandardBeanProxyFactory.java:50 5)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.getClassReturn(REMStandardBeanTypeProxyFactory.jav a:313)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.createBeanTypeProxy(REMStandardBeanTypeProxyFactor y.java:173)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.getBeanTypeProxy(REMStandardBeanTypeProxyFactory.j ava:290)
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanTypePro xyFactory.getBeanTypeProxy(REMStandardBeanTypeProxyFactory.j ava:237)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspect(BeaninfoClassAdapter.java:444)
at
org.eclipse.jem.internal.beaninfo.adapters.BeaninfoClassAdap ter.introspectIfNecessary(BeaninfoClassAdapter.java:394)
at
org.eclipse.jem.java.impl.JavaClassImpl.getEAnnotations(Java ClassImpl.java:339)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorTypeIterator.f indDecorator(ClassDecoratorTypeIterator.java:37)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorIterator.initi alize(ClassDecoratorIterator.java:47)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorTypeIterator.<init >(ClassDecoratorTypeIterator.java:33)
at
org.eclipse.ve.internal.cde.emf.ClassDecoratorFeatureAccess. getDecoratorWithFeature(ClassDecoratorFeatureAccess.java:40)
at
org.eclipse.ve.internal.cde.emf.ClassDescriptorDecoratorPoli cy.findDecorator(ClassDescriptorDecoratorPolicy.java:128)
at
org.eclipse.ve.internal.cde.emf.ClassDescriptorDecoratorPoli cy.getModelAdapterClassname(ClassDescriptorDecoratorPolicy.j ava:195)
at
org.eclipse.ve.internal.cde.emf.DefaultModelAdapterFactory.c reateAdapter(DefaultModelAdapterFactory.java:76)
at
org.eclipse.ve.internal.cde.emf.DefaultModelAdapterFactory.g etAdapter(DefaultModelAdapterFactory.java:51)
at
org.eclipse.ve.internal.cde.emf.AbstractEMFContainerPolicy.i sParentAcceptable(AbstractEMFContainerPolicy.java:52)
at
org.eclipse.ve.internal.cde.emf.AbstractEMFContainerPolicy.g etCreateCommand(AbstractEMFContainerPolicy.java:65)
at
org.eclipse.ve.internal.java.core.JavaContainerPolicy.getCre ateCommand(JavaContainerPolicy.java:38)
at
org.eclipse.ve.internal.cde.core.ContainerPolicy.getCommand( ContainerPolicy.java:211)
at
org.eclipse.ve.internal.cde.core.VisualInfoXYLayoutEditPolic y.getCreateCommand(VisualInfoXYLayoutEditPolicy.java:100)
at
org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(Lay outEditPolicy.java:205)
at
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.get Command(ConstrainedLayoutEditPolicy.java:152)
at
org.eclipse.ve.internal.cde.core.XYLayoutEditPolicy.getComma nd(XYLayoutEditPolicy.java:215)
at
org.eclipse.ve.internal.cde.core.VisualInfoXYLayoutEditPolic y.getCommand(VisualInfoXYLayoutEditPolicy.java:231)
at
org.eclipse.gef.editparts.AbstractEditPart.getCommand(Abstra ctEditPart.java:501)
at org.eclipse.gef.tools.TargetingTool.getCommand(TargetingTool .java:124)
at
org.eclipse.ve.internal.cde.emf.EMFCreationTool.getCommand(E MFCreationTool.java:75)
at org.eclipse.gef.tools.CreationTool.handleMove(CreationTool.j ava:220)
at org.eclipse.gef.tools.AbstractTool.mouseMove(AbstractTool.ja va:1041)
at org.eclipse.gef.EditDomain.mouseMove(EditDomain.java:234)
at
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouse Moved(DomainEventDispatcher.java:344)
at
org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove( LightweightSystem.java:523)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:144)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
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.core.launcher.Main.basicRun(Main.java:186)
at org.eclipse.core.launcher.Main.run(Main.java:647)
at org.eclipse.core.launcher.Main.main(Main.java:631)
!ENTRY org.eclipse.jem.beaninfo 2 0 Sep 23, 2004 16:34:23.104
!MESSAGE IWAV0155E Introspection failed on class
"org.eclipse.swt.widgets.List." msg="IWAV0135E
java.lang.NoClassDefFoundError(org.eclipse.swt.widgets.Scrol lable). "
|
|
|
Re: SWT Class throws NULL exception [message #599728 is a reply to message #60727] |
Mon, 27 September 2004 16:46  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
David Orme wrote:
> BVK wrote:
>
>> I downloaded VE 1.0 along with EMF 2.0.1 and gef 3.0.1. When I create a
>> visual class with SWT, I get a NULL pointer exception and the visual part
>> of the editor does not show up. I have include swt.jar in the class path.
>>
>> Swing based one works fine.
>>
>> What am I doing wrong
>>
> If you're on Linux/GTK, I had this problem too. The problem is that you
> have to make sure that the swt-pi and swt-mozilla jar files are on your
> classpath too. Just right-click the project, pick properties, go to the
> Java Build Path page, Libraries tab, click "Add External Jar" and add them.
>
> You should be up and running then.
>
>
> Regards,
>
> Dave
>
Actually, you need to use the JDT build path and do Add Library and add
SWT. Just adding jars to the classpath won't work. We don't recognize
SWT via jars, we recognize through the SWT library that we add.
|
|
|
|
Re: SWT Class throws NULL exception [message #599771 is a reply to message #61802] |
Mon, 27 September 2004 17:42  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
bvk wrote:
> That exactly what I did. Added library(under Java BuildPath/Library/Add
> library) and chose SWT. It still give the NULL pointer exception
>
Well, let's try this. On the Package Explorer, expand the SWT library
and tell me what jars it says are included with it.
Thanks,
Rich
|
|
|
Powered by
FUDForum. Page generated in 0.05401 seconds