0 Replies Latest reply on Mar 29, 2017 7:20 AM by swati20

    Connection factory that has been shut down

    swati20

      Hi , In my JAVA web application while connecting to the database , I am getting the below error. ERROR [net.sf.hibernate.util.JDBCExceptionReporter] Cannot open connection 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:94) at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59) at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:286) at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3326) at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3286) at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:65) at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:779) Can you please advise what the issue is and how to resolve?