添加软件源未能连接到服务器,程序无法连接到服务器不知道怎么解决

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

HTTP状态500 - 请求处理失败; 嵌套异常是org.mybatis.spring.MyBatisSystemException:嵌套异常是org.apache.ibatis.exceptions.PersistenceException:

类型异常报告

消息 请求处理失败; 嵌套异常是org.mybatis.spring.MyBatisSystemException:嵌套异常是org.apache.ibatis.exceptions.PersistenceException:

description 服务器遇到内部错误,导致无法完成此请求。

例外

org.springframework.web.util.NestedServletException:请求处理失败; 嵌套异常是org.mybatis.spring.MyBatisSystemException:嵌套异常是org.apache.ibatis.exceptions.PersistenceException:###查询数据库时出错。原因:org.springframework.jdbc.CannotGetJdbcConnectionException:无法获取JDBC连接; 嵌套异常是org.apache.commons.dbcp.SQLNestedException:无法创建PoolableConnectionFactory(无法创建与数据库服务器的连接。)### zzz / mapper / cateMapper.xml中可能存在错误###错误可能涉及zzz.mapper.CateMapper.getCate###执行查询时发生错误###原因:org.springframework.jdbc.CannotGetJdbcConnectionException:无法获取JDBC连接; 嵌套异常是org.apache.commons.dbcp.SQLNestedException:无法创建PoolableConnectionFactory(无法创建与数据库服务器的连接。)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)javax.servlet.http.HttpServlet.service(HttpServlet.java:622)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

根本原因

org.mybatis.spring.MyBatisSystemException:嵌套异常是org.apache.ibatis.exceptions.PersistenceException: ###查询数据库时出错。原因:org.springframework.jdbc.CannotGetJdbcConnectionException:无法获取JDBC连接; 嵌套异常是org.apache.commons.dbcp.SQLNestedException:无法创建PoolableConnectionFactory(无法创建与数据库服务器的连接。)### zzz / mapper / cateMapper.xml中可能存在错误###错误可能涉及zzz.mapper.CateMapper.getCate###执行查询时发生错误###原因:org.springframework.jdbc.CannotGetJdbcConnectionException:无法获取JDBC连接; 嵌套异常是org.apache.commons.dbcp.SQLNestedException:无法创建PoolableConnectionFactory(无法创建与数据库服务器的连接。)org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:75)org.mybatis.spring.SqlSessionTemplate $ SqlSessionInterceptor.invoke(SqlSessionTemplate.java:371)com.sun.proxy。$ Proxy22.selectList(未知来源)org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:198)org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:119)org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:63)org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)com.sun.proxy。$ Proxy33.getCate(未知来源)zzz.service.Impl.CateServiceImpl.getCate(CateServiceImpl.java:26)zzz.action.MotionAction.MotionPage(MotionAction.java:30)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)javax.servlet.http.HttpServlet.service(HttpServlet.java:622)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

根本原因

org.apache.ibatis.exceptions.PersistenceException: ###查询数据库时出错。原因:org.springframework.jdbc.CannotGetJdbcConnectionException:无法获取JDBC连接; 嵌套异常是org.apache.commons.dbcp.SQLNestedException:无法创建PoolableConnectionFactory(无法创建与数据库服务器的连接。)### zzz / mapper / cateMapper.xml中可能存在错误###错误可能涉及zzz.mapper.CateMapper.getCate###执行查询时发生错误###原因:org.springframework.jdbc.CannotGetJdbcConnectionException:无法获取JDBC连接; 嵌套异常是org.apache.commons.dbcp.SQLNestedException:无法创建PoolableConnectionFactory(无法创建与数据库服务器的连接。)org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:111)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.mybatis.spring.SqlSessionTemplate $ SqlSessionInterceptor.invoke(SqlSessionTemplate.java:358)com.sun.proxy。$ Proxy22.selectList(未知来源)org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:198)org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:119)org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:63)org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)com.sun.proxy。$ Proxy33.getCate(未知来源)zzz.service.Impl.CateServiceImpl.getCate(CateServiceImpl.java:26)zzz.action.MotionAction.MotionPage(MotionAction.java:30)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)javax.servlet.http.HttpServlet.service(HttpServlet.java:622)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

根本原因

