Community
Participate
Working Groups
This is in relation to the following bugs: bug 56038 - NPEs and other errors loading custom perspective and bug 56226 - 2.1 Preference file -> 3.0 workspace I200403260800 - clean workspace - Preferences->Import the attached file (from bug 56038) which is a 2.1 preference file - try to open the Debug perspective You get a dialog called 'Restoring Problems' with the errors: 'Could not create view: org.eclipse.debug.ui.ConsoleView' and 'Could not find view: org.eclipse.debug.ui.ConsoleView' The log file contains: !MESSAGE Unable to find Action Set: org.eclipse.jdt.debug.ui.JDTLaunchActionSet After this the PerspectiveRegistry appears to have been corrrupted. In this particular instance, one of the descriptors is now null. This will eventually cause an NPE. I will attach other log files showing other areas where the registry is not robust enough.
Created attachment 8919 [details] 2.1 preference file The original preference file from bug 56038.
Created attachment 8920 [details] Another log file
Created attachment 8921 [details] Another log file
Look at other UI registries to ensure their resilience as well.
A counter in the RegistryManager (numObjects) was causing the grief. In some cases, this counter got out of sync. The counter and the need for it have been removed. Available I20040330.