【发布时间】:2015-04-06 10:36:05
【问题描述】:
我正在处理 Java 中的一个严重异常,如下所示:
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'birtReportRenderer': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.convergys.raspberry.server.filemgmt.FileWorker.setFileAuditTbl(com.convergys.raspberry.server.database.FileAuditTbl);
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileAuditTbl': Invocation of init method failed;
nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection;
nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.postgresql.Driver'
所有这些嵌套的异常都是这样排列的:
exception; exception; exception; etc.
这里的事件顺序是什么?我应该查看最后一个嵌套异常并处理 JDBC,我应该从第一个异常开始还是应该查看其他地方?
如果您需要更多信息,请告诉我。
谢谢。
【问题讨论】:
-
自下而上的堆栈跟踪
标签: java exception jdbc javabeans