The activator for bundle is invalid

后端 未结 14 2314
-上瘾入骨i
-上瘾入骨i 2020-12-30 04:31

I\'m trying to create a simple plugin in eclipse. When I run the application, I see this error in log file:

org.osgi.framework.BundleException : The a

14条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-30 05:02

    In my case this exception was because of inability of Eclipse custom class loader to resolve and load all depending classes from other plugins in-time. I am not Eclipse super-guru so maybe it was my fault.

    However it was fixed by disabling lazy loading of plugin. In GUI on Overview tab of MANIFEST.MF editor uncheck Activate this plug-in when one of its classes is loaded. Or directly in MANIFEST.MF delete line

    Bundle-ActivationPolicy: lazy
    

提交回复
热议问题