Equinox P2 process fail in RCP Application [message #756969] |
Tue, 15 November 2011 18:54 |
Nicolas Messages: 23 Registered: October 2011 |
Junior Member |
|
|
Hi, I'm trying to use equinox/p2 to upgrade a RCP application.
So i follow Lars Vogella tutorial.
In windows 7 and Windows XP I have the same problem:
When I click on "Update/Check for updates" menu the application found the Update, show warnign about not signed features or products, but finally they have a problem and start to uninstall.
In the uninstall procedure it also cancel !!
this is the log:
!SESSION 2011-11-15 18:41:13.738 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=es_ES
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.equinox.p2.engine 4 4 2011-11-15 18:41:39.806
!MESSAGE An error occurred while uninstalling
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2011-11-15 18:41:39.806
!MESSAGE session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]de.vogella.rcp.p2.base.product_root.win32.win32.x86 1.0.0.201111151527 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
!SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.natives 4 0 2011-11-15 18:41:39.806
!MESSAGE Backup of file C:\temps\eclipse_r2\jre\lib\charsets.jar failed.
!STACK 0
java.io.IOException: File that was copied to backup could not be deleted: C:\temps\eclipse_r2\jre\lib\charsets.jar
at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.moveToBackup(BackupStore.java:274)
at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.backup(BackupStore.java:243)
at org.eclipse.equinox.internal.p2.touchpoint.natives.LazyBackupStore.backup(LazyBackupStore.java:36)
at org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction.cleanupzip(CleanupzipAction.java:85)
at org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction.execute(CleanupzipAction.java:30)
at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:35)
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)
!ENTRY org.eclipse.equinox.p2.engine 4 4 2011-11-15 18:42:30.293
!MESSAGE An error occurred while uninstalling
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2011-11-15 18:42:30.293
!MESSAGE session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]de.vogella.rcp.p2.base.product_root.win32.win32.x86 1.0.0.201111151527 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
!SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.natives 4 0 2011-11-15 18:42:30.293
!MESSAGE Backup of file C:\temps\eclipse_r2\jre\lib\charsets.jar failed.
!STACK 0
java.io.IOException: File that was copied to backup could not be deleted: C:\temps\eclipse_r2\jre\lib\charsets.jar
at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.moveToBackup(BackupStore.java:274)
at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.backup(BackupStore.java:243)
at org.eclipse.equinox.internal.p2.touchpoint.natives.LazyBackupStore.backup(LazyBackupStore.java:36)
at org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction.cleanupzip(CleanupzipAction.java:85)
at org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction.execute(CleanupzipAction.java:30)
at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:35)
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)
----
First something cancel in the download and replace of jar files, then when they try to rallback the actions, it also cancel ...
Any idea ??
Best Regards
|
|
|
Re: Equinox P2 process fail in RCP Application [message #757934 is a reply to message #756969] |
Wed, 16 November 2011 13:14 |
Eclipse User |
|
|
|
W dniu 2011-11-15 19:54, Nicolas pisze:
> Hi, I'm trying to use equinox/p2 to upgrade a RCP application.
> So i follow Lars Vogella tutorial.
>
> In windows 7 and Windows XP I have the same problem:
> When I click on "Update/Check for updates" menu the application found
> the Update, show warnign about not signed features or products, but
> finally they have a problem and start to uninstall.
> In the uninstall procedure it also cancel !!
>
> this is the log:
>
> !SESSION 2011-11-15 18:41:13.738
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.5.0_06
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=es_ES
> Command-line arguments: -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.equinox.p2.engine 4 4 2011-11-15 18:41:39.806
> !MESSAGE An error occurred while uninstalling
> !SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2011-11-15 18:41:39.806
> !MESSAGE session context was:(profile=profile,
> phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall,
> operand=[R]de.vogella.rcp.p2.base.product_root.win32.win32.x86
> 1.0.0.201111151527 --> null,
> action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
>
> !SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.natives 4 0 2011-11-15
> 18:41:39.806
> !MESSAGE Backup of file C:\temps\eclipse_r2\jre\lib\charsets.jar failed.
> !STACK 0
> java.io.IOException: File that was copied to backup could not be
> deleted: C:\temps\eclipse_r2\jre\lib\charsets.jar
https://bugs.eclipse.org/bugs/show_bug.cgi?id=300812
There are some solutions, but they don't work for me.
If you find something useful, share with me, please.
--
Tomek Kańka
|
|
|
Re: Equinox P2 process fail in RCP Application [message #764150 is a reply to message #757934] |
Sun, 11 December 2011 14:06 |
Nicolas Messages: 23 Registered: October 2011 |
Junior Member |
|
|
Hi, Tomek,
I still have NO solution.
I only know that the files download to the client machine but the installer fails.
I found that editing a file called "bundles.info" and replacing the line where the feature/plugin appears, looks like it load the las bundle.
<root application folder>\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info
for example in the first lines I have:
#version=1
ar.com.cse.balanza.core,1.0.3,plugins/ar.com.cse.balanza.core_1.0.3.jar,4,false
ar.com.cse.cseagro.libraries,1.1.0,plugins/ar.com.cse.cseagro.libraries_1.1.0.jar,4,false
so when I update my application, if I change first line,it look like the right bundle is loaded.
best regards
|
|
|
|
Powered by
FUDForum. Page generated in 0.03181 seconds