Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-2168

If ServicetimerSessionBean.timeoutHandler throws exception multiple timers are created

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 4.0.0
    • Fix Version/s: EJBCA 4.0.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      JBoss 6.0.0.GA

      Description

      If the timeoutHandler throws an exception we will add an additional timeout, this means that for every failure 2 timers will be added.

      1 timer is added when the worker starts
      1 timer is added when the worker (timeoutHandler fails with an exception

      My example is that the ExtRAServiceWorker where I did not configure persistence correctly, i.e. no parameters at all.

      2011-05-11 14:56:10,053 ERROR [org.jboss.ejb3.timerservice.mk2.task.TimerTask] (pool-89-thread-8) Error invoking timeout for timer: [id=9bc1006d-769d
      -41e6-bad5-709f3b9cf59e timedObjectId=jboss.j2ee:ear=ejbca.ear,jar=ejbca-ejb.jar,name=ServiceSessionBean,service=EJB3 auto-timer?:false persistent?:t
      rue timerService=org.jboss.ejb3.timerservice.mk2.TimerServiceImpl@3e57b8cb initialExpiration=Wed May 11 14:56:09 CEST 2011 intervalDuration(in milli
      sec)=0 nextExpiration=null timerState=IN_TIMEOUT: javax.persistence.PersistenceException: No Persistence provider for EntityManager named RAMessage1D
      S
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54) [:1.0.0.Final]
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:32) [:1.0.0.Final]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              johan Johan Eklund
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Tomas Gustavsson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: