Bug 57486 - Problems when bean's class changes shape
Summary: Problems when bean's class changes shape
Status: CLOSED DUPLICATE of bug 58349
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Richard Kulp CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 58349 59500
Blocks:
  Show dependency tree
 
Reported: 2004-04-05 13:47 EDT by Jeff Myers CLA
Modified: 2011-06-13 11:36 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Myers CLA 2004-04-05 13:47:05 EDT
Problems with property sheet when a bean changes shape.

Create a new non-visual class.
Add a string field and generate getters and setters.
Save this file.

Open a new Empty visual class.
Drop a button on the canvas.
Use Choose Bean to drop your non-visual class.
Save the Empty.

Switch back to the non-visual and refactor to rename the field.  Choose to
rename the getters/setters as well.

Switch back to the Empty.  Select the non-visual bean.  The old name is still
shown on the Property Sheet.  Setting a value generates a syntax error.  Close
Empty without saving.
Open Empty again and select the non-visual bean.  The property sheet is empty
and the error below shows up in the .log

The only way to fix this problem is to close and re-open the project.

!ENTRY org.eclipse.ui 4 4 Apr 05, 2004 13:32:48.286
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 Apr 05, 2004 13:32:48.296
!MESSAGE Failed to execute runnable (java.lang.NullPointerException)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
	at org.eclipse.swt.SWT.error(SWT.java:2625)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:109)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2329)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2037)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1509)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1480)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:48)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:260)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:173)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:106)
	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:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:305)
	at org.eclipse.core.launcher.Main.run(Main.java:745)
	at org.eclipse.core.launcher.Main.main(Main.java:713)
!ENTRY org.eclipse.ui 4 4 Apr 05, 2004 13:32:48.306
!MESSAGE *** SWT nested exception
!ENTRY org.eclipse.ui 4 0 Apr 05, 2004 13:32:48.316
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at
org.eclipse.ve.internal.java.core.BeanProxyUtilities.readBeanFeature(BeanProxyUtilities.java:253)
	at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.primReadBeanFeature(BeanProxyAdapter.java:695)
	at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.getBeanProxyValue(BeanProxyAdapter.java:702)
	at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.getInternalBeanPropertyProxyValue(BeanProxyAdapter.java:682)
	at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.getBeanPropertyValue(BeanProxyAdapter.java:661)
	at
org.eclipse.ve.internal.java.core.BeanPropertySourceAdapter.getPropertyValue(BeanPropertySourceAdapter.java:83)
	at
org.eclipse.ve.internal.propertysheet.command.CommandStackPropertySheetEntry.primGetValues(CommandStackPropertySheetEntry.java:174)
	at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetEntry.refreshValues(AbstractPropertySheetEntry.java:877)
	at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetEntry.refreshChildEntries(AbstractPropertySheetEntry.java:808)
	at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetEntry.setValues(AbstractPropertySheetEntry.java:1013)
	at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput(PropertySheetViewer.java:776)
	at
org.eclipse.ui.views.properties.PropertySheetPage.selectionChanged(PropertySheetPage.java:377)
	at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPage.superSelectionChanged(EToolsPropertySheetPage.java:254)
	at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPage.access$2(EToolsPropertySheetPage.java:247)
	at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPage$1.run(EToolsPropertySheetPage.java:240)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2329)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2037)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1509)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1480)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:48)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:260)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:173)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:106)
	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:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:305)
	at org.eclipse.core.launcher.Main.run(Main.java:745)
	at org.eclipse.core.launcher.Main.main(Main.java:713)
Comment 1 Gili Mendel CLA 2004-04-26 10:22:24 EDT
Waiting for resolution of bug 59500
Comment 2 Peter Walker CLA 2004-06-03 16:19:04 EDT
Need to fix as soon as possible...
Comment 3 Peter Walker CLA 2004-06-03 17:35:51 EDT
Is this a dup of bug 58349 ?
Comment 4 Richard Kulp CLA 2004-06-16 11:23:16 EDT
With the fix for big 58349 this seems to be gone. So closing as a dup of it.

*** This bug has been marked as a duplicate of 58349 ***
Comment 5 Jeff Myers CLA 2004-09-30 15:47:49 EDT
Duplicate bug is closed.