Hi all,

I am facing an error that caused during I shut down my JBoss.
It is not happening always. So I am not sure why is this happening.
Any idea on why this is happening?

2014-07-02 05:03:07,855 WARN [org.hibernate.util.JDBCExceptionReporter]
(Timer-4) SQL Error: 0, SQLState: null
2014-07-02 05:03:07,856 ERROR [org.hibernate.util.JDBCExceptionReporter]
(Timer-4) 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.)
2014-07-02 05:03:07,856 ERROR [com.novell.soa.persist.HibernateUtil]
(Timer-4) Error rolling back transaction
org.hibernate.TransactionException: Transaction not successfully
started
at
org.hibernate.transaction.JDBCTransaction.rollback (JDBCTransaction.java:183)
at
com.novell.soa.persist.HibernateUtil.rollback(Hibe rnateUtil.java:169)
at com.novell.soa.persist.HibernateDAO.rollback(Hiber nateDAO.java:376)
at
com.novell.idm.attestation.persist.AttestationRequ estDAO.getAttestationRequests(AttestationRequestDA O.java:123)
at
com.novell.idm.attestation.service.AttestationEngi neService.retryAttestationRequests(AttestationEngi neService.java:569)
at
com.novell.idm.attestation.service.AttestationRequ estRetryTimerTask.run(AttestationRequestRetryTimer Task.java:50)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
2014-07-02 05:03:07,857 ERROR
[com.novell.idm.attestation.service.AttestationEngi neService] (Timer-4)
Error detected in retrying to start up attestation requests.
com.novell.idm.attestation.exception.AttestationEx ception: Error
detected in retrying to start up attestation requests.
at
com.novell.idm.attestation.service.AttestationEngi neService.retryAttestationRequests(AttestationEngi neService.java:577)
at
com.novell.idm.attestation.service.AttestationRequ estRetryTimerTask.run(AttestationRequestRetryTimer Task.java:50)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: com.novell.soa.persist.PersistenceException:
org.hibernate.exception.GenericJDBCException: Cannot open connection
at com.novell.soa.persist.HibernateUtil.begin(Hiberna teUtil.java:127)
at com.novell.soa.persist.HibernateDAO.begin(Hibernat eDAO.java:350)
at
com.novell.idm.attestation.persist.AttestationRequ estDAO.getAttestationRequests(AttestationRequestDA O.java:86)
at
com.novell.idm.attestation.service.AttestationEngi neService.retryAttestationRequests(AttestationEngi neService.java:569)
... 3 more
Caused by: org.hibernate.exception.GenericJDBCException: Cannot open
connection
at
org.hibernate.exception.SQLStateConverter.handledN onSpecificException(SQLStateConverter.java:126)
at
org.hibernate.exception.SQLStateConverter.convert( SQLStateConverter.java:114)
at
org.hibernate.exception.JDBCExceptionHelper.conver t(JDBCExceptionHelper.java:66)
at
org.hibernate.exception.JDBCExceptionHelper.conver t(JDBCExceptionHelper.java:52)
at
org.hibernate.jdbc.ConnectionManager.openConnectio n(ConnectionManager.java:449)
at
org.hibernate.jdbc.ConnectionManager.getConnection (ConnectionManager.java:167)
at org.hibernate.jdbc.JDBCContext.connection(JDBCCont ext.java:142)
at
org.hibernate.transaction.JDBCTransaction.begin(JD BCTransaction.java:85)
at
org.hibernate.impl.SessionImpl.beginTransaction(Se ssionImpl.java:1353)
at sun.reflect.GeneratedMethodAccessor370.invoke(Unkn own Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.hibernate.context.ThreadLocalSessionContext$Tr ansactionProtectionWrapper.invoke(ThreadLocalSessi onContext.java:342)
at $Proxy165.beginTransaction(Unknown Source)
at com.novell.soa.persist.HibernateUtil.begin(Hiberna teUtil.java:119)
... 6 more
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:95)
at
org.hibernate.connection.DatasourceConnectionProvi der.getConnection(DatasourceConnectionProvider.jav a:92)
at
org.hibernate.jdbc.ConnectionManager.openConnectio n(ConnectionManager.java:446)
... 16 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.BaseConnectio nManager2.allocateConnection(BaseConnectionManager 2.java:487)
at
org.jboss.resource.connectionmanager.BaseConnectio nManager2$ConnectionManagerProxy.allocateConnectio n(BaseConnectionManager2.java:941)
at
org.jboss.resource.adapter.jdbc.WrapperDataSource. getConnection(WrapperDataSource.java:89)
... 18 more
2014-07-02 05:03:07,858 ERROR
[com.novell.idm.attestation.service.AttestationRequ estRetryTimerTask]
(Timer-4) Error detected in retrying to start up attestation requests.
com.novell.idm.attestation.exception.AttestationEx ception: Error
detected in retrying to start up attestation requests.
at
com.novell.idm.attestation.service.AttestationEngi neService.retryAttestationRequests(AttestationEngi neService.java:577)
at
com.novell.idm.attestation.service.AttestationRequ estRetryTimerTask.run(AttestationRequestRetryTimer Task.java:50)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: com.novell.soa.persist.PersistenceException:
org.hibernate.exception.GenericJDBCException: Cannot open connection
at com.novell.soa.persist.HibernateUtil.begin(Hiberna teUtil.java:127)
at com.novell.soa.persist.HibernateDAO.begin(Hibernat eDAO.java:350)
at
com.novell.idm.attestation.persist.AttestationRequ estDAO.getAttestationRequests(AttestationRequestDA O.java:86)
at
com.novell.idm.attestation.service.AttestationEngi neService.retryAttestationRequests(AttestationEngi neService.java:569)
... 3 more
Caused by: org.hibernate.exception.GenericJDBCException: Cannot open
connection
at
org.hibernate.exception.SQLStateConverter.handledN onSpecificException(SQLStateConverter.java:126)
at
org.hibernate.exception.SQLStateConverter.convert( SQLStateConverter.java:114)
at
org.hibernate.exception.JDBCExceptionHelper.conver t(JDBCExceptionHelper.java:66)
at
org.hibernate.exception.JDBCExceptionHelper.conver t(JDBCExceptionHelper.java:52)
at
org.hibernate.jdbc.ConnectionManager.openConnectio n(ConnectionManager.java:449)
at
org.hibernate.jdbc.ConnectionManager.getConnection (ConnectionManager.java:167)
at org.hibernate.jdbc.JDBCContext.connection(JDBCCont ext.java:142)
at
org.hibernate.transaction.JDBCTransaction.begin(JD BCTransaction.java:85)
at
org.hibernate.impl.SessionImpl.beginTransaction(Se ssionImpl.java:1353)
at sun.reflect.GeneratedMethodAccessor370.invoke(Unkn own Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.hibernate.context.ThreadLocalSessionContext$Tr ansactionProtectionWrapper.invoke(ThreadLocalSessi onContext.java:342)
at $Proxy165.beginTransaction(Unknown Source)
at com.novell.soa.persist.HibernateUtil.begin(Hiberna teUtil.java:119)
... 6 more
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:95)
at
org.hibernate.connection.DatasourceConnectionProvi der.getConnection(DatasourceConnectionProvider.jav a:92)
at
org.hibernate.jdbc.ConnectionManager.openConnectio n(ConnectionManager.java:446)
... 16 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.BaseConnectio nManager2.allocateConnection(BaseConnectionManager 2.java:487)
at
org.jboss.resource.connectionmanager.BaseConnectio nManager2$ConnectionManagerProxy.allocateConnectio n(BaseConnectionManager2.java:941)
at
org.jboss.resource.adapter.jdbc.WrapperDataSource. getConnection(WrapperDataSource.java:89)
... 18 more


--
kyin_ying
------------------------------------------------------------------------
kyin_ying's Profile: https://forums.netiq.com/member.php?userid=6787
View this thread: https://forums.netiq.com/showthread.php?t=51237