TimeManager RejectedExecutionException

Results 1 to 5 of 5
  1. #1
    Apprentice ivan7208 is offline
    MemberRank
    Apr 2015 Join Date
    10Posts

    config TimeManager RejectedExecutionException

    I am aware that the threading is clearly being shutdown by the server itself, the issue is that there is way too much scripts involved and to fix this error it's like finding a needle in a haystack. Anyone knows how would I go around the sudden shutdown that TimeManager has.

    It stops all the threads and the server literally crashes because of it.

    fc66b92504567a8e091a63dd51cc8e52.png

    I found that TimeManager.java has a stop() method that gets utilized in LoginServer.java , LoginWorldInterfaceImpl.java , ShutdownServer.java , etc ...

    It stops at random threads on the pool and I would like to know how would I go around to debug this?


  2. #2
    Proficient Member Pipotron is offline
    MemberRank
    Sep 2017 Join Date
    PastalandLocation
    156Posts

    Re: TimeManager RejectedExecutionException

    Quote Originally Posted by ivan7208 View Post
    I found that TimeManager.java has a stop() method that gets utilized in LoginServer.java , LoginWorldInterfaceImpl.java , ShutdownServer.java , etc ...
    Mmm, I understand the need to stop TimerManager instance as a last step of ShutdownServer, but the other occurrences feel strange.

    Could you please post the portion of LoginServer.java where the TimerManager instance is called and where it's closed?

  3. #3
    Apprentice ivan7208 is offline
    MemberRank
    Apr 2015 Join Date
    10Posts

    Re: TimeManager RejectedExecutionException

    Okay, so here is the pastebin with the whole Login.java file: https://pastebin.com/yqfDVMF5

    It seems like the TimerManager starts at line 244 and Login.java has a shutdown() void method that has the TimerManager.stop() method which might be the cause of TimerManager shutting down, not sure.

  4. #4
    Proficient Member Pipotron is offline
    MemberRank
    Sep 2017 Join Date
    PastalandLocation
    156Posts

    Re: TimeManager RejectedExecutionException

    Mmm, that one is actually correct, as it's called at server shutdown; it doesn't infulence our case. It's structured differently on my server, so the fact that there was a stop call in LoginServer made me suspicious. c:

    However, we're gonna need a different scenario, where shutdowns are not involved; mind checking if there's calls to the TimerManager instance's stop() function in functions that don't involve shutdown, please? If we find that, that'll be where we should be looking at.

  5. #5
    Apprentice ivan7208 is offline
    MemberRank
    Apr 2015 Join Date
    10Posts

    Re: TimeManager RejectedExecutionException

    The problem with this RejectedExecutionException is that it will be really hard to find, it is like finding a needle in a haystack giving the fact that the TimerManager.java is connected with a lot of scripts, the only scripts in which it actually shows any kind of usage of the stop() method of TimerManager is in Login.java and Shutdown.java , https://i.imgur.com/kBo2CTH.png . But there is a shutdown() method in Login.java that has the TimerManager.stop() method in usage, and the shutdown() method in Login.java is used in https://i.imgur.com/kukGmSY.png LoginWorldInterfaceImpl.java which at the same time has another shutdown() method that is used in https://i.imgur.com/nrXSupe.png WorldChannelInterface.java with "lwi" being the LoginWorldInterface reference to LoginWorldInterface.java afterwards, the WorldChannelInterface.java has another shutdown() method that is used in all those : https://i.imgur.com/JdXD8v4.png

    I could continue, as said it is like finding a needle in a haystack, everything is connected and it is Indeed driving me crazy in how I would go around trying to debug this.

    - - - Updated - - -

    That is why I am trying to find a way to actually get useful information from all the threads that are being processed by the ScheduledThreadExecutor because that is the "gateway" where all the threads get passed by, if I could find where it stops I could try to figure on why it stops in those spots even though I already got this same error a few times, each time with a different Thread Number defined by the AtomicInteger though.

    - - - Updated - - -

    Quote Originally Posted by Pipotron View Post
    Mmm, that one is actually correct, as it's called at server shutdown; it doesn't infulence our case. It's structured differently on my server, so the fact that there was a stop call in LoginServer made me suspicious. c:

    However, we're gonna need a different scenario, where shutdowns are not involved; mind checking if there's calls to the TimerManager instance's stop() function in functions that don't involve shutdown, please? If we find that, that'll be where we should be looking at.
    And also answering to your sentence, no, the only places where the TimerManager's stop() method is used is in Login.java and in the shutdown() method. Afterwards, it might be connected to everything I explained in my second post with all the imgur images.



Advertisement