Page 1 of 1

org.osgi.framework.BundleException warning

Posted: Wed Mar 09, 2016 12:40 am
by mattwolfe
I get this warning in Eclipse sometimes and it seems to cause Eclipse to hang. Sometimes Eclipse recovers and sometimes it doesn't:

While loading class "ro.sync.util.security.f$2", thread "Thread[Worker-3,5,main]" timed out waiting (4991ms) for thread "Thread[Worker-1,5,main]" to finish starting bundle "com.oxygenxml.author_17.1.0.v2015101417 [238]". To avoid deadlock, thread "Thread[Worker-3,5,main]" is proceeding but "ro.sync.util.security.f$2" may not be fully initialized.

Code: Select all


org.osgi.framework.BundleException: State change in progress for bundle "reference:file:dropins/oxygenxml.author_17.1/plugins/com.oxygenxml.author_17.1.0.v2015101417/" by thread "Worker-1".
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1088)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:298)
at org.eclipse.osgi.framework.util.SecureAction$23.run(SecureAction.java:484)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:482)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:109)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at ro.sync.util.security.f.w(Unknown Source)
at ro.sync.util.security.manager.SandboxSecurityManager.checkWrite(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.ixia.textmlserver.IxiaDocument$Content.SaveTo(IxiaDocument.java:106)
at com.ixiasoft.dita.eclipse.jobs.SynchronizeThumbnailsJob.saveThumbnail(SynchronizeThumbnailsJob.java:166)
at com.ixiasoft.dita.eclipse.jobs.SynchronizeThumbnailsJob.syncBatch(SynchronizeThumbnailsJob.java:142)
at com.ixiasoft.dita.eclipse.jobs.SynchronizeThumbnailsJob.run(SynchronizeThumbnailsJob.java:86)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
... 24 more
Root exception:
org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1088)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:298)
at org.eclipse.osgi.framework.util.SecureAction$23.run(SecureAction.java:484)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:482)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:109)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at ro.sync.util.security.f.w(Unknown Source)
at ro.sync.util.security.manager.SandboxSecurityManager.checkWrite(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.ixia.textmlserver.IxiaDocument$Content.SaveTo(IxiaDocument.java:106)
at com.ixiasoft.dita.eclipse.jobs.SynchronizeThumbnailsJob.saveThumbnail(SynchronizeThumbnailsJob.java:166)
at com.ixiasoft.dita.eclipse.jobs.SynchronizeThumbnailsJob.syncBatch(SynchronizeThumbnailsJob.java:142)
at com.ixiasoft.dita.eclipse.jobs.SynchronizeThumbnailsJob.run(SynchronizeThumbnailsJob.java:86)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
You can see I'm using version 17.1.0.v2015101417 of the Oxygen Eclipse plugin. I'm using Eclipse 4.3.2.

Any ideas what's going on here?

Re: org.osgi.framework.BundleException warning

Posted: Wed Mar 09, 2016 1:37 pm
by Radu
Hi,

Sometimes if a plugin needs too much time for initialization (and Oxygen is quite a large plugin) Eclipse will issue such a warning. But it should load the plugin nonetheless.
I see from the stack trace that you are also using the Ixiasoft CMS so not sure if the blockage is Oxygen-related, Ixiasoft related or a bug in Eclipse.
When Eclipse does not recover, what exactly does happen, does it crash or does it seem to block forever?
If you are comfortable with Java there is a JDK tool called "jconsole" which can be started, it can connect to an opened Java application and it reports where each application thread stalls.
If not and you want us to investigate further, please contact us using support@oxygenxml.com. I can give you a logging file to enable logging in Oxygen, then you can generate a log for us and then we can look into it on our side, find out more details this way.

Regards,
Radu

Re: org.osgi.framework.BundleException warning

Posted: Wed Mar 09, 2016 5:45 pm
by mattwolfe
When Eclipse does not recover, it never recovers. It just hangs with a grayed-out window.

I will try jconsole and if I have trouble I'll contact support using the email address you provided.

Thanks!

Re: org.osgi.framework.BundleException warning

Posted: Wed Mar 09, 2016 5:56 pm
by adrian
Hi,

You seem to be using the initial build of v17.1, 2015101417 (5 months old). Please update to the latest build of v17.1 (currently 2016020417) as there are several Eclipse bugfixes that can affect this (the fact that Eclipse may hang). Let us know if the problem persists after updating.

Regards,
Adrian

Re: org.osgi.framework.BundleException warning

Posted: Wed Mar 09, 2016 7:05 pm
by mattwolfe
Ahh, I didn't notice my version was out of date. I saw the last 3 digits were the same and thought I was on the latest version. I will try the new version and see if the problem is resolved before trying anything else.

Thanks!