[jboss-jira] [JBoss JIRA] Commented: (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 16:41:33 EDT 2011


    [ https://issues.jboss.org/browse/JBRULES-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595409#comment-12595409 ] 

Esteban Aliverti commented on JBRULES-2955:
-------------------------------------------

I have commited a fix for this issue. Please try the latest SNAPSHOT from hudson. (thanks mmjose26)
https://github.com/droolsjbpm/droolsjbpm-integration/commit/32f3d8c59cfb711ed0162a756386b0595b8fb068

> 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.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