Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-2044

Single Action Timer created in @PostConstruct fails to start

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.6.0
    • Fix Version/s: 4.6.0
    • Component/s: container system
    • Labels:
      None
    • Environment:
      NA

      Description

      Bean with:
      @Singleton
      @Startup
      ...
      @Resource
      private TimerService timerService;
      ...
      @PostConstruct
      public void postConstruct() {
      ...
      timerService.createSingleActionTimer

      Produces the following warning (Which should be an error as it is critical).
      The timer is not scheduled as the service is not started.

      WARN [OpenEJB.ejbd.6] [Transaction] - Unexpected exception from afterCompletion; continuing
      java.lang.IllegalStateException: Scheduler is not configured properly
      at org.apache.openejb.core.timer.EjbTimerServiceImpl.schedule(EjbTimerServiceImpl.java:475)
      at org.apache.openejb.core.timer.TimerData.transactionComplete(TimerData.java:262)
      at org.apache.openejb.core.timer.TimerData.access$200(TimerData.java:47)
      at org.apache.openejb.core.timer.TimerData$TimerDataSynchronization.afterCompletion(TimerData.java:306)
      at org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:554)

        Attachments

          Activity

            People

            • Assignee:
              andyg Andy Gumbrecht
              Reporter:
              andyg Andy Gumbrecht
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified