一、该问题的重现步骤是什么?
1. 生产环境启动报错
2.
3.
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
2.9.1 windows server
四、请提供详细的错误堆栈信息,这很重要。
NFO: Sentinel log charset is: utf-8
INFO: Sentinel log base directory is: C:\Users\Administrator\logs\csp\
INFO: Sentinel log name use pid is: false
2023-08-29 18:27:31.725 WARN 17988 --- [ main] io.undertow.websockets.jsr : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2023-08-29 18:27:31.762 INFO 17988 --- [ main] io.undertow.servlet : Initializing Spring embedded WebApplicationContext
2023-08-29 18:27:31.763 INFO 17988 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 9134 ms
2023-08-29 18:27:32.181 WARN 17988 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2023-08-29 18:27:32.181 INFO 17988 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2023-08-29 18:27:32.212 INFO 17988 --- [ main] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@5d25e6bb
2023-08-29 18:27:32.490 INFO 17988 --- [ main] o.s.b.a.e.web.ServletEndpointRegistrar : Registered '/actuator/hystrix.stream' to hystrix.stream-actuator-endpoint
2023-08-29 18:27:33.301 INFO 17988 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2023-08-29 18:27:34.364 INFO 17988 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2023-08-29 18:27:35.345 WARN 17988 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2023-08-29 18:27:35.345 INFO 17988 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2023-08-29 18:27:36.805 INFO 17988 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2023-08-29 18:27:36.938 INFO 17988 --- [ main] c.a.c.s.SentinelWebAutoConfiguration : [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
2023-08-29 18:27:36.978 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /api/list}" onto org.springblade.core.log.controller.LogApiController#list(Map, Query)
2023-08-29 18:27:36.978 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /api/detail}" onto org.springblade.core.log.controller.LogApiController#detail(LogApi)
2023-08-29 18:27:36.981 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /error/list}" onto org.springblade.core.log.controller.LogErrorController#list(Map, Query)
2023-08-29 18:27:36.982 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /error/detail}" onto org.springblade.core.log.controller.LogErrorController#detail(LogError)
2023-08-29 18:27:36.983 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /usual/list}" onto org.springblade.core.log.controller.LogUsualController#list(Map, Query)
2023-08-29 18:27:36.984 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /usual/detail}" onto org.springblade.core.log.controller.LogUsualController#detail(LogUsual)
2023-08-29 18:27:36.984 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{POST /log/saveErrorLog}" onto org.springblade.core.log.feign.LogClient#saveErrorLog(LogError)
2023-08-29 18:27:36.985 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{POST /log/saveApiLog}" onto org.springblade.core.log.feign.LogClient#saveApiLog(LogApi)
2023-08-29 18:27:36.986 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{POST /log/saveUsualLog}" onto org.springblade.core.log.feign.LogClient#saveUsualLog(LogUsual)
2023-08-29 18:27:36.988 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /error, produces [text/html]}" onto org.springblade.core.log.error.BladeErrorController#errorHtml(HttpServletRequest, HttpServletResponse)
2023-08-29 18:27:36.988 INFO 17988 --- [ main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /error}" onto org.springblade.core.log.error.BladeErrorController#error(HttpServletRequest)
2023-08-29 18:27:38.400 INFO 17988 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
2023-08-29 18:27:38.424 INFO 17988 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'Nacos-Watch-Task-Scheduler'
2023-08-29 18:27:40.897 INFO 17988 --- [ main] o.s.c.b.config.BladeRetryConfiguration : configServerRetryInterceptor: Changing backOffOptions to initial: 1000, multiplier: 1.2, maxInterval: 5000
2023-08-29 18:27:41.297 INFO 17988 --- [ main] o.s.core.log.logger.BladeLogger : blade-log: BladeLogger init success!
2023-08-29 18:27:41.476 WARN 17988 --- [ main] o.s.c.openfeign.FeignClientFactoryBean : The provided URL is empty. Will try picking an instance via load-balancing.
2023-08-29 18:27:42.018 INFO 17988 --- [ main] org.redisson.Version : Redisson 3.11.6
2023-08-29 18:27:44.156 WARN 17988 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisLockClient' defined in class path resource [org/springblade/core/redis/lock/BladeLockAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springblade.core.redis.lock.RedisLockClient]: Factory method 'redisLockClient' threw exception; nested exception is java.lang.IllegalStateException: failed to create a child event loop
2023-08-29 18:27:44.495 INFO 17988 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
2023-08-29 18:27:44.528 INFO 17988 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2023-08-29 18:27:44.540 INFO 17988 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2023-08-29 18:27:44.559 INFO 17988 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-08-29 18:27:44.634 ERROR 17988 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisLockClient' defined in class path resource [org/springblade/core/redis/lock/BladeLockAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springblade.core.redis.lock.RedisLockClient]: Factory method 'redisLockClient' threw exception; nested exception is java.lang.IllegalStateException: failed to create a child event loop
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:637)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1341)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1181)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140)
at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50)
at org.springblade.core.log.LogApplication.main(LogApplication.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springblade.core.redis.lock.RedisLockClient]: Factory method 'redisLockClient' threw exception; nested exception is java.lang.IllegalStateException: failed to create a child event loop
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:652)
... 28 common frames omitted
Caused by: java.lang.IllegalStateException: failed to create a child event loop
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:88)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:60)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:49)
at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:59)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:86)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:81)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:68)
at org.redisson.connection.MasterSlaveConnectionManager.<init>(MasterSlaveConnectionManager.java:202)
at org.redisson.connection.MasterSlaveConnectionManager.<init>(MasterSlaveConnectionManager.java:163)
at org.redisson.connection.SingleConnectionManager.<init>(SingleConnectionManager.java:34)
at org.redisson.config.ConfigSupport.createConnectionManager(ConfigSupport.java:194)
at org.redisson.Redisson.<init>(Redisson.java:120)
at org.redisson.Redisson.create(Redisson.java:160)
at org.springblade.core.redis.lock.BladeLockAutoConfiguration.redissonClient(BladeLockAutoConfiguration.java:149)
at org.springblade.core.redis.lock.BladeLockAutoConfiguration.redisLockClient(BladeLockAutoConfiguration.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
... 29 common frames omitted
Caused by: io.netty.channel.ChannelException: failed to open a new selector
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:175)
at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:142)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:146)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:37)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:84)
... 48 common frames omitted
Caused by: java.io.IOException: Unable to establish loopback connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)
at java.security.AccessController.doPrivileged(Native Method)
at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:171)
at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
at java.nio.channels.Pipe.open(Pipe.java:155)
at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127)
at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:173)
... 52 common frames omitted
Caused by: java.net.SocketException: No buffer space available (maximum connections reached?): connect
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:454)
at sun.nio.ch.Net.connect(Net.java:446)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)
... 60 common frames omitted
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端