Bug 107360 - ClassNotFoundException thrown on shutdown for non-autostart packages
Summary: ClassNotFoundException thrown on shutdown for non-autostart packages
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1.1   Edit
Assignee: Thomas Watson CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-18 15:22 EDT by Thomas Watson CLA Friend
Modified: 2005-08-18 15:40 EDT (History)
1 user (show)

See Also:


Attachments
Proposed fix for 3.1.1 (1.31 KB, patch)
2005-08-18 15:29 EDT, Thomas Watson CLA Friend
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Watson CLA Friend 2005-08-18 15:22:08 EDT
A bundle has the following Eclipse-AutoStart header:

Eclipse-AutoStart: true; exceptions="org.eclipse.foo"

While shutting down the framework the bundles are stopped.  If a class from 
org.eclipse.foo package is loaded after the bundle has stopped then a CNFE is 
thrown because we do not restart bundles once the framework starts shutting 
down.  The code should check to see if the package is really an autostart 
package before checking to see if the bundle has be stopped from shutting down 
the framework.

This becomes important if a bundle has code which is used for a VM shutdown 
hook.  This code should be included in an exceptions package to prevent the 
bundle from auto-starting when a class is loaded from that package.
Comment 1 Thomas Watson CLA Friend 2005-08-18 15:27:50 EDT
A fix has been released to HEAD.

Should consider a fix for 3.1.1.  I will attach a patch for the maintenance 
branch.
Comment 2 Thomas Watson CLA Friend 2005-08-18 15:29:33 EDT
Created attachment 26260 [details]
Proposed fix for 3.1.1
Comment 3 Thomas Watson CLA Friend 2005-08-18 15:30:38 EDT
Pascal, please review patch for 3.1.1. Thanks.
Comment 4 Pascal Rapicault CLA Friend 2005-08-18 15:35:47 EDT
Patch reviewed. Good to go.
Comment 5 Thomas Watson CLA Friend 2005-08-18 15:40:06 EDT
Fixed in maintenance branch.