Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » automatic installation in RCP
automatic installation in RCP [message #689325] Mon, 27 June 2011 12:54 Go to next message
Jan Weidauer is currently offline Jan WeidauerFriend
Messages: 49
Registered: July 2009
Member
Hi there,

I've got a RCP which should on demand install needed plugins
automatically and without P2-UI. The names of the available plugins are
known and the plugins are in the repository named in p2.inf.
Exporting the product I do File -> Export -> Eclipse product. (i.e.
C:\example\RCP)
After that I export the plugins grouped in a categorized feature via
File -> Export -> Deployable features to the repository path of my
product. (i.e. C:\example\repository)

Doing this in Helios it results in a RCP working as intended, which
means after a certain user event plugins are installed.
Doing this in Indigo it results in the following errors when trying to
install a plugin:

!ENTRY org.eclipse.equinox.p2.engine 4 4 2011-06-27 14:41:26.799
!MESSAGE An error occurred while collecting items to be installed
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2011-06-27 14:41:26.799
!MESSAGE session context was:(profile=profile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect,
operand=null --> [R]de.fi.demo.rcp.app.atmt 1.0.0.201106271441,
action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.CollectAction).
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2011-06-27 14:41:26.799
!MESSAGE
!STACK 0
java.lang.NullPointerException
at
org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getBundlePoolRepository(Util.java:78)
at
org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getAggregatedBundleRepository(Util.java:117)
at
org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getAggregatedBundleRepository(Util.java:94)
at
org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.CollectAction.collect(CollectAction.java:74)
at
org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.CollectAction.execute(CollectAction.java:33)
at org.eclipse.equinox.internal.p2.engine.Phase.mainPerform(Phase.java:149)
at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:78)
at
org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:44)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:75)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
at
org.eclipse.equinox.p2.operations.ProvisioningSession.performProvisioningPlan(ProvisioningSession.java:174)
at
org.eclipse.equinox.p2.operations.ProfileModificationJob.runModal(ProfileModificationJob.java:79)
at
org.eclipse.equinox.p2.operations.ProvisioningJob.run(ProvisioningJob.java:177)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The error comes out of the fact that there is no
ArtifactRepositoryManager found.
What am I doing wrong?

Thanks in advance,

Jan
Re: automatic installation in RCP [message #698906 is a reply to message #689325] Wed, 20 July 2011 12:53 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Does your RCP app include org.eclipse.equinox.ds ? If that's there and started, I'd open a bug against p2 at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox&component=p2

PW


Previous Topic:build updatesite outside of eclipse IDE
Next Topic:Using P2 to specify platform specific JVM paths
Goto Forum:
  


Current Time: Sat Dec 14 10:31:38 GMT 2024

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

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

Back to the top