Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions in Events manager #17

Open
NiklasEi opened this issue Jan 3, 2021 · 0 comments
Open

Exceptions in Events manager #17

NiklasEi opened this issue Jan 3, 2021 · 0 comments

Comments

@NiklasEi
Copy link
Owner

NiklasEi commented Jan 3, 2021

deadfish on Discord
I'm having some console errors sometimes after the event. I'm using the listener in the plugin. The event was triggered correctly but there's this error after some time. Do you have any idea what is causing this? Thanks!

[15:38:49] [Server thread/WARN]: [CalendarEvents] Task #4102869 for CalendarEvents v2.3.0 generated an exception
java.lang.NullPointerException: null
    at me.nikl.calendarevents.EventsManager.callEvent(EventsManager.java:358) ~[?:?]
    at me.nikl.calendarevents.EventsManager.access$100(EventsManager.java:30) ~[?:?]
    at me.nikl.calendarevents.EventsManager$3$1.run(EventsManager.java:425) ~[?:?]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.4.jar:git-Paper-345]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1294) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:377) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1209) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:997) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:178) ~[patched_1.16.4.jar:git-Paper-345]
    at java.lang.Thread.run(Thread.java:832) [?:?]

And there's one time when the actions couldn't run successfully with the following error.

[15:45:06] [Server thread/WARN]: [CalendarEvents] Task #4219253 for CalendarEvents v2.3.0 generated an exception
java.util.ConcurrentModificationException: null
    at java.util.HashMap$Values.forEach(HashMap.java:1071) ~[?:?]
    at me.nikl.calendarevents.EventsManager.reCalcNextMillis(EventsManager.java:435) ~[?:?]
    at me.nikl.calendarevents.scheduling.Timer$1$1.run(Timer.java:29) ~[?:?]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.4.jar:git-Paper-345]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1294) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:377) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1209) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:997) ~[patched_1.16.4.jar:git-Paper-345]
    at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:178) ~[patched_1.16.4.jar:git-Paper-345]
    at java.lang.Thread.run(Thread.java:832) [?:?]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant