org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied f
Posted 不怕天黑
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied f相关的知识,希望对你有一定的参考价值。
tationProcessor‘ to allow for resolving potential circular references
DEBUG 2018-05-28 11:32:35,016 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Finished creating instance of bean ‘org.springframework.context.annotation.internalAutowiredAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,017 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: Creating shared instance of singleton bean ‘org.springframework.context.annotation.internalRequiredAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,017 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Creating instance of bean ‘org.springframework.context.annotation.internalRequiredAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,017 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Eagerly caching bean ‘org.springframework.context.annotation.internalRequiredAnnotationProcessor‘ to allow for resolving potential circular references
DEBUG 2018-05-28 11:32:35,017 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Finished creating instance of bean ‘org.springframework.context.annotation.internalRequiredAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,017 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: Creating shared instance of singleton bean ‘org.springframework.context.annotation.internalCommonAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,018 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Creating instance of bean ‘org.springframework.context.annotation.internalCommonAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,018 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Eagerly caching bean ‘org.springframework.context.annotation.internalCommonAnnotationProcessor‘ to allow for resolving potential circular references
DEBUG 2018-05-28 11:32:35,018 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Finished creating instance of bean ‘org.springframework.context.annotation.internalCommonAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,018 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: Creating shared instance of singleton bean ‘org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor‘
DEBUG 2018-05-28 11:32:35,019 [pageController,userController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,reslvoer,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#2,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; parent: org.s[email protected]1f7cf08
DEBUG 2018-05-28 11:32:35,022 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: Creating shared instance of singleton bean ‘pageController‘
DEBUG 2018-05-28 11:32:35,022 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Creating instance of bean ‘pageController‘
DEBUG 2018-05-28 11:32:35,023 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Eagerly caching bean ‘pageController‘ to allow for resolving potential circular references
DEBUG 2018-05-28 11:32:35,023 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Finished creating instance of bean ‘pageController‘
DEBUG 2018-05-28 11:32:35,023 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: Creating shared instance of singleton bean ‘userController‘
DEBUG 2018-05-28 11:32:35,023 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Creating instance of bean ‘userController‘
DEBUG 2018-05-28 11:32:35,024 org.springframework.beans.factory.annotation.InjectionMetadata: Registered injected element on class [com.xsw.controller.UserController]: AutowiredFieldElement for private com.xsw.service.UserService com.xsw.controller.UserController.userService
DEBUG 2018-05-28 11:32:35,024 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Eagerly caching bean ‘userController‘ to allow for resolving potential circular references
DEBUG 2018-05-28 11:32:35,024 org.springframework.beans.factory.annotation.InjectionMetadata: Processing injected method of bean ‘userController‘: AutowiredFieldElement for private com.xsw.service.UserService com.xsw.controller.UserController.userService
DEBUG 2018-05-28 11:32:35,025 org.springframework.beans.factory.support.AbstractBeanFactory: Returning cached instance of singleton bean ‘userService‘
DEBUG 2018-05-28 11:32:35,025 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor: Autowiring by type from bean name ‘userController‘ to bean named ‘userService‘
DEBUG 2018-05-28 11:32:35,025 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Finished creating instance of bean ‘userController‘
DEBUG 2018-05-28 11:32:35,025 org.springframework.beans.factory.support.AbstractBeanFactory: Returning cached instance of singleton bean ‘org.springframework.context.annotation.internalConfigurationAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,025 org.springframework.beans.factory.support.AbstractBeanFactory: Returning cached instance of singleton bean ‘org.springframework.context.annotation.internalAutowiredAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,025 org.springframework.beans.factory.support.AbstractBeanFactory: Returning cached instance of singleton bean ‘org.springframework.context.annotation.internalRequiredAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,025 org.springframework.beans.factory.support.AbstractBeanFactory: Returning cached instance of singleton bean ‘org.springframework.context.annotation.internalCommonAnnotationProcessor‘
DEBUG 2018-05-28 11:32:35,025 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: Creating shared instance of singleton bean ‘mvcContentNegotiationManager‘
DEBUG 2018-05-28 11:32:35,025 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Creating instance of bean ‘mvcContentNegotiationManager‘
DEBUG 2018-05-28 11:32:35,026 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Eagerly caching bean ‘mvcContentNegotiationManager‘ to allow for resolving potential circular references
DEBUG 2018-05-28 11:32:35,038 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Invoking afterPropertiesSet() on bean with name ‘mvcContentNegotiationManager‘
DEBUG 2018-05-28 11:32:35,040 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory: Finished creating instance 5-28 11:32:47,645 org.springframework.transaction.support.AbstractPlatformTransactionManager: Creating new transaction with name [com.xsw.service.UserService.save]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT; ‘‘
DEBUG 2018-05-28 11:32:47,653 org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver: Resolving exception from handler [public java.lang.String com.xsw.controller.UserController.saveUser(com.xsw.entity.User)]: org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user ‘root‘@‘localhost‘ (using password: YES))
DEBUG 2018-05-28 11:32:47,657 org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver: Resolving exception from handler [public java.lang.String com.xsw.controller.UserController.saveUser(com.xsw.entity.User)]: org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user ‘root‘@‘localhost‘ (using password: YES))
DEBUG 2018-05-28 11:32:47,657 org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver: Resolving exception from handler [public java.lang.String com.xsw.controller.UserController.saveUser(com.xsw.entity.User)]: org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user ‘root‘@‘localhost‘ (using password: YES))
DEBUG 2018-05-28 11:32:47,658 org.springframework.web.servlet.FrameworkServlet: Could not complete request
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user ‘root‘@‘localhost‘ (using password: YES))
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:241)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:372)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:417)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:255)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
at com.xsw.service.UserService$$EnhancerByCGLIB$$4a258266.save(<generated>)
at com.xsw.controller.UserController.saveUser(UserController.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user ‘root‘@‘localhost‘ (using password: YES))
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1244)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:882)
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:203)
... 49 more
Caused by: java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:919)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3996)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1284)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2142)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:781)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:284)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1266)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1240)
... 51 more
五月 28, 2018 11:32:47 上午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [Dispatcher] in context with path [/shop] threw exception [Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user ‘root‘@‘localhost‘ (using password: YES))] with root cause
java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:919)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3996)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1284)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2142)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:781)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:284)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1266)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1240)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:882)
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:203)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:372)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:417)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:255)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
at com.xsw.service.UserService$$EnhancerByCGLIB$$4a258266.save(<generated>)
at com.xsw.controller.UserController.saveUser(UserController.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:744)
以上是关于org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied f的主要内容,如果未能解决你的问题,请参考以下文章