Somehow the following exception was coming up but was not printed anywhere and after that illegal pop exception was thrown.
Caused by: java.lang.NullPointerException: Cannot invoke "org.hibernate.engine.spi.SharedSessionContractImplementor.getPersistenceContext()" because "this.session" is null
at org.hibernate.collection.spi.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:289)
at org.hibernate.collection.spi.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:148)
at org.hibernate.collection.spi.PersistentSet.size(PersistentSet.java:151)
at graphql.util.FpKit.toSize(FpKit.java:179)
at graphql.execution.ExecutionStrategy.completeValueForList(ExecutionStrategy.java:518)
at graphql.execution.ExecutionStrategy.completeValueForList(ExecutionStrategy.java:503)
at graphql.execution.ExecutionStrategy.completeValue(ExecutionStrategy.java:442)
at graphql.execution.ExecutionStrategy.completeField(ExecutionStrategy.java:407)
at graphql.execution.ExecutionStrategy.lambda$resolveFieldWithInfo$1(ExecutionStrategy.java:213)
at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684)
... 35 more