| Summary: | Jobs cannot be rescheduled | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Niels Lippke <niels.lippke> | ||||
| Component: | Workbench | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 1.3 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
The fix for bug 283595 introduced that terminated Jobs are explicitly cancelled under certain circumstances. The information given in comment #1 is true but has nothing to do with this bug. The ProgressMonitorFocusJobDialog had a HttpSessionBindingListener to cancel Jobs at session shutdown. The code from its valueUnbound method was unwantedly executed even though the session was still alive. The fix is to only execute the code only when the session died. Changes are in CVS HEAD. |
Created attachment 165406 [details] Snippet to demonstrate the problem. The code below works in RCP, but not in RAP. The attached snippet fills a table as a result of a job execution. If the job can be scheduled only one time. If the job is scheduled anew a JobCanceler is notified which calls the done-Method with a Cancel Status and the job is not executed. This is a User job. Apart from the snippet set public void preWindowOpen() { IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); ... configurer.setShowProgressIndicator( true ); } to see the ProgressIndicator. Notice that job.setUser(true) must be set before scheduling to cause the problem.