| Summary: | BundleStatusException when using sqltools.editor.core Plug-In (Deadlock?) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] Data Tools | Reporter: | Florian Albrecht <cw.florian.albrecht> | ||||||
| Component: | SQLDevTools | Assignee: | Brian Payton <bpayton> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | bpayton | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 1.10 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Florian Albrecht
Created attachment 206122 [details]
Test project producing the bug
Here is the test project. Create a run configuration as described above to reproduce the bug.
Created attachment 206835 [details]
Proposed patch to remove deadlock
Okay, as nobody seems to care, here is a patch proposal. I still don't know why the listener calls are threaded, but maybe there is database work or similar to be expected.
Anyway, I added tool code which waits for the EditorCorePlugin to startup if it is still starting. This tool code is called by the listener notification threads, so deadlock situations for the Eclipse Classloader should not occur anymore.
Sorry for the lack of response. The original code for this plugin was contributed by Sybase, and the Sybase committers disappeared when Sybase withdrew from open source activities a couple of years ago. I'll take a look at the patch, but I don't know this part of the code very well. The fix looks OK as far as I can tell. I did some basic testing didn't see any new problems. I've checked the change into DTP 1.10. Here's the Git commit record: http://git.eclipse.org/c/datatools/org.eclipse.datatools.sqltools.git/commit/?id=8d103b6c9c55e5ad6aa0e7019cbcef20c19e3173 |