Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: Response head already sent #21548

Closed
micheljung opened this issue Nov 18, 2021 · 3 comments
Closed

java.lang.IllegalStateException: Response head already sent #21548

micheljung opened this issue Nov 18, 2021 · 3 comments
Labels
area/graphql kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.

Comments

@micheljung
Copy link

Describe the bug

Similar issue as #19621

Doing a call to my /graphql with an existing (but not sure if expired) JWT token results in:

2021-11-18 19:38:38,409 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-eventloop-thread-1) HTTP Request to /graphql failed, error id: 2da873a8-9cd9-411e-9002-c6acce34c9c3-2: java.lang.IllegalStateException: Response head already sent
   at io.vertx.core.http.impl.Http1xServerResponse.checkHeadWritten(Http1xServerResponse.java:675)
   at io.vertx.core.http.impl.Http1xServerResponse.setStatusCode(Http1xServerResponse.java:144)
   at io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLExecutionHandler.handlePost(SmallRyeGraphQLExecutionHandler.java:113)
   at io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLExecutionHandler.doHandle(SmallRyeGraphQLExecutionHandler.java:71)
   at io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLAbstractHandler.handleWithIdentity(SmallRyeGraphQLAbstractHandler.java:66)
   at io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLAbstractHandler.handle(SmallRyeGraphQLAbstractHandler.java:48)
   at io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLAbstractHandler.handle(SmallRyeGraphQLAbstractHandler.java:23)
   at io.vertx.ext.web.impl.BlockingHandlerDecorator.lambda$handle$0(BlockingHandlerDecorator.java:48)
   at io.vertx.core.impl.ContextImpl.lambda$null$0(ContextImpl.java:159)
   at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:100)
   at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$1(ContextImpl.java:157)
   at io.quarkus.vertx.core.runtime.VertxCoreRecorder$13.runWith(VertxCoreRecorder.java:543)
   at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
   at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
   at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
   at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
   at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   at java.lang.Thread.run(Thread.java:829)
   at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:596)
   at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)

Expected behavior

Don't throw an exception

Actual behavior

Throws an exception

How to Reproduce?

I don't exactly know

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.4.0.Final

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@micheljung micheljung added the kind/bug Something isn't working label Nov 18, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Nov 22, 2021

/cc @jmartisk, @phillip-kruger

@geoand
Copy link
Contributor

geoand commented Nov 22, 2021

Any chance you can attach a reproducer?

@geoand geoand added the triage/needs-reproducer We are waiting for a reproducer. label Nov 25, 2021
@gsmet
Copy link
Member

gsmet commented Jan 1, 2022

No reproducer, closing.

@gsmet gsmet closed this as completed Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.
Projects
None yet
Development

No branches or pull requests

3 participants