Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 261096

Summary: [engine] Profile not getting unlocked
Product: [Eclipse Project] Equinox Reporter: Miles Parker <milesparker>
Component: p2Assignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: pascal, simon_kaegi
Version: 3.5   
Target Milestone: 3.5   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Miles Parker CLA 2009-01-14 16:27:03 EST
After installing a number of components and restarting, then next installation attempt results in:

java.lang.IllegalStateException: The profile is currently in use.
	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.lockProfile(SimpleProfileRegistry.java:655)
	at org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:51)
	at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.performProvisioningPlan(ProvisioningUtil.java:274)
	at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProfileModificationOperation.doExecute(ProfileModificationOperation.java:59)
	at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningOperation.execute(ProvisioningOperation.java:37)
	at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningOperationRunner$1.run(ProvisioningOperationRunner.java:80)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
	
No exceptions are occuring ahead of this. 

After that I was able to load from another (ganymede) site, but I really am not able to see a consistent pattern here.

After an hour or two of random fiddling with sites I was finally able to get it to load. 

(This was the problem site, but I don't think its site related. http://www.openarchitectureware.org/updatesite/milestone/site.xml)
Comment 1 Simon Kaegi CLA 2009-01-14 17:56:29 EST
There have been recent changes in this area and I agree that it's not site realted. To help narrow down the problem can you tell us which build are you using and if possible give detailed steps? Thanks.


Comment 2 Miles Parker CLA 2009-01-14 18:17:19 EST
Of course. I'm kind of swamped so haven't been very thorough.

Build id: I20090113-0918

I don't think it will be that straightforward to reproduce as I've seen it happen inconsistently in several site orders. But I haven't been able to get what I need without this coming up. Basically,

1. DL fresh Eclipse.
2. Start with new workspace.
3. As there is an issue with default setup, I delete the existing ganymede and update sites and re-add them. See bug 260056 
4. Install Feature (EMF SDK)
5. Restart

Repeat 4 and 5, perhaps adding other sites. I use the polarion subversive site and oAW. One possiblity is a failure occuring somehwere. I seem to get the most failures with BIRT :) because of all of the datatools enablements and what not they have, but YMMV.
Comment 3 Pascal Rapicault CLA 2009-01-20 11:24:42 EST

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