异常:Cannot open connection
org.springframework.dao.DataAccessResourceFailureException: Cannot open connecti
on; nested exception is org.hibernate.exception.JDBCConnectionException: Cannot
open connection
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHiberna
teAccessException(SessionFactoryUtils.java:612)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernate
AccessException(HibernateAccessor.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(Hibern
ateTemplate.java:424)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativ
eSession(HibernateTemplate.java:374)
at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTe
mplate.java:690)
at com.wisoft.common.dao.BaseDao.save(BaseDao.java:186)
at com.wisoft.fzjdex.dao.InfTableInDAO.saveInfLawexecutor(InfTableInDAO.
java:77)
at com.wisoft.fzjdex.bo.InfTableManager.saveInfLawexecutor(InfTableManag
er.java:85)
at com.wisoft.fzjdex.bo.InfTableManager.saveInfLawexecutor(InfTableManag
er.java:374)
at com.wisoft.fzjdex.bo.InfTableManager.saveFzjd(InfTableManager.java:35
7)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.wisoft.framework.jm.utils.SpringJobModel.invokeMethod(SpringJobMo
del.java:51)
at com.wisoft.framework.jm.utils.SpringJobModel.execute(SpringJobModel.j
ava:40)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:525)
Caused by: org.hibernate.exception.JDBCConnectionException: Cannot open connecti
on
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j
ava:97)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp
er.java:66)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp
er.java:52)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager
.java:449)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.
java:167)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.j
ava:116)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.j
ava:109)
at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatc
her.java:244)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac
tEntityPersister.java:2252)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac
tEntityPersister.java:2688)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.ja
va:79)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutio
ns(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus
hEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)