[jboss-jira] [JBoss JIRA] Updated: (JBCL-101) BaseClassLoader.checkCacheAndBlackList leads to CNFEs

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Mon May 4 16:23:46 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBCL-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated JBCL-101:
----------------------------------

    JBoss Forum Reference: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154325


Forum discussion begins mid-way down on the referenced forum thread.

> BaseClassLoader.checkCacheAndBlackList leads to CNFEs
> -----------------------------------------------------
>
>                 Key: JBCL-101
>                 URL: https://jira.jboss.org/jira/browse/JBCL-101
>             Project: JBoss ClassLoader
>          Issue Type: Bug
>          Components: ClassLoader
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>             Fix For: 2.0.6.GA
>
>
> Fix for JBCL-100 leads to CNFEs when a scoped classloader is used. Problem is the call to BaseClassLoader.checkCacheAndBlackList calls into BaseClassLoaderDomain.checkClassBlackList, which throws the CNFE if the class isn't meant to be loaded locally.
> This all happens as part of a loadClass(String, boolean) call, when loadClass is checking for a cached class. At this stage, the CNFE from the blacklist check should not be allowed to propagate is it just means the class isn't available from the cache and the regular classloading logic should be followed. Simple fix is to catch and trace log the CNFE then continue.
> A more sophisticated/performant fix might be to pass a param into the call to BaseClassLoaderDomain that results in a null return instead of a CNFE. But for now I'm going to stick with the simple fix.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list