#1166 Invalid Findbugs plugin archive message, if findbugsplugin jar is not on "C:"

2.0.3
closed-fixed
None
5
2014-08-14
2013-03-11
John Vastenhouw
No

Configuring a findbugsplugin.jar in the FindBugs Eclipse plugin(2.0.2) on windows system fails if this findbugsplugin.jar is located on drive D:

How to reproduce:
-Add a findbug.jar that is located on drive D:
-OK

See ErrorLog op eclipse for error message

Note the path should have been: D:\findbugs\plugin\findBugsPlugin.jar
Moving the findbugsPlugin.jar to a location on drive C: solves the problem

Eclipse errorlog:

Invalid FindBugs plugin archive: File findbugs\plugin\findBugsPlugin.jar is not a file or is not readable

java.lang.IllegalArgumentException: File findbugs\plugin\findBugsPlugin.jar is not a file or is not readable
at edu.umd.cs.findbugs.PluginLoader.validate(PluginLoader.java:1532)
at de.tobject.findbugs.properties.DetectorValidator.validate(DetectorValidator.java:78)
at de.tobject.findbugs.FindbugsPlugin.applyCustomDetectors(FindbugsPlugin.java:347)
at de.tobject.findbugs.properties.FindbugsPropertyPage.performOk(FindbugsPropertyPage.java:594)
at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:965)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:945)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:448)
at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:171)
at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215)
at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1049)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:939)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:79)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:587)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:542)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1443)

Discussion

  • William Pugh
    William Pugh
    2013-04-08

    • status: open --> open-accepted
    • assigned_to: Andrey Loskutov
     
  • William Pugh
    William Pugh
    2013-04-08

    Andy, can you take a look at this?

     
  • Hi,
    I think I have a fix, see https://code.google.com/p/findbugs/source/detail?r=14734

    Unfortunately I have no workstation with ready to use windows setup, so I had no chance to test it on Windows.

    Please check if the nightly build from tomorrow fixes your problem.

    Regards,
    Andrey

     
  • P.S. Bill, I still have no rights to change anything in the tracker anymore, except adding comments. It would be nice to get them back - so that I can accept/assign/resolve bugs etc.
    CU
    Andrey

     
    • status: open-accepted --> closed-fixed