大家有人见过这个错误提示吗?5555555555555希望大家说说啊。或者指引一条处理这个问题的方法啊55谢谢

Kyle-soft 2010-03-14 09:52:19

14:05:16,140 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)

org.hibernate.exception.GenericJDBCException: Cannot open connection

at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)

at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)

at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)

at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:301)

at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:110)

at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:88)

at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1162)

at org.hibernate.loader.Loader.doQuery(Loader.java:390)

at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)

at org.hibernate.loader.Loader.doList(Loader.java:1593)

at org.hibernate.loader.Loader.list(Loader.java:1577)

at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)

at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)

at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)

at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)

at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:603)

at sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)

at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:203)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)

at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)

at $Proxy550.importItem(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)

at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:203)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)

at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)

at $Proxy520.reportImport(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)

at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)

at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)

at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)

at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)

at org.mortbay.http.HttpServer.service(HttpServer.java:879)

at org.jboss.jetty.Jetty.service(Jetty.java:460)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)

Caused by: org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)

at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:106)

at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59)

at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:298)

... 76 more

Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.

at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:489)

at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:888)

at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)

... 78 more


14:05:16,140 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)

...全文
399 39 打赏 收藏 转发到动态 举报
写回复
用AI写文章
39 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhujia130 2010-03-16
  • 打赏
  • 举报
回复
获取连接时数据库服务没有开,还有那个ManagedConnectionFactory 有问题,只能看到这些了
zhongyucai 2010-03-16
  • 打赏
  • 举报
回复
回帖是一种美德........帮顶
luffyke 2010-03-16
  • 打赏
  • 举报
回复
首先错误信息是你试图访问一个已经关闭的数据库连接

1.配置问题(很有可能)
2.连接根本没打开,可能代码问题

具体问题具体分析,再不行的google一下!

good luck
sky123123 2010-03-16
  • 打赏
  • 举报
回复
可能是 ManagedConnectionFactory 没有被实例化吧
「已注销」 2010-03-16
  • 打赏
  • 举报
回复
dddddddddddddddddddd
乌拉乌拉liang 2010-03-16
  • 打赏
  • 举报
回复
You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)


第一句不是说了么。
ManagedConnectionFactory is null。
所导致了
Cannot open connection

仔细检查下你的编码。应该是某个地方出了问题。
第一个是你的数据库连接的uri。
第二个是你的编码中是否存在空引用。
lzbang 2010-03-16
  • 打赏
  • 举报
回复
连接数据库的问题
fei381895649fei 2010-03-16
  • 打赏
  • 举报
回复
这里是JDBC连接数据库时产的的异常,你去检查一下数据库中的那些服务有没有开,或者看那里打错了吧..
ez7268 2010-03-16
  • 打赏
  • 举报
回复
学习学习,在美德美德~~~~~~~~
lgh1117 2010-03-16
  • 打赏
  • 举报
回复
楼上的都说得很好,我为了一种美德,随便回回帖了
huajia136651 2010-03-16
  • 打赏
  • 举报
回复
回帖是一种美德
重返春季 2010-03-16
  • 打赏
  • 举报
回复
org.hibernate.exception.GenericJDBCException: Cannot open connection

没有打开Connection
bypeng 2010-03-16
  • 打赏
  • 举报
回复
Cannot open connection
henry_fuzr 2010-03-15
  • 打赏
  • 举报
回复
ManagedConnectionFactory is null 数据库连接工厂 为null

配置问题
xiesisi3 2010-03-15
  • 打赏
  • 举报
回复
可能在哪里写了
Session.close()了吧?自己找找。
sling2007 2010-03-15
  • 打赏
  • 举报
回复
14:05:16,140 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.;
连接打开过,
但是在用之前关闭了
检查代码去吧
gwhok1 2010-03-15
  • 打赏
  • 举报
回复
bang ding
fuxi922721 2010-03-15
  • 打赏
  • 举报
回复
HIBERNATE 连接数据库的问题
重返春季 2010-03-15
  • 打赏
  • 举报
回复
应该是数据库连接的原因,看看连接数据库是否已经打开。也希望高手参与,刚楼主顶一下。
Dazzlingwinter 2010-03-15
  • 打赏
  • 举报
回复
获取连接时数据库服务没有开,鉴定完毕~
加载更多回复(19)

62,619

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