[jboss-jira] [JBoss JIRA] (WFLY-12191) StackOverflowError is thrown when invoking a REST end-point, with ClientRequestFilter/ClientResponseFilter registered
Brian Stansberry (Jira)
issues at jboss.org
Mon Jun 17 10:55:00 EDT 2019
[ https://issues.jboss.org/browse/WFLY-12191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13747902#comment-13747902 ]
Brian Stansberry edited comment on WFLY-12191 at 6/17/19 10:54 AM:
-------------------------------------------------------------------
[~asoldano] [~ron_sigal] I attached a 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 due to exceeded gc limit. Both are manifestations of the same basic issue.
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.
was (Author: brian.stansberry):
[~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)
More information about the jboss-jira
mailing list