[jboss-jira] [JBoss JIRA] Created: (JBRULES-2955) drools-spring: exception if you define a stateful ksession after a kagent in configuration file

Esteban Aliverti (JIRA) jira-events at lists.jboss.org
Wed Apr 13 10:56:33 EDT 2011


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
             Fix For: 5.3.0.M1


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