Introduce assertions to guard against concurrent session openings in … #345
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / Build summary for b94d060b54acf633e68082a178a0e1ab0b655af6
completed
Sep 1, 2023 in 0s
Build summary for b94d060b54acf633e68082a178a0e1ab0b655af6
Details
Test Failures
⚙️ JVM Tests - JDK 11 #
- Failing: extensions/panache/hibernate-reactive-panache/deployment
! Skipped: extensions/panache/hibernate-reactive-panache-kotlin/deployment extensions/panache/hibernate-reactive-rest-data-panache/deployment extensions/security-jpa-reactive/deployment and 5 more
📦 extensions/panache/hibernate-reactive-panache/deployment
# Tests: 10
+ Success: 9
- Failures: 0
- Errors: 1
! Skipped: 0
✖ io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest.testSharedSession(UniAsserter)
- Source on GitHub - 🠅
io.smallrye.mutiny.CompositeException:
Multiple exceptions caught:
[Exception 0] java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
⚙️ JVM Tests - JDK 17 #
- Failing: extensions/panache/hibernate-reactive-panache/deployment
! Skipped: extensions/panache/hibernate-reactive-panache-kotlin/deployment extensions/panache/hibernate-reactive-rest-data-panache/deployment extensions/security-jpa-reactive/deployment and 5 more
📦 extensions/panache/hibernate-reactive-panache/deployment
# Tests: 10
+ Success: 9
- Failures: 0
- Errors: 1
! Skipped: 0
✖ io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest.testSharedSession(UniAsserter)
- Source on GitHub - 🠅
io.smallrye.mutiny.CompositeException:
Multiple exceptions caught:
[Exception 0] java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
⚙️ JVM Tests - JDK 20 #
- Failing: extensions/panache/hibernate-reactive-panache/deployment
! Skipped: extensions/panache/hibernate-reactive-panache-kotlin/deployment extensions/panache/hibernate-reactive-rest-data-panache/deployment extensions/security-jpa-reactive/deployment and 5 more
📦 extensions/panache/hibernate-reactive-panache/deployment
# Tests: 10
+ Success: 9
- Failures: 0
- Errors: 1
! Skipped: 0
✖ io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest.testSharedSession(UniAsserter)
- Source on GitHub - 🠅
io.smallrye.mutiny.CompositeException:
Multiple exceptions caught:
[Exception 0] java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
Annotations
github-actions / Build summary for b94d060b54acf633e68082a178a0e1ab0b655af6
JVM Tests - JDK 11
io.smallrye.mutiny.CompositeException:
Multiple exceptions caught:
[Exception 0] java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
Raw output
io.smallrye.mutiny.CompositeException:
Multiple exceptions caught:
[Exception 0] java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
[Exception 1] java.lang.NullPointerException
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap$UniOnItemOrFailureFlatMapProcessor.performInnerSubscription(UniOnItemOrFailureFlatMap.java:89)
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap$UniOnItemOrFailureFlatMapProcessor.onFailure(UniOnItemOrFailureFlatMap.java:65)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownFailure$KnownFailureSubscription.forward(UniCreateFromKnownFailure.java:38)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownFailure.subscribe(UniCreateFromKnownFailure.java:23)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap.subscribe(UniOnItemOrFailureFlatMap.java:27)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni$UniOnItemTransformToUniProcessor.performInnerSubscription(UniOnItemTransformToUni.java:81)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni$UniOnItemTransformToUniProcessor.onItem(UniOnItemTransformToUni.java:57)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownItem$KnownItemSubscription.forward(UniCreateFromKnownItem.java:38)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownItem.subscribe(UniCreateFromKnownItem.java:23)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni.subscribe(UniOnItemTransformToUni.java:25)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemConsume.subscribe(UniOnItemConsume.java:30)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.groups.UniSubscribe.withSubscriber(UniSubscribe.java:51)
at io.smallrye.mutiny.groups.UniSubscribe.with(UniSubscribe.java:110)
at io.smallrye.mutiny.groups.UniSubscribe.with(UniSubscribe.java:88)
at io.quarkus.test.vertx.RunOnVertxContextTestMethodInvoker$RunTestMethodOnVertxEventLoopContextHandler.doRun(RunOnVertxContextTestMethodInvoker.java:187)
at io.quarkus.test.vertx.RunOnVertxContextTestMethodInvoker$RunTestMethodOnVertxEventLoopContextHandler.handle(RunOnVertxContextTestMethodInvoker.java:174)
at io.quarkus.test.vertx.RunOnVertxContextTestMethodInvoker$RunTestMethodOnVertxEventLoopContextHandler.handle(RunOnVertxContextTestMethodInvoker.java:145)
at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:264)
at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:246)
at io.vertx.core.impl.EventLoopContext.lambda$runOnContext$0(EventLoopContext.java:43)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)
Suppressed: java.lang.NullPointerException
at org.hibernate.reactive.mutiny.impl.MutinySessionImpl.isOpen(MutinySessionImpl.java:522)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.closeSession(SessionOperations.java:227)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.lambda$withSessionOnDemand$0(SessionOperations.java:81)
at io.smallrye.mutiny.Uni.lambda$eventually$1(Uni.java:580)
at io.smallrye.context.impl.wrappers.SlowContextualBiFunction.apply(SlowContextualBiFunction.java:21)
at io.smallrye.mutiny.groups.UniOnItemOrFailure.lambda$call$2(UniOnItemOrFailure.java:68)
at io.smallrye.context.impl.wrappers.SlowContextualBiFunction.apply(SlowContextualBiFunction.java:21)
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap$UniOnItemOrFailureFlatMapProcessor.performInnerSubscription(UniOnItemOrFailureFlatMap.java:86)
... 32 more
Caused by: java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.guardAgainstDuplicateOpenRequest(SessionOperations.java:149)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.getSession(SessionOperations.java:172)
at io.quarkus.hibernate.reactive.panache.Panache.getSession(Panache.java:38)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest$MrBean.ping(WithSessionOnDemandTest.java:40)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_Subclass.ping$$superforward(Unknown Source)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_Subclass$$function$$1.apply(Unknown Source)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:73)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:62)
at io.quarkus.hibernate.reactive.panache.common.runtime.AbstractUniInterceptor.proceedUni(AbstractUniInterceptor.java:12)
at io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor.lambda$intercept$0(WithSessionOnDemandInterceptor.java:20)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.withSessionOnDemand(SessionOperations.java:78)
at io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor.intercept(WithSessionOnDemandInterceptor.java:20)
at io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor_Bean.intercept(Unknown Source)
at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:42)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:30)
at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:27)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_Subclass.ping(Unknown Source)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_ClientProxy.ping(Unknown Source)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest.lambda$testSharedSession$1(WithSessionOnDemandTest.java:30)
at io.quarkus.test.vertx.DefaultUniAsserter$4.apply(DefaultUniAsserter.java:89)
at io.quarkus.test.vertx.DefaultUniAsserter$4.apply(DefaultUniAsserter.java:86)
at io.smallrye.context.impl.wrappers.SlowContextualFunction.apply(SlowContextualFunction.java:21)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni$UniOnItemTransformToUniProcessor.performInnerSubscription(UniOnItemTransformToUni.java:68)
... 25 more
github-actions / Build summary for b94d060b54acf633e68082a178a0e1ab0b655af6
JVM Tests - JDK 17
io.smallrye.mutiny.CompositeException:
Multiple exceptions caught:
[Exception 0] java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
Raw output
io.smallrye.mutiny.CompositeException:
Multiple exceptions caught:
[Exception 0] java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
[Exception 1] java.lang.NullPointerException: Cannot invoke "org.hibernate.reactive.session.ReactiveSession.isOpen()" because "this.delegate" is null
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap$UniOnItemOrFailureFlatMapProcessor.performInnerSubscription(UniOnItemOrFailureFlatMap.java:89)
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap$UniOnItemOrFailureFlatMapProcessor.onFailure(UniOnItemOrFailureFlatMap.java:65)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownFailure$KnownFailureSubscription.forward(UniCreateFromKnownFailure.java:38)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownFailure.subscribe(UniCreateFromKnownFailure.java:23)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap.subscribe(UniOnItemOrFailureFlatMap.java:27)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni$UniOnItemTransformToUniProcessor.performInnerSubscription(UniOnItemTransformToUni.java:81)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni$UniOnItemTransformToUniProcessor.onItem(UniOnItemTransformToUni.java:57)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownItem$KnownItemSubscription.forward(UniCreateFromKnownItem.java:38)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownItem.subscribe(UniCreateFromKnownItem.java:23)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni.subscribe(UniOnItemTransformToUni.java:25)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemConsume.subscribe(UniOnItemConsume.java:30)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.groups.UniSubscribe.withSubscriber(UniSubscribe.java:51)
at io.smallrye.mutiny.groups.UniSubscribe.with(UniSubscribe.java:110)
at io.smallrye.mutiny.groups.UniSubscribe.with(UniSubscribe.java:88)
at io.quarkus.test.vertx.RunOnVertxContextTestMethodInvoker$RunTestMethodOnVertxEventLoopContextHandler.doRun(RunOnVertxContextTestMethodInvoker.java:187)
at io.quarkus.test.vertx.RunOnVertxContextTestMethodInvoker$RunTestMethodOnVertxEventLoopContextHandler.handle(RunOnVertxContextTestMethodInvoker.java:174)
at io.quarkus.test.vertx.RunOnVertxContextTestMethodInvoker$RunTestMethodOnVertxEventLoopContextHandler.handle(RunOnVertxContextTestMethodInvoker.java:145)
at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:264)
at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:246)
at io.vertx.core.impl.EventLoopContext.lambda$runOnContext$0(EventLoopContext.java:43)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:833)
Suppressed: java.lang.NullPointerException: Cannot invoke "org.hibernate.reactive.session.ReactiveSession.isOpen()" because "this.delegate" is null
at org.hibernate.reactive.mutiny.impl.MutinySessionImpl.isOpen(MutinySessionImpl.java:522)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.closeSession(SessionOperations.java:227)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.lambda$withSessionOnDemand$0(SessionOperations.java:81)
at io.smallrye.mutiny.Uni.lambda$eventually$1(Uni.java:580)
at io.smallrye.context.impl.wrappers.SlowContextualBiFunction.apply(SlowContextualBiFunction.java:21)
at io.smallrye.mutiny.groups.UniOnItemOrFailure.lambda$call$2(UniOnItemOrFailure.java:68)
at io.smallrye.context.impl.wrappers.SlowContextualBiFunction.apply(SlowContextualBiFunction.java:21)
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap$UniOnItemOrFailureFlatMapProcessor.performInnerSubscription(UniOnItemOrFailureFlatMap.java:86)
... 32 more
Caused by: java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.guardAgainstDuplicateOpenRequest(SessionOperations.java:149)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.getSession(SessionOperations.java:172)
at io.quarkus.hibernate.reactive.panache.Panache.getSession(Panache.java:38)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest$MrBean.ping(WithSessionOnDemandTest.java:40)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_Subclass.ping$$superforward(Unknown Source)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_Subclass$$function$$1.apply(Unknown Source)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:73)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:62)
at io.quarkus.hibernate.reactive.panache.common.runtime.AbstractUniInterceptor.proceedUni(AbstractUniInterceptor.java:12)
at io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor.lambda$intercept$0(WithSessionOnDemandInterceptor.java:20)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.withSessionOnDemand(SessionOperations.java:78)
at io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor.intercept(WithSessionOnDemandInterceptor.java:20)
at io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor_Bean.intercept(Unknown Source)
at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:42)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:30)
at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:27)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_Subclass.ping(Unknown Source)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_ClientProxy.ping(Unknown Source)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest.lambda$testSharedSession$1(WithSessionOnDemandTest.java:30)
at io.quarkus.test.vertx.DefaultUniAsserter$4.apply(DefaultUniAsserter.java:89)
at io.quarkus.test.vertx.DefaultUniAsserter$4.apply(DefaultUniAsserter.java:86)
at io.smallrye.context.impl.wrappers.SlowContextualFunction.apply(SlowContextualFunction.java:21)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni$UniOnItemTransformToUniProcessor.performInnerSubscription(UniOnItemTransformToUni.java:68)
... 25 more
github-actions / Build summary for b94d060b54acf633e68082a178a0e1ab0b655af6
JVM Tests - JDK 20
io.smallrye.mutiny.CompositeException:
Multiple exceptions caught:
[Exception 0] java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
Raw output
io.smallrye.mutiny.CompositeException:
Multiple exceptions caught:
[Exception 0] java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
[Exception 1] java.lang.NullPointerException: Cannot invoke "org.hibernate.reactive.session.ReactiveSession.isOpen()" because "this.delegate" is null
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap$UniOnItemOrFailureFlatMapProcessor.performInnerSubscription(UniOnItemOrFailureFlatMap.java:89)
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap$UniOnItemOrFailureFlatMapProcessor.onFailure(UniOnItemOrFailureFlatMap.java:65)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownFailure$KnownFailureSubscription.forward(UniCreateFromKnownFailure.java:38)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownFailure.subscribe(UniCreateFromKnownFailure.java:23)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap.subscribe(UniOnItemOrFailureFlatMap.java:27)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni$UniOnItemTransformToUniProcessor.performInnerSubscription(UniOnItemTransformToUni.java:81)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni$UniOnItemTransformToUniProcessor.onItem(UniOnItemTransformToUni.java:57)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownItem$KnownItemSubscription.forward(UniCreateFromKnownItem.java:38)
at io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownItem.subscribe(UniCreateFromKnownItem.java:23)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni.subscribe(UniOnItemTransformToUni.java:25)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.operators.uni.UniOnItemConsume.subscribe(UniOnItemConsume.java:30)
at io.smallrye.mutiny.operators.AbstractUni.subscribe(AbstractUni.java:36)
at io.smallrye.mutiny.groups.UniSubscribe.withSubscriber(UniSubscribe.java:51)
at io.smallrye.mutiny.groups.UniSubscribe.with(UniSubscribe.java:110)
at io.smallrye.mutiny.groups.UniSubscribe.with(UniSubscribe.java:88)
at io.quarkus.test.vertx.RunOnVertxContextTestMethodInvoker$RunTestMethodOnVertxEventLoopContextHandler.doRun(RunOnVertxContextTestMethodInvoker.java:187)
at io.quarkus.test.vertx.RunOnVertxContextTestMethodInvoker$RunTestMethodOnVertxEventLoopContextHandler.handle(RunOnVertxContextTestMethodInvoker.java:174)
at io.quarkus.test.vertx.RunOnVertxContextTestMethodInvoker$RunTestMethodOnVertxEventLoopContextHandler.handle(RunOnVertxContextTestMethodInvoker.java:145)
at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:264)
at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:246)
at io.vertx.core.impl.EventLoopContext.lambda$runOnContext$0(EventLoopContext.java:43)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:1623)
Suppressed: java.lang.NullPointerException: Cannot invoke "org.hibernate.reactive.session.ReactiveSession.isOpen()" because "this.delegate" is null
at org.hibernate.reactive.mutiny.impl.MutinySessionImpl.isOpen(MutinySessionImpl.java:522)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.closeSession(SessionOperations.java:227)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.lambda$withSessionOnDemand$0(SessionOperations.java:81)
at io.smallrye.mutiny.Uni.lambda$eventually$1(Uni.java:580)
at io.smallrye.context.impl.wrappers.SlowContextualBiFunction.apply(SlowContextualBiFunction.java:21)
at io.smallrye.mutiny.groups.UniOnItemOrFailure.lambda$call$2(UniOnItemOrFailure.java:68)
at io.smallrye.context.impl.wrappers.SlowContextualBiFunction.apply(SlowContextualBiFunction.java:21)
at io.smallrye.mutiny.operators.uni.UniOnItemOrFailureFlatMap$UniOnItemOrFailureFlatMapProcessor.performInnerSubscription(UniOnItemOrFailureFlatMap.java:86)
... 32 more
Caused by: java.lang.IllegalStateException: Attempting to open two sessions within the same vert.x context: this suggests a lack of correct chaining of operations.
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.guardAgainstDuplicateOpenRequest(SessionOperations.java:149)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.getSession(SessionOperations.java:172)
at io.quarkus.hibernate.reactive.panache.Panache.getSession(Panache.java:38)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest$MrBean.ping(WithSessionOnDemandTest.java:40)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_Subclass.ping$$superforward(Unknown Source)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_Subclass$$function$$1.apply(Unknown Source)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:73)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:62)
at io.quarkus.hibernate.reactive.panache.common.runtime.AbstractUniInterceptor.proceedUni(AbstractUniInterceptor.java:12)
at io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor.lambda$intercept$0(WithSessionOnDemandInterceptor.java:20)
at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.withSessionOnDemand(SessionOperations.java:78)
at io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor.intercept(WithSessionOnDemandInterceptor.java:20)
at io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor_Bean.intercept(Unknown Source)
at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:42)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:30)
at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:27)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_Subclass.ping(Unknown Source)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest_MrBean_ClientProxy.ping(Unknown Source)
at io.quarkus.hibernate.reactive.panache.test.WithSessionOnDemandTest.lambda$testSharedSession$1(WithSessionOnDemandTest.java:30)
at io.quarkus.test.vertx.DefaultUniAsserter$4.apply(DefaultUniAsserter.java:89)
at io.quarkus.test.vertx.DefaultUniAsserter$4.apply(DefaultUniAsserter.java:86)
at io.smallrye.context.impl.wrappers.SlowContextualFunction.apply(SlowContextualFunction.java:21)
at io.smallrye.mutiny.operators.uni.UniOnItemTransformToUni$UniOnItemTransformToUniProcessor.performInnerSubscription(UniOnItemTransformToUni.java:68)
... 25 more
Loading