Bug 3134 - Plugin Classloader: Error messages could be improved (1GKYPJ0)
Summary: Plugin Classloader: Error messages could be improved (1GKYPJ0)
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Incubator (show other bugs)
Version: unspecified   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: User Unknown CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:50 EDT by Martin Aeschlimann CLA
Modified: 2005-09-27 09:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2001-10-10 22:50:03 EDT
MA (02.10.2001 11:21:41)
	Couldn't the error messages / stack traces coming from failed plugin loading be a bit more helpful?
	The most common stack trace is 'application not found'. and stands for all kind of problems, xml parsing error,
	required plugins of the application class not found, -dev bin not set...

	You need to enable the debug traces, to have a chance to see the problem. 

	When 'org.eclipse.core.runtime' is not existing, the stacktrace is
		java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
		at org.eclipse.core.internal.runtime.InternalPlatform.activateDefaultPlugins(InternalPlatform.java:100)
		at org.eclipse.core.internal.runtime.InternalPlatform.loaderStartup(InternalPlatform.java:530)

	Debugging the plugin classloader is a really painful experience.


NOTES:

JohnA (10/5/2001 12:40:17 PM)
	A couple of examples of bad (or misleading) error reporting:
		- create two plugins with circular dependency --> no error message at all, plugins aren't loaded
		- runtime exception in Plugin class constructor or startup() method, gets reported as a 
			NoClassDefFoundError on the class that triggered the plugin activation.
Comment 1 DJ Houghton CLA 2001-10-24 06:45:30 EDT
PRODUCT VERSION:
	202

Comment 2 Debbie Wilson CLA 2002-02-07 14:04:16 EST
From Jeff McAffer:

Areas to cover:

- plugin parsing
- resolution
- activation
- creation of executable extensions
Comment 3 Debbie Wilson CLA 2002-03-12 10:31:30 EST
For build 20020312.


Plugin related error messages are improving.  Now, plugin parsing and resolving 
should give meaningful error messages in most error conditions.

Next areas to work on are plugin activation and creation of executable 
extensions (see comments from Jeff McAffer).

Comment 4 DJ Houghton CLA 2002-05-23 11:10:04 EDT
Consider for F1.
Part of servicability work.
Comment 5 DJ Houghton CLA 2004-03-25 17:05:38 EST
Moving to Equinox.
Covers general improvement for runtime related functions (as listed in comment 2).
Comment 6 Jeff McAffer CLA 2004-04-30 17:05:57 EDT
Rafael did a pass on many of the error messages and we are continuously 
improving any additional ones as we see them.  Closing.