[jboss-jira] [JBoss JIRA] Updated: (JBRULES-3089) position of "dialect 'mvel'" affects function and/or rule parsing (NPE)

Mark Proctor (JIRA) jira-events at lists.jboss.org
Thu Sep 29 03:05:32 EDT 2011


     [ https://issues.jboss.org/browse/JBRULES-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Proctor updated JBRULES-3089:
----------------------------------

    Assignee: Edson Tirelli  (was: Mark Proctor)


> position of "dialect 'mvel'" affects function and/or rule parsing (NPE)
> -----------------------------------------------------------------------
>
>                 Key: JBRULES-3089
>                 URL: https://issues.jboss.org/browse/JBRULES-3089
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler (expert)
>    Affects Versions: 5.2.0.CR1
>            Reporter: Wolfgang Laun
>            Assignee: Edson Tirelli
>             Fix For: 5.3.0.Final
>
>
> The DRL shown below does not compile. Exchanging dialect and function fixes the problem, as does removing the dialect stmt. entirely.
> dialect "mvel"
> function boolean ping( String x ){
>     System.out.println( "ping " + x );
>     return true;
> }
> rule exa4
> when
>     eval( ping("A") )
> then
>     System.out.println( "Hello world!" );
> end
> Unable to Analyse Expression ping("A"):
> [Error: unable to resolve method using strict-mode: java.lang.Object.ping(java.lang.String)]
> [Near : {... ping("A") ....}]
>              ^
> [Line: 1, Column: 1] : [Rule name='exa4']
> Unable to build expression for 'eval':null 'ping("A")' : [Rule name='exa4']
> java.lang.NullPointerException

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