LuckPerms

LuckPerms

41.4k Downloads

"NoSuchMethodError: com.google.gson.JsonObject.size()I"

emilyy-dev opened this issue ยท 3 comments

commented

Description

Ever since commit 4d5a24f, some people have been having the issue the title suggests (as shown here, here, here, here and issue #2597) on startup when LP tries to load/parse the contexts.json.
The common factor in here seems to be the base version of the vanilla server, apparently having a version prior 2.7 of the gson library shaded in them (which didn't even have a JsonObject#size()). Might as well be time to consider a 4 year old version of the game to be legacy :)

Reproduction steps

  1. Use an old server version (between 1.8.8 and 1.11.2)
  2. Install LP (not legacy) for the appropriate server brand.
  3. Start the server.
  4. Restart the server.

Expected behaviour

I mean, it won't work anyway, it has an old version of the library shaded, JsonObject#size() didn't exist back then.

Environment details

  • Server type/version: any? running version 1.8.8 up to 1.11.2 build any???
  • LuckPerms version: v5.1.95 and higher.

Any other relevant details

Nope :)

commented

same error, plugin wont load on 1.8.8 https://pastebin.com/f6a6xGZS

commented

You can use this build for now https://ci.lucko.me/job/LuckPerms/1152/

commented

Seems to also affect 1.16.2? Got this today https://hastebin.com/mudunafaga.sql