Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Update E4 RCP application with Launcher Name fails(Updating an E4 application with a customize Launcher Name is not working.)
Update E4 RCP application with Launcher Name fails [message #1499773] Fri, 05 December 2014 11:54
Heiko Hollenbach is currently offline Heiko HollenbachFriend
Messages: 5
Registered: December 2014
Junior Member
hi all,

I created a E4 application by the Eclipse 4 wizard. Set the check box for the sample content.

In the *.product file under Launching i changed the Launcher Name to "Test".

I replaced the AboutHandler with the UpdateHandler from tutorials/EclipseP2Update/article.html under Lars Vogels homepage (vogella)(I was not able to use links with <5 messages). Also changed it in the *.e4xmi so it will be called. Also changed the REPOSITORY_LOC in the UpdateHandler to a local directory.

Exported the product with Version 1.0.0.

Changed the version to 1.0.1

Exported again. Copied the repository to REPOSITORY_LOC.

Open the Test.exe and started the update.

Nothing happens and in workspace/.metadata/.log errors appear:

!SESSION 2014-12-05 12:17:55.479 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -clearPersistedState
Command-line arguments:  -os win32 -ws win32 -arch x86 -clearPersistedState

!ENTRY org.eclipse.equinox.p2.touchpoint.natives 4 0 2014-12-05 12:18:06.890
!MESSAGE Manual restore of backup needed for: C:\Users\HEIKO~1.HOL\AppData\Local\Temp\profile_29434578db80_c0a80a66d925\D\Projekte\029_CRBA\temp\2014-12-05\1.0.4\Test\Test.exe

!ENTRY org.eclipse.equinox.p2.touchpoint.natives 4 0 2014-12-05 12:18:06.891
!MESSAGE 0 items out of 1 items restored.

!ENTRY org.eclipse.equinox.p2.engine 4 4 2014-12-05 12:18:06.893
!MESSAGE An error occurred while committing the engine session for profile: profile.
!SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.natives 4 0 2014-12-05 12:18:06.893
!MESSAGE Restore of backup failed - see log for details. Backup directory name: profile_29434578db80_c0a80a66d925.
!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.restore(BackupStore.java:489)
	at org.eclipse.equinox.internal.p2.touchpoint.natives.LazyBackupStore.restore(LazyBackupStore.java:53)
	at org.eclipse.equinox.internal.p2.touchpoint.natives.NativeTouchpoint.rollback(NativeTouchpoint.java:108)
	at org.eclipse.equinox.internal.p2.engine.EngineSession.rollback(EngineSession.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.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 test 4 2 2014-12-05 12:18:06.901
!MESSAGE Problems occurred when invoking code from plug-in: "test".
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4441)
	at org.eclipse.swt.SWT.error(SWT.java:4356)
	at org.eclipse.swt.SWT.error(SWT.java:4327)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:476)
	at org.eclipse.swt.widgets.Shell.<init>(Shell.java:283)
	at org.eclipse.swt.widgets.Shell.<init>(Shell.java:375)
	at org.eclipse.jface.window.Window.createShell(Window.java:491)
	at org.eclipse.jface.window.Window.create(Window.java:434)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101)
	at org.eclipse.jface.window.Window.open(Window.java:797)
	at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:341)
	at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:371)
	at org.eclipse.jface.dialogs.MessageDialog.openError(MessageDialog.java:434)
	at test.handlers.AboutHandler$2.done(AboutHandler.java:104)
	at org.eclipse.core.internal.jobs.JobListeners$3.notify(JobListeners.java:42)
	at org.eclipse.core.internal.jobs.JobListeners.doNotify(JobListeners.java:115)
	at org.eclipse.core.internal.jobs.JobListeners.done(JobListeners.java:155)
	at org.eclipse.core.internal.jobs.JobManager.endJob(JobManager.java:655)
	at org.eclipse.core.internal.jobs.WorkerPool.endJob(WorkerPool.java:105)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:71)

!ENTRY org.eclipse.equinox.p2.engine 4 4 2014-12-05 12:18:06.904
!MESSAGE An error occurred while uninstalling
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2014-12-05 12:18:06.904
!MESSAGE session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]test.product_root.win32.win32.x86 1.0.0.201412051215 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
!SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.natives 4 0 2014-12-05 12:18:06.904
!MESSAGE Backup of file D:\Projekte\029_CRBA\temp\2014-12-05\1.0.4\Test\Test.exe failed.
!STACK 0
java.io.IOException: File that was copied to backup could not be deleted: D:\Projekte\029_CRBA\temp\2014-12-05\1.0.4\Test\Test.exe
	at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.moveToBackup(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.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: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)



After removing the Launcher Name the hole updating works.

How can i set the Launcher Name and keep the updating work.
Previous Topic:why is my eclipse RCP product locked and can't be updated?
Next Topic:Update error
Goto Forum:
  


Current Time: Mon Oct 23 01:00:56 GMT 2017

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

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