BUG: Null Pointer 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

BUG: Null Pointer Exception

Postby kite » Mon Oct 13, 2003 1:07 am

OS: Windows XP with SP1
Eclipse: 3.0 M4
SWT-Designer: 1.2.0 Free Edition
Description:
I have created a SWT Application, select a layout , then add a sash form, add two components into sash form, if I delete one component , I can't add any component into sashform. Or add a composite into sashform(left component), then add a sashform into this composite, sometimes generated source has problem, for example, setWeights(new new int[] { -63, 287 }).

And if you create a Toolbar in a CoolItem, sometimes Designer will not work until you reopen it. In .log file you will see Null pointer exceptions .
kite
 
Posts: 2
Joined: Tue Jul 29, 2003 2:49 am

Re: BUG: Null Pointer Exception

Postby admin » Mon Oct 13, 2003 2:16 am

kite wrote:OS: Windows XP with SP1
Eclipse: 3.0 M4
SWT-Designer: 1.2.0 Free Edition
Description:
I have created a SWT Application, select a layout , then add a sash form, add two components into sash form, if I delete one component , I can't add any component into sashform.

How do see that you can not add new component? Do you see exception? Or cursor becomes disabled? Or you can add component, but it is placed in wrong position?

kite wrote: Or add a composite into sashform(left component), then add a sashform into this composite, sometimes generated source has problem, for example, setWeights(new new int[] { -63, 287 }).

Sorry, I can not reproduce this. Can you please provide more precise scenario?

kite wrote:And if you create a Toolbar in a CoolItem, sometimes Designer will not work until you reopen it. In .log file you will see Null pointer exceptions .

Can you provide error log here?
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby kite » Mon Oct 13, 2003 7:03 pm

!SESSION 十月 14, 2003 10:53:18.991 ----------------------------------------------
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:F:/eclipse/
!ENTRY com.swtdesigner 4 4 十月 14, 2003 10:53:18.991
!MESSAGE Designer internal error: null
!STACK 0
java.lang.NullPointerException
at com.swtdesigner.model.q.a(SourceFile:693)
at com.swtdesigner.model.q.aw(SourceFile:674)
at com.swtdesigner.gef.command.t.execute(SourceFile:16)
at org.eclipse.gef.commands.CompoundCommand.execute(CompoundCommand.java:107)
at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:78)
at org.eclipse.gef.ui.actions.WorkbenchPartAction.execute(WorkbenchPartAction.java:63)
at org.eclipse.gef.ui.actions.DeleteAction.run(DeleteAction.java:127)
at com.swtdesigner.gef.C.keyPressed(SourceFile:709)
at org.eclipse.gef.KeyHandler.keyPressed(KeyHandler.java:52)
at org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler.keyPressed(GraphicalViewerKeyHandler.java:223)
at org.eclipse.gef.tools.SelectionTool.handleKeyDown(SelectionTool.java:297)
at org.eclipse.gef.tools.AbstractTool.keyDown(AbstractTool.java:844)
at org.eclipse.gef.tools.SelectionTool.keyDown(SelectionTool.java:428)
at org.eclipse.gef.EditDomain.keyDown(EditDomain.java:138)
at com.swtdesigner.gef.j.keyDown(SourceFile:53)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchKeyPressed(DomainEventDispatcher.java:231)
at org.eclipse.draw2d.LightweightSystem$EventHandler.keyPressed(LightweightSystem.java:461)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:120)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:871)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:856)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1689)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1685)
at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3418)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2915)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2698)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1345)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1861)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2347)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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:299)
at org.eclipse.core.launcher.Main.run(Main.java:765)
at org.eclipse.core.launcher.Main.main(Main.java:599)
!ENTRY com.swtdesigner 4 4 十月 14, 2003 10:58:49.286
!MESSAGE Designer internal error: 1
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: 1
at com.swtdesigner.model.widgets.composites.g.a(SourceFile:140)
at com.swtdesigner.model.widgets.composites.g.e(SourceFile:119)
at com.swtdesigner.gef.command.j.execute(SourceFile:20)
at org.eclipse.gef.commands.CompoundCommand.execute(CompoundCommand.java:107)
at org.eclipse.gef.commands.CompoundCommand.execute(CompoundCommand.java:107)
at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:78)
at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(AbstractTool.java:416)
at org.eclipse.gef.tools.DragEditPartsTracker.performDrag(DragEditPartsTracker.java:312)
at org.eclipse.gef.tools.DragEditPartsTracker.handleButtonUp(DragEditPartsTracker.java:218)
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:232)
at com.swtdesigner.gef.j.mouseUp(SourceFile:92)
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:132)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2173)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1863)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2347)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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:299)
at org.eclipse.core.launcher.Main.run(Main.java:765)
at org.eclipse.core.launcher.Main.main(Main.java:599)
kite
 
Posts: 2
Joined: Tue Jul 29, 2003 2:49 am


Return to SWT Designer

Who is online

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