0 Replies Latest reply on Dec 26, 2005 7:11 AM by sreenath M

    Getting ManagedConnectionFactory null

    sreenath M Newbie

      Hi All

      In our project we use jboss connection pooling, and has placed the JNDI names of the datasource in the mysql-ds.xml file.when we try to get a connection through this datasource we got an error

      17:07:22,193 INFO [STDOUT] org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is n ull.; - nested throwable: (javax.resource.ResourceException: You are trying to u se a connection factory that has been shut down: ManagedConnectionFactory is nul l.)
      
      17:07:22,194 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.WrapperDataSo urce.getConnection(WrapperDataSource.java:107)
      
      17:07:22,194 INFO [STDOUT] at org.seraja.connector.metadata.MetaDataJdbcImp l.getConnection(Unknown Source)
      
      17:07:22,194 INFO [STDOUT] at org.seraja.connector.metadata.MetaDataJdbcImp l.getAllEvents(Unknown Source)
      
      17:07:22,194 INFO [STDOUT] at org.seraja.feps.EventManager.getAllEvents(Unk nown Source)
      
      17:07:22,194 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor70.invoke( Unknown Source)
      
      17:07:22,194 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25)
      
      17:07:22,194 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3 24)
      
      17:07:22,194 INFO [STDOUT] at org.apache.struts.actions.DispatchAction.disp atchMethod(DispatchAction.java:276)
      
      17:07:22,194 INFO [STDOUT] at org.apache.struts.actions.DispatchAction.exec ute(DispatchAction.java:196)
      
      17:07:22,194 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.pro cessActionPerform(RequestProcessor.java:421)
      
      17:07:22,194 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.pro cess(RequestProcessor.java:226)
      
      17:07:22,194 INFO [STDOUT] at org.apache.struts.action.ActionServlet.proces s(ActionServlet.java:1164)
      
      17:07:22,194 INFO [STDOUT] at org.apache.struts.action.ActionServlet.doGet( ActionServlet.java:397)
      
      17:07:22,195 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpSe rvlet.java:697)
      
      17:07:22,195 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpSe rvlet.java:810)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:252)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:173)
      
      17:07:22,195 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilte r.doFilter(ReplyHeaderFilter.java:81)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:202)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:173)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve .invoke(StandardWrapperValve.java:213)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve .invoke(StandardContextValve.java:178)
      
      17:07:22,195 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipal Valve.invoke(CustomPrincipalValve.java:39)
      
      17:07:22,195 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssocia tionValve.invoke(SecurityAssociationValve.java:153)
      
      17:07:22,195 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValv e.invoke(JaccContextValve.java:59)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.in voke(StandardHostValve.java:126)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.i nvoke(ErrorReportValve.java:105)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve. invoke(StandardEngineValve.java:107)
      
      17:07:22,195 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.s ervice(CoyoteAdapter.java:148)
      
      17:07:22,196 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.proc ess(Http11Processor.java:856)
      
      17:07:22,196 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http1 1ConnectionHandler.processConnection(Http11Protocol.java:744)
      
      17:07:22,196 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.pr ocessSocket(PoolTcpEndpoint.java:527)
      
      17:07:22,196 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerT hread.run(MasterSlaveWorkerThread.java:112)
      
      17:07:22,196 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)
      
      17:07:22,196 INFO [STDOUT] Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFa ctory is null.
      
      17:07:22,196 INFO [STDOUT] at org.jboss.resource.connectionmanager.BaseConn ectionManager2.allocateConnection(BaseConnectionManager2.java:439)
      
      17:07:22,196 INFO [STDOUT] at org.jboss.resource.connectionmanager.BaseConn ectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2. java:874)
      
      17:07:22,279 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.WrapperDataSo urce.getConnection(WrapperDataSource.java:103)
      
      17:07:22,279 INFO [STDOUT] ... 33 more
      
      


      Further investigating we found that this error generally occurs when we try to edit the mysql-ds file at runtime (Not sure of this) but any ways we have not done any stuff like that .Our deployment environment is fedora linux.

      Any help is appreciated.

      Thanks
      Sreenath