Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动报错 #70

Open
resuper opened this issue Jun 11, 2021 · 1 comment
Open

启动报错 #70

resuper opened this issue Jun 11, 2021 · 1 comment

Comments

@resuper
Copy link

resuper commented Jun 11, 2021

10:53:10.274 logback [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxlSsoConfig' defined in file [F:\github-demos\xxl-sso\xxl-sso-server\target\classes\com\xxl\sso\server\config\XxlSsoConfig.class]: Invocation of init method failed; nested exception is redis.clients.jedis.exceptions.JedisExhaustedPoolException: Could not get a resource since the pool is exhausted
10:53:10.278 logback [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
10:53:10.296 logback [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
10:53:10.313 logback [main] ERROR o.s.boot.SpringApplication - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxlSsoConfig' defined in file [F:\github-demos\xxl-sso\xxl-sso-server\target\classes\com\xxl\sso\server\config\XxlSsoConfig.class]: Invocation of init method failed; nested exception is redis.clients.jedis.exceptions.JedisExhaustedPoolException: Could not get a resource since the pool is exhausted
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:882)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at com.xxl.sso.server.XxlSsoServerApplication.main(XxlSsoServerApplication.java:13)
Caused by: redis.clients.jedis.exceptions.JedisExhaustedPoolException: Could not get a resource since the pool is exhausted
at redis.clients.jedis.util.Pool.getResource(Pool.java:53)
at redis.clients.jedis.ShardedJedisPool.getResource(ShardedJedisPool.java:36)
at com.xxl.sso.core.util.JedisUtil.getInstance(JedisUtil.java:105)
at com.xxl.sso.core.util.JedisUtil.init(JedisUtil.java:33)
at com.xxl.sso.server.config.XxlSsoConfig.afterPropertiesSet(XxlSsoConfig.java:25)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792)
... 16 common frames omitted
Caused by: java.util.NoSuchElementException: Unable to validate object
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:486)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:349)
at redis.clients.jedis.util.Pool.getResource(Pool.java:50)
... 22 common frames omitted
Disconnected from the target VM, address: '127.0.0.1:61564', transport: 'socket'

Process finished with exit code 1

@llj37825
Copy link

问题有解决吗

10:53:10.274 logback [main] WARN osbwscAnnotationConfigServletWebServerApplicationContext - 上下文初始化期间遇到异常 - 取消刷新尝试:org.springframework.beans.factory.BeanCreationException:创建名为“xxlSsoConfig”的 bean 在文件 [F:\github-demos 中定义时出错\xxl-sso\xxl-sso-server\target\classes\com\xxl\sso\server\config\XxlSsoConfig.class]: 初始化方法调用失败;嵌套异常是 redis.clients.jedis.exceptions.JedisExhaustedPoolException:由于池耗尽无法获取资源 10:53:10.278 logback [main] INFO oacatalina.core.StandardService - 停止服务 [Tomcat] 10:53:10.296 logback [主要] 信息 osbalConditionEvaluationReportLoggingListener -

启动 ApplicationContext 时出错。要显示条件报告,请在启用“调试”的情况下重新运行您的应用程序。 10:53:10.313 logback [main] 错误 osboot.SpringApplication - 应用程序运行失败 org.springframework.beans.factory.BeanCreationException:创建名称为“xxlSsoConfig”的 bean 在文件 [F:\github-demos\xxl-sso\ xxl-sso-server\target\classes\com\xxl\sso\server\config\XxlSsoConfig.class]: 初始化方法调用失败; 嵌套异常是 redis.clients.jedis.exceptions.JedisExhaustedPoolException: 由于池在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)耗尽,无法获取资源 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) 在 org.springframework.beans.factory .support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 在 org.springframework.beans.factory.support.AbstractBeanFactory。 doGetBean(AbstractBeanFactory.java:321) 在 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) 在 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:882) 在 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) 在 org.springframework.context.support.AbstractApplicationContext .refresh(AbstractApplicationContext.java:550) 在 org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) 在 org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) 在 org.springframework.boot.SpringApplication.run(SpringApplication.java:315) 在 org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) 在 org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) 在 com.xxl.sso.server.XxlSsoServerApplication.main(XxlSsoServerApplication.java :13) 由:redis.clients.jedis.exceptions.JedisExhaustedPoolException 引起:无法获取资源,因为 redis.clients.jedis.util.Pool.getResource(Pool.java:53) 在 redis.clients 的池已耗尽。 jedis.ShardedJedisPool.getResource(ShardedJedisPool.java:36) 在 com.xxl.sso.core.util.JedisUtil.getInstance(JedisUtil.java:105) 在 com.xxl.sso.core.util.JedisUtil.init(JedisUtil. java:33) 在 com.xxl.sso.server.config.XxlSsoConfig.afterPropertiesSet(XxlSsoConfig.java:25) 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855) 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792 帧省略) ... d 16 常见 原因通过:java.util.NoSuchElementException:无法 在 org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:486) 在 org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool. java:349) at redis.clients.jedis.util.Pool.getResource(Pool.java:50) ... 省略了 22 个公共帧 与目标 VM 断开连接,地址:'127.0.0.1:61564',传输:'socket '

进程结束,退出代码为 1

问题有解决吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants