Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349555

Summary: org.eclipse.scout.rt.server.scheduler.Scheduler synchronization Bug
Product: z_Archived Reporter: Reto Aschwanden <reto.aschwanden>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan.motsch, zimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Reto Aschwanden CLA 2011-06-16 08:45:32 EDT
Build Identifier: M20100211-1343

Scheduler.handleJobExecution starts a ServerJob which is scheduled and then runs asynchronously. But in the private class Scheduler.P_JobRunner where this method is called, it is expected to run synchronously (the finally clause does not make sense otherwise). The JavaDoc IScheduler.handleJobExecution also says that execution should be synchronous.

Fix: Add job.join() at the end of Scheduler.handleJobExecution    

Reproducible: Always
Comment 1 Ivan Motsch CLA 2011-06-16 08:55:33 EDT
I verified your solution. This is in fact a bug and is now solved exactly as you suggest.
Comment 2 Matthias Zimmermann CLA 2011-10-10 12:40:14 EDT
shipped with scout 3.7.1