Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328144 - self-updating eclipse with a changed launcher plug-in causes troubles
Summary: self-updating eclipse with a changed launcher plug-in causes troubles
Status: CLOSED DUPLICATE of bug 304639
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-19 11:20 EDT by Helmut J. Haigermoser CLA
Modified: 2010-10-21 08:09 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 Helmut J. Haigermoser CLA 2010-10-19 11:20:13 EDT
Build Identifier: 3.6 final

My RCP product just tried to update itself from 3.6 base to 3.6.1. Along the way I had built a new "org.eclipse.equinox.launcher" bundle.

After the RCP went down for the restart it never came back up, with this message being printed on command line:

"Unable to access jarfile /tmp/helmuth/test_update/maintenance/wrInstaller/x86-linux2/plugins/org.eclipse.equinox.launcher_1.1.0.<old>.jar" (<old> was the old build-id).

This was only a problem on unix, the garbage collector did not have a chance to throw away the windows launcher plug-in while it was in use I guess (not sure about that though..)

Looks like the garbage collector is cleaning up after the update, which is fine I guess. The new <product>.ini even contains the new line 
<pre>
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.<new>.jar
</pre>
, but somehow the EXIT_RESTART of my application does not seem to re-read the ini file or has some cache.



Reproducible: Always

Steps to Reproduce:
1. Have an RCP base on 3.6, install it
1.1 The RCP has a -vm <vm location> argument, not sure if that matters though
2. Update that RCP to a newer base, 3.6.1, have 3.6.1 include a new launcher bundle
3. Watch the failure on linux
Comment 1 Helmut J. Haigermoser CLA 2010-10-21 08:09:46 EDT
Guys, I'm marking this as a duplicate of the real problem:
The SimpleProfileRegistry changed in 3.6 such that it does not recognize the SELF profile for our RCP anymore. Debugging the issue and recognizing the faulty part lead to a workaround we can release with but I'm still hoping we can work together in getting the profile registry fixed.. :)
Helmut

*** This bug has been marked as a duplicate of bug 304639 ***