Bug 252934 - NullPointerException when clicking Edit in dialog "Access Control Management"
Summary: NullPointerException when clicking Edit in dialog "Access Control Management"
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Geclipse (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ariel Garcia CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 259943 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-31 05:15 EDT by Mariusz Wojtysiak CLA
Modified: 2014-01-09 16:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Wojtysiak CLA 2008-10-31 05:15:32 EDT
1. Expand GRIA connection
2. Select your data stager (created by you)
3. From context menu start "Manage Permissions"
4. In "Access control management" dialog press button "Edit"

Result: following exception is thrown:
java.lang.NullPointerException
	at eu.geclipse.ui.dialogs.AccessControlRuleDialog.updateDialogContents(AccessControlRuleDialog.java:354)
	at eu.geclipse.ui.dialogs.AccessControlRuleDialog$1.modifyText(AccessControlRuleDialog.java:255)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:167)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
	at org.eclipse.swt.widgets.Combo.setItems(Combo.java:1549)
	at eu.geclipse.ui.dialogs.AccessControlRuleDialog.createDialogArea(AccessControlRuleDialog.java:167)
	at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
	at org.eclipse.jface.window.Window.create(Window.java:431)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
	at org.eclipse.jface.window.Window.open(Window.java:790)
	at eu.geclipse.ui.dialogs.AccessControlDialog.editEntry(AccessControlDialog.java:317)
	at eu.geclipse.ui.dialogs.AccessControlDialog$2.widgetSelected(AccessControlDialog.java:203)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at eu.geclipse.ui.internal.actions.ManagePermissionsAction.run(ManagePermissionsAction.java:96)
	at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
	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(EclipseStarter.java:382)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Comment 1 Ariel Garcia CLA 2009-01-06 16:42:01 EST
*** Bug 259943 has been marked as a duplicate of this bug. ***
Comment 2 Ariel Garcia CLA 2009-01-06 17:18:08 EST
I cannot reproduce this with any of the stagers created by others that i see, nor with the ones that i create... I see where/how it happens in the code, but that situation should not happen in principle... so i would like to see which is the real cause.
Could you please tell me the GRIA Resource ID of the data stager ID which triggers this problem for you? (ie, not (only) the label but the real GRIA Resource ID which looks like 0db42a7e-1a05aba7-011a-ca237f72-0470, for sure you know better than me ;-)

Comment 3 Mariusz Wojtysiak CLA 2009-01-07 02:55:50 EST
I have this problem for _my_ every data stager, for example:
https://iwr-geclipse.fzk.de:8442/gria-basic-app-services/services/DataService#0db42a7e-1bd57c4b-011c-0889c23f-0031

I analysed a bit trackstace and it looks that method getSelectedActorType() returned null, on which method is called in updateDialogContents()