Could not get JDBC Connection; Nested exception is org.apache.commons.dbcp.SQLNestedException:

Source: Internet
Author: User

July 17, 2014 4:56:01afternoon Org.apache.catalina.core.StandardWrapperValve InvokeSEVERE:Servlet.service () forservlet [Dispatcher] in context with path [] threw exception [Request processing failed; Nested exception is org.mybatis.spring.MyBatisSystemException:nested E  Xception is org.apache.ibatis.exceptions.PersistenceException: # # # Error querying database. Cause:org.springframework.jdbc.CannotGetJdbcConnectionException:Could not get JDBC Connection; Nested exception is org.apache.commons.dbcp.SQLNestedException:Cannot create Poolableconnectionfactory (Io exception: the Network Adapter could not establish the connection) # # # # The error may be exist in * * *. xml### the error may involve com.supervisory.dao.securityservicedao.selectuserlogin### the error occurred whileexecuting a query### Cause:org.springframework.jdbc.CannotGetJdbcConnectionException:Could not get JDBC Connection; Nested exception is org.apache.commons.dbcp.SQLNestedException:Cannot create Poolableconnectionfactory (Io exception: the Network Adapter could not establish the connection)] with root Causejava.sql.SQLException:Io exception: the network Adapter Coul D not establish the connection at Oracle.jdbc.driver.DatabaseError.throwSqlException (Databaseerror.java:112) at Oracle.jdbc.driver.DatabaseError.throwSqlException (Databaseerror.java:146) at Oracle.jdbc.driver.DatabaseError.throwSqlException (Databaseerror.java:255) at Oracle.jdbc.driver.T4CConnection.logon (T4cconnection.java:387) at oracle.jdbc.driver.PhysicalConnection.<init> (physicalconnection.java:439) at oracle.jdbc.driver.T4CConnection.<init> (t4cconnection.java:165) at Oracle.jdbc.driver.T4CDriverExtension.getConnection (T4cdriverextension.java:35) at Oracle.jdbc.driver.OracleDriver.connect (Oracledriver.java:801) at Org.apache.commons.dbcp.DriverConnectionFactory.createConnection (Driverconnectionfactory.java:38) at Org.apache.commons.dbcp.PoolableConnectionFactory.makeObject (Poolableconnectionfactory.java:582) at Org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory (Basicdatasource.java:1556) at Org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory (Basicdatasource.java:1545) at Org.apache.commons.dbcp.BasicDataSource.createDataSource (Basicdatasource.java:1388) at Org.apache.commons.dbcp.BasicDataSource.getConnection (Basicdatasource.java:1044) at Org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection (Datasourceutils.java:111) at Org.springframework.jdbc.datasource.DataSourceUtils.getConnection (Datasourceutils.java:77) at Org.mybatis.spring.transaction.SpringManagedTransaction.openConnection (Springmanagedtransaction.java: 80) at Org.mybatis.spring.transaction.SpringManagedTransaction.getConnection (Springmanagedtransaction.java: 66) at Org.apache.ibatis.executor.BaseExecutor.getConnection (Baseexecutor.java:279) at Org.apache.ibatis.executor.SimpleExecutor.prepareStatement (Simpleexecutor.java:69) at Org.apache.ibatis.executor.SimpleExecutor.doQuery (Simpleexecutor.java:56) at Org.apache.ibatis.executor.BaseExecutor.queryFromDatabase (Baseexecutor.java:267) at Org.apache.ibatis.executor.BaseExecutor.query (Baseexecutor.java:141) at Org.apache.ibatis.executor.CachingExecutor.query (Cachingexecutor.java:105) at Org.apache.ibatis.executor.CachingExecutor.query (Cachingexecutor.java:81) at Org.apache.ibatis.session.defaults.DefaultSqlSession.selectList (Defaultsqlsession.java:101) at Org.apache.ibatis.session.defaults.DefaultSqlSession.selectList (Defaultsqlsession.java:95) at Org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne (Defaultsqlsession.java:59) 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:30T) at Org.mybatis.spring.sqlsessiontemplate$sqlsessioninterceptor.invoke (Sqlsessiontemplate.java:355) at Com.sun.proxy. $Proxy 6.selectOne (Unknown Source) at Org.mybatis.spring.SqlSessionTemplate.selectOne (sqlsess Iontemplate.java:160) at Org.apache.ibatis.binding.MapperMethod.execute (Mappermethod.java:95) at Org.apache.ibatis.binding.MapperProxy.invoke (Mapperproxy.java:40) at Com.sun.proxy. $Proxy 8.selectUserLogin (Unknown Source) at Com.supervisory.service.impl.SecurityServiceImpl. Selectuserlogin (Securityserviceimpl.java:42) at Com.supervisory.web.security.LoginAction.handleRequest (Loginaction.java:71) at Org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle ( Simplecontrollerhandleradapter.java:48) 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:641) at Org.springframework.web.servlet.FrameworkServlet.service (Frameworkservlet.java:812) at Javax.servlet.http.HttpServlet.service (Httpservlet.java:722) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:305) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:210) 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:243) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:210) at Org.apache.catalina.core.StandardWrapperValve.invoke (Standardwrappervalve.java:222) at Org.apache.catalina.core.StandardContextValve.invoke (Standardcontextvalve.java:123) at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (Authenticatorbase.java:472) at Org.apache.catalina.core.StandardHostValve.invoke (Standardhostvalve.java:168) at Org.apache.catalina.valves.ErrorReportValve.invoke (Errorreportvalve.java:99) at Org.apache.catalina.core.StandardEngineValve.invoke (Standardenginevalve.java:118) at Org.apache.catalina.connector.CoyoteAdapter.service (Coyoteadapter.java:407) at Org.apache.coyote.http11.AbstractHttp11Processor.process (Abstracthttp11processor.java:1002) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (Abstractprotocol.java:585) at Org.apache.tomcat.util.net.jioendpoint$socketprocessor.run (Jioendpoint.java:312) at Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:615) at Java.lang.Thread.run (Thread.java:722)

The findings are caused by a network that is not available. Because a VPN is required at remote. If you encounter this problem, you can first check the network

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.