[JBoss JIRA] (WFLY-12191) StackOverflowError is thrown when invoking a REST end-point, with ClientRequestFilter/ClientResponseFilter registered
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-12191?page=com.atlassian.jira.plugin... ]
Brian Stansberry commented on WFLY-12191:
-----------------------------------------
[~asoldano] [~ron_sigal] I attached as zip that packages up the two classes from [~dwuysan] into a maven project. Zip includes a built war, the maven project and a server.log when I executed http://localhost:8080/playground-webapplication/rest/batch/test. One time I executed it I got a StackOverflowError; in the one attached it was an OOME.
The cycle is this:
{code}
at org.jboss.playground.Authenticator.filter(Authenticator.java:56)
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.filterRequest(ClientInvocation.java:590)
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:440)
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:62)
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.method(ClientInvocationBuilder.java:297)
at org.jboss.playground.Authenticator.filter(Authenticator.java:56)
{code}
With WildFly 16 this doesn't happen. With 16 the request fails as well, but that's just because the test app is making a REST invocation against a non-existent dummy URL.
> 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
> 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, 11 months
[JBoss JIRA] (DROOLS-3819) Rule Units 2.0: evaluate 7.x behavior and consider new design
by Edoardo Vacchi (Jira)
[ https://issues.jboss.org/browse/DROOLS-3819?page=com.atlassian.jira.plugi... ]
Edoardo Vacchi commented on DROOLS-3819:
----------------------------------------
consider writing a blog post for community feedback
> Rule Units 2.0: evaluate 7.x behavior and consider new design
> -------------------------------------------------------------
>
> Key: DROOLS-3819
> URL: https://issues.jboss.org/browse/DROOLS-3819
> Project: Drools
> Issue Type: Task
> Reporter: Edoardo Vacchi
> Assignee: Edoardo Vacchi
> Priority: Major
> Labels: drools-core, submarine
> Fix For: 8.0.0.Final
>
>
> I have disabled generation of `unit()` API invocation on DRL compiler in order to make the Unit prototype work quickly. We are now assuming that 1 unit === 1 session, therefore some previous assumptions do not hold anymore. Previous assertions are therefore broken. It is also a good time to re-evaluate some previous considerations on how rule units are supposed to work (e.g. reconsider how guards work etc)
> *Deliverable*: PR and (if possible) design document
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months
[JBoss JIRA] (DROOLS-4185) KieBuilder incremental compilation does not return Warns, infos
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-4185?page=com.atlassian.jira.plugi... ]
Mario Fusco updated DROOLS-4185:
--------------------------------
Sprint: 2019 Week 23-25
> KieBuilder incremental compilation does not return Warns, infos
> ---------------------------------------------------------------
>
> Key: DROOLS-4185
> URL: https://issues.jboss.org/browse/DROOLS-4185
> Project: Drools
> Issue Type: Enhancement
> Components: core engine
> Reporter: Matteo Mortari
> Assignee: Mario Fusco
> Priority: Major
>
> Compiling with something like
> {code:java}
> final KieAssemblersImpl assemblers = (KieAssemblersImpl) ServiceRegistry.getInstance().get(KieAssemblers.class);
> assemblers.accept(new DMNAssemblerService());
> KieServices ks = KieServices.Factory.get();
> KieFileSystem kfs = ks.newKieFileSystem();
> kfs.write("src/main/resources/org/acme/test_scorecard.pmml", ks.getResources().newClassPathResource("test_scorecard.pmml", DMNRuntimeKiePMMLTest.class));
> KieBuilder kieBuilder = ks.newKieBuilder(kfs).buildAll();
> assertEquals(0, kieBuilder.getResults().getMessages(org.kie.api.builder.Message.Level.ERROR).size());
> kfs.write("src/main/resources/org/acme/KiePMMLScoreCard_NOPMMLmodelName.dmn", ks.getResources().newClassPathResource("KiePMMLScoreCard_NOPMMLmodelName.dmn", DMNRuntimeKiePMMLTest.class));
> IncrementalResults addResults = ((InternalKieBuilder) kieBuilder).createFileSet("src/main/resources/org/acme/KiePMMLScoreCard_NOPMMLmodelName.dmn").build();
> LOG.debug("getAddedMessages: {}", addResults.getAddedMessages());
> assertTrue(addResults.getAddedMessages().size() > 0);
> {code}
> would fail on the last assertion, as the WARN message is effectively generated as part of the build, but is not available in returned the list.
> A full reproducer can be found with this PR:
> https://github.com/kiegroup/drools/pull/2389
> Suggestion: parametrize InternalKieBuilder#build to also return list of Warn or Info, besides of just returning list of errors?
> More suggestions here: https://github.com/kiegroup/drools/pull/2389#discussion_r294185056
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months