|Timeout when loading bundles [message #642199]
||Tue, 30 November 2010 11:44
Registered: November 2010
This post is to seek help/advice on an issue we are experiencing when loading plugins we have developed particularly under CDT and derived platforms. We have a team provider that is split into Core and UI bundles. When loading under CDT with the C/C++ projects view active our Core bundle is being loaded triggered by PDOMManager running in Thread Worker-X . This is loading our RepositoryProvider class and prior to this is starting the Core bundle so it is executing the start() method of the Core bundle. At the same time the LightWeightDecorationManager running on thread Worker-Y is attempting to load our Decorator class. This class is in the UI bundle which has a declared dependency on the Core Bundle. This causes the runtime to try and load the Core bundle but as it is processing its start() method we recieve an error in the log similar to that shown below. |
!MESSAGE While loading class "....team.ui.XXDecorator", thread "Thread[Worker-10,5,main]" timed o
ut waiting (5000ms) for thread "Thread[Worker-0,5,main]" to finish starting bundle "...team.core". To avoid deadlock, thread "Thread[Worker-10,5,main]" is proceeding but "...team.
ui.XXDecorator" may not be fully initialized.
We have attempted to lazy initialize as many of the classes used in the Core start() method and have moved some potentially long running processing to a separate Job. However we are still experiencing this error.
Are there any techniques that we could use to avoid this error occuring.
Powered by FUDForum
. Page generated in 0.01532 seconds