ClassCastException: 'Voice category' miscast in path root->*Voice category*: Cannot cast java.lang.Integer to java.lang.Long
mibby opened this issue · 3 comments
RE: 6b3e091#commitcomment-34820019
Getting this exception at start-up. Compiled as of this commit/branch 6b3e091 with voice settings default (false).
[14:36:49] [DiscordSRV - Initialization/WARN]: java.lang.ClassCastException: 'Voice category' miscast in path root->*Voice category*: Cannot cast java.lang.Integer to java.lang.Long. Avoid by checking `if (aDynamic.is(Long.class)) ...` or using `aDynamic.maybe().as(Long.class)`
[14:36:49] [DiscordSRV - Initialization/WARN]: at alexh.weak.DynamicChild.as(DynamicChild.java:52)
[14:36:49] [DiscordSRV - Initialization/WARN]: at github.scarsz.discordsrv.voice.VoiceModule.<init>(VoiceModule.java:48)
[14:36:49] [DiscordSRV - Initialization/WARN]: at github.scarsz.discordsrv.DiscordSRV.init(DiscordSRV.java:629)
[14:36:49] [DiscordSRV - Initialization/WARN]: at java.lang.Thread.run(Thread.java:748)
[14:36:50] [DiscordSRV - Initialization/ERROR]: [DiscordSRV] DiscordSRV failed to load properly: 'Voice category' miscast in path root->*Voice category*: Cannot cast java.lang.Integer to java.lang.Long. Avoid by checking `if (aDynamic.is(Long.class)) ...` or using `aDynamic.maybe().as(Long.class)`. See -snip- for more information.
Thanks for the issue. Refreshing to see someone actually compile changes, test, and give feedback.
Currently putting this off as I'm writing my own config wrapper for DiscordSRV to use which should handle config value types smarter than Bukkit's config wrapper does. Should make the transition towards multi-platform easier as well for DiscordSRV v2.
Sure, happy to help test.
I don't mind continuing to compile myself, especially for test branches, but is there any plans on bringing back the build server/jenkins? The link went dead a month or so ago.
https://ci.scarsz.me/viewType.html?buildTypeId=DiscordSRV_Build&guest=1
The build server has been down for a couple months now. TeamCity is just too much of an application for my likings and used far too much memory for me to be comfortable with. Jenkins is a very much utilitarian app that I've used in the past but is filled with constant security issues and exploits because of the fact it's popular and is often ran unattended. I've personally seen a bitcoin miner running as the jenkins
user from back when I still used it. Not ideal.
I wanted to make my own CI server https://github.com/Scarsz/Mori but recently GitHub has been pushing their Actions tool and DiscordSRV happens to be in the beta for the newest version. It looks extremely promising. When already-existing community-made actions are updated to the newer version, I'll be moving all the CI stuff to that.