[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2044) Add configuration options for the classloader in all configuration objects (builder, base and session)

Jared Davis (JIRA) jira-events at lists.jboss.org
Mon Apr 6 17:42:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBRULES-2044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12460865#action_12460865 ] 

Jared Davis commented on JBRULES-2044:
--------------------------------------

There are several places in the code where a null getContextClassLoader() will throw a npe:

SessionConfiguration
269   	     @SuppressWarnings("unchecked")
270 	    private void initProcessInstanceManagerFactory() {
271 	        String className = this.chainedProperties.getProperty( "drools.processInstanceManagerFactory",
272 	                                                               "org.drools.process.instance.impl.DefaultProcessInstanceManagerFactory" );
273 	        Class<ProcessInstanceManagerFactory> clazz = null;
274 	        try {
275 	            clazz = (Class<ProcessInstanceManagerFactory>) Thread.currentThread().getContextClassLoader().loadClass( className );
276 	        } catch ( ClassNotFoundException e ) {
277 	        }
278 	

RuleBaseConfiguration
918   	     private static ConflictResolver determineConflictResolver(String className) {
919 	        Class clazz = null;
920 	        try {
921 	            clazz = Thread.currentThread().getContextClassLoader().loadClass( className );
922 	        } catch ( ClassNotFoundException e ) {
923 	        }


These are the ones I hit. I did not do a full search.

> Add configuration options for the classloader in all configuration objects (builder, base and session)
> ------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-2044
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2044
>             Project: JBoss Drools
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: drools-api, drools-compiler, drools-core
>    Affects Versions: 5.0.0.CR1
>            Reporter: Edson Tirelli
>            Assignee: Edson Tirelli
>            Priority: Blocker
>             Fix For: 5.0.0.GA
>
>


-- 
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