[JBoss JIRA] (WFLY-12265) Out of specification: Singleton EJB is allowed to implement SessionBean interface.
by Tomas Hofman (Jira)
[ https://issues.jboss.org/browse/WFLY-12265?page=com.atlassian.jira.plugin... ]
Tomas Hofman reassigned WFLY-12265:
-----------------------------------
Assignee: Tomas Hofman (was: Cheng Fang)
> Out of specification: Singleton EJB is allowed to implement SessionBean interface.
> ----------------------------------------------------------------------------------
>
> Key: WFLY-12265
> URL: https://issues.jboss.org/browse/WFLY-12265
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 16.0.0.Final, 17.0.0.Final
> Reporter: Cheng Fang
> Assignee: Tomas Hofman
> Priority: Major
> Fix For: 18.0.0.Beta1
>
> Attachments: SingletonBean.java
>
>
> Singleton EJB is allowed to implement SessionBean interface and the EJB 3.2 spec says in section 4.9.2 Session Bean Class:
> "The class may implement, directly or indirectly, the javax.ejb.SessionBean interface. Except for singleton session beans."
> EAP should throw an exception or log a warning that it is not valid by the spec.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 4 months
[JBoss JIRA] (WFCORE-4586) patch apply ... --override-all does not work if layer module is corrupted
by Chao Wang (Jira)
[ https://issues.jboss.org/browse/WFCORE-4586?page=com.atlassian.jira.plugi... ]
Chao Wang moved JBEAP-17303 to WFCORE-4586:
-------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-4586 (was: JBEAP-17303)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Patching
(was: Patching)
Affects Version/s: 10.0.0.Beta2
(was: 7.2.2.GA)
> patch apply ... --override-all does not work if layer module is corrupted
> -------------------------------------------------------------------------
>
> Key: WFCORE-4586
> URL: https://issues.jboss.org/browse/WFCORE-4586
> Project: WildFly Core
> Issue Type: Bug
> Components: Patching
> Affects Versions: 10.0.0.Beta2
> Reporter: Chao Wang
> Assignee: Chao Wang
> Priority: Major
>
> patch apply ... --override-all does not work if layer module is corrupted
> --override-all and the other overrides seems to work if there is a corruption in the base layer, but if one of the CP layers is corrupt, then the override does not seem to have any effect.
> patch apply ../jboss-eap-7.2.3-patch.zip --override-all
> java.io.SyncFailedException: WFLYPAT0018: copied content does not match expected hash for item: ModuleItem{com.fasterxml.jackson.core.jackson-annotations:main}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 4 months
[JBoss JIRA] (DROOLS-4377) Comparison error with primitive and Map in executable-model
by Luca Molteni (Jira)
[ https://issues.jboss.org/browse/DROOLS-4377?page=com.atlassian.jira.plugi... ]
Luca Molteni updated DROOLS-4377:
---------------------------------
Sprint: 2019 Week 29-31
> Comparison error with primitive and Map in executable-model
> -----------------------------------------------------------
>
> Key: DROOLS-4377
> URL: https://issues.jboss.org/browse/DROOLS-4377
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.24.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Luca Molteni
> Priority: Major
> Labels: support
>
> When comparing a primitive int with an Integer inside a Map,
> {noformat}
> import java.util.Map;
> import org.drools.modelcompiler.domain.Person;
> rule R1 when
> $m : Map()
> Person(age == $m['age'] )
> then
> end
> {noformat}
> executable-model build fails with "Comparison operation requires compatible types. Found int and class java.lang.Object" even though the Map's value is Integer.
> {noformat}
> [ERROR] Failures:
> [ERROR] CompilerTest.testMapPrimitiveComparison:1905->BaseModelTest.getKieSession:99->BaseModelTest.getKieSession:103->BaseModelTest.getKieContainer:107->BaseModelTest.getKieContainer:114->BaseModelTest.createKieBuilder:125->BaseModelTest.createKieBuilder:152 [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=r0.drl, line=-1, column=0
> text=Comparison operation requires compatible types. Found int and class java.lang.Object]]
> {noformat}
> Non executable-model has no issue with the rule.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 4 months
[JBoss JIRA] (DROOLS-4375) BigDecimal in from accumulate with MVEL with executable-model
by Luca Molteni (Jira)
[ https://issues.jboss.org/browse/DROOLS-4375?page=com.atlassian.jira.plugi... ]
Luca Molteni updated DROOLS-4375:
---------------------------------
Sprint: 2019 Week 29-31
> BigDecimal in from accumulate with MVEL with executable-model
> -------------------------------------------------------------
>
> Key: DROOLS-4375
> URL: https://issues.jboss.org/browse/DROOLS-4375
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.24.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Luca Molteni
> Priority: Major
> Labels: support
>
> When "from accumulate" uses BigDecimal with Mvel syntax,
> for example)
> {noformat}
> import org.drools.modelcompiler.domain.Person;
> import java.math.BigDecimal;
> global java.util.List list;
> dialect "mvel"
> rule R when
> $b : BigDecimal() from accumulate (
> Person( $money : money ),
> init( BigDecimal sum = 0; ),
> action( sum += $money; ),
> reverse( sum -= $money; ),
> result( sum )
> )
> then
> list.add($b);
> end
> {noformat}
> It works with non executable-model but fails with executable-model.
> {noformat}
> [ERROR] Failures:
> [ERROR] AccumulateTest.testFromAccumulateBigDecimalMvel:1273->BaseModelTest.getKieSession:99->BaseModelTest.getKieSession:103->BaseModelTest.getKieContainer:107->BaseModelTest.getKieContainer:114->BaseModelTest.createKieBuilder:125->BaseModelTest.createKieBuilder:152 [Message [id=1, level=ERROR, path=src/main/java/defaultpkg/RAccumulate6.java, line=28, column=20
> text=incompatible types: int cannot be converted to java.math.BigDecimal], Message [id=2, level=ERROR, path=src/main/java/defaultpkg/RAccumulate6.java, line=32, column=18
> text=bad operand types for binary operator '+'
> first type: java.math.BigDecimal
> second type: java.math.BigDecimal], Message [id=3, level=ERROR, path=src/main/java/defaultpkg/RAccumulate6.java, line=36, column=18
> text=bad operand types for binary operator '-'
> first type: java.math.BigDecimal
> second type: java.math.BigDecimal], Message [id=4, level=ERROR, path=src/main/java/defaultpkg/RAccumulate6.java, line=0, column=0
> text=Java source of src/main/java/defaultpkg/RAccumulate6.java in error:
> package defaultpkg
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 4 months
[JBoss JIRA] (DROOLS-4376) Abbreviated comparison with Map fails in executable-model
by Luca Molteni (Jira)
[ https://issues.jboss.org/browse/DROOLS-4376?page=com.atlassian.jira.plugi... ]
Luca Molteni updated DROOLS-4376:
---------------------------------
Sprint: 2019 Week 29-31
> Abbreviated comparison with Map fails in executable-model
> ---------------------------------------------------------
>
> Key: DROOLS-4376
> URL: https://issues.jboss.org/browse/DROOLS-4376
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.24.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Luca Molteni
> Priority: Major
> Labels: support
>
> When we write abbreviated comparison with Map,
> {noformat}
> import java.util.Map;
> rule R1 when
> Map(this['money'] >= 65 && <= 75)
> then
> end
> {noformat}
> executable-model build fails.
> {noformat}
> [ERROR] testMapAbbreviatedComparison[FLOW_DSL](org.drools.modelcompiler.CompilerTest) Time elapsed: 0.258 s <<< ERROR!
> java.lang.UnsupportedOperationException: Unknown expression: this["money"]
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.findLeftLeafOfNameExpr(ExpressionTyper.java:875)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.findLeftLeafOfNameExpr(ExpressionTyper.java:867)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.findLeftLeafOfNameExpr(ExpressionTyper.java:867)
> at org.drools.modelcompiler.builder.generator.DrlxParseUtil.trasformHalfBinaryToBinary(DrlxParseUtil.java:331)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:170)
> at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpression(ExpressionTyper.java:118)
> at org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser.parseBinaryExpr(ConstraintParser.java:309)
> at org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser.getDrlxParseResult(ConstraintParser.java:114)
> at org.drools.modelcompiler.builder.generator.drlxparse.ConstraintParser.drlxParse(ConstraintParser.java:81)
> at org.drools.modelcompiler.builder.generator.visitor.pattern.PatternDSL.findAllConstraint(PatternDSL.java:124)
> at org.drools.modelcompiler.builder.generator.visitor.pattern.PatternDSL.buildPattern(PatternDSL.java:191)
> at org.drools.modelcompiler.builder.generator.visitor.ModelGeneratorVisitor.visit(ModelGeneratorVisitor.java:128)
> at org.drools.compiler.lang.descr.PatternDescr.accept(PatternDescr.java:267)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 4 months
[JBoss JIRA] (DROOLS-4374) Compilation error for "from accumulate" init() with executable-model or not
by Luca Molteni (Jira)
[ https://issues.jboss.org/browse/DROOLS-4374?page=com.atlassian.jira.plugi... ]
Luca Molteni updated DROOLS-4374:
---------------------------------
Sprint: 2019 Week 29-31
> Compilation error for "from accumulate" init() with executable-model or not
> ---------------------------------------------------------------------------
>
> Key: DROOLS-4374
> URL: https://issues.jboss.org/browse/DROOLS-4374
> Project: Drools
> Issue Type: Bug
> Components: core engine, executable model
> Affects Versions: 7.24.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Luca Molteni
> Priority: Minor
> Labels: support
>
> If we miss a semicolon in init() of "from accumulate",
> for example)
> {noformat}
> import org.drools.modelcompiler.domain.Person;
> rule R when
> $sum : Integer() from accumulate (
> Person( age > 18, $age : age ),
> init( int sum = 0 ),
> action( sum += $age; ),
> reverse( sum -= $age; ),
> result( sum )
> )
> then
> insert($sum);
> end
> {noformat}
> - Not executable-model -> The DRL is compiled and executed successfully
> - Executable-model -> Throws ParseProblemException
> {noformat}
> com.github.javaparser.ParseProblemException: (line 1,col 12) Parse error. Found "}", expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||"
> Problem stacktrace :
> com.github.javaparser.GeneratedJavaParser.generateParseException(GeneratedJavaParser.java:10567)
> com.github.javaparser.GeneratedJavaParser.jj_consume_token(GeneratedJavaParser.java:10426)
> com.github.javaparser.GeneratedJavaParser.BlockStatement(GeneratedJavaParser.java:3847)
> com.github.javaparser.GeneratedJavaParser.Statements(GeneratedJavaParser.java:1644)
> com.github.javaparser.GeneratedJavaParser.Block(GeneratedJavaParser.java:3822)
> com.github.javaparser.GeneratedJavaParser.BlockParseStart(GeneratedJavaParser.java:5687)
> com.github.javaparser.JavaParser.parse(JavaParser.java:115)
> com.github.javaparser.JavaParser.parseBlock(JavaParser.java:309)
> com.github.javaparser.StaticJavaParser.parseBlock(StaticJavaParser.java:240)
> org.drools.modelcompiler.builder.generator.visitor.accumulate.AccumulateVisitor.visitAccInlineCustomCode(AccumulateVisitor.java:434)
> ...
> {noformat}
> I'm not very sure how it should be fixed. I filed this because of discrepancy between Executable-model and Not executable-model
> Poosible choices are:
> - Fail even in case of Not executable-model
> - Success in case of Executable-model
> Additonal Note: If we miss a semicolon in action(), a more understandable error message is thrown.
> {noformat}
> [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=r0.drl, line=2, column=0
> text=Rule Compilation error Syntax error, insert ":: IdentifierOrNew" to complete Expression
> Syntax error, insert ";" to complete Statement]]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 4 months