Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361526

Summary: An error occurred during the org.eclipse.equinox.internal.provisional.p2.engine.phases.CheckTrust phase--Help needed URGENTLY!
Product: [Eclipse Project] Equinox Reporter: Arunava <arunava.bhattacharya>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3    
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Screenshot of the error log none

Description Arunava CLA 2011-10-20 07:52:04 EDT
Build Identifier: 20100218-1602

Hi,
I have created a custom plug-in which has feature including 1 fragment and 3 plug ins.

I am able to successfully install the plug-in first time in eclipse and the it works as expected.

However when i uninstall the plug-in and try to re install it it gives me the following error:

An error occurred during the org.eclipse.equinox.internal.provisional.p2.engine.phases.CheckTrust phase.
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.CheckTrust, operand=null --> [R]net.sf.eclipsecs.checkstyle.slp.fragment 4.0.0, action=).
Failed to prepare partial IU: [R]net.sf.eclipsecs.checkstyle.slp.fragment 4.0.0.


Note:
1)I am using Eclipse 3.5 galileo
2)While installing the plug in for the first time it asks that the contents are not signed.I tell it to continue anyway.
3)After the error during re-installation i again check the contents of the plugin and feature folder in my eclipse installation and i find that the myplug-in.feature folder for the plug-in has been created inside the feature folder.Thoug no jars were created newly in plugin folder.

Please let me know if there is any workaround is possible for this.


Reproducible: Always

Steps to Reproduce:
I have followed the below mentioned process:
1)Installed the plug-in through Help->Install New Software
2)Tested the plug-in(All the functionalities works as expected).
3)Uninstall the plug-in through Help->Install New Software->already Installed?->Uninstall.
4)I check the plug-in and feature folder of my eclipse installation.
5)I see the jars are still there in the plugin folder!!!
6)I see the feature folder for the plug-in is not there though(As expected after uninstallation)
7)I stop eclipse.
8)Manually delete the jars(..am i doing anything wrong here?)
9)Restart eclipse.
10)Try to re install the update site through Help->Install New Software
11)I get error(Screenshot attached)
Comment 1 Arunava CLA 2011-10-20 08:05:49 EDT
Created attachment 205613 [details]
Screenshot of the error log
Comment 2 Arunava CLA 2011-10-20 08:59:48 EDT
Some More Obervations:
---------------------------------
This happens only when there is a chenage in version on one of the plug-ins in the feature.Means if i have a older version ,uninstall it, and try to re-install a newer version.
Comment 3 Arunava CLA 2011-10-21 03:40:52 EDT
Hi,
Any update on this?
Comment 4 DJ Houghton CLA 2011-10-21 10:38:28 EDT
The plug-in JARs remain on disk and will be removed via garbage collection at a later point in time so you don't need to remove them yourself.

Please describe your feature/plug-in structure in more detail. Features are what you install through the UI so this is what I believe you have:

Feature v1.0
  -> PluginA v1.0
  -> PluginB v1.0
  -> PluginC v1.0
  -> FragmentA v1.0

If you are incrementing the version of one of your plug-ins, then you should also increment the version of the containing feature. So your new layout would be:

Feature v2.0
  -> PluginA v1.0
  -> PluginB v2.0
  -> PluginC v1.0
  -> FragmentA v1.0

Please confirm that this is what you are doing. Thanks.
Comment 5 Eclipse Genie CLA 2019-09-08 12:12:03 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.