[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2930) KnowledgeAgentDefinitionParser can get NPEs

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Sun Sep 25 04:03:08 EDT 2011


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

Geoffrey De Smet updated JBRULES-2930:
--------------------------------------

    Fix Version/s: 5.3.0.Final
                       (was: 5.3.0.CR1)


> KnowledgeAgentDefinitionParser can get NPEs
> -------------------------------------------
>
>                 Key: JBRULES-2930
>                 URL: https://issues.jboss.org/browse/JBRULES-2930
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-spring
>    Affects Versions: 5.1.1.FINAL
>            Reporter: stevearoonie
>            Assignee: Mauricio Salatino
>             Fix For: 5.3.0.Final
>
>
> KnowledgeAgentDefinitionParser assumes that a spring bean definition has a bean class name, however when the bean extends a parent then it may not, as in the following example:
> 	<bean id="freemarkerConfiguration"  class="freemarker.template.Configuration">        
>         </bean>
> 	
> 	<bean id="workflowFreemarkerConfiguration" parent="freemarkerConfiguration">
> 		<property name="templateLoader">
> 			<bean class="au.com.core.messaging.freemarker.FreemarkerMessageLayoutTemplateLoader" />
> 		</property>
> 	</bean>
> The BeanDefinition for bean "workflowFreemarkerConfiguration" has a null bean class name which causes KnowledgeAgentDefinitionParser.parseInternal to throw an NPE. Specifically this line:
> if ( def.getBeanClassName().equals( StatelessKnowledgeSessionBeanFactory.class.getName() ) ) {

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list