Bug 15685 - update manager replacing files of plug-in versions that are already installed
Summary: update manager replacing files of plug-in versions that are already installed
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Christophe Elek CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-09 17:58 EDT by Jim des Rivieres CLA
Modified: 2002-05-11 22:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2002-05-09 17:58:17 EDT
Integration build 20020508 (1411)

1. Fresh install and fresh workspace
2. Update manager
3. Update org.eclipse.platform.win32 feature at a local site.
The feature is more recent than what is installed.
All the plug-ins in the feature are the same as what is installed.
Once of those plug-ins is org.eclipse.ui.win32 1.9.0

Observe: It does not finish. It looks like it is trying to overwrite
the already installed plug-in's files (the swt dll is open and busy).

Expectation: The plug-in in question is already installed at exactly
the same version level (1.9.0); consequently, installing the feature
should not touch this plug-in.

.log
=========
!SESSION ----------------------------------------------------------------------
java.fullversion=J2RE 1.3.1 IBM Windows 32 build cn131-20020403 (JIT enabled: 
jitc)
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -ws win32 -install file:/D:/eclipse-SDK-200205081411-
win32/eclipse/
!ENTRY org.eclipse.update.core 0 4 Thu May 09 17:49:26 EDT 2002
!MESSAGE Unable to complete action for feature "Eclipse Platform (Windows)" 
due to errors.
!STACK org.eclipse.core.runtime.CoreException[0]: 
java.io.FileNotFoundException: D:\eclipse-SDK-200205081411-win32
\eclipse\plugins\org.eclipse.swt.win32_1.9.0\os\win32\x86\swt-win32-2038.dll 
(The process cannot access the file because it is being used by another 
process)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:76)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:146)
	at org.eclipse.update.internal.core.UpdateManagerUtils.copyToLocal
(UpdateManagerUtils.java:183)
	at org.eclipse.update.internal.core.SiteFilePluginContentConsumer.store
(SiteFilePluginContentConsumer.java:49)
	at org.eclipse.update.internal.core.PluginEntryContentConsumer.store
(PluginEntryContentConsumer.java:44)
	at org.eclipse.update.core.Feature.install(Feature.java:364)
	at org.eclipse.update.internal.core.SiteFile.install(SiteFile.java:69)
	at org.eclipse.update.internal.core.ConfiguredSite.install
(ConfiguredSite.java:185)
	at org.eclipse.update.internal.ui.wizards.InstallWizard.execute
(InstallWizard.java:158)
	at org.eclipse.update.internal.ui.wizards.InstallWizard.access$2
(InstallWizard.java:131)
	at org.eclipse.update.internal.ui.wizards.InstallWizard$1.run
(InstallWizard.java:59)
	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:70)
	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
(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:548)
	at org.eclipse.jface.window.Window.open(Window.java:535)
	at org.eclipse.update.internal.ui.forms.DetailsForm$7.run
(DetailsForm.java:683)
	at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:56)
	at org.eclipse.update.internal.ui.forms.DetailsForm.executeJob
(DetailsForm.java:676)
	at org.eclipse.update.internal.ui.forms.DetailsForm.doButtonSelected
(DetailsForm.java:703)
	at org.eclipse.update.internal.ui.forms.DetailsForm.access$11
(DetailsForm.java:691)
	at org.eclipse.update.internal.ui.forms.DetailsForm$4.widgetSelected
(DetailsForm.java:338)
	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(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	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:1045)
	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:174)
	at org.eclipse.core.launcher.Main.run(Main.java:605)
	at org.eclipse.core.launcher.Main.main(Main.java:449)
Comment 1 Christophe Elek CLA 2002-05-09 18:47:26 EDT
Will attempt to fix for tomorrow. Do you still have the feature handy ?
Comment 2 Christophe Elek CLA 2002-05-10 21:12:24 EDT
Fixed,
the plugin parser was throwing a ParseFinishException before I actually type
(fragment/plugin)
The comparison between the swt_win32 fragment and the believed swt_win32 plugin
returned false, adding the plugin to the install list
Comment 3 Jim des Rivieres CLA 2002-05-11 22:54:35 EDT
With v20020511 of org.eclipse.update.core I can no longer recreate the problem.