Bug 2755 - NPE in JarPackageWizardPage.handleDestinationBrowseButtonPressed (1GIV8KI)
Summary: NPE in JarPackageWizardPage.handleDestinationBrowseButtonPressed (1GIV8KI)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eduardo Pereira CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:42 EDT by Knut Radloff CLA
Modified: 2002-05-30 08:31 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 Knut Radloff CLA 2001-10-10 22:42:55 EDT
When I go to the ZIP export wizard (File->Export->Zip file) in a build 129 workspace and click on the file destination browse 
button I get a NullPointerException with the walkback shown below in the log file.
I only get this error when I first select JAR file and Next which also causes an error. When I go to Zip file export directly it 
works.

The dialog_settings.xml is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench"><section name="JarPackageWizard"><item key="JarManifestWizardPage.MANIFEST_LOCATION" value=""/><item key="JarPackageWizardPage.DESCRIPTION_LOCATION" value=""/><item key="JarManifestWizardPage.GENERATE_MANIFEST" value="true"/><item key="JarManifestWizardPage.REUSE_MANIFEST" value="false"/><item key="JarManifestWizardPage.SEAL_JAR" value="false"/><item key="JarPackageWizardPage.EXPORT_CLASS_FILES" value="true"/><item key="JarPackageWizardPage.SHOW_ERRORS" value="true"/><item key="JarPackageWizardPage.EXPORT_JAVA_FILES" value="false"/><item key="JarPackageWizardPage.OVERWRITE" value="false"/><item key="JarPackageWizardPage.SHOW_WARNINGS" value="true"/><item key="JarPackageWizardPage.EXPORT_WARNINGS" value="true"/><item key="jarPackageWizardPage.EXPORT_ERRORS" value="true"/><item key="JarPackageWizardPage.SAVE_DESCRIPTION" value="false"/><item key="JarManifestWizardPage.SAVE_MANIFEST" value="false"/><item key="JarPackageWizardPage.COMPRESS" value="false"/><list key="JarPackageWizardPage.DESTINATION_NAMES_ID"><item value="D:\Images\Eclipse\dev\eclipse\plugins\org.eclipse.swt\swt2.jar"/></list></section></section>

Note that I hacked the xml file to use the build 129 key names. I didn't have the original 129 file anymore.

Log: Wed Aug 22 11:12:01 EDT 2001
4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop.
java.lang.NullPointerException
	at org.eclipse.jdt.internal.ui.jarpackager.JarPackageWizardPage.handleDestinationBrowseButtonPressed(JarPackageWizardPage.java:421)
	at org.eclipse.jdt.internal.ui.jarpackager.JarPackageWizardPage$2.widgetSelected(JarPackageWizardPage.java:218)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:646)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1343)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:536)
	at org.eclipse.jface.window.Window.open(Window.java:523)
	at org.eclipse.ui.internal.ExportResourcesAction.run(ExportResourcesAction.java:62)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:408)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:362)
	at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:353)
	at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:646)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1343)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:622)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:815)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:119)
	at org.eclipse.core.launcher.Main.run(Main.java:401)
	at org.eclipse.core.launcher.Main.main(Main.java:274)
Log: Wed Aug 22 11:12:01 EDT 2001
4 org.eclipse.core.runtime 0 java.lang.NullPointerException
java.lang.NullPointerException
	at org.eclipse.jdt.internal.ui.jarpackager.JarPackageWizardPage.handleDestinationBrowseButtonPressed(JarPackageWizardPage.java:421)
	at org.eclipse.jdt.internal.ui.jarpackager.JarPackageWizardPage$2.widgetSelected(JarPackageWizardPage.java:218)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:646)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1343)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:536)
	at org.eclipse.jface.window.Window.open(Window.java:523)
	at org.eclipse.ui.internal.ExportResourcesAction.run(ExportResourcesAction.java:62)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:408)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:362)
	at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:353)
	at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:646)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1343)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:622)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:815)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:119)
	at org.eclipse.core.launcher.Main.run(Main.java:401)
	at org.eclipse.core.launcher.Main.main(Main.java:274)


NOTES:
DM (8/22/01 6:05:36 PM)
	This is triggered/caused by: 1GIRYZE: ITPJUI:WINNT - JAR export wizard: "AssertionFailedException: null argument"
	which will be fixed in 0.133 and hence no immediate action is required for the Wizard.

	The problem is that the Wizard stays open after the error and then displays
	the JarPackageWizardPage when the user clicked on "Zip file" (or "File system).

	The Wizard should either recover if one component fails or shut itself down.

	When the user closes the dialog and then selects "Export... --> Zip file" then correct
	page comes up and it works.

	Moving to ITPUI.

KH (9/19/2001 11:42:52 AM)
	Workbench needs to be more robust when plugins fail.
Comment 1 DJ Houghton CLA 2001-10-29 19:14:27 EST
PRODUCT VERSION:
131

Comment 2 Nick Edgar CLA 2002-05-28 14:43:02 EDT
This is really stale, but should double-check it as part of the current 
robustness improvements.
Comment 3 Tod Creasey CLA 2002-05-30 08:31:22 EDT
Verified fixed in 20020529.