1 Reply Latest reply on Mar 10, 2004 11:41 AM by sysuser1

    startSchedule in Scheduler throws NullPointerException

    sysuser1

      Hello Everybody,

      I have written a MBean that creates new Scheduler objects that are based on a Schedulable class of mine. After creating a new Scheduler Object, I call scheduler.startSchedule() which throws a NullPointerException. The source code points to getServer().xxxx call in the startSchedule method. Do I need to set a server when I create a new Scheduler? What is the recommended way of using a new Scheduler object.

      Thanks for your insights.

      VM

        • 1. Re: startSchedule in Scheduler throws NullPointerException
          sysuser1

          Hmm.. Looks like no one is interested in solving this problem. I did notice similar posts go unanswered as well. Well.. I gave up on JBoss Scheduler. I was able to get Quartz Scheduler work the very first time. Hats off to Quartz. Hopefully JBoss will integrate Quartz Scheduler replacing its own.

          - VM