Created
March 26, 2020 08:36
-
-
Save hellowdan/d3d3a6423a5bf8726b15de80e8b7518b to your computer and use it in GitHub Desktop.
Unable to build expression for consequence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unable to build expression for 'consequence': [Error: unexpected end of statement] | |
[Near : {... ....}] | |
^ | |
[Line: 5988, Column: 0] '$trans.accountTo = new Account(); | |
update($trans); // this invalidates previous rule and thus all the LogicalFacts should be retracted | |
' : [Rule name='Set receiving account for each Transaction_35'] | |
<failure> | |
java.lang.IllegalArgumentException: KieBuilder errors: { | |
[Message [id=1, kieBase=kbase, level=ERROR, path=turtle/expert-basic-insert-logical-facts-into-wm-1000.drl, line=5988, column=0 | |
text=Unable to build expression for 'consequence': [Error: unexpected end of statement] | |
[Near : {... ....}] | |
^ | |
[Line: 5988, Column: 0] '$trans.accountTo = new Account(); | |
update($trans); // this invalidates previous rule and thus all the LogicalFacts should be retracted | |
']] | |
} | |
at org.drools.benchmarks.common.util.BuildtimeUtil.getKieBuilderFromResources(BuildtimeUtil.java:96) | |
at org.drools.benchmarks.common.util.BuildtimeUtil.createKJarFromResources(BuildtimeUtil.java:62) | |
at org.drools.benchmarks.common.util.BuildtimeUtil.createKieContainerFromResources(BuildtimeUtil.java:55) | |
at org.drools.benchmarks.turtle.runtime.AbstractSimpleRuntimeBenchmark.createKBase(AbstractSimpleRuntimeBenchmark.java:84) | |
at org.drools.benchmarks.turtle.runtime.generated.InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest._jmh_tryInit_f_insertlogicalfactsintowmexpertbenchmark0_0(InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.java:346) | |
at org.drools.benchmarks.turtle.runtime.generated.InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.timeFactsInsertionAndRulesFiring_SingleShotTime(InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.java:297) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:498) | |
at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:453) | |
at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:437) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:266) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:266) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) | |
at java.lang.Thread.run(Thread.java:748) | |
Benchmark had encountered error, and fail on error was requested | |
ERROR: org.openjdk.jmh.runner.RunnerException: Benchmark caught the exception | |
at org.openjdk.jmh.runner.Runner.runBenchmarks(Runner.java:578) | |
at org.openjdk.jmh.runner.Runner.internalRun(Runner.java:320) | |
at org.openjdk.jmh.runner.Runner.run(Runner.java:209) | |
at org.openjdk.jmh.Main.main(Main.java:71) | |
Caused by: org.openjdk.jmh.runner.BenchmarkException: Benchmark error during the run | |
at org.openjdk.jmh.runner.BenchmarkHandler.runIteration(BenchmarkHandler.java:428) | |
at org.openjdk.jmh.runner.BaseRunner.runBenchmark(BaseRunner.java:262) | |
at org.openjdk.jmh.runner.BaseRunner.runBenchmark(BaseRunner.java:234) | |
at org.openjdk.jmh.runner.BaseRunner.doSingle(BaseRunner.java:139) | |
at org.openjdk.jmh.runner.BaseRunner.runBenchmarksForked(BaseRunner.java:76) | |
at org.openjdk.jmh.runner.ForkedRunner.run(ForkedRunner.java:72) | |
at org.openjdk.jmh.runner.ForkedMain.main(ForkedMain.java:84) | |
Suppressed: java.lang.IllegalArgumentException: KieBuilder errors: { | |
[Message [id=1, kieBase=kbase, level=ERROR, path=turtle/expert-basic-insert-logical-facts-into-wm-1000.drl, line=5988, column=0 | |
text=Unable to build expression for 'consequence': [Error: unexpected end of statement] | |
[Near : {... ....}] | |
^ | |
[Line: 5988, Column: 0] '$trans.accountTo = new Account(); | |
update($trans); // this invalidates previous rule and thus all the LogicalFacts should be retracted | |
']] | |
} | |
at org.drools.benchmarks.common.util.BuildtimeUtil.getKieBuilderFromResources(BuildtimeUtil.java:96) | |
at org.drools.benchmarks.common.util.BuildtimeUtil.createKJarFromResources(BuildtimeUtil.java:62) | |
at org.drools.benchmarks.common.util.BuildtimeUtil.createKieContainerFromResources(BuildtimeUtil.java:55) | |
at org.drools.benchmarks.turtle.runtime.AbstractSimpleRuntimeBenchmark.createKBase(AbstractSimpleRuntimeBenchmark.java:84) | |
at org.drools.benchmarks.turtle.runtime.generated.InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest._jmh_tryInit_f_insertlogicalfactsintowmexpertbenchmark0_0(InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.java:346) | |
at org.drools.benchmarks.turtle.runtime.generated.InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.timeFactsInsertionAndRulesFiring_SingleShotTime(InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.java:297) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:498) | |
at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:453) | |
at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:437) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:266) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:266) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) | |
at java.lang.Thread.run(Thread.java:748) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment