Can not retrive timer from timerHandle stored in application db
---------------------------------------------------------------
Key: JBAS-9454
URL:
https://issues.jboss.org/browse/JBAS-9454
Project: Legacy JBoss Application Server 6
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 6.1.0
Environment: default datastore mysql
Reporter: Sarang Anajwala
We are persisting timerHandle object obtained while creating timers, in our application db
so that we can use this handle later on to retrieve timer object and cancel the timer.
However, when I try to retrieve the timer from this timerHandle object (after retrieving
it from our application db), I am getting following error.
(pool-11-thread-10) Unknown Exception: : javax.persistence.PersistenceException:
org.hibernate.exception.GenericJDBCException: Cannot open connection
at
org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1215)
[:3.6.6.Final]
at
org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1148)
[:3.6.6.Final]
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:255) [:3.6.6.Final]
at
org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.getPersistedTimer(TimerServiceImpl.java:951)
[:1.0.0-alpha-13]
at
org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.getTimer(TimerServiceImpl.java:530)
[:1.0.0-alpha-13]
at
org.jboss.ejb3.timerservice.mk2.TimerHandleImpl.getTimer(TimerHandleImpl.java:107)
[:1.0.0-alpha-13]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira