[rules-users] compound LHS error, getting "Parser error. Contact Dev Team"

Edson Tirelli tirelli at post.com
Fri Nov 9 08:13:28 EST 2007


   Thanks.

2007/11/9, Eric Miles <eric.miles at kronos.com>:
>
> I was using 4.0.3 and I also added this information to the comments for
> the Jira.
>
> Eric
>
> On Fri, 2007-11-09 at 09:38 -0200, Edson Tirelli wrote:
> >
> >    Eric,
> >
> >    This is probably a parser bug. I opened this ticket:
> >
> > http://jira.jboss.com/jira/browse/JBRULES-1321
> >
> >     Can you please let me know what version are you using?
> >
> >     Thanks,
> >       Edson
> >
> > 2007/11/8, Eric Miles <eric.miles at kronos.com>:
> >         I have a compound LHS statement that is causing the parser to
> >         fail.
> >         Here is my exact stacktrace:
> >
> >         org.drools.compiler.DroolsParserException: Unknown error while
> >         parsing.
> >         This is a bug. Please contact the Development team.
> >                 at
> >         org.drools.compiler.DrlParser.compile(DrlParser.java:183)
> >                 at
> >         org.drools.compiler.DrlParser.parse(DrlParser.java:61)
> >                 at
> >         org.drools.compiler.PackageBuilder.addPackageFromDrl(
> PackageBuilder.java :165)
> >                 at
> >
> com.kronos.webta.service.security.access.rules.WriteRestrictionsRulesTest.setUpBeforeClass
> (WriteRestrictionsRulesTest.java:58)
> >                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >         Method)
> >                 at
> >         sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >                 at
> >         sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >                 at java.lang.reflect.Method.invoke (Method.java:585)
> >                 at
> >         org.junit.internal.runners.ClassRoadie.runBefores(
> ClassRoadie.java:49)
> >                 at
> >         org.junit.internal.runners.ClassRoadie.runProtected(
> ClassRoadie.java:36)
> >                 at
> >         org.junit.internal.runners.JUnit4ClassRunner.run
> >         (JUnit4ClassRunner.java:42)
> >                 at
> >         org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(
> JUnit4TestReference.java:38)
> >                 at
> >         org.eclipse.jdt.internal.junit.runner.TestExecution.run(
> TestExecution.java :38)
> >                 at
> >         org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> RemoteTestRunner.java:460)
> >                 at
> >         org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> RemoteTestRunner.java:673)
> >                 at
> >         org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
> RemoteTestRunner.java:386)
> >                 at
> >         org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> RemoteTestRunner.java:196)
> >
> >
> >         This is the statement that is causing me problems:
> >
> >         not(UserRole((role == Role.TIMEKEEPER, delegateFor == $supId)
> >         || (role
> >         == Role.SUPERVISOR, delegateFor == $tkpId)) from $actorRoles)
> >
> >         Remote out one of the conditions from the ||, it compiles
> >         fine.  Such
> >         as:
> >
> >         not(UserRole(role == Role.SUPERVISOR, delegateFor == $supId)
> >         from
> >         $actorRoles)
> >
> >
> >         or
> >
> >         not(UserRole(role == Role.TIMEKEEPER, delegateFor == $tkpId)
> >         from
> >         $actorRoles)
> >
> >         Is my syntax incorrect or is there a bug?
> >
> >         Thanks!
> >         _______________________________________________
> >         rules-users mailing list
> >         rules-users at lists.jboss.org
> >         https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> >
> > --
> >   Edson Tirelli
> >   Software Engineer - JBoss Rules Core Developer
> >   Office: +55 11 3529-6000
> >   Mobile: +55 11 9287-5646
> >   JBoss, a division of Red Hat @ www.jboss.com
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071109/12154bd3/attachment.html 


More information about the rules-users mailing list