Tom Elrod wrote:
I am able to reproduce the problem, but after spending a good bit of time trying to find the bug, I am at a loss. Here is what I have found so far (Scott maybe you would be able to figure it out based on this info?).

The LoaderRepository variable, repository, within UnifiedClassLoader is null when loadClassImpl() is called. Best I can tell, this probably happens because UnifiedClassLoader::setRepository() is called with a null value or UnifiedClassLoader::unregister() is called (am guessing it is the later).

The MainDeployer does call the unregister() method on the UnifiedClassLoader, but not until after it calls stop(), which is where the NPE occurs (so has not gotten to the unregister() call yet).

My best guess is that the problem stems from destroying one of the sub deployments (which happens before the NPE and will call unregister(), but not familiar enough with classloader/deployment stuff to know if would be using same UnifiedClassLoader instance).

I did notice an exception in the log before the NPE (am attaching snippet of the log).

I also checked the MainDeployer, UnifiedClassLoader, and UnifiedClassLoader3 for recent code changes. The MainDeployer had only one change related to using a HashSet for the waitingForClasses collection. The UnifiedClassLoader3 did not have any changes. The UnifiedClassLoader had a lot of changes, but don't seem related to this (but could be missing something).

I ended up giving up, and modifying Tomcat a little to do the needed classloading on startup instead. This could possibly cause regressions with other services, although this is unlikely, since doing explicit classloading on shutdown is at best unusual ;-)


I put the 5.0.18 binaries in the CVS, and they have the fix. So update your repository, and there shouldn't be a problem now.

--
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx


------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to