[
https://issues.jboss.org/browse/JBRULES-3036?page=com.atlassian.jira.plug...
]
Anibal Marques updated JBRULES-3036:
------------------------------------
Affects Version/s: 5.2.0.M2
Description:
I Got this Unexpected exception when put rule in a .drl file inside Eclipse (let me know
you need something more):
Unexpected exception raised while parsing. This is a bug. Please contact the Development
team :
java.lang.ClassCastException: org.antlr.runtime.CommonToken cannot be cast to
org.drools.lang.DroolsToken
[org.drools.lang.ParserHelper.emit(ParserHelper.java:89),
org.drools.lang.DRLParser.fact(DRLParser.java:9214),
org.drools.lang.DRLParser.fact_binding_expression(DRLParser.java:9012),
org.drools.lang.DRLParser.fact_binding(DRLParser.java:8890),
org.drools.lang.DRLParser.lhs_pattern(DRLParser.java:8713),
org.drools.lang.DRLParser.pattern_source(DRLParser.java:7017),
org.drools.lang.DRLParser.lhs_unary(DRLParser.java:5846),
org.drools.lang.DRLParser.lhs_and(DRLParser.java:5559),
org.drools.lang.DRLParser.lhs_or(DRLParser.java:5249),
org.drools.lang.DRLParser.lhs(DRLParser.java:5047),
org.drools.lang.DRLParser.normal_lhs_block(DRLParser.java:4953),
org.drools.lang.DRLParser.when_part(DRLParser.java:3217),
org.drools.lang.DRLParser.rule(DRLParser.java:3009),
org.drools.lang.DRLParser.statement(DRLParser.java:746),
org.drools.lang.DRLParser.compilation_unit(DRLParser.java:340),
org.drools.compiler.DrlParser.compile(DrlParser.java:231),
org.drools.compiler.DrlParser.parse(DrlParser.java:71),
org.drools.eclipse.DroolsEclipsePlugin.generateParsedResource(DroolsEclipsePlugin.java:416),
org.drools.eclipse.DroolsEclipsePlugin.generateParsedResource(DroolsEclipsePlugin.java:361),
org.drools.eclipse.DroolsEclipsePlugin.parseResource(DroolsEclipsePlugin.java:274),
org.drools.eclipse.builder.DroolsBuilder.parseDRLFile(DroolsBuilder.java:279),
org.drools.eclipse.builder.DroolsBuilder.parseResource(DroolsBuilder.java:191),
org.drools.eclipse.builder.DroolsBuilder$DroolsBuildDeltaVisitor.visit(DroolsBuilder.java:155),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48),
org.drools.eclipse.builder.DroolsBuilder.incrementalBuild(DroolsBuilder.java:143),
org.drools.eclipse.builder.DroolsBuilder.build(DroolsBuilder.java:101),
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629),
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42),
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172),
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203),
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255),
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42),
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258),
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311),
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343),
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144),
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242),
org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)]
org.antlr.runtime.CommonToken cannot be cast to
org.drools.lang.DroolsToken
---------------------------------------------------------------------------
Key: JBRULES-3036
URL:
https://issues.jboss.org/browse/JBRULES-3036
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.2.0.M2
Reporter: Anibal Marques
Assignee: Mark Proctor
I Got this Unexpected exception when put rule in a .drl file inside Eclipse (let me know
you need something more):
Unexpected exception raised while parsing. This is a bug. Please contact the Development
team :
java.lang.ClassCastException: org.antlr.runtime.CommonToken cannot be cast to
org.drools.lang.DroolsToken
[org.drools.lang.ParserHelper.emit(ParserHelper.java:89),
org.drools.lang.DRLParser.fact(DRLParser.java:9214),
org.drools.lang.DRLParser.fact_binding_expression(DRLParser.java:9012),
org.drools.lang.DRLParser.fact_binding(DRLParser.java:8890),
org.drools.lang.DRLParser.lhs_pattern(DRLParser.java:8713),
org.drools.lang.DRLParser.pattern_source(DRLParser.java:7017),
org.drools.lang.DRLParser.lhs_unary(DRLParser.java:5846),
org.drools.lang.DRLParser.lhs_and(DRLParser.java:5559),
org.drools.lang.DRLParser.lhs_or(DRLParser.java:5249),
org.drools.lang.DRLParser.lhs(DRLParser.java:5047),
org.drools.lang.DRLParser.normal_lhs_block(DRLParser.java:4953),
org.drools.lang.DRLParser.when_part(DRLParser.java:3217),
org.drools.lang.DRLParser.rule(DRLParser.java:3009),
org.drools.lang.DRLParser.statement(DRLParser.java:746),
org.drools.lang.DRLParser.compilation_unit(DRLParser.java:340),
org.drools.compiler.DrlParser.compile(DrlParser.java:231),
org.drools.compiler.DrlParser.parse(DrlParser.java:71),
org.drools.eclipse.DroolsEclipsePlugin.generateParsedResource(DroolsEclipsePlugin.java:416),
org.drools.eclipse.DroolsEclipsePlugin.generateParsedResource(DroolsEclipsePlugin.java:361),
org.drools.eclipse.DroolsEclipsePlugin.parseResource(DroolsEclipsePlugin.java:274),
org.drools.eclipse.builder.DroolsBuilder.parseDRLFile(DroolsBuilder.java:279),
org.drools.eclipse.builder.DroolsBuilder.parseResource(DroolsBuilder.java:191),
org.drools.eclipse.builder.DroolsBuilder$DroolsBuildDeltaVisitor.visit(DroolsBuilder.java:155),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79),
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48),
org.drools.eclipse.builder.DroolsBuilder.incrementalBuild(DroolsBuilder.java:143),
org.drools.eclipse.builder.DroolsBuilder.build(DroolsBuilder.java:101),
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629),
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42),
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172),
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203),
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255),
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42),
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258),
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311),
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343),
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144),
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242),
org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)]
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira