[jboss-jira] [JBoss JIRA] Commented: (JBPM-315) SchedulerMain can not work

Daniel Ramagem (JIRA) jira-events at jboss.com
Thu Aug 31 15:09:19 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBPM-315?page=comments#action_12342518 ] 
            
Daniel Ramagem commented on JBPM-315:
-------------------------------------

I just started learning and using jBPM two days ago and bumped into this issue.  I have the "jbpm-starters-kit-3.1.2".  The problem is that the Scheduler only has the schedulerThread attribute set in the start() method.  Therefore the "scheduler.getSchedulerThread()" will return null.  My fix was to simply invert the order of the lines.  Start the scheduler first and then add the LogListener.

> SchedulerMain can not work
> --------------------------
>
>                 Key: JBPM-315
>                 URL: http://jira.jboss.com/jira/browse/JBPM-315
>             Project: JBoss jBPM
>          Issue Type: Bug
>          Components: Core Engine
>            Reporter: Bernd Ruecker
>         Assigned To: Tom Baeyens
>            Priority: Minor
>   Original Estimate: 5 minutes
>  Remaining Estimate: 5 minutes
>
> SchedulerMain.main throws NullPointerException at line 29
> I think the order of the two lines are wrong:
>     // register the console listener
>     scheduler.getSchedulerThread().addListener(new LogListener());
>     
>     // start the scheduler
>     scheduler.start();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list