Bug 25759 - NPE trying to open the antview preferences page
Summary: NPE trying to open the antview preferences page
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
: 25973 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-06 08:19 EST by Olivier Thomann CLA
Modified: 2002-11-11 16:09 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2002-11-06 08:19:04 EST
Using 1105, I get the following error when I try to open the ant view
preferences page.

!SESSION Nov 06, 2002 08:17:56.921 ---------------------------------------------
java.version=1.4.1-rc
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -noupdate -data
D:\workspaces\eclipse\plugins -showlocation -install file:D:/eclipse1105/eclipse/
!ENTRY org.eclipse.core.runtime 4 2 Nov 06, 2002 08:17:56.921
!MESSAGE Plug-in "org.eclipse.ui.externaltools" was unable to instantiate class
"org.eclipse.ui.externaltools.internal.ant.antview.preferences.PreferencePage".
!STACK 0
java.lang.NullPointerException
	at
org.eclipse.ui.externaltools.internal.ant.antview.core.ResourceMgr.getString(ResourceMgr.java:89)
	at
org.eclipse.ui.externaltools.internal.ant.antview.preferences.PreferencePage.<init>(PreferencePage.java:35)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at java.lang.Class.newInstance0(Class.java:306)
	at java.lang.Class.newInstance(Class.java:259)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:136)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:165)
	at
org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:102)
	at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:109)
	at
org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode.createPage(WorkbenchPreferenceNode.java:43)
	at
org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:895)
	at org.eclipse.jface.preference.PreferenceDialog$7.run(PreferenceDialog.java:422)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:65)
	at
org.eclipse.jface.preference.PreferenceDialog$6.widgetSelected(PreferenceDialog.java:414)
	at
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:192)
	at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:187)
	at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:327)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:31)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:94)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1669)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1414)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:561)
	at org.eclipse.jface.window.Window.open(Window.java:541)
	at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:47)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:769)
	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:48)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1419)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1402)
	at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:831)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	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:247)
	at org.eclipse.core.launcher.Main.run(Main.java:703)
	at org.eclipse.core.launcher.Main.main(Main.java:539)
Comment 1 Darin Wright CLA 2002-11-06 09:36:39 EST
Movin to ANT
Comment 2 Darin Swanson CLA 2002-11-06 10:11:06 EST
Current workaround is to open the Ant view before opening the Ant preference 
page.

Fixed in PreferencePage.

Logged bug 25772.
Comment 3 Darin Swanson CLA 2002-11-06 10:11:35 EST
Please verify (Darin W).
Comment 4 Olivier Thomann CLA 2002-11-06 10:25:22 EST
Is it possible to get a patch for 1105?
Comment 5 Darin Wright CLA 2002-11-08 14:44:54 EST
*** Bug 25899 has been marked as a duplicate of this bug. ***
Comment 6 Darin Swanson CLA 2002-11-11 12:42:13 EST
*** Bug 25973 has been marked as a duplicate of this bug. ***
Comment 7 Darin Wright CLA 2002-11-11 16:09:38 EST
Verified