Issue with server scheduler #12


  • Defect
  • Accepted
Open
Assigned to _ForgeUser7497922
  • _ForgeUser8596166 created this issue May 2, 2012

    One of our plugins has been causing issues with some of are other plugins, basically this plugin is affecting our servers scheduler. After allot of testing we narrowed it down to shopads. After removing shopads everything went back to working fine.

    Right now our best guess is that one of the methods shopads is using in a thread isnt thread safe, thus causing the problems with the serveres scheduler.

    Tested on CB 2149, Shopads .81 (also tested .82)

  • _ForgeUser8596166 added the tags New Defect May 2, 2012
  • _ForgeUser7459501 posted a comment Jun 3, 2012

    I'm having this same issue. I would really appreciate a response to confirm you are looking into it. This is a great plugin and i would hate to have to remove it from my server.

  • _ForgeUser7497922 posted a comment Jun 6, 2012

    @Firetire: Go

    Working on a fix now

  • _ForgeUser7497922 removed a tag New Jun 6, 2012
  • _ForgeUser7497922 added a tag Accepted Jun 6, 2012
  • _ForgeUser8919366 posted a comment Jun 11, 2012

    I cant wait for this issue to be resolved. My server misses this plugin dearly :(

  • Forge_User_98444243 posted a comment Jun 25, 2012

    fix for this: in the onEnable loop, you call the reload() function you've made. at the start of the reload() function, you've put scheduler.cancelAllTasks();

    you should only cancel tasks in the onDisable() loop.

    edit: and use cancelTasks(Plugin), saves future similar troubles


    Edited Jun 25, 2012
  • _ForgeUser7497922 posted a comment Jun 29, 2012

    @Streammy: Go

    Sadly I have known about this since the beginning, and had attempted many times to make it work with cancelTasks(this) or final, static, non-static, global, and local variables but would always either get a null pointer, or it would get through to the scheduler class but null out on its checkName(Plugin) method somewhere in there. If you look at what I did with my global "plugin" variable, calling the plugin manager and grabbing my plugin that way, was the only way I have gotten to work, and just came up with it tonight.

    Also, I have a disable command which runs the onDisable method so I still am not canceling all tasks there. Thanks for the suggestion anyways.


To post a comment, please login or register a new account.