[rules-users] drools rasing error while testing in maven environment but same works fine in eclispe test environment

Geoffrey De Smet ge0ffrey.spam at gmail.com
Fri Sep 16 08:18:22 EDT 2011


run "mvn dependency:tree" and compare the jar lists and versions with 
your libraries list in Eclipse.

Op 16-09-11 14:11, Kumar, Ravendra schreef:
> Hi,
>
>
> I have a rule that is working fine in eclipse junit4 test environment.
>
> Running through maven test environment. It is throwing error.
>
> the description is as below.
>
> rule "insert LNACrossTXPONSatConfig into memory"
>
> when
>
>         $TXP: Transponder($ULNK_CHNL_LIST: uplinkChannelConfigurations )
>         $ULNK_CHNL: ArrayList() from  $ULNK_CHNL_LIST
>
>      then
>       insert( new LNACrossTXPOnSatConfig($TXP.satelliteConfigurationUUIDRef.id, $TXP.id, $ULNK_CHNL.uplinkLnaUUIDRef.id, $ULNK_CHNL.uplinkFreqConverterUUIDRef.id) );
>
> **********************************************************************************
> infrastructure:
> eclipse-ide:    indigo
> drools lib:	    drools 5.2.final
> eclipse plugin:  drools plugin 5.2.final
> jdk 6
>
> **********************************************************************************
> error:
>
> Unable to Analyse Expression drools.insert(new LNACrossTXPOnSatConfig($TXP.satelliteConfigurationUUIDRef.id, $TXP.id,
>                          $ULNK_CHNL.uplinkLnaUUIDRef.id, $ULNK_CHNL.uplinkFreqConverterUUIDRef.id));:
> [Error: unable to resolve method using strict-mode: java.lang.Object.id()]
> [Near : {... drools.insert(new LNACrossTXPO ....}]
>               ^
> [Line: 3, Column: 98] : [Rule name='insert LNACrossTXPONSatConfig into memory']
> **********************************************************************************
> Any help would be highly appreciated.
>
> Thanks,
> Rav
>
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>

-- 
With kind regards,
Geoffrey De Smet





More information about the rules-users mailing list