Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » WindowBuilder internal error when moving several selected components(Moving arround several selected components leads to a WindowBuilder internal error.)
WindowBuilder internal error when moving several selected components [message #660231] Thu, 17 March 2011 13:38 Go to next message
Johannes  is currently offline Johannes Friend
Messages: 7
Registered: March 2011
Junior Member
Hello,

it seems that keyboard movement of several selected components will lead to a window builder internal error. There will be no problem if I move around just one component or the panel contains only a few of them.
Below, I've added the stack trace.

Regards,
Johannes

WindowBuilder internal error

WindowBuilder encountered unexpected internal error. Please contact support.



Show stack trace.
Hide stack trace.

Stack trace:
java.lang.NullPointerException
at org.eclipse.wb.internal.core.gef.policy.snapping.PlacementsS upport.place(PlacementsSupport.java:397)
at org.eclipse.wb.internal.core.gef.policy.snapping.PlacementsS upport.doCommit(PlacementsSupport.java:390)
at org.eclipse.wb.internal.core.gef.policy.snapping.PlacementsS upport.commit(PlacementsSupport.java:153)
at org.eclipse.wb.internal.swing.gef.policy.layout.AbsoluteLayo utEditPolicy$1.executeEdit(AbsoluteLayoutEditPolicy.java:194 )
at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditComman d.java:52)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils. run(ExecutionUtils.java:318)
at org.eclipse.wb.core.gef.command.EditCommand.execute(EditComm and.java:50)
at org.eclipse.wb.internal.gef.core.CompoundCommand.execute(Com poundCommand.java:89)
at org.eclipse.wb.core.gef.command.CompoundEditCommand.access$0 (CompoundEditCommand.java:1)
at org.eclipse.wb.core.gef.command.CompoundEditCommand$1.run(Co mpoundEditCommand.java:47)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils. run(ExecutionUtils.java:318)
at org.eclipse.wb.core.gef.command.CompoundEditCommand.execute( CompoundEditCommand.java:45)
at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(E ditDomain.java:59)
at org.eclipse.wb.internal.core.gef.policy.layout.absolute.Keyb oardMovingLayoutEditPolicy$1$1.run(KeyboardMovingLayoutEditP olicy.java:182)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3660)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 38)
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(Work bench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

Full context stack trace:
java.lang.NullPointerException
at org.eclipse.wb.internal.core.gef.policy.snapping.PlacementsS upport.place(PlacementsSupport.java:397)
at org.eclipse.wb.internal.core.gef.policy.snapping.PlacementsS upport.doCommit(PlacementsSupport.java:390)
at org.eclipse.wb.internal.core.gef.policy.snapping.PlacementsS upport.commit(PlacementsSupport.java:153)
at org.eclipse.wb.internal.swing.gef.policy.layout.AbsoluteLayo utEditPolicy$1.executeEdit(AbsoluteLayoutEditPolicy.java:194 )
at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditComman d.java:52)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils. run(ExecutionUtils.java:318)
at org.eclipse.wb.core.gef.command.EditCommand.execute(EditComm and.java:50)
at org.eclipse.wb.internal.gef.core.CompoundCommand.execute(Com poundCommand.java:89)
at org.eclipse.wb.core.gef.command.CompoundEditCommand.access$0 (CompoundEditCommand.java:1)
at org.eclipse.wb.core.gef.command.CompoundEditCommand$1.run(Co mpoundEditCommand.java:47)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils. run(ExecutionUtils.java:318)
at org.eclipse.wb.core.gef.command.CompoundEditCommand.execute( CompoundEditCommand.java:45)
at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(E ditDomain.java:59)
at org.eclipse.wb.internal.core.gef.policy.layout.absolute.Keyb oardMovingLayoutEditPolicy$1$1.run(KeyboardMovingLayoutEditP olicy.java:182)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3660)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 38)
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(Work bench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Re: WindowBuilder internal error when moving several selected components [message #660706 is a reply to message #660231] Mon, 21 March 2011 09:58 Go to previous messageGo to next message
Alexander Mitin is currently offline Alexander MitinFriend
Messages: 5
Registered: March 2011
Junior Member
We cannot reproduce this. Could you provide a small self-contained test case?
Re: WindowBuilder internal error when moving several selected components [message #662126 is a reply to message #660706] Tue, 29 March 2011 13:06 Go to previous message
Johannes  is currently offline Johannes Friend
Messages: 7
Registered: March 2011
Junior Member
Hi Alexander,

thanks for your replay. Below you can find a simple JPanel which enforces the described behaviour after playing arround a while with the the arrow keys and the two panels selected.

Regards,
Johannes


import javax.swing.JPanel;
import javax.swing.JButton;


public class TestPanel extends JPanel {

/**
* Create the panel.
*/
public TestPanel() {
setLocation(-236, -26);
setLayout(null);

JPanel panel = new JPanel();
panel.setBounds(77, 60, 199, 330);
add(panel);
panel.setLayout(null);

JButton btnNewButton = new JButton("New button");
btnNewButton.setBounds(10, 9, 89, 23);
panel.add(btnNewButton);

JButton btnNewButton_1 = new JButton("New button");
btnNewButton_1.setBounds(10, 41, 89, 23);
panel.add(btnNewButton_1);

JButton btnNewButton_2 = new JButton("New button");
btnNewButton_2.setBounds(10, 73, 89, 23);
panel.add(btnNewButton_2);

JButton btnNewButton_3 = new JButton("New button");
btnNewButton_3.setBounds(10, 105, 89, 23);
panel.add(btnNewButton_3);

JButton btnNewButton_4 = new JButton("New button");
btnNewButton_4.setBounds(10, 137, 89, 23);
panel.add(btnNewButton_4);

JButton btnNewButton_5 = new JButton("New button");
btnNewButton_5.setBounds(10, 169, 89, 23);
panel.add(btnNewButton_5);

JButton btnNewButton_6 = new JButton("New button");
btnNewButton_6.setBounds(10, 201, 89, 23);
panel.add(btnNewButton_6);

JButton btnNewButton_7 = new JButton("New button");
btnNewButton_7.setBounds(10, 233, 89, 23);
panel.add(btnNewButton_7);

JButton btnNewButton_8 = new JButton("New button");
btnNewButton_8.setBounds(10, 265, 89, 23);
panel.add(btnNewButton_8);

JButton btnNewButton_9 = new JButton("New button");
btnNewButton_9.setBounds(10, 297, 89, 23);
panel.add(btnNewButton_9);

JButton btnNewButton_10 = new JButton("New button");
btnNewButton_10.setBounds(105, 41, 89, 23);
panel.add(btnNewButton_10);

JButton btnNewButton_11 = new JButton("New button");
btnNewButton_11.setBounds(105, 9, 89, 23);
panel.add(btnNewButton_11);

JButton btnNewButton_12 = new JButton("New button");
btnNewButton_12.setBounds(105, 73, 89, 23);
panel.add(btnNewButton_12);

JButton btnNewButton_13 = new JButton("New button");
btnNewButton_13.setBounds(105, 105, 89, 23);
panel.add(btnNewButton_13);

JButton btnNewButton_14 = new JButton("New button");
btnNewButton_14.setBounds(105, 137, 89, 23);
panel.add(btnNewButton_14);

JButton btnNewButton_15 = new JButton("New button");
btnNewButton_15.setBounds(105, 169, 89, 23);
panel.add(btnNewButton_15);

JButton btnNewButton_16 = new JButton("New button");
btnNewButton_16.setBounds(105, 201, 89, 23);
panel.add(btnNewButton_16);

JButton btnNewButton_17 = new JButton("New button");
btnNewButton_17.setBounds(105, 233, 89, 23);
panel.add(btnNewButton_17);

JButton btnNewButton_18 = new JButton("New button");
btnNewButton_18.setBounds(105, 265, 89, 23);
panel.add(btnNewButton_18);

JButton button = new JButton("New button");
button.setBounds(105, 297, 89, 23);
panel.add(button);

JPanel panel_1 = new JPanel();
panel_1.setLayout(null);
panel_1.setBounds(292, 60, 199, 330);
add(panel_1);

JButton button_1 = new JButton("New button");
button_1.setBounds(10, 9, 89, 23);
panel_1.add(button_1);

JButton button_2 = new JButton("New button");
button_2.setBounds(10, 41, 89, 23);
panel_1.add(button_2);

JButton button_3 = new JButton("New button");
button_3.setBounds(10, 73, 89, 23);
panel_1.add(button_3);

JButton button_4 = new JButton("New button");
button_4.setBounds(10, 105, 89, 23);
panel_1.add(button_4);

JButton button_5 = new JButton("New button");
button_5.setBounds(10, 137, 89, 23);
panel_1.add(button_5);

JButton button_6 = new JButton("New button");
button_6.setBounds(10, 169, 89, 23);
panel_1.add(button_6);

JButton button_7 = new JButton("New button");
button_7.setBounds(10, 201, 89, 23);
panel_1.add(button_7);

JButton button_8 = new JButton("New button");
button_8.setBounds(10, 233, 89, 23);
panel_1.add(button_8);

JButton button_9 = new JButton("New button");
button_9.setBounds(10, 265, 89, 23);
panel_1.add(button_9);

JButton button_10 = new JButton("New button");
button_10.setBounds(10, 297, 89, 23);
panel_1.add(button_10);

JButton button_11 = new JButton("New button");
button_11.setBounds(105, 41, 89, 23);
panel_1.add(button_11);

JButton button_12 = new JButton("New button");
button_12.setBounds(105, 9, 89, 23);
panel_1.add(button_12);

JButton button_13 = new JButton("New button");
button_13.setBounds(105, 73, 89, 23);
panel_1.add(button_13);

JButton button_14 = new JButton("New button");
button_14.setBounds(105, 105, 89, 23);
panel_1.add(button_14);

JButton button_15 = new JButton("New button");
button_15.setBounds(105, 137, 89, 23);
panel_1.add(button_15);

JButton button_16 = new JButton("New button");
button_16.setBounds(105, 169, 89, 23);
panel_1.add(button_16);

JButton button_17 = new JButton("New button");
button_17.setBounds(105, 201, 89, 23);
panel_1.add(button_17);

JButton button_18 = new JButton("New button");
button_18.setBounds(105, 233, 89, 23);
panel_1.add(button_18);

JButton button_19 = new JButton("New button");
button_19.setBounds(105, 265, 89, 23);
panel_1.add(button_19);

JButton button_20 = new JButton("New button");
button_20.setBounds(105, 297, 89, 23);
panel_1.add(button_20);

}
}
Previous Topic:Is there a plan to migrate ADT under WindowBuilder ?
Next Topic:Focus loss
Goto Forum:
  


Current Time: Sun Dec 21 14:39:57 GMT 2014

Powered by FUDForum. Page generated in 0.02187 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software