#355 Checkstyle preference menu option in Eclipse Indigo and Eclipse Helios doesn't work

5.6.1
closed
None
1
2013-10-01
2013-07-10
idles23
No

I have installed my own Checkstyle update site plugin(5.6.1) and it has installed well, but when I restart Eclipse(3.7 or 3.8 versions) and I check Checkstyle option in Window --> Preferences it appears the next error:

Unable to create the selected preference page. An error occurred while automatically activating bundle net.sf.eclipsecs.ui (854).

The error log is like this:

org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle net.sf.eclipsecs.ui (854). at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243) at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55) at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:268) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52) at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:264) at org.eclipse.ui.internal.EarlyStartupRunnable.getExecutableExtension(EarlyStartupRunnable.java:117) at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.Workbench$63.run(Workbench.java:2470) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: org.osgi.framework.BundleException: The activator net.sf.eclipsecs.ui.CheckstyleUIPlugin for bundle net.sf.eclipsecs.ui is invalid at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:171) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440) at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107) ... 23 more Caused by: java.lang.NoClassDefFoundError: org/eclipse/e4/ui/model/application/MApplicationElement at net.sf.eclipsecs.ui.CheckstyleUIPlugin.(CheckstyleUIPlugin.java:242) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at java.lang.Class.newInstance0(Class.java:374) at java.lang.Class.newInstance(Class.java:327) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:166) ... 29 more Caused by: java.lang.ClassNotFoundException: org.eclipse.e4.ui.model.application.MApplicationElement at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 37 more

That error occurs in Helios and Indigo, but not in Juno, and the plugin and feature version is the same. I have tried to copy the E4 plugins jars placed in Juno to my Indigo and Helios plugins folder, but it doesn't work

What's my problem?? Help me please

Kind regards

Discussion

  • Lars Koedderitzsch

    It's probably an incompatibility introduced with the fixes for Juno/Kepler in 5.6.1. I need to have a look if I can rig it that way it works in Indigo/Helios as well.

    For the time being I'd advise to use 5.6.0 which is mostly functionally equivalent (see release notes).
    Either download the packaged update site from Sourceforge or use this update site location for 5.6.0:
    http://sourceforge.net/projects/eclipse-cs/files/updatesite/5.6.0/

     
  • Lars Koedderitzsch

    I've now tried 5.6.1 on both Eclipse 3.6 and 3.7 - both working as expected.

    Moreso I am suspicious about your error message (java.lang.NoClassDefFoundError: org/eclipse/e4/ui/model/application/MApplicationElement) since 5.6.1 does not contain any direct e4-specific class references anymore (all e4 specific invocations are done via reflection).
    The error seems to indicate that there are traces of an older plugin version still present in your eclipse install, which actually had such direct class references.

    Please try restarting eclipse with the -clean command line options, sometimes it helps in such cases.

     
  • idles23

    idles23 - 2013-07-11

    Hi Lars,
    I have done what you said, I have restarted my Eclipse making a Clean after starting it, and installing the plugin and feature after that. And now it seems to work correctly so it was a problem with older configurations and maybe .metadata files.
    Thanks a lot for your help
    Regards!!

     
  • Lars Koedderitzsch

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
    
     I have installed my own Checkstyle update site plugin(5.6.1) and it has installed well, but when I restart Eclipse(3.7 or 3.8 versions) and I check Checkstyle option in Window --> Preferences it appears the next error:
    
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks