Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Equinox P2 process fail in RCP Application
Equinox P2 process fail in RCP Application [message #756969] Tue, 15 November 2011 18:54 Go to next message
Nicolas  is currently offline Nicolas Friend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Nicolas  is currently offline Nicolas Friend
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

Re: Equinox P2 process fail in RCP Application [message #764210 is a reply to message #764150] Sun, 11 December 2011 17:07 Go to previous message
Tomasz Kanka is currently offline Tomasz KankaFriend
Messages: 5
Registered: December 2011
Junior Member
Hi.

You have to make update process not to touch your JRE.

Put JRE in separate feature, and make sure your plugin-feature do not contain JRE.
Set jre-feature fixed version number (no qualifier).
Make product based on features with plugin-fature and jre-feature.

I had some problems with removing jre from plugin-feature. Eclipse didn't pay attention to "include jre" check-box. It even cached some mysterious way, some old JRE, which was not on my hard drive in time on building. AFAIR I started with new eclipse installation and clean workspace to solve.
Previous Topic:Error While Exporting Eclipse Product
Next Topic:How to load a UI PlugIn by code without UI elements being already there
Goto Forum:
  


Current Time: Tue Apr 16 15:45:12 GMT 2024

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

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

Back to the top