ResourceResolver getting closed
Inside ThreadPoolManager calling a service in background with Servlets request.getResourceResolver(). And its getting closed
private void setUpTreadPool() {
ModifiableThreadPoolConfig config = new ModifiableThreadPoolConfig();
config.setMinPoolSize(0); // if no work needs to be done, we don't need a thread hanging around
config.setKeepAliveTime(10000);
config.setPriority(ThreadPoolConfig.ThreadPriority.MIN);
myThreadPool = threadPoolManager.create(config, threadPoolName);
}
myThreadPool.execute(() -> {service(request.getResourceResolver();});and executing with this call .