Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Dead Lock on P2 Category Publisher
Dead Lock on P2 Category Publisher [message #1702886] Mon, 27 July 2015 08:51 Go to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

My build script for bash looks like this:

eclipse \
	-nosplash \
	-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
	-metadataRepository file:$PWD \
	-artifactRepository file:$PWD \
	-source $PWD \
	-publishArtifact \
eclipse \
	-nosplash \
	-console -consolelog \
	-application org.eclipse.equinox.p2.publisher.CategoryPublisher \
	-metadataRepository file:$PWD \
	-categoryDefinition file:$PWD/category.xml \
	-categoryQualifier \

First line publishes all plugins and features on current directory. It works well always.

Second line should have to publish categories. It worked with Luna before, But now it produces lock error(below) with Mars. May be there are other different environments.

osgi> Generating metadata for ..
Generation completed with success [0 seconds].
!SESSION 2015-07-27 17:44:21.943 -----------------------------------------------
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=ko_KR
Framework arguments:  -product org.eclipse.epp.package.modeling.product -application org.eclipse.equinox.p2.publisher.CategoryPublisher -metadataRepository file:/Users/jeeeyul/Workspaces/ -categoryDefinition file:/Users/jeeeyul/Workspaces/ -categoryQualifier -compress
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.modeling.product -console -consolelog -application org.eclipse.equinox.p2.publisher.CategoryPublisher -metadataRepository file:/Users/jeeeyul/Workspaces/ -categoryDefinition file:/Users/jeeeyul/Workspaces/ -categoryQualifier -compress

!ENTRY org.eclipse.equinox.ds 2 0 2015-07-27 17:44:34.404
!MESSAGE Getting a lock required more than 10000 ms. There might be a synchronization problem in this callstack or just the build/dispose process of some components took too long! 
java.lang.Exception: Debug stacktrace
	at org.eclipse.equinox.internal.ds.InstanceProcess.getLock(
	at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(
	at org.eclipse.equinox.internal.ds.ServiceReg.getService(
	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$
	at Method)
	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(
	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(
	at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(
	at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(
	at org.eclipse.equinox.internal.p2.core.ProvisioningAgent.addingService(
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(
	at org.osgi.util.tracker.AbstractTracked.trackAdding(
	at org.osgi.util.tracker.AbstractTracked.trackInitial(
	at org.eclipse.equinox.internal.p2.core.ProvisioningAgent.getService(
	at org.eclipse.equinox.internal.p2.engine.ProfilePreferences.doSave(
	at org.eclipse.equinox.internal.p2.engine.ProfilePreferences$

Strange thing is the second line works sometimes, but the problem is highly reproducible.

The script running under the:

  • OSX Yosemite
  • JDK 1.8.0_51

Am I missing something?
Re: Dead Lock on P2 Category Publisher [message #1702887 is a reply to message #1702886] Mon, 27 July 2015 08:52 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
Please open a bug report against p2 with the same details:
Re: Dead Lock on P2 Category Publisher [message #1702888 is a reply to message #1702887] Mon, 27 July 2015 08:54 Go to previous message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

Are you sure that is this a bug?
Previous Topic:Install New Software shows error dialog when clicked.
Next Topic:Restart eclipse from touchpoint action
Goto Forum:

Current Time: Sun Oct 20 17:50:14 GMT 2019

Powered by FUDForum. Page generated in 0.02000 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top