org.springframework.jdbc.CannotGetJdbcConnectionException:无法获取JDBC连接; 嵌套异常是org.apache.commons.dbcp.SQLNestedException:无法创建PoolableConnectionFactory(无法创建与数据库服务器的连接。)org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:81)org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67)org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:279)org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:72)org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:59)org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:267)org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:137)org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:96)org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:77)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.mybatis.spring.SqlSessionTemplate $ SqlSessionInterceptor.invoke(SqlSessionTemplate.java:358)com.sun.proxy。$ Proxy22.selectList(未知来源)org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:198)org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:119)org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:63)org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)com.sun.proxy。$ Proxy33.getCate(未知来源)zzz.service.Impl.CateServiceImpl.getCate(CateServiceImpl.java:26)zzz.action.MotionAction.MotionPage(MotionAction.java:30)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)javax.servlet.http.HttpServlet.service(HttpServlet.java:622)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

根本原因

org.apache.commons.dbcp.SQLNestedException:无法创建PoolableConnectionFactory(无法创建与数据库服务器的连接。)org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:81)org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67)org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:279)org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:72)org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:59)org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:267)org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:137)org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:96)org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:77)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.mybatis.spring.SqlSessionTemplate $ SqlSessionInterceptor.invoke(SqlSessionTemplate.java:358)com.sun.proxy。$ Proxy22.selectList(未知来源)org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:198)org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:119)org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:63)org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)com.sun.proxy。$ Proxy33.getCate(未知来源)zzz.service.Impl.CateServiceImpl.getCate(CateServiceImpl.java:26)zzz.action.MotionAction.MotionPage(MotionAction.java:30)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)javax.servlet.http.HttpServlet.service(HttpServlet.java:622)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

根本原因

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:无法创建与数据库服务器的连接。sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)java.lang.reflect.Constructor.newInstance(Unknown Source)com.mysql.jdbc.Util.handleNewInstance(Util.java:389)com.mysql.jdbc.Util.getInstance(Util.java:372)com.mysql.jdbc.SQLError.createSQLException(SQLError.java:958)com.mysql.jdbc.SQLError.createSQLException(SQLError.java:937)com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)com.mysql.jdbc.SQLError.createSQLException(SQLError.java:872)com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2316)com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)com.mysql.jdbc.ConnectionImpl。(ConnectionImpl.java:794)com.mysql.jdbc.JDBC4Connection。(JDBC4Connection.java:44)sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)java.lang.reflect.Constructor.newInstance(Unknown Source)com.mysql.jdbc.Util.handleNewInstance(Util.java:389)com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:81)org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67)org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:279)org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:72)org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:59)org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:267)org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:137)org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:96)org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:77)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.mybatis.spring.SqlSessionTemplate $ SqlSessionInterceptor.invoke(SqlSessionTemplate.java:358)com.sun.proxy。$ Proxy22.selectList(未知来源)org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:198)org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:119)org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:63)org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)com.sun.proxy。$ Proxy33.getCate(未知来源)zzz.service.Impl.CateServiceImpl.getCate(CateServiceImpl.java:26)zzz.action.MotionAction.MotionPage(MotionAction.java:30)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)javax.servlet.http.HttpServlet.service(HttpServlet.java:622)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

根本原因

显示java.lang.NullPointerExceptioncom.mysql.jdbc.ConnectionImpl.getServerCharset(ConnectionImpl.java:2989)com.mysql.jdbc.MysqlIO.sendConnectionAttributes(MysqlIO.java:1873)com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1802)com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206)com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2239)com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2270)com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)com.mysql.jdbc.ConnectionImpl。(ConnectionImpl.java:794)com.mysql.jdbc.JDBC4Connection。(JDBC4Connection.java:44)sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)java.lang.reflect.Constructor.newInstance(Unknown Source)com.mysql.jdbc.Util.handleNewInstance(Util.java:389)com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:81)org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67)org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:279)org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:72)org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:59)org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:267)org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:137)org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:96)org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:77)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108)org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.mybatis.spring.SqlSessionTemplate $ SqlSessionInterceptor.invoke(SqlSessionTemplate.java:358)com.sun.proxy。$ Proxy22.selectList(未知来源)org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:198)org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:119)org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:63)org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)com.sun.proxy。$ Proxy33.getCate(未知来源)zzz.service.Impl.CateServiceImpl.getCate(CateServiceImpl.java:26)zzz.action.MotionAction.MotionPage(MotionAction.java:30)sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)java.lang.reflect.Method.invoke(未知来源)org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)javax.servlet.http.HttpServlet.service(HttpServlet.java:622)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

note备注 根本原因的完整堆栈跟踪在Apache Tomcat /8.0.47日志中。

参与评论 您还未登录,请先 登录 后发表或查看评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:深蓝海洋 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值