how to resolve a deadlock issue. [message #687946] |
Thu, 23 June 2011 14:56 |
Florence Messages: 16 Registered: July 2009 |
Junior Member |
|
|
I ran into the following deadlock issue but not sure how to resolve it. I hope to get some advice here. Thanks.
When the application started, the application was hanging due to the following deadlock issue.Basically, the code is trying to load some Eclipse plugins.
I have this setting "Bundle-ActivationPolicy: lazy" in the MANIFEST.MF file.
================================================================================ Here are the logs:
While loading class "xxxxxxxxxxxxxxExtension", thread "Thread[Worker-1,5,main]" timed out waiting (5004ms) for thread "Thread[main,6,main]" to finish starting bundle "update@../../shared/eclipse/plugins/xxxxxxxxxxxxxxxxxxxxx.jar [316]". To avoid deadlock, thread "Thread[Worker-1,5,main]" is proceeding but "xxxxxxxxxxxxxxxExtension" may not be fully initialized. org.osgi.framework.BundleException: State change in progress for bundle "update@../../shared/eclipse/plugins/xxxxxxxxxxxx.jar" by thread "main". at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1158) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:277) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:112) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:430) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:446) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at at xxxxxxxxxxxxxxxxxxActivator$1.run() at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException ... 16 more
|
|
|
Powered by
FUDForum. Page generated in 0.03126 seconds