]
Esteban Aliverti resolved JBRULES-2955.
---------------------------------------
Resolution: Done
Fixed
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: