java.lang.IllegalStateException: Uh oh! Event loop context executing with wrong thread! Expected null got Thread[globalEventExecutor-1-2,5,FailOnTimeoutGroup]

GitHub | vietj | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    EventLoopContext#executeFromIO fails when executed by Netty GlobalEventExecutor

    GitHub | 5 months ago | vietj
    java.lang.IllegalStateException: Uh oh! Event loop context executing with wrong thread! Expected null got Thread[globalEventExecutor-1-2,5,FailOnTimeoutGroup]
  2. 0

    java.lang.IllegalStateException: Uh oh! Event loop context executing with wrong thread!

    Google Groups | 2 months ago | Luis Trigueiros
    java.lang.IllegalStateException: Uh oh! Event loop context executing with wrong thread! Expected null got Thread[globalEventExecutor-1-2,5,main]

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Uh oh! Event loop context executing with wrong thread! Expected null got Thread[globalEventExecutor-1-2,5,FailOnTimeoutGroup]

      at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2()
    2. Vert.x Core
      ChannelProvider.lambda$connect$0
      1. io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:303)
      2. io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:190)
      3. io.vertx.core.net.impl.NetClientImpl.failed(NetClientImpl.java:250)
      4. io.vertx.core.net.impl.NetClientImpl.lambda$connect$5(NetClientImpl.java:225)
      5. io.vertx.core.net.impl.ChannelProvider.lambda$connect$0(ChannelProvider.java:42)
      5 frames
    3. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:514)
      2. io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:488)
      3. io.netty.util.concurrent.DefaultPromise.access$000(DefaultPromise.java:34)
      4. io.netty.util.concurrent.DefaultPromise$1.run(DefaultPromise.java:438)
      5. io.netty.util.concurrent.GlobalEventExecutor$TaskRunner.run(GlobalEventExecutor.java:233)
      6. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
      6 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame