[JBoss JIRA] (DROOLS-4292) executable-model fails with more than 5 arguments query
by Toshiya Kobayashi (Jira)
[ https://issues.jboss.org/browse/DROOLS-4292?page=com.atlassian.jira.plugi... ]
Toshiya Kobayashi commented on DROOLS-4292:
-------------------------------------------
I'm not sure if having Query*Def.java per query argument number is the only solution. If we cannot make it dynamic, the customer requests that at least 10 arguments are acceptable and the limitation is documented.
> executable-model fails with more than 5 arguments query
> -------------------------------------------------------
>
> Key: DROOLS-4292
> URL: https://issues.jboss.org/browse/DROOLS-4292
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.23.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Luca Molteni
> Priority: Major
> Labels: support
>
> executable-model build fails when a query defined with more than 5 arguments.
> for example)
> {noformat}
> query peeps( String name, int age, long ageLong, int id, String likes )
> Person( name := name, age := age, ageLong := ageLong, id := id, likes := likes )
> end
> {noformat}
> {noformat}
> java.lang.ArrayIndexOutOfBoundsException: 5
> at org.drools.model.QueryDef.getQueryClassByArity(QueryDef.java:30)
> at org.drools.modelcompiler.builder.generator.QueryGenerator.getQueryType(QueryGenerator.java:120)
> at org.drools.modelcompiler.builder.generator.QueryGenerator.processQueryDef(QueryGenerator.java:42)
> at org.drools.modelcompiler.builder.generator.ModelGenerator.generateModel(ModelGenerator.java:143)
> at org.drools.modelcompiler.builder.ModelBuilderImpl.compileKnowledgePackages(ModelBuilderImpl.java:147)
> at org.drools.modelcompiler.builder.ModelBuilderImpl.buildRules(ModelBuilderImpl.java:97)
> at org.drools.modelcompiler.builder.ModelBuilderImpl.buildPackages(ModelBuilderImpl.java:66)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:108)
> at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:100)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages(AbstractKieProject.java:261)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:75)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:271)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:239)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:208)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:196)
> at org.drools.modelcompiler.BaseModelTest.createKieBuilder(BaseModelTest.java:144)
> at org.drools.modelcompiler.BaseModelTest.createKieBuilder(BaseModelTest.java:125)
> at org.drools.modelcompiler.BaseModelTest.getKieContainer(BaseModelTest.java:114)
> at org.drools.modelcompiler.BaseModelTest.getKieContainer(BaseModelTest.java:107)
> at org.drools.modelcompiler.BaseModelTest.getKieSession(BaseModelTest.java:103)
> at org.drools.modelcompiler.BaseModelTest.getKieSession(BaseModelTest.java:99)
> at org.drools.modelcompiler.QueryTest.testQuery5Args(QueryTest.java:884)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 10 months
[JBoss JIRA] (JBLOGGING-140) Avoid ClassCastException in Slf4jLoggerProvider
by Philippe Marschall (Jira)
Philippe Marschall created JBLOGGING-140:
--------------------------------------------
Summary: Avoid ClassCastException in Slf4jLoggerProvider
Key: JBLOGGING-140
URL: https://issues.jboss.org/browse/JBLOGGING-140
Project: JBoss Logging
Issue Type: Enhancement
Reporter: Philippe Marschall
Assignee: James Perkins
We use jboss-logging with a custom SLF4J implementation that does not implement {{LocationAwareLogger}}. We have exception tracing on and see a {{ClassCastException}} in {{org.jboss.logging.Slf4jLoggerProvider#getLogger(String)}} for every logger we look up.
We did some preliminary microbenchmarks and can see no differences between unconditionally casting and catching {{Throwable}} vs an {{instanceof}}, both in cases where the check success. Having said the class hierarchies we tested are slightly different from actual SLF4J class hierarchies.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 10 months
[JBoss JIRA] (WFLY-12273) Extend streaming RxInvoker interfaces to allow Response return type
by Alessio Soldano (Jira)
Alessio Soldano created WFLY-12273:
--------------------------------------
Summary: Extend streaming RxInvoker interfaces to allow Response return type
Key: WFLY-12273
URL: https://issues.jboss.org/browse/WFLY-12273
Project: WildFly
Issue Type: Feature Request
Reporter: Alessio Soldano
Assignee: Ronald Sigal
Currently, all of the methods in FlowableRxInvoker, for example, return a Flowable. It might be useful to add methods which return a Response from which the Flowable, as well as status, etc., could be extracted.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 10 months
[JBoss JIRA] (WFLY-11127) Can not get activemq and undertow subsystem data from HTTP management api
by Toni Moreno (Jira)
[ https://issues.jboss.org/browse/WFLY-11127?page=com.atlassian.jira.plugin... ]
Toni Moreno commented on WFLY-11127:
------------------------------------
Hi Lin. I'm reviewing this issue, is rejected , but no reference to the new request format.
Where can I look for this request format? What version has implemented this new request format ?
> Can not get activemq and undertow subsystem data from HTTP management api
> -------------------------------------------------------------------------
>
> Key: WFLY-11127
> URL: https://issues.jboss.org/browse/WFLY-11127
> Project: WildFly
> Issue Type: Bug
> Components: Management, Web (Undertow)
> Affects Versions: 12.0.0.Final
> Reporter: Toni Moreno
> Assignee: Lin Gao
> Priority: Critical
>
> As described in https://github.com/wildfly/wildfly/issues/11309
> I can not get some subsystems info data with the HTTP management API working with
>
> ======================================
> "product-version" => "12.0.0.Final",
> "product-community-identifier" => "Product",
> "product-home" => "/usr/local/wildfly-12.0.0.Final",
> "standalone-or-domain-identifier" => "HOST_CONTROLLER",
> "host-operating-system" => "Debian GNU/Linux 8 (jessie)}}
> ===============
> This the a activemq POST request with curl and its error
> ---------8<------------------------------------------8<-----------------------
> root@snmpcoldev01:~# curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"host":"master","server":"server-two","subsystem":"messaging-activemq","server":"default"},"operation":"read-children-resources","child-type":"jms-queue","include-runtime":"true","json.pretty":1,"recursive-depth":2}' -u admin
> Enter host password for user 'admin':
> HTTP/1.1 401 Unauthorized
> Connection: keep-alive
> WWW-Authenticate: Digest realm="ManagementRealm", nonce="ABCwnAAANoo77ka2vPx9H1LY0IuT5cmkcn5HWBS88gigGzT786K6qnnpMAk=", opaque="00000000000000000000000000000000", algorithm=MD5, qop=auth
> X-Frame-Options: SAMEORIGIN
> Content-Length: 77
> Content-Type: text/html
> Date: Sat, 02 Jun 2018 08:05:53 GMT
> HTTP/1.1 500 Internal Server Error
> Connection: keep-alive
> X-Frame-Options: SAMEORIGIN
> Content-Type: application/json; charset=utf-8
> Content-Length: 103
> Date: Sat, 02 Jun 2018 08:05:53 GMT
> "java.io.IOException: org.jboss.dmr.stream.ModelException: Unexpected content following the DMR
> --------->8------------------------------------------>8-----------------------
> And this the query with the GUI client
> [jboss_jms_queue_gui_query|https://user-images.githubusercontent.com/58834...]
> Also with undertow subsystem
> ---------8<------------------------------------------8<-----------------------
> root@snmpcoldev01:~# curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"address":{"host":"master","server":"server-two","subsystem":"undertow","server":"default-server","http-listener":"default"},"include-runtime":"true","json.pretty":1,"operation":"read-resource","recursive-depth":0}' -u admin
> Enter host password for user 'admin':
> HTTP/1.1 401 Unauthorized
> Connection: keep-alive
> WWW-Authenticate: Digest realm="ManagementRealm", nonce="ABC0jwAAN04NaeQD9tlEeeNzizRu5PGuUY9Adi18uuLUzOM1RZNHWkCqnc4=", opaque="00000000000000000000000000000000", algorithm=MD5, qop=auth
> X-Frame-Options: SAMEORIGIN
> Content-Length: 77
> Content-Type: text/html
> Date: Sat, 02 Jun 2018 08:19:54 GMT
> HTTP/1.1 500 Internal Server Error
> Connection: keep-alive
> X-Frame-Options: SAMEORIGIN
> Content-Type: application/json; charset=utf-8
> Content-Length: 302
> Date: Sat, 02 Jun 2018 08:19:54 GMT
> {
> "outcome" : "failed",
> "failure-description" : "WFLYCTL0030: No resource definition is registered for address [\n (\"host\" => \"master\"),\n (\"server\" => \"default-server\"),\n (\"subsystem\" => \"undertow\"),\n (\"http-listener\" => \"default\")\n]",
> "rolled-back" : true
> }
> --------->8------------------------------------------>8-----------------------
> Here Image of the GUI management query.
> [jboss_undertow_listener_gui_query|https://user-images.githubusercontent.c...]
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 10 months
[JBoss JIRA] (DROOLS-4297) Guided Rule Template removes quotation marks in concatenated String
by Toni Rikkola (Jira)
[ https://issues.jboss.org/browse/DROOLS-4297?page=com.atlassian.jira.plugi... ]
Toni Rikkola moved RHDM-1013 to DROOLS-4297:
--------------------------------------------
Project: Drools (was: Red Hat Decision Manager)
Key: DROOLS-4297 (was: RHDM-1013)
Workflow: GIT Pull Request workflow (was: CDW with docs v1)
Docs QE Status: NEW
Component/s: Guided Rule Editor
Guided Template Editor
(was: Decision Central)
Affects Version/s: (was: 7.3.1.GA)
QE Status: NEW
> Guided Rule Template removes quotation marks in concatenated String
> -------------------------------------------------------------------
>
> Key: DROOLS-4297
> URL: https://issues.jboss.org/browse/DROOLS-4297
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor, Guided Template Editor
> Reporter: Martin Weiler
> Assignee: Toni Rikkola
> Priority: Major
> Labels: drools-tools, support
>
> When Strings are concatenated in the WHEN clause of a Guided Rule Template, the leading and trailing quotation marks are removed, resulting in invalid syntax.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 10 months
[JBoss JIRA] (WFLY-12271) Extend streaming RxInvoker interfaces to allow Response return type
by Ronald Sigal (Jira)
[ https://issues.jboss.org/browse/WFLY-12271?page=com.atlassian.jira.plugin... ]
Ronald Sigal moved RESTEASY-2288 to WFLY-12271:
-----------------------------------------------
Project: WildFly (was: RESTEasy)
Key: WFLY-12271 (was: RESTEASY-2288)
Issue Type: Feature Request (was: Enhancement)
Workflow: GIT Pull Request workflow (was: classic default workflow)
Fix Version/s: (was: 3.9.0.Final)
(was: 4.2.0.Final)
> Extend streaming RxInvoker interfaces to allow Response return type
> -------------------------------------------------------------------
>
> Key: WFLY-12271
> URL: https://issues.jboss.org/browse/WFLY-12271
> Project: WildFly
> Issue Type: Feature Request
> Reporter: Ronald Sigal
> Assignee: Ronald Sigal
> Priority: Major
>
> Currently, all of the methods in FlowableRxInvoker, for example, return a Flowable. It might be useful to add methods which return a Response from which the Flowable, as well as status, etc., could be extracted.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 10 months
[JBoss JIRA] (WFLY-12272) Extend streaming RxInvoker interfaces to allow Response return type
by Ronald Sigal (Jira)
Ronald Sigal created WFLY-12272:
-----------------------------------
Summary: Extend streaming RxInvoker interfaces to allow Response return type
Key: WFLY-12272
URL: https://issues.jboss.org/browse/WFLY-12272
Project: WildFly
Issue Type: Feature Request
Reporter: Ronald Sigal
Assignee: Ronald Sigal
Currently, all of the methods in FlowableRxInvoker, for example, return a Flowable. It might be useful to add methods which return a Response from which the Flowable, as well as status, etc., could be extracted.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 10 months
[JBoss JIRA] (HIBERNATE-166) camelCase to snake_case naming strategy
by Max Lamothe (Jira)
Max Lamothe created HIBERNATE-166:
-------------------------------------
Summary: camelCase to snake_case naming strategy
Key: HIBERNATE-166
URL: https://issues.jboss.org/browse/HIBERNATE-166
Project: Hibernate Integration
Issue Type: Feature Request
Reporter: Max Lamothe
Assignee: Steve Ebersole
I am looking to use snake case database identifiers instead of camel case, and couldn’t find an option to do that already available in the Hibernate API.
I found an extension to the Default Naming strategy in a project on GitHub, but I was wondering if it would be possible to integrate this directly into the API so we don’t have to copy paste this code.
The current solution I found is here:
https://github.com/vladmihalcea/hibernate-types/blob/master/hibernate-typ...
Is there any change that this could be integrated directly into the project?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 10 months
[JBoss JIRA] (WFLY-12191) StackOverflowError is thrown when invoking a REST end-point, with ClientRequestFilter/ClientResponseFilter registered
by Deny Wuysan (Jira)
[ https://issues.jboss.org/browse/WFLY-12191?page=com.atlassian.jira.plugin... ]
Deny Wuysan updated WFLY-12191:
-------------------------------
Workaround Description: Remove @Provider on ClientRequestFilter
Affects Version/s: 17.0.1.Final
> StackOverflowError is thrown when invoking a REST end-point, with ClientRequestFilter/ClientResponseFilter registered
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-12191
> URL: https://issues.jboss.org/browse/WFLY-12191
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 17.0.0.Final, 17.0.1.Final
> Environment: Fedora 30, Oracle JDK 1.8.0_181
> Reporter: Deny Wuysan
> Assignee: Alessio Soldano
> Priority: Major
> Attachments: Authenticator.java, BatchManager.java, WFLY-12191.zip
>
>
> Please find attached the two Java files corresponding to the error. When setting debugger on line 50 for Authenticator.java, notice repetitive calls occurred, ONLY on Wildfly 17.0.0.Final.
> Have re-tested this case on Wildfly 16.0.0.Final and the REST call made successfully.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 10 months