elasticache integration - io.netty.channel.StacklessClosedChannelException #1638
Answered
by
jigneshmpatel
jigneshmpatel
asked this question in
Q&A
-
After deploying on wildfly app server at the run time I am getting following error. Stack trace17:53:50,569 WARN [org.jboss.modules] (lettuce-nioEventLoop-4-1) Failed to define class io.netty.handler.ssl.SslHandler in Module "deployment.elasticacheclient-1.0.0.jar:main" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link io/netty/handler/ssl/SslHandler (Module "deployment.elasticacheclient-1.0.0.jar:main" from Service Module Loader): io/netty/handler/codec/ByteToMessageDecoder
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_275]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [rt.jar:1.8.0_275]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_275]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [rt.jar:1.8.0_275]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274) [jboss-modules.jar:1.5.2.Final]
at org.jboss.osgi.framework.internal.HostBundleClassLoader.loadClassLocal(HostBundleClassLoader.java:73)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.FilteredIterableLocalLoader.loadClassLocal(FilteredIterableLocalLoader.java:44) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:606) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93) [jboss-modules.jar:1.5.2.Final]
at io.lettuce.core.SslConnectionBuilder$SslChannelInitializer.initChannel(SslConnectionBuilder.java:116)
at io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:129)
at io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:112)
at io.netty.channel.AbstractChannelHandlerContext.callHandlerAdded(AbstractChannelHandlerContext.java:938)
at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:609)
at io.netty.channel.DefaultChannelPipeline.access$100(DefaultChannelPipeline.java:46)
at io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1463)
at io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1115)
at io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:650)
at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:502)
at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:417)
at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:474)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_275]
17:53:50,587 WARNING [io.netty.channel.ChannelInitializer] (lettuce-nioEventLoop-4-1) Failed to initialize a channel. Closing: [id: 0xd9fc955c]: java.lang.NoClassDefFoundError: Failed to link io/netty/handler/ssl/SslHandler (Module "deployment.elasticacheclient-1.0.0.jar:main" from Service Module Loader): io/netty/handler/codec/ByteToMessageDecoder
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_275]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [rt.jar:1.8.0_275]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_275]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [rt.jar:1.8.0_275]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274) [jboss-modules.jar:1.5.2.Final]
at org.jboss.osgi.framework.internal.HostBundleClassLoader.loadClassLocal(HostBundleClassLoader.java:73)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.FilteredIterableLocalLoader.loadClassLocal(FilteredIterableLocalLoader.java:44) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:606) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351) [jboss-modules.jar:1.5.2.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93) [jboss-modules.jar:1.5.2.Final]
at io.lettuce.core.SslConnectionBuilder$SslChannelInitializer.initChannel(SslConnectionBuilder.java:116)
at io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:129)
at io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:112)
at io.netty.channel.AbstractChannelHandlerContext.callHandlerAdded(AbstractChannelHandlerContext.java:938)
at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:609)
at io.netty.channel.DefaultChannelPipeline.access$100(DefaultChannelPipeline.java:46)
at io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1463)
at io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1115)
at io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:650)
at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:502)
at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:417)
at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:474)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_275]
17:53:50,655 WARNING [io.lettuce.core.cluster.topology.DefaultClusterTopologyRefresh] (lettuce-nioEventLoop-4-1) Unable to connect to [clustercfg.cachemanagerdev.k3jurk.use1.cache.amazonaws.com:6379]: io.netty.channel.StacklessClosedChannelException
17:53:50,669 ERROR [com.icare.elasticacheclnt.util.ConnectToRedisCluster] (default task-74) Could not get a resource from the pool: io.lettuce.core.RedisConnectionException: Unable to establish a connection to Redis Cluster
at io.lettuce.core.cluster.RedisClusterClient.lambda$assertInitialPartitions$32(RedisClusterClient.java:867)
at io.lettuce.core.cluster.RedisClusterClient.get(RedisClusterClient.java:886)
at io.lettuce.core.cluster.RedisClusterClient.assertInitialPartitions(RedisClusterClient.java:866)
at io.lettuce.core.cluster.RedisClusterClient.connect(RedisClusterClient.java:389)
at io.lettuce.core.cluster.RedisClusterClient.connect(RedisClusterClient.java:366)
at io.lettuce.core.support.ConnectionPoolSupport$RedisPooledObjectFactory.create(ConnectionPoolSupport.java:211)
at io.lettuce.core.support.ConnectionPoolSupport$RedisPooledObjectFactory.create(ConnectionPoolSupport.java:201)
at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:58) [commons-pool2-2.0.jar:2.0]
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:918) [commons-pool2-2.0.jar:2.0]
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:431) [commons-pool2-2.0.jar:2.0]
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:356) [commons-pool2-2.0.jar:2.0]
at io.lettuce.core.support.ConnectionPoolSupport$1.borrowObject(ConnectionPoolSupport.java:121)
at io.lettuce.core.support.ConnectionPoolSupport$1.borrowObject(ConnectionPoolSupport.java:117)
at com.icare.elasticacheclnt.util.ConnectToRedisCluster.getWrappedSyncConnection(ConnectToRedisCluster.java:96)
at com.icare.elasticacheclnt.service.impl.ElastiCacheClientImpl.getConnectionFromPool(ElastiCacheClientImpl.java:200)
at com.icare.elasticacheclnt.service.impl.ElastiCacheClientImpl.putObjectInCache(ElastiCacheClientImpl.java:120)
at com.icare.hbase.admin.service.impl.AdminSrvcImpl.addUserInCache(AdminSrvcImpl.java:243) [AdminSrvcImpl.class:]
at com.icare.filter.SecurityFilter.updateCache(SecurityFilter.java:736) [classes:]
at com.icare.filter.SecurityFilter.doFilter(SecurityFilter.java:588) [classes:]
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805) [undertow-core-1.4.0.Final.jar:1.4.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_275]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_275]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_275]
Caused by: io.lettuce.core.cluster.topology.DefaultClusterTopologyRefresh$CannotRetrieveClusterPartitions: Cannot retrieve cluster partitions from [rediss://****************@clustercfg.cachemanagerdev.k3jurk.use1.cache.amazonaws.com:6379]
Details:
[rediss://****************@clustercfg.cachemanagerdev.k3jurk.use1.cache.amazonaws.com:6379]: io.netty.channel.StacklessClosedChannelException
Suppressed: io.lettuce.core.RedisConnectionException: Unable to connect to [clustercfg.cachemanagerdev.k3jurk.use1.cache.amazonaws.com:6379]: io.netty.channel.StacklessClosedChannelException
at io.lettuce.core.cluster.topology.DefaultClusterTopologyRefresh.lambda$openConnections$11(DefaultClusterTopologyRefresh.java:339)
at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774) [rt.jar:1.8.0_275]
at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750) [rt.jar:1.8.0_275]
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488) [rt.jar:1.8.0_275]
at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990) [rt.jar:1.8.0_275]
at io.lettuce.core.AbstractRedisClient.lambda$initializeChannelAsync0$4(AbstractRedisClient.java:405)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:552)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)
at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)
at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)
at io.netty.channel.AbstractChannel$AbstractUnsafe.safeSetFailure(AbstractChannel.java:1009)
at io.netty.channel.AbstractChannel$AbstractUnsafe.ensureOpen(AbstractChannel.java:992)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:237)
at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1342)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:548)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:533)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:517)
at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:978)
at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:253)
at io.netty.bootstrap.Bootstrap$3.run(Bootstrap.java:250)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_275]
Caused by: io.netty.channel.StacklessClosedChannelException
at io.netty.channel.AbstractChannel$AbstractUnsafe.ensureOpen(ChannelPromise)(Unknown Source)
17:53:50,686 ERROR [stderr] (default task-74) io.lettuce.core.RedisConnectionException: Unable to establish a connection to Redis Cluster
17:53:50,686 ERROR [stderr] (default task-74) at io.lettuce.core.cluster.RedisClusterClient.lambda$assertInitialPartitions$32(RedisClusterClient.java:867)
17:53:50,686 ERROR [stderr] (default task-74) at io.lettuce.core.cluster.RedisClusterClient.get(RedisClusterClient.java:886)
17:53:50,686 ERROR [stderr] (default task-74) at io.lettuce.core.cluster.RedisClusterClient.assertInitialPartitions(RedisClusterClient.java:866)
17:53:50,686 ERROR [stderr] (default task-74) at io.lettuce.core.cluster.RedisClusterClient.connect(RedisClusterClient.java:389)
17:53:50,686 ERROR [stderr] (default task-74) at io.lettuce.core.cluster.RedisClusterClient.connect(RedisClusterClient.java:366)
17:53:50,686 ERROR [stderr] (default task-74) at io.lettuce.core.support.ConnectionPoolSupport$RedisPooledObjectFactory.create(ConnectionPoolSupport.java:211)
17:53:50,686 ERROR [stderr] (default task-74) at io.lettuce.core.support.ConnectionPoolSupport$RedisPooledObjectFactory.create(ConnectionPoolSupport.java:201)
17:53:50,687 ERROR [stderr] (default task-74) at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:58)
17:53:50,687 ERROR [stderr] (default task-74) at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:918)
17:53:50,687 ERROR [stderr] (default task-74) at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:431)
17:53:50,687 ERROR [stderr] (default task-74) at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:356)
17:53:50,687 ERROR [stderr] (default task-74) at io.lettuce.core.support.ConnectionPoolSupport$1.borrowObject(ConnectionPoolSupport.java:121)
17:53:50,687 ERROR [stderr] (default task-74) at io.lettuce.core.support.ConnectionPoolSupport$1.borrowObject(ConnectionPoolSupport.java:117)
17:53:50,687 ERROR [stderr] (default task-74) at com.icare.elasticacheclnt.util.ConnectToRedisCluster.getWrappedSyncConnection(ConnectToRedisCluster.java:96)
17:53:50,687 ERROR [stderr] (default task-74) at com.icare.elasticacheclnt.service.impl.ElastiCacheClientImpl.getConnectionFromPool(ElastiCacheClientImpl.java:200)
17:53:50,687 ERROR [stderr] (default task-74) at com.icare.elasticacheclnt.service.impl.ElastiCacheClientImpl.putObjectInCache(ElastiCacheClientImpl.java:120)
17:53:50,687 ERROR [stderr] (default task-74) at com.icare.hbase.admin.service.impl.AdminSrvcImpl.addUserInCache(AdminSrvcImpl.java:243)
17:53:50,687 ERROR [stderr] (default task-74) at com.icare.filter.SecurityFilter.updateCache(SecurityFilter.java:736)
17:53:50,687 ERROR [stderr] (default task-74) at com.icare.filter.SecurityFilter.doFilter(SecurityFilter.java:588)
17:53:50,687 ERROR [stderr] (default task-74) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
17:53:50,687 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
17:53:50,687 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
17:53:50,688 ERROR [stderr] (default task-74) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
17:53:50,688 ERROR [stderr] (default task-74) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
17:53:50,689 ERROR [stderr] (default task-74) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
17:53:50,689 ERROR [stderr] (default task-74) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
17:53:50,690 ERROR [stderr] (default task-74) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805)
17:53:50,690 ERROR [stderr] (default task-74) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
17:53:50,690 ERROR [stderr] (default task-74) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
17:53:50,690 ERROR [stderr] (default task-74) at java.lang.Thread.run(Thread.java:748)
17:53:50,690 ERROR [stderr] (default task-74) Caused by: io.lettuce.core.cluster.topology.DefaultClusterTopologyRefresh$CannotRetrieveClusterPartitions: Cannot retrieve cluster partitions from [rediss://****************@clustercfg.cachemanagerdev.k3jurk.use1.cache.amazonaws.com:6379]
17:53:50,690 ERROR [stderr] (default task-74)
17:53:50,690 ERROR [stderr] (default task-74) Details:
17:53:50,690 ERROR [stderr] (default task-74) [rediss://****************@clustercfg.cachemanagerdev.k3jurk.use1.cache.amazonaws.com:6379]: io.netty.channel.StacklessClosedChannelException
17:53:50,690 ERROR [stderr] (default task-74)
17:53:50,690 ERROR [stderr] (default task-74) Suppressed: io.lettuce.core.RedisConnectionException: Unable to connect to [clustercfg.cachemanagerdev.k3jurk.use1.cache.amazonaws.com:6379]: io.netty.channel.StacklessClosedChannelException
17:53:50,690 ERROR [stderr] (default task-74) at io.lettuce.core.cluster.topology.DefaultClusterTopologyRefresh.lambda$openConnections$11(DefaultClusterTopologyRefresh.java:339)
17:53:50,690 ERROR [stderr] (default task-74) at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)
17:53:50,690 ERROR [stderr] (default task-74) at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)
17:53:50,690 ERROR [stderr] (default task-74) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
17:53:50,690 ERROR [stderr] (default task-74) at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)
17:53:50,691 ERROR [stderr] (default task-74) at io.lettuce.core.AbstractRedisClient.lambda$initializeChannelAsync0$4(AbstractRedisClient.java:405)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:552)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.channel.AbstractChannel$AbstractUnsafe.safeSetFailure(AbstractChannel.java:1009)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.channel.AbstractChannel$AbstractUnsafe.ensureOpen(AbstractChannel.java:992)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:237)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1342)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:548)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:533)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:517)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:978)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:253)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.bootstrap.Bootstrap$3.run(Bootstrap.java:250)
17:53:50,691 ERROR [stderr] (default task-74) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
17:53:50,692 ERROR [stderr] (default task-74) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
17:53:50,692 ERROR [stderr] (default task-74) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
17:53:50,692 ERROR [stderr] (default task-74) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
17:53:50,692 ERROR [stderr] (default task-74) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
17:53:50,692 ERROR [stderr] (default task-74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
17:53:50,692 ERROR [stderr] (default task-74) at java.lang.Thread.run(Thread.java:748)
17:53:50,692 ERROR [stderr] (default task-74) Caused by: io.netty.channel.StacklessClosedChannelException
17:53:50,692 ERROR [stderr] (default task-74) at io.netty.channel.AbstractChannel$AbstractUnsafe.ensureOpen(ChannelPromise)(Unknown Source) This is how the method looks to get connection from the pool. public StatefulRedisClusterConnection <String,String> getWrappedSyncConnection(){
logger.info("inside getWrappedSyncConnection method");
StatefulRedisClusterConnection<String,String> connection = null;
try {
logger.info("pool Max Idle"+pool.getMaxIdle());
logger.info("Pool Min Idle"+pool.getMinIdle());
Partitions partitions = pool.borrowObject().getPartitions();
logger.info("total partitions"+partitions.size());
connection = pool.borrowObject();
} catch(Exception e){
logger.error("Could not get a resource from the pool", e);
e.printStackTrace();
}
return connection;
} This is how my code for the connection RedisURI redisURI = RedisURI.Builder.redis(configProperties.getProperty("clusterhost"), Integer.parseInt(configProperties.getProperty("clusterport"))).withPassword(authpswdcharArray).withSsl(true).build(); The standalone program works, but when I tried to use from container(i.e. wildfly) it throws an exception. |
Beta Was this translation helpful? Give feedback.
Answered by
jigneshmpatel
Mar 24, 2021
Replies: 1 comment 2 replies
-
I resolved this issue. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jigneshmpatel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I resolved this issue.