weblogic的错误信息,大哥来看下吧。我找了好久了
异常: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)
at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary
(HibernateAccessor.java:390)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(Hibern
ateTemplate.java:420)
... 15 more
Caused by: java.sql.SQLRecoverableException: Io 异常: The Network Adapter could
not establish the connection
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.ja
va:101)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:1
12)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:173)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:229)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:458)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
490)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:33)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(D
efaultConnectionBuilder.java:39)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java
:159)
at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPoo
l.java:217)
at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:8
9)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnec
tionFromDriverManager(DriverManagerDataSource.java:174)
at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnec
tionFromDriver(DriverManagerDataSource.java:165)
at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.get
ConnectionFromDriver(AbstractDriverBasedDataSource.java:149)
at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.get
Connection(AbstractDriverBasedDataSource.java:119)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.
getConnection(LocalDataSourceConnectionProvider.java:82)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager
.java:446)
... 30 more
[解决办法]
是不是数据源配错了?测试连接过没?
[解决办法]
检查下 网络 或者 重启下WEBLOGIC
[解决办法]
异常:Cannot open connection
这一句就可以看出问题了,重新配置部署一下,试试