尝试使用spring控制器中的hibernate连接数据库时,我收到此错误。这是堆栈跟踪。
如何解决这个问题?
19:23:07,432 ERROR [stderr] (ajp--0.0.0.0-8016-11) org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
19:23:07,432 ERROR [stderr] (ajp--0.0.0.0-8016-11) at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:596)
19:23:07,435 ERROR [stderr] (ajp--0.0.0.0-8016-11) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
19:23:07,435 ERROR [stderr] (ajp--0.0.0.0-8016-11) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)
19:23:07,435 ERROR [stderr] (ajp--0.0.0.0-8016-11) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
19:23:07,435 ERROR [stderr] (ajp--0.0.0.0-8016-11) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
19:23:07,436 ERROR [stderr] (ajp--0.0.0.0-8016-11) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
19:23:07,436 ERROR [stderr] (ajp--0.0.0.0-8016-11) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669)
19:23:07,436 ERROR [stderr] (ajp--0.0.0.0-8016-11) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:585)
org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
19:23:07,442 ERROR [stderr] (ajp--0.0.0.0-8016-11) at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:555)
19:23:07,442 ERROR [stderr] (ajp--0.0.0.0-8016-11) Caused by: java.sql.SQLException: ORA-28000: the account is locked
答案 0 :(得分:0)
您的帐户似乎已被锁定或密码已过期。 检查以下链接来解决这个问题,可能会有所帮助。 http://www.dba-oracle.com/sf_ora_28000_the_account_is_locked.htm