Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Missing dependencies for p2 updates
Missing dependencies for p2 updates [message #1639399] Fri, 27 February 2015 16:16 Go to next message
Marco Schulte is currently offline Marco SchulteFriend
Messages: 4
Registered: January 2015
Junior Member
We are struggling to integrate the p2 update service into our e(fx)clipse based application

The exception we end up with which we can't resolve is the following:

INFORMATION: Jobs done: An error occurred while uninstalling

!ENTRY org.eclipse.equinox.p2.engine 4 4 2015-02-27 17:01:33.610
!MESSAGE An error occurred while uninstalling
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2015-02-27 17:01:33.610
!MESSAGE session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]Fx_Sample.feature.feature.jar 1.0.0 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallFeatureAction).
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2015-02-27 17:01:33.611
!MESSAGE Could not acquire the framework manipulator service.
!STACK 0
java.lang.IllegalStateException: Could not acquire the framework manipulator service.
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.loadDelegate(LazyManipulator.java:45)
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.getLauncherData(LazyManipulator.java:118)
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.PlatformConfigurationWrapper.getOSGiInstallArea(PlatformConfigurationWrapper.java:55)
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.PlatformConfigurationWrapper.loadDelegate(PlatformConfigurationWrapper.java:149)
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.PlatformConfigurationWrapper.removeFeatureEntry(PlatformConfigurationWrapper.java:273)
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallFeatureAction.uninstallFeature(UninstallFeatureAction.java:62)
        at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallFeatureAction.execute(UninstallFeatureAction.java:24)
        at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:38)
        at org.eclipse.equinox.internal.p2.engine.Phase.mainPerform(Phase.java:183)
        at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:95)
        at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:47)
        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)


We built and attached a minimal app, which produces this error.

What we did to produce the error:

* Build Fx_parent with mvn, this also builds the product
* Save the product sameplace new
* Increase the version of the feature in the feature's pom.xml, feature.xml and adapt the feature's version number in the .product file
* Build again with mvn, save target/repository to C:/repository
* Run the previously saved client with -Dupdatesite=file:/C:/repository

Any idea how to resolve this problem?

Thanks
Marco
Re: Missing dependencies for p2 updates [message #1645128 is a reply to message #1639399] Mon, 02 March 2015 10:47 Go to previous messageGo to next message
Christian Ora is currently offline Christian OraFriend
Messages: 20
Registered: May 2014
Junior Member
I found a similar Problem on the Equinox Forums. Maybe this might help you : https://www.eclipse.org/forums/index.php/t/809201/
Re: Missing dependencies for p2 updates [message #1645151 is a reply to message #1645128] Mon, 02 March 2015 11:01 Go to previous messageGo to next message
Christian Ora is currently offline Christian OraFriend
Messages: 20
Registered: May 2014
Junior Member
Actually, i had the same Stacktrace, when i tried to install an IU and it solved my Problem.
Re: Missing dependencies for p2 updates [message #1645168 is a reply to message #1645151] Mon, 02 March 2015 11:12 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

It would be great if you guys would contribute a very small working
example how to add a p2 update for an e4+javafx application.

Please file a bug and attach the sample as a zip or even better as a
gerrit review!

Tom

On 02.03.15 12:01, Christian Ora wrote:
> Actually, i had the same Stacktrace, when i tried to install an IU and
> it solved my Problem.
Re: Missing dependencies for p2 updates [message #1645191 is a reply to message #1645168] Mon, 02 March 2015 11:29 Go to previous messageGo to next message
Christian Ora is currently offline Christian OraFriend
Messages: 20
Registered: May 2014
Junior Member
I do have a small working example of installing a new feature, if this is what you meant, i will do as you wish. Updating an application has already been implemented in your UpdateService, hasn't it ?
Re: Missing dependencies for p2 updates [message #1645208 is a reply to message #1645191] Mon, 02 March 2015 11:38 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
This service is yet untested - I extracted the code from one of our SWT
products but never tested if it really works.

So demonstrating:
* addition of new feature
* update of a complete product

would a very cool thing to have. What we anyways need to work on is an
install GUI (I imagine something simpler than what we have in the SWT
world).

I think we need:
* info pane that e.g. an update is available
* a dialog allowing one to install new features
* a dialog allowing to search for updates

we could use the sample app to work on those dialogs. Does that make sense?

Tom

On 02.03.15 12:29, Christian Ora wrote:
> I do have a small working example of installing a new feature, if this
> is what you meant, i will do as you wish. Updating an application has
> already been implemented in your UpdateService, hasn't it ?
Re: Missing dependencies for p2 updates [message #1645380 is a reply to message #1645208] Mon, 02 March 2015 13:32 Go to previous messageGo to next message
Christian Ora is currently offline Christian OraFriend
Messages: 20
Registered: May 2014
Junior Member
Okay, trying to figure out this gerrit thing. I commited into the demos folder of https://git.eclipse.org/r/efxclipse/org.eclipse.efxclipse. And configured a gerrit push, with my forums login as user, but authorization failed. Do i need an Eclipse Foundation Account, or something like that ?

[Updated on: Mon, 02 March 2015 13:37]

Report message to a moderator

Re: Missing dependencies for p2 updates [message #1645388 is a reply to message #1645380] Mon, 02 March 2015 13:40 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
https://wiki.eclipse.org/Gerrit
Re: Missing dependencies for p2 updates [message #1645433 is a reply to message #1645388] Mon, 02 March 2015 14:09 Go to previous messageGo to next message
Marco Schulte is currently offline Marco SchulteFriend
Messages: 4
Registered: January 2015
Junior Member
Thanks for the help, the referenced thread indeed solved the problem.

The following changes were necessary:

Adding to feature.xml
<plugin
	id="org.eclipse.osgi.compatibility.state"
	download-size="0"
	install-size="0"
	version="0.0.0"
	unpack="false"/>


Adding to the .product
<plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />


This left me with a working update mechanism. There was just an error message appearing in the console that org.eclipse.equinox.ds couldn't resolve some event package. This has been resolved by changing the startlevel of org.eclipse.equinox.ds to 2.
Re: Missing dependencies for p2 updates [message #1645441 is a reply to message #1645433] Mon, 02 March 2015 14:12 Go to previous messageGo to next message
Marco Schulte is currently offline Marco SchulteFriend
Messages: 4
Registered: January 2015
Junior Member
Here is the working copy
Re: Missing dependencies for p2 updates [message #1645558 is a reply to message #1645433] Mon, 02 March 2015 15:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Could you file a bug against e(fx)clipse so that we automatically add
these informations when bootstraping an e4+javafx app!

I guess this could safe others some headaches when trying to do the same
thing.

Tom

On 02.03.15 15:09, Marco Schulte wrote:
> Thanks for the help, the referenced thread indeed solved the problem.
>
> The following changes were necessary:
>
> Adding to feature.xml <plugin
> id="org.eclipse.osgi.compatibility.state"
> download-size="0"
> install-size="0"
> version="0.0.0"
> unpack="false"/>
>
> Adding to the .product <plugin
> id="org.eclipse.equinox.simpleconfigurator" autoStart="true"
> startLevel="1" />
> This left me with a working update mechanism. There was just an error
> message appearing in the console that org.eclipse.equinox.ds couldn't
> resolve some event package. This has been resolved by changing the
> startlevel of org.eclipse.equinox.ds to 2.
Re: Missing dependencies for p2 updates [message #1645635 is a reply to message #1645558] Mon, 02 March 2015 16:09 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
At least for the start levels there is already a ticket: https://bugs.eclipse.org/bugs/show_bug.cgi?id=450461
Re: Missing dependencies for p2 updates [message #1646156 is a reply to message #1645635] Mon, 02 March 2015 22:01 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I fixed the bug with the start levels and also modified the initial
feature to hold org.eclipse.osgi.compatibility.state and
org.eclipse.equinox.simpleconfigurator and pushed ds to level 2.

Once I have a working sample what bundles are needed for a working
update via p2 we can add an option to the bootstrap wizard to
automatically generate the necessary p2 informations.

I left out "org.eclipse.equinox.p2.reconciler.dropins" because this only
supports dropping of plugins into the plugins-Folder which is bad
practice or am I mistaken and this p2 bundle is really required.

Waiting for Christian to push the sample app, p2 is a bit of a dark area
I've never invested time into so I rely on the expertise of you guys.

Tom

On 02.03.15 17:09, Dirk Fauth wrote:
> At least for the start levels there is already a ticket:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=450461
Re: Missing dependencies for p2 updates [message #1646157 is a reply to message #1645388] Mon, 02 March 2015 22:03 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
In case this does not work - just create a bug and attach the sample as
a zip, as long as you have signed the CLA we are fine and I could push
the stuff on behalf of you.

Tom

On 02.03.15 14:40, Thomas Schindl wrote:
> https://wiki.eclipse.org/Gerrit
Re: Missing dependencies for p2 updates [message #1647080 is a reply to message #1646157] Tue, 03 March 2015 08:41 Go to previous messageGo to next message
Christian Ora is currently offline Christian OraFriend
Messages: 20
Registered: May 2014
Junior Member
Just to give a short feedback i'm working on it. I managed to find(and sign) the cla and the proper user credentials. I'm currently pushing (80%) but it seems to take sometime.
Re: Missing dependencies for p2 updates [message #1647337 is a reply to message #1647080] Tue, 03 March 2015 11:23 Go to previous messageGo to next message
Christian Ora is currently offline Christian OraFriend
Messages: 20
Registered: May 2014
Junior Member
The remote repository rejected me, because of an databse error:

Repository https://useri@git.eclipse.org/r/efxclipse/org.eclipse.efxclipse

database error
Processing changes: refs: 1
Processing changes: refs: 1, done

everything else is fine. I'm uploading now, via bug report.
Re: Missing dependencies for p2 updates [message #1647483 is a reply to message #1647337] Tue, 03 March 2015 13:00 Go to previous messageGo to next message
Christian Ora is currently offline Christian OraFriend
Messages: 20
Registered: May 2014
Junior Member
Okay, what i was pushing, was simply too big, i forgot to ignore the deploy folder in the releng project. Now you have it both ways

as bug(https://bugs.eclipse.org/bugs/show_bug.cgi?id=461299) and a gerrit push Smile

[Updated on: Tue, 03 March 2015 13:00]

Report message to a moderator

Re: Missing dependencies for p2 updates [message #1647492 is a reply to message #1647337] Tue, 03 March 2015 13:04 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

To me this URL looks wrong. I think it should have been.

My push url is
ssh://tschindl@xxxxxxxxe.org:29418/efxclipse/org.eclipse.efxclipse not
sure what this would translate into with https but the "r" looks wrong
in any case.

Tom

On 03.03.15 12:23, Christian Ora wrote:
> The remote repository rejected me, because of an databse error:
>
> Repository https://useri@xxxxxxxxe.org/r/efxclipse/org.eclipse.efxclipse
>
> database error
> Processing changes: refs: 1
> Processing changes: refs: 1, done
> everything else is fine. I'm uploading now, via bug report.
Re: Missing dependencies for p2 updates [message #1647509 is a reply to message #1647483] Tue, 03 March 2015 13:13 Go to previous messageGo to next message
Christian Ora is currently offline Christian OraFriend
Messages: 20
Registered: May 2014
Junior Member
Ah ok, that's strange i finaly managed tp push to that location into the demos folder.

Christian Ora wrote on Tue, 03 March 2015 08:00
Okay, what i was pushing, was simply too big, i forgot to ignore the deploy folder in the releng project. Now you have it both ways

as bug(https://bugs.eclipse.org/bugs/show_bug.cgi?id=461299) and a gerrit push Smile

Re: Missing dependencies for p2 updates [message #1717625 is a reply to message #1639399] Tue, 15 December 2015 10:35 Go to previous messageGo to next message
Paul Mira is currently offline Paul MiraFriend
Messages: 8
Registered: December 2015
Junior Member
Hello everyone

I tried to run the working copy provided by Marco SchulteFriend , doing all the steps to test the update mechanism, but I get the following error :

!ENTRY org.eclipse.equinox.p2.touchpoint.natives 4 0 2015-12-15 11:07:06.782
!MESSAGE 1 items out of 2 items restored.

!ENTRY org.eclipse.equinox.p2.engine 4 4 2015-12-15 11:07:06.790
!MESSAGE An error occurred while committing the engine session for profile: Defa
ultProfile.
!SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.natives 4 0 2015-12-15 11:07:06.79
4
!MESSAGE Restore of backup failed - see log for details. Backup directory name:
DefaultProfile_2a34a3726ba0_c0a80204c383.
!STACK 0
java.io.IOException: Errors while restoring - see earlier logged errors
        at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.close(
BackupStore.java:526)
        at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.restor
e(BackupStore.java:489)
        at org.eclipse.equinox.internal.p2.touchpoint.natives.LazyBackupStore.re
store(LazyBackupStore.java:53)
        at org.eclipse.equinox.internal.p2.touchpoint.natives.NativeTouchpoint.r
ollback(NativeTouchpoint.java:108)
        at org.eclipse.equinox.internal.p2.engine.EngineSession.rollback(EngineS
ession.java:196)
        at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:84)

        at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)

        at org.eclipse.equinox.p2.operations.ProvisioningSession.performProvisio
ningPlan(ProvisioningSession.java:174)
        at org.eclipse.equinox.p2.operations.ProfileModificationJob.runModal(Pro
fileModificationJob.java:79)
        at org.eclipse.equinox.p2.operations.ProvisioningJob.run(ProvisioningJob
.java:177)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
dÚc. 15, 2015 11:07:06 AM org.eclipse.fx.ui.workbench.base.internal.LoggerProvid
erImpl$1 warn
INFOS: Jobs done: An error occurred while uninstalling

!ENTRY org.eclipse.equinox.p2.engine 4 4 2015-12-15 11:07:06.847
!MESSAGE An error occurred while uninstalling
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2015-12-15 11:07:06.849
!MESSAGE session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.
internal.p2.engine.phases.Uninstall, operand=[R]Fx_Sample.product.executable.win
32.win32.x86_64 1.0.0 --> null, action=org.eclipse.equinox.internal.p2.touchpoin
t.natives.actions.CleanupzipAction).
!SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.natives 4 0 2015-12-15 11:07:06.85
2
!MESSAGE Backup of file D:\Dev\Temp\p2-project\fx-p2-sample\Fx_Sa
mple.product\target\products\Fx_Sample.product\win32\win32\x86_64\fx_sample.exe
failed.
!STACK 0
java.io.IOException: File that was copied to backup could not be deleted: D:\Dev\Temp\p2-project\fx-p2-sample\Fx_Sample.product\target\products\F
x_Sample.product\win32\win32\x86_64\fx_sample.exe
        at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.moveTo
Backup(BackupStore.java:282)
        at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.backup
(BackupStore.java:248)
        at org.eclipse.equinox.internal.p2.touchpoint.natives.LazyBackupStore.ba
ckup(LazyBackupStore.java:36)
        at org.eclipse.equinox.internal.p2.touchpoint.natives.actions.Cleanupzip
Action.cleanupzip(CleanupzipAction.java:85)
        at org.eclipse.equinox.internal.p2.touchpoint.natives.actions.Cleanupzip
Action.execute(CleanupzipAction.java:30)
        at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningActio
n.execute(ParameterizedProvisioningAction.java:38)
        at org.eclipse.equinox.internal.p2.engine.Phase.mainPerform(Phase.java:1
83)
        at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:95)
        at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java
:47)
        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.performProvisio
ningPlan(ProvisioningSession.java:174)
        at org.eclipse.equinox.p2.operations.ProfileModificationJob.runModal(Pro
fileModificationJob.java:79)
        at org.eclipse.equinox.p2.operations.ProvisioningJob.run(ProvisioningJob
.java:177)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Any Idea what I might be missing here?
Re: Missing dependencies for p2 updates [message #1717668 is a reply to message #1717625] Tue, 15 December 2015 15:59 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
This is the important line so something is locking this file hence it p2
failed

Tom

On 15.12.15 15:53, Paul Mira wrote:
> File that was copied to backup could not be deleted
Previous Topic:How to use EMenuService to register ContexMenu on Circle
Next Topic:R5 repo requirement indexing - osgi.ds
Goto Forum:
  


Current Time: Thu Apr 18 05:27:57 GMT 2024

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

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

Back to the top