Bug 16004

Summary: Install error is not being reported
Product: [Eclipse Project] Platform Reporter: Vlad Klicnik <klicnik>
Component: Update (deprecated - use Eclipse>Equinox>p2)Assignee: Christophe Elek <celek>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: dejan
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Vlad Klicnik CLA 2002-05-14 21:05:27 EDT
While winning through the scenarios I had a missing plugin on the site. The 
install wizard just quits but remains open. No error dialog or other 
notification to the use. the log has the following (needs to be reported to 
user):

!MESSAGE Unable to complete action for feature "Eclipse Platform" due to errors.
!STACK org.eclipse.core.runtime.CoreException[0]: 
java.io.FileNotFoundException: 
http://vlad/eclipse/update/plugins/org.eclipse.help.webapp_2.0.0.v020513.jar
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:595)
	at sun.net.www.protocol.http.HttpURLConnection.getHeaderField
(HttpURLConnection.java:838)
	at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:485)
	at java.net.URLConnection.getContentLength(URLConnection.java:397)
	at org.eclipse.update.core.ContentReference.getInputSize
(ContentReference.java:143)
	at org.eclipse.update.core.FeatureContentProvider.asLocalReference
(FeatureContentProvider.java:104)
	at 
org.eclipse.update.internal.core.FeaturePackagedContentProvider.getPluginEntryAr
chiveReferences(FeaturePackagedContentProvider.java:219)
	at org.eclipse.update.core.Feature.install(Feature.java:306)
	at org.eclipse.update.internal.core.SiteFile.install(SiteFile.java:69)
	at org.eclipse.update.internal.core.ConfiguredSite.install
(ConfiguredSite.java:204)
	at org.eclipse.update.internal.ui.wizards.InstallWizard.execute
(InstallWizard.java:152)
	at org.eclipse.update.internal.ui.wizards.InstallWizard.access$2
(InstallWizard.java:133)
	at org.eclipse.update.internal.ui.wizards.InstallWizard$1.run
(InstallWizard.java:61)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread
(ModalContext.java:296)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:720)
	at org.eclipse.update.internal.ui.wizards.InstallWizard.performFinish
(InstallWizard.java:72)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed
(WizardDialog.java:577)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:312)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:398)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
	at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Unknown Source)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:551)
	at org.eclipse.jface.window.Window.open(Window.java:538)
	at org.eclipse.update.internal.ui.forms.DetailsForm$7.run
(DetailsForm.java:755)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
	at org.eclipse.update.internal.ui.forms.DetailsForm.executeJob
(DetailsForm.java:746)
	at org.eclipse.update.internal.ui.forms.DetailsForm.doButtonSelected
(DetailsForm.java:775)
	at org.eclipse.update.internal.ui.forms.DetailsForm.access$12
(DetailsForm.java:763)
	at org.eclipse.update.internal.ui.forms.DetailsForm$4.widgetSelected
(DetailsForm.java:374)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
	at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Unknown Source)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1057)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:739)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:450)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:176)
	at org.eclipse.core.launcher.Main.run(Main.java:614)
	at org.eclipse.core.launcher.Main.main(Main.java:451)
Comment 1 Dejan Glozic CLA 2002-05-17 14:58:55 EDT
Please reconfirm this error - I checked the code and it appears solid - there 
is no way a CoreException could get away unreported, particularly not recorded 
in the log but not in a dialog. Also note that log file now keeps errors from 
previous sessions, not just the one you are currently running.
Comment 2 Vlad Klicnik CLA 2002-05-17 15:21:10 EDT
Reassigning to core.

The scenario is simple to recreate. Please verify this does not happen with 
0516/ 0517. If it does, please make sure we are actually throwing the exception 
and not just logging it.
Comment 3 Christophe Elek CLA 2002-05-17 19:08:23 EDT
Same issue as 14685.
Verified we throw a valid error and that the error dialog opens