Menu

#239 BuddiPluginHelper.getInterval() missing

Release_3.2
closed-fixed
nobody
API (9)
5
2008-11-26
2008-11-26
No

I just tried using the Dashboard plugin from the plugins download page, and after adding it Buddi won't start up any more (hangs at the splash). The stack trace is the following:

java.lang.NoSuchMethodError: org.homeunix.thecave.buddi.plugin.BuddiPluginHelper.getInterval()Ljava/util/Vector;
at org.homeunix.thecave.plugins.dashboard.DataPanel.init(Unknown Source)
at org.homeunix.thecave.moss.swing.MossPanel.open(MossPanel.java:38)
at org.homeunix.thecave.plugins.dashboard.DataPanel.<init>(Unknown Source)
at org.homeunix.thecave.plugins.dashboard.DashBoardFrame.<init>(Unknown Source)
at org.homeunix.thecave.plugins.dashboard.DashBoardRunnablePlugin.run(Unknown Source)
at org.homeunix.thecave.buddi.Buddi.main(Buddi.java:728)

Looking at BuddiPluginHelper in SVN, it seems that a argument was added to getInterval. The fix would be either to overload getInterval with a no-arg method (calling getInterval(null)) or to fix and release a new version of the Dashboard plugin.

On a side note, I'd strongly recommend adding a try/catch block around the run() call on BuddiRunnablePlugin's at startup that would write to the log, show an informative error message, and continue loading if a plugin throws an exception. Nothing drives people away from software more than if it inexplicably doesn't start :)

Discussion

  • Wyatt

    Wyatt - 2008-11-26

    Thanks for finding this. I had reports that a plugin was misbehaving, but I was never able to get any information on which one.

    I have implemented both of your suggestions in Development 3.3.0.0, as well as Stable 3.2.2.5. Please let me know if you encounter anything else like this.

    Closing ticket.

    Cheers

     
  • Wyatt

    Wyatt - 2008-11-26
    • status: open --> closed-fixed