[jbpm-issues] [JBoss JIRA] Created: (JBPM-3024) JBPM5/Drools, Spring integration and NullPointer - could a commiter apply a simple patch already?
Eric D. Schabell (JIRA)
jira-events at lists.jboss.org
Mon Jan 24 06:12:50 EST 2011
JBPM5/Drools, Spring integration and NullPointer - could a commiter apply a simple patch already?
-------------------------------------------------------------------------------------------------
Key: JBPM-3024
URL: https://issues.jboss.org/browse/JBPM-3024
Project: jBPM
Issue Type: Patch
Security Level: Public (Everyone can see)
Reporter: Eric D. Schabell
>From the forum: http://community.jboss.org/message/582679
Current development snapshot of JBPM5 spring integration breaks Spring functionality - you can't use beans without class attribute (factory method, abstract beans, etc). Could a commiter apply a simple patch already? It's attached to the issue below since october:
https://issues.jboss.org/browse/JBRULES-2727
With duplicates:
https://issues.jboss.org/browse/JBRULES-2868
https://issues.jboss.org/browse/JBRULES-2689
And it is as simple as reversing equals statement (but needs to be applied in two different places):
Index: src/main/java/org/drools/container/spring/namespace/KnowledgeAgentDefinitionParser.java
===================================================================
--- src/main/java/org/drools/container/spring/namespace/KnowledgeAgentDefinitionParser.java (revision )
+++ src/main/java/org/drools/container/spring/namespace/KnowledgeAgentDefinitionParser.java (revision )
@@ -73,7 +73,7 @@
// inject the kagent into any stateless sessions
for ( String beanName : parserContext.getRegistry().getBeanDefinitionNames() ) {
BeanDefinition def = parserContext.getRegistry().getBeanDefinition(beanName);
- if (StatelessKnowledgeSessionBeanFactory.class.getName().equals(def.getBeanClassName())) {
+ if (def.getBeanClassName().equals(StatelessKnowledgeSessionBeanFactory.class.getName())) {
PropertyValue pvalue = def.getPropertyValues().getPropertyValue( "kbase" );
RuntimeBeanReference tbf = ( RuntimeBeanReference ) pvalue.getValue();
if ( kbase.equals( tbf.getBeanName() ) ) {
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbpm-issues
mailing list