Skip to content

Instantly share code, notes, and snippets.

View hellowdan's full-sized avatar

Daniel Rosa hellowdan

  • Red Hat, Inc.
  • Brno, Czech Republic
View GitHub Profile
@hellowdan
hellowdan / gist:13cfed3ce2e2f8b61e46d1ba0ee1143a
Created November 23, 2020 13:00
org.drools.serialization.protobuf.UnmarshallingTest failures
21:06:35 [INFO] Results:
21:06:35 [INFO]
21:06:35 [ERROR] Errors:
21:06:35 [ERROR] EventAccessorRestoreTest.setUp:72->CommonTestMethodBase.loadKnowledgeBaseFromString:118->CommonTestMethodBase.loadKnowledgeBaseFromString:131->CommonTestMethodBase.loadKnowledgeBaseFromString:137 » Runtime
21:06:35 [ERROR] FactHandleSerializationTest.testFactHandleSerialization:46 » Runtime java.lang...
21:06:35 [ERROR] MarshallerTest.test2FromsWithPartialFiring:180 » Runtime java.lang.NoSuchField...
21:06:35 [ERROR] MarshallerTest.test2FromsWithPartialFiring:180 » Runtime java.lang.NoSuchField...
21:06:35 [ERROR] MarshallerTest.testAgendaDoNotSerializeObject:71 » Runtime java.lang.NoSuchFie...
21:06:35 [ERROR] MarshallerTest.testAgendaDoNotSerializeObject:71 » Runtime java.lang.NoSuchFie...
21:06:35 [ERROR] MarshallerTest.testAgendaReconciliationAccumulate2:270 » Runtime java.lang.NoS...
@hellowdan
hellowdan / gist:33cc6da26633c981f6886e3af0c16957
Created November 23, 2020 11:24
org.drools.testcoverage.regression.UnwantedStringConversionTest stacktrace
20:56:31 [ERROR] testStringToDecimalConversion[0](org.drools.testcoverage.regression.UnwantedStringConversionTest) Time elapsed: 0.482 s <<< ERROR!
20:56:31 java.lang.RuntimeException: java.lang.NoSuchFieldException: classes
20:56:31 at org.drools.compiler.commons.jci.compilers.NativeJavaCompiler$MemoryFileManager.indexClassesByPackage(NativeJavaCompiler.java:401)
20:56:31 at org.drools.compiler.commons.jci.compilers.NativeJavaCompiler$MemoryFileManager.indexClassesByPackage(NativeJavaCompiler.java:382)
20:56:31 at org.drools.compiler.commons.jci.compilers.NativeJavaCompiler$MemoryFileManager.<init>(NativeJavaCompiler.java:289)
20:56:31 at org.drools.compiler.commons.jci.compilers.NativeJavaCompiler.compile(NativeJavaCompiler.java:97)
20:56:31 at org.drools.compiler.commons.jci.compilers.AbstractJavaCompiler.compile(AbstractJavaCompiler.java:51)
20:56:31 at org.drools.mvel.java.JavaDialect.compileAll(JavaDialect.java:417)
20:56:31 at org.drools.compiler.compiler.DialectCompiletimeRegistry.compileAll(
@hellowdan
hellowdan / gist:2f41fddb0b9f52eb47d270ac3ddc8538
Created November 23, 2020 11:17
org.drools.testcoverage failing tests
20:58:08 [INFO] Results:
20:58:08 [INFO]
20:58:08 [ERROR] Errors:
20:58:08 [ERROR] DecisionTableTest.testActivationGroup:521 » Runtime java.lang.NoSuchFieldExcep...
20:58:08 [ERROR] DecisionTableTest.testActivationGroup:521 » Runtime java.lang.NoSuchFieldExcep...
20:58:08 [ERROR] DecisionTableTest.testActivationGroup:521 » Runtime java.lang.NoSuchFieldExcep...
20:58:08 [ERROR] DecisionTableTest.testActivationGroup:521 » Runtime java.lang.NoSuchFieldExcep...
20:58:08 [ERROR] DecisionTableTest.testActivationGroup:521 » Runtime java.lang.NoSuchFieldExcep...
20:58:08 [ERROR] DecisionTableTest.testActivationGroup:521 » Runtime java.lang.NoSuchFieldExcep...
20:58:08 [ERROR] DecisionTableTest.testAdvancedTable:310 » Runtime java.lang.NoSuchFieldExcepti...
@hellowdan
hellowdan / gist:a9b94e2f728ae802d10a46ae86d1dd82
Created November 23, 2020 11:12
org.drools.compiler.integrationtests failing tests
21:18:04 [ERROR] Failures:
21:18:04 [ERROR] IncrementalCompilationTest.testConcurrentKJarDeployment:1607
21:18:04 [ERROR] IncrementalCompilationTest.testConcurrentKJarDeployment:1607
21:18:04 [ERROR] Errors:
21:18:04 [ERROR] AccumulateTest.test2AccumulatesWithOr:2455 » Runtime java.lang.NoSuchFieldExce...
21:18:04 [ERROR] AccumulateTest.test2AccumulatesWithOr:2455 » Runtime java.lang.NoSuchFieldExce...
21:18:04 [ERROR] AccumulateTest.testAccumlateResultCannotBeUsedInFunctions:3762 » Runtime java....
21:18:04 [ERROR] AccumulateTest.testAccumlateResultCannotBeUsedInFunctions:3762 » Runtime java....
21:18:04 [ERROR] AccumulateTest.testAccumulateAndRetract:2114 » Runtime java.lang.NoSuchFieldEx...
21:18:04 [ERROR] AccumulateTest.testAccumulateAndRetract:2114 » Runtime java.lang.NoSuchFieldEx...
@hellowdan
hellowdan / org.kie.dmn.validation.fails.master.ibm
Created June 16, 2020 12:49
org.kie.dmn.validation fails on master with ibm jdk
This file has been truncated, but you can view the full file.
08:24:47 [INFO] -------------------------------------------------------
08:24:47 [INFO] T E S T S
08:24:47 [INFO] -------------------------------------------------------
08:24:48 [INFO] Running org.drools.dynamic.ClassLoaderTest
08:24:48 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.116 s - in org.drools.dynamic.ClassLoaderTest
08:24:48 [INFO]
08:24:48 [INFO] Results:
08:24:48 [INFO]
08:24:48 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
08:24:48 [INFO]
10:44:25.367 [org.drools.benchmarks.turtle.runtime.InsertLogicalFactsIntoWmExpertBenchmark.timeFactsInsertionAndRulesFiring-jmh-worker-1] ERROR org.drools.compiler.kie.builder.impl.KieProject - Unable to build KieBaseModel:defaultKieBase
Unable to build expression for 'consequence': [Error: unexpected end of statement]
[Near : {... odel.Address.class); ....}]
^
[Line: 583, Column: 0] '$addr.city = "BrnoCity";
update($addr); // this invalidates previous rule and thus all the LogicalFacts should be retracted
' : [Rule name='Set city for each Address_94']
<failure>
@hellowdan
hellowdan / gist:d3d3a6423a5bf8726b15de80e8b7518b
Created March 26, 2020 08:36
Unable to build expression for consequence
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>
16:32:59 16:32:59.878
[org.drools.benchmarks.turtle.runtime.InsertLogicalFactsIntoWmExpertBenchmark.timeFactsInsertionAndRulesFiring-jmh-worker-1] ERROR org.drools.compiler.kie.builder.impl.KieProject - Unable to build KieBaseModel:defaultKieBase
16:32:59 Unable to build expression for 'consequence': [Error: unexpected end of statement]
16:32:59 [Near : {... .Transaction.class); ....}]
16:32:59 ^
16:32:59 [Line: 7535, Column: 0] '$trans.accountTo = new Account();
16:32:59 update($trans); // this invalidates previous rule and thus all the LogicalFacts should be retracted
16:32:59 ' : [Rule name='Set receiving account for each Transaction_18']
16:32:59
16:32:59 Unable to build expression for 'consequence': [Error: unexpected end of statement]
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)
at org.drools.core.rule.constraint.MvelConstraint.getLeftInExpression(MvelConstraint.java:608)
at org.drools.core.rule.constraint.MvelConstraint.hashCode(MvelConstraint.java:602)
at org.drools.core.reteoo.AlphaNode.calculateHashCode(AlphaNode.java:189)
at org.drools.core.reteoo.AlphaNode.<init>(AlphaNode.java:89)
at org.drools.core.reteoo.builder.PhreakNodeFactory.buildAlphaNode(PhreakNodeFactory.java:88)
at org.drools.core.reteoo.builder.PatternBuilder.buildAlphaNodeChain(PatternBuilder.java:360)
at org.drools.core.reteoo.builder.PatternBuilder.attachAlphaNodes(PatternBuilder.java:346)
at org.drools.core.reteoo.builder.PatternBuilder.attachPattern(PatternBuilder.java:136)