[JBoss JIRA] (WFWIP-291) Log messages from io.smallrye.openapi don't have message ID
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/WFWIP-291?page=com.atlassian.jira.plugin... ]
Darran Lofthouse commented on WFWIP-291:
----------------------------------------
Additionally there is also a general issue in that we can not impose our own logging formats on third party projects pulled into WildFly.
If a third party project throws an Exception we can catch we may have an opportunity to catch and log with an ID or rethrow with an ID but we don't have options to intercept messages directly logged.
Having said that it does seem SmallRye will be receptive to having support added to internatinalised messages with IDs but as with the comment from Paul this would not cover messages at debug or trace level.
> Log messages from io.smallrye.openapi don't have message ID
> -----------------------------------------------------------
>
> Key: WFWIP-291
> URL: https://issues.redhat.com/browse/WFWIP-291
> Project: WildFly WIP
> Issue Type: Bug
> Components: MP OpenAPI
> Reporter: Fabio Burzigotti
> Assignee: Paul Ferraro
> Priority: Major
>
> Messages logged by io.smallrye.openapi don't have assigned ID:
> {code}
> 2020-01-05 16:58:49,225 DEBUG [io.smallrye.openapi.runtime.util.SchemaFactory] (MSC service thread 1-4) Processing a single @Schema annotation.
> 2020-01-05 16:58:49,225 DEBUG [io.smallrye.openapi.runtime.scanner.OpenApiAnnotationScanner] (MSC service thread 1-4) Processing a single @Response annotation.
> 2020-01-05 16:58:49,225 DEBUG [io.smallrye.openapi.runtime.scanner.OpenApiAnnotationScanner] (MSC service thread 1-4) Processing jax-rs method: {0}
> 2020-01-05 16:58:49,225 DEBUG [io.smallrye.openapi.runtime.scanner.OpenApiDataObjectScanner] (MSC service thread 1-4) Starting processing with root: java.lang.String
> {code}
> A search in SmallRye implementation seems to show that IDs are not used even when level is WARN:
> {code}
> $ find . -name '*.*' -type f -print0 | xargs -0 grep --color -n -e 'LOG.warn'
> ./implementation/src/main/java/io/smallrye/openapi/runtime/scanner/ParameterProcessor.java:551: LOG.warnf("Matrix parameter references missing path segment: %s", segmentName);
> ./implementation/src/main/java/io/smallrye/openapi/runtime/scanner/ParameterProcessor.java:1147: LOG.warnf("Value '%s' is not a valid %s default", stringValue, primitive.name().toLowerCase());
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 5 months
[JBoss JIRA] (DROOLS-4902) Can not use mod operators (%) in when clause.
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-4902?page=com.atlassian.jira.plug... ]
Mario Fusco resolved DROOLS-4902.
---------------------------------
Resolution: Done
Fixed in mvel with https://github.com/mvel/mvel/commit/691466dd5657317a421792dfb1c366394288c1fe
In the meanwhile you can workaround this issue with additional parenthesis like in:
{code}
Number( (this % 5) == 0 )
{code}
> Can not use mod operators (%) in when clause.
> ---------------------------------------------
>
> Key: DROOLS-4902
> URL: https://issues.redhat.com/browse/DROOLS-4902
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.31.0.Final
> Reporter: xb l
> Assignee: Mario Fusco
> Priority: Major
>
> When I study drools , I write a rule use divide operator
> {code:java}
> rule "Buzz" salience 2
> when
> $n: Number( this / 5 == 3 )
> then
> System.out.println("Buzz");
> end
> {code}
> It's OK.
> But:
> {code:java}
> rule "Buzz" salience 2
> when
> $n: Number( this % 5 == 0 )
> then
> System.out.println("Buzz");
> end
> {code}
> Report parser error: Unable to Analyse Expression this % 5 == 0:
> The drools document mentioned the same example:
> Person( age > 100 && ( age % 10 == 0 ) )
> % is Multiplicative operators, why parser error?
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 5 months
[JBoss JIRA] (DROOLS-4903) In constraints fail to compile if negated or inside a forall pattern
by Matteo Casalino (Jira)
[ https://issues.redhat.com/browse/DROOLS-4903?page=com.atlassian.jira.plug... ]
Matteo Casalino updated DROOLS-4903:
------------------------------------
Description:
It appears that the KieBuilder fails to compile the following pattern:
{noformat}
Pojo(!(x in (1,2,3)))
{noformat}
returning the following error:
{noformat}
Error Messages:
Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
text=Unable to Analyse Expression !(x in (1,2,3)):
[Error: unexpected token: ,2]
[Near : {... !(x in (1,2,3)) ....}]
{noformat}
Furthermore, as of Drools 7.29.0.Final, the following form will also fail to compile:
{noformat}
forall(Pojo(y==42, x in (1,2,3)))
{noformat}
with the following error:
{noformat}
Error Messages:
Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
text=Unable to Analyse Expression !(y==42) || !(x in (1,2,3)):
[Error: unexpected token: ,2]
[Near : {... !(y==42) || !(x in (1,2,3)) ....}]
{noformat}
The latter is likely a consequence of the negation introduced by [DROOLS-4632], [DROOLS-4633]
was:
It appears that the KieBuilder fails to compile the following pattern:
{noformat}
Pojo(!(x in (1,2,3)))
{noformat}
returning the following error:
{noformat}
Error Messages:
Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
text=Unable to Analyse Expression !(x in (1,2,3)):
[Error: unexpected token: ,2]
[Near : {... !(x in (1,2,3)) ....}]
{noformat}
Furthermore, as of Drools 7.29.0.Final, the following form will also fail to compile:
{noformat}
forall(Pojo(y==42, x in (1,2,3)))
{noformat}
with the following error:
{noformat}
Error Messages:
Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
text=Unable to Analyse Expression !(y==42) || !(x in (1,2,3)):
[Error: unexpected token: ,2]
[Near : {... !(y==42) || !(x in (1,2,3)) ....}]
{noformat}
The latter is likely a consequence of the negation introduced by [DROOLS-4632|https://issues.redhat.com/browse/DROOLS-4632], [DROOLS-4633][https://issues.redhat.com/browse/DROOLS-4633]
> In constraints fail to compile if negated or inside a forall pattern
> --------------------------------------------------------------------
>
> Key: DROOLS-4903
> URL: https://issues.redhat.com/browse/DROOLS-4903
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.31.0.Final
> Reporter: Matteo Casalino
> Assignee: Mario Fusco
> Priority: Major
> Attachments: in-constraint-negation.tgz
>
>
> It appears that the KieBuilder fails to compile the following pattern:
> {noformat}
> Pojo(!(x in (1,2,3)))
> {noformat}
> returning the following error:
> {noformat}
> Error Messages:
> Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
> text=Unable to Analyse Expression !(x in (1,2,3)):
> [Error: unexpected token: ,2]
> [Near : {... !(x in (1,2,3)) ....}]
> {noformat}
> Furthermore, as of Drools 7.29.0.Final, the following form will also fail to compile:
> {noformat}
> forall(Pojo(y==42, x in (1,2,3)))
> {noformat}
> with the following error:
> {noformat}
> Error Messages:
> Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
> text=Unable to Analyse Expression !(y==42) || !(x in (1,2,3)):
> [Error: unexpected token: ,2]
> [Near : {... !(y==42) || !(x in (1,2,3)) ....}]
> {noformat}
> The latter is likely a consequence of the negation introduced by [DROOLS-4632], [DROOLS-4633]
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 5 months
[JBoss JIRA] (DROOLS-4903) In constraints fail to compile if negated or inside a forall pattern
by Matteo Casalino (Jira)
[ https://issues.redhat.com/browse/DROOLS-4903?page=com.atlassian.jira.plug... ]
Matteo Casalino updated DROOLS-4903:
------------------------------------
Description:
It appears that the KieBuilder fails to compile the following pattern:
{noformat}
Pojo(!(x in (1,2,3)))
{noformat}
returning the following error:
{noformat}
Error Messages:
Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
text=Unable to Analyse Expression !(x in (1,2,3)):
[Error: unexpected token: ,2]
[Near : {... !(x in (1,2,3)) ....}]
{noformat}
Furthermore, as of Drools 7.29.0.Final, the following form will also fail to compile:
{noformat}
forall(Pojo(y==42, x in (1,2,3)))
{noformat}
with the following error:
{noformat}
Error Messages:
Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
text=Unable to Analyse Expression !(y==42) || !(x in (1,2,3)):
[Error: unexpected token: ,2]
[Near : {... !(y==42) || !(x in (1,2,3)) ....}]
{noformat}
The latter is likely a consequence of the negation introduced by [DROOLS-4632|https://issues.redhat.com/browse/DROOLS-4632], [DROOLS-4633][https://issues.redhat.com/browse/DROOLS-4633]
was:
It appears that the KieBuilder fails to compile the following pattern:
{noformat}
Pojo(!(x in (1,2,3)))
{noformat}
returning the following error:
{noformat}
Error Messages:
Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
text=Unable to Analyse Expression !(x in (1,2,3)):
[Error: unexpected token: ,2]
[Near : {... !(x in (1,2,3)) ....}]
{noformat}
Furthermore, as of Drools 7.29.0.Final, the following form will also fail to compile:
{noformat}
forall(Pojo(y==42, x in (1,2,3)))
{noformat}
with the following error:
{noformat}
Error Messages:
Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
text=Unable to Analyse Expression !(y==42) || !(x in (1,2,3)):
[Error: unexpected token: ,2]
[Near : {... !(y==42) || !(x in (1,2,3)) ....}]
{noformat}
The latter is likely a consequence of the negation introduced by [DROOLS-4632|https://issues.redhat.com/browse/DROOLS-4632]
> In constraints fail to compile if negated or inside a forall pattern
> --------------------------------------------------------------------
>
> Key: DROOLS-4903
> URL: https://issues.redhat.com/browse/DROOLS-4903
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.31.0.Final
> Reporter: Matteo Casalino
> Assignee: Mario Fusco
> Priority: Major
> Attachments: in-constraint-negation.tgz
>
>
> It appears that the KieBuilder fails to compile the following pattern:
> {noformat}
> Pojo(!(x in (1,2,3)))
> {noformat}
> returning the following error:
> {noformat}
> Error Messages:
> Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
> text=Unable to Analyse Expression !(x in (1,2,3)):
> [Error: unexpected token: ,2]
> [Near : {... !(x in (1,2,3)) ....}]
> {noformat}
> Furthermore, as of Drools 7.29.0.Final, the following form will also fail to compile:
> {noformat}
> forall(Pojo(y==42, x in (1,2,3)))
> {noformat}
> with the following error:
> {noformat}
> Error Messages:
> Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
> text=Unable to Analyse Expression !(y==42) || !(x in (1,2,3)):
> [Error: unexpected token: ,2]
> [Near : {... !(y==42) || !(x in (1,2,3)) ....}]
> {noformat}
> The latter is likely a consequence of the negation introduced by [DROOLS-4632|https://issues.redhat.com/browse/DROOLS-4632], [DROOLS-4633][https://issues.redhat.com/browse/DROOLS-4633]
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 5 months
[JBoss JIRA] (DROOLS-4903) In constraints fail to compile if negated or inside a forall pattern
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-4903?page=com.atlassian.jira.plug... ]
Mario Fusco updated DROOLS-4903:
--------------------------------
Sprint: 2020 Week 01-03 (from Dec 30)
> In constraints fail to compile if negated or inside a forall pattern
> --------------------------------------------------------------------
>
> Key: DROOLS-4903
> URL: https://issues.redhat.com/browse/DROOLS-4903
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.31.0.Final
> Reporter: Matteo Casalino
> Assignee: Mario Fusco
> Priority: Major
> Attachments: in-constraint-negation.tgz
>
>
> It appears that the KieBuilder fails to compile the following pattern:
> {noformat}
> Pojo(!(x in (1,2,3)))
> {noformat}
> returning the following error:
> {noformat}
> Error Messages:
> Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
> text=Unable to Analyse Expression !(x in (1,2,3)):
> [Error: unexpected token: ,2]
> [Near : {... !(x in (1,2,3)) ....}]
> {noformat}
> Furthermore, as of Drools 7.29.0.Final, the following form will also fail to compile:
> {noformat}
> forall(Pojo(y==42, x in (1,2,3)))
> {noformat}
> with the following error:
> {noformat}
> Error Messages:
> Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules.drl, line=4, column=0
> text=Unable to Analyse Expression !(y==42) || !(x in (1,2,3)):
> [Error: unexpected token: ,2]
> [Near : {... !(y==42) || !(x in (1,2,3)) ....}]
> {noformat}
> The latter is likely a consequence of the negation introduced by [DROOLS-4632|https://issues.redhat.com/browse/DROOLS-4632]
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 5 months