Menu

Plugin configuration problem within Eclipse Oxygen.R

2017-07-03
2017-07-18
  • Stephan Muc81927

    First a Hello to all, this is my first posting here!
    If this is a duplicate, I apologize for that, because my first try to post in "Open Discussion" does not show up.

    I have a problem with eclipse-cs when upgrading from Neon.3 to Oxygen.R.
    (I use Eclipse on Windows 10-1703)

    Minimal steps from scratch to demonstrate the problem:
    1. Downloading eclipse-jee-oxygen-R-win32-x86_64.zip from eclipse.org
    2. Unpacking the zip file.
    3. Starting eclipse.exe with option -vm pointing to C:/My path/jre1.8.0_131/bin and accepting
    the newly created empty default workspace.
    4. Installing Checkstyle plugin from Update Site: http://eclipse-cs.sourceforge.net/update/
    5. After restart of eclipse, going to Windows->Preferences->Checkstyle
    6. At this point we have onyl two Check configurations: Google and Sun.
    7. Selecting one of them and then push the button "Configure" nothing happens.
    8. The Error.log shows the following message and stack trace:
    (This is also the case with any other personal Check Configuration)
    "Unhandled event loop exception"
    java.lang.NoClassDefFoundError: org/eclipse/jface/util/ListenerList
    at net.sf.eclipsecs.ui.util.table.EnhancedCheckBoxTableViewer.<init>(EnhancedCheckBoxTableViewer.java:50)
    at net.sf.eclipsecs.ui.config.CheckConfigurationConfigureDialog.createTableViewer(CheckConfigurationConfigureDialog.java:356)
    at net.sf.eclipsecs.ui.config.CheckConfigurationConfigureDialog.createDialogArea(CheckConfigurationConfigureDialog.java:199)
    at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:158)
    at org.eclipse.jface.window.Window.create(Window.java:426)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)
    at net.sf.eclipsecs.ui.config.CheckConfigurationConfigureDialog.create(CheckConfigurationConfigureDialog.java:224)
    at org.eclipse.jface.window.Window.open(Window.java:783)
    at net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor.configureCheckConfig(CheckConfigurationWorkingSetEditor.java:505)
    at net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor.access$6(CheckConfigurationWorkingSetEditor.java:492)
    at net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor$PageController.widgetSelected(CheckConfigurationWorkingSetEditor.java:391)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
    at org.eclipse.jface.window.Window.open(Window.java:794)
    at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211)
    at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:63)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
    at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1044)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
    Caused by: java.lang.ClassNotFoundException: org.eclipse.jface.util.ListenerList cannot be found by net.sf.eclipsecs.ui_7.6.0.201703111252
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 50 more

    Where is the problem:
    Oxygen
    eclipse-cs
    My system
    My brain
    ?

     
  • one

    one - 2017-07-04

    Use attached archive as Repository location (Help->Install New Software...->Add...->Archive...).
    It works fine with my Eclipse Oxygen :)

     
  • Stephan Muc81927

    Now it works for me too. I guess, that is a version with fixed bug #421. When is this version staged on the update site? I think customizing check configurations in a project specific way is an important feature.

     
  • Lars Koedderitzsch

    Version 8.0.0 will show up on the update site shortly, including the mentioned fix for Oxygen.

     
  • Aditya Poosarla

    Aditya Poosarla - 2017-07-18

    Getting the following error now

    !ENTRY net.sf.eclipsecs.core 4 0 2017-07-18 12:01:00.439
    !MESSAGE Checkstyle-Plugin: null
    !STACK 0
    java.lang.NullPointerException
        at net.sf.eclipsecs.ui.stats.views.MarkerStatsView$DetailViewMultiProvider.getColumnText(MarkerStatsView.java:750)
        at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:66)
        at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:141)
        at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:387)
        at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:475)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
        at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2159)
        at org.eclipse.jface.viewers.AbstractTableViewer.createItem(AbstractTableViewer.java:279)
        at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:716)
        at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:608)
        at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:600)
        at org.eclipse.jface.viewers.AbstractTableViewer.lambda$0(AbstractTableViewer.java:562)
        at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1447)
        at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1408)
        at org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:562)
        at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:286)
        at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1685)
        at net.sf.eclipsecs.ui.stats.views.MarkerStatsView$4.run(MarkerStatsView.java:401)
        at net.sf.eclipsecs.ui.stats.views.MarkerStatsView$8.doubleClick(MarkerStatsView.java:536)
    
     
  • Lars Koedderitzsch

    .@Aditya I couldn't reproduce at first glance, please provide steps - preferably in a bug ticket.

    Judging from the location of the NPE a full clean/rebuild of your workspace might help.

     
  • Aditya Poosarla

    Aditya Poosarla - 2017-07-19

    Tried clean and build, did not work. Created a bug 424

     

    Last edit: Aditya Poosarla 2017-07-19

Log in to post a comment.