[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1766) Error in BaseIntFieldClassReader for ArrayList ( size == 1)

Michael Zimmermann (JIRA) jira-events at lists.jboss.org
Wed Sep 17 11:50:21 EDT 2008


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

Michael Zimmermann commented on JBRULES-1766:
---------------------------------------------

Yes (Trunk Plugin)  and Yes (Eclipse 3.4). Both from the maven build generated a couple days ago.

Well, even running the plugin from within my eclipse via  "Debug Plugin" I do get the error yet no stacktrace or whatever. The only thing I see is this:
Description: org/drools/base/extractors/BaseIntClassFieldReader	
Resource: PipeConnections.drl	
Path: Kns-Drools/src/rules	Unknown	
Location: Unknown
Type: Drools Error

One of the relevant lines is: 
ArrayList( size == 2 ) from collect( GenericPipePortKequipment(  ) )
GenericPipePortKequipment is proxy class that hooks into our OWL ontology. 




> Error in BaseIntFieldClassReader for ArrayList ( size == 1)
> -----------------------------------------------------------
>
>                 Key: JBRULES-1766
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-1766
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions:  5.0.0.M2
>         Environment: Eclipse 3.4; Drools SVN trunk from today, Linux
>            Reporter: Michael Zimmermann
>            Assignee: Edson Tirelli
>             Fix For:  5.0.0.M2
>
>
> The following rule worked perfectly with drools 4.0.x. Using Drools Trunk (post 5.0 M1) I do get an error in org.drools.base.extractors.BaseIntClassFiieldReader. Changing the ArrayList (size==1) definition to ArrayList() works, though.
> rule "MyRule"
> when
> 	ArrayList( size == 1 ) from collect ( SomeClass(  ) )
> then
>        do_something ()
> end
> As this is some hack also published on the mailing list for counting facts, I would expect to see this contruct to be compatible with drools 4.0.x

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list