[jboss-jira] [JBoss JIRA] (JBRULES-2930) KnowledgeAgentDefinitionParser can get NPEs
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Wed Feb 1 05:26:16 EST 2012
[ 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.4.0.Beta3
(was: 5.4.0.Beta2)
> 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.4.0.Beta3
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list