[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2955) drools-spring: exception if you define a stateful ksession after a kagent in configuration file
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Tue Aug 9 07:41:46 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet updated JBRULES-2955:
--------------------------------------
Fix Version/s: 5.3.0.CR1
(was: 5.3.0.Beta1)
> drools-spring: exception if you define a stateful ksession after a kagent in configuration file
> -----------------------------------------------------------------------------------------------
>
> Key: JBRULES-2955
> URL: https://issues.jboss.org/browse/JBRULES-2955
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-spring
> Affects Versions: 5.2.0.M1
> Reporter: Esteban Aliverti
> Assignee: Esteban Aliverti
> Priority: Minor
> Labels: kagent, knowledge_agent, spring
> Fix For: 5.3.0.CR1
>
>
> An exception occurs if you define a stateful ksession AFTER a kagent in spring's config file.
> The problem is that drools-spring will try to set the kagent attribute of the session. This attribute only exists for stateless ksessions.
> The exception you get is:
> Exception in thread "main"
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'ksession2': Error setting property values; nested exception is
> org.springframework.beans.NotWritablePropertyException: Invalid property
> 'knowledgeAgent' of bean class
> [org.drools.container.spring.beans.StatefulKnowledgeSessionBeanFactory]:
> Bean property 'knowledgeAgent' is not writable or has an invalid setter
> method.
--
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