ratpack.exec.UnmanagedThreadException: Operation attempted on non Ratpack managed thread 'RxCachedThreadScheduler-1' at ratpack.exec.internal.ThreadBinding$$Lambda$142/1242833563.get(Unknown Source)

GitHub | mchlstckl | 3 months ago
  1. 0

    UnmanagedThreadException thrown and printed to stderr for Schedulers.io ops.

    GitHub | 3 months ago | mchlstckl
    ratpack.exec.UnmanagedThreadException: Operation attempted on non Ratpack managed thread 'RxCachedThreadScheduler-1' at ratpack.exec.internal.ThreadBinding$$Lambda$142/1242833563.get(Unknown Source)

    Root Cause Analysis

    1. ratpack.exec.UnmanagedThreadException

      Operation attempted on non Ratpack managed thread 'RxCachedThreadScheduler-1' at ratpack.exec.internal.ThreadBinding$$Lambda$142/1242833563.get(Unknown Source)

      at java.util.Optional.orElseThrow()
    2. Java RT
      Optional.orElseThrow
      1. java.util.Optional.orElseThrow(Optional.java:290)
      1 frame
    3. ratpack-core
      DefaultPromise.then
      1. ratpack.exec.internal.ThreadBinding.requireComputeThread(ThreadBinding.java:55)
      2. ratpack.exec.internal.DefaultPromise.then(DefaultPromise.java:38)
      2 frames
    4. ratpack.rx
      RxRatpack$ErrorHandler.handleError
      1. ratpack.rx.RxRatpack$ErrorHandler.handleError(RxRatpack.java:742)
      1 frame
    5. rxjava
      SafeSubscriber.onError
      1. rx.internal.util.RxJavaPluginUtils.handleException(RxJavaPluginUtils.java:24)
      2. rx.observers.SafeSubscriber._onError(SafeSubscriber.java:155)
      3. rx.observers.SafeSubscriber.onError(SafeSubscriber.java:120)
      3 frames
    6. ratpack.rx
      RxRatpack$ExecutionBackedSubscriber.onError
      1. ratpack.rx.RxRatpack$ExecutionBackedSubscriber.onError(RxRatpack.java:781)
      1 frame
    7. rxjava
      ScheduledAction.run
      1. rx.internal.operators.OperatorToObservableList$1.onError(OperatorToObservableList.java:99)
      2. rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4$1.onError(OperatorOnErrorResumeNextViaFunction.java:121)
      3. rx.Observable$ThrowObservable$1.call(Observable.java:10562)
      4. rx.Observable$ThrowObservable$1.call(Observable.java:10552)
      5. rx.Observable.unsafeSubscribe(Observable.java:8644)
      6. rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:141)
      7. rx.internal.operators.OperatorSubscribeOn$1$1.onError(OperatorSubscribeOn.java:59)
      8. rx.exceptions.Exceptions.throwOrReport(Exceptions.java:202)
      9. rx.internal.operators.OnSubscribeFromCallable.call(OnSubscribeFromCallable.java:34)
      10. rx.internal.operators.OnSubscribeFromCallable.call(OnSubscribeFromCallable.java:17)
      11. rx.Observable.unsafeSubscribe(Observable.java:8644)
      12. rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94)
      13. rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
      13 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames