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

Bug 350326

Summary: Profile fails, Timestamp erroneously reports not current
Product: z_Archived Reporter: Miles Parker <milesparker>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Miles Parker CLA 2011-06-24 15:48:00 EDT
I'm attempting to run a director task from buckminster from within Eclipse IDE. That task invokes the following and fails with the following error which would be amusing under normal circumstances:

[ant] eclipse.buildId=I20110613-1736
[ant] java.version=1.6.0_24
[ant] java.vendor=Apple Inc.
[ant] BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
[ant] Framework arguments:  -application org.eclipse.equinox.p2.director -repository file:/Volumes/Resources/Developer/builds/amp/com.metascape.amp.ide.site_1.0.0-eclipse.feature/site.p2/ -destination /Volumes/Resources/Developer/builds/amp/com.metascape.amp.ide.site_1.0.0-eclipse.feature/amp.cocoa.macosx.x86_64 -profile AMPProfile -profileProperties org.eclipse.update.install.features=true -installIU com.metascape.amp.ide.product -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -roaming
[ant] Command-line arguments:  -application org.eclipse.equinox.p2.director -repository file:/Volumes/Resources/Developer/builds/amp/com.metascape.amp.ide.site_1.0.0-eclipse.feature/site.p2/ -destination /Volumes/Resources/Developer/builds/amp/com.metascape.amp.ide.site_1.0.0-eclipse.feature/amp.cocoa.macosx.x86_64 -profile AMPProfile -profileProperties org.eclipse.update.install.features=true -installIU com.metascape.amp.ide.product -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -consoleLog -roaming
[ant] 
[ant] !ENTRY org.eclipse.osgi 4 0 2011-06-24 12:39:07.604
[ant] !MESSAGE Application error
[ant] !STACK 1
[ant] java.lang.IllegalStateException: Profile AMPProfile is not current. Expected timestamp 1308944346784 but was 1308944346784.
[ant] 	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.lockProfile(SimpleProfileRegistry.java:758)
[ant] 	at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:67)
[ant] 	at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
[ant] 	at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:41)
[ant] 	at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:23)
[ant] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.updateRoamingProperties(DirectorApplication.java:1214)
[ant] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.performProvisioningActions(DirectorApplication.java:677)
[ant] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.run(DirectorApplication.java:978)
[ant] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.start(DirectorApplication.java:1160)
[ant] 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
[ant] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[ant] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[ant] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
[ant] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[ant] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ant] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ant] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ant] 	at java.lang.reflect.Method.invoke(Method.java:597)
[ant] 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
[ant] 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
[ant] 	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
[ant] 	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
[ant] An error has occurred. See the log file
[ant] /Developer/eclipse3.7/configuration/1308944345082.log.
org.eclipse.core.runtime.CoreException: /Volumes/Resources/Developer/cloudbees/metascape/investigator/releng/com.metascape.amp.ide.site/build/product.ant:25: Java returned: 13
/Volumes/Resources/Developer/cloudbees/metascape/investigator/releng/com.metascape.amp.ide.site/build/product.ant:25: Java returned: 13: Java returned: 13

My TP is really simple:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?>

<target name="TP3" sequenceNumber="4">
<locations>
<location path="/Volumes/Resources/Developer/workspaces/BuckminsterInvestigator/TP3" type="Directory"/>
</locations>
</target>

This seems like it might be related to bug 331068 and bug 323526 but I don't know enough about the internals to be sure.
Comment 1 Pascal Rapicault CLA 2011-06-24 17:23:26 EDT
Moving to buckminster for initial diagnostic.
Comment 2 Miles Parker CLA 2011-06-25 01:06:21 EDT
(In reply to comment #1)
> Moving to buckminster for initial diagnostic.

Makes sense. I couldn't see how Buckminster might be implicated, but I just tried copying the parameters and executing from cmd-line and everything worked fine.

./director -application org.eclipse.equinox.p2.director -repository file:/Volumes/Resources/Developer/builds/amp/com.metascape.amp.ide.site_1.0.0-eclipse.feature/site.p2/ -destination /Volumes/Resources/Developer/builds/amp/com.metascape.amp.ide.site_1.0.0-eclipse.feature/amp.cocoa.macosx.x86_64 -profile AMPProfile -profileProperties org.eclipse.update.install.features=true -installIU com.metascape.amp.ide.product -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -roaming

Installing...
Operation completed in 45890 ms.
Comment 3 Thomas Hallgren CLA 2011-06-26 08:11:44 EDT

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