'Expected' Error on periodical save
LadyCailinBot opened this issue ยท 4 comments
WORLDGUARD-3750 - Reported by Dragoboss
This issue might somehow have been caused by myself in some way.... However:
The last few days I've been receiving the following message in my console:
[15:48:54] [Timer-1/WARN]: [WorldGuard] An expected error occurred during a periodical save
java.lang.ClassCastException
I am running on Spigot 1.10,
Tried with both WorldGuard-6.1.2 and the Snapshot of legacy-6.1.3 (not sure if this is the right one to try).
The server is running on Java 1.8
WorldEdit is at latest stable 6.1.3..
Now. I have no clue what causes this, and why it started so suddenly...
The debug line says its an 'expected' error, why is it expected, how is it caused?
In the code it is displayed when catching Exception(e) however that is just too broad for me to understand what is causing it...
Can someone clear this up a bit for me?
P.S. my apologies if this is a duplicate, I couldn't find any other issue similar to this one but I might just have missed something somewhere..
Comment by wizjany
that's probably just a typo.
need the full stacktrace to diagnose the issue though.
Comment by Dragoboss
That's mostly the issue.
It displays no stacktrace for me at this error..
[20:01:25] [Timer-1/WARN]: [WorldGuard] An expected error occurred during a periodical save
java.lang.ClassCastException
[20:01:47] [Craft Scheduler Thread - 418/INFO]: [SimpleTicketManager] Database connection has been kept alive
[20:01:55] [Timer-1/WARN]: [WorldGuard] An expected error occurred during a periodical save
java.lang.ClassCastException
[20:02:25] [Timer-1/WARN]: [WorldGuard] An expected error occurred during a periodical save
java.lang.ClassCastException
[20:02:47] [Craft Scheduler Thread - 422/INFO]: [SimpleTicketManager] Database connection has been kept alive
[20:02:55] [Timer-1/WARN]: [WorldGuard] An expected error occurred during a periodical save
java.lang.ClassCastException
[20:03:25] [Timer-1/WARN]: [WorldGuard] An expected error occurred during a periodical save
java.lang.ClassCastException
[20:03:47] [Craft Scheduler Thread - 416/INFO]: [SimpleTicketManager] Database connection has been kept alive
Comment by Dragoboss
While I still don't know why this error happened in 6.1.2, in 6.1.3 it seems to be because of a plugin calling to the fuzzyMatch methode which seems to have been removed in 6.1.3?
I downgraded my version to 6.1.1 and have found no issues so it definitely had something to do with my other plugins and their use of your API...
I'll try to further investigate what exactly causes this issue...