You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally reported here for 1.14.4, another user reported it for 1.15.2 a few hours ago. The problem code appears to be in both versions.
Running the client in userdev with the --username and --password argument produces this error:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39)
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:50)
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:68)
at cpw.mods.modlauncher.Launcher.run(Launcher.java:80)
at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)
at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:101)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55)
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
... 5 more
Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3 path $.
at com.google.gson.internal.Streams.parse(Streams.java:60)
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:65)
at net.minecraft.util.JSONUtils.fromJson(JSONUtils.java:357)
at net.minecraft.util.JSONUtils.fromJson(JSONUtils.java:382)
at net.minecraft.util.JSONUtils.fromJson(JSONUtils.java:403)
at net.minecraft.client.main.Main.main(Main.java:101)
... 11 more
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3 path $.
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1401)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:508)
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:414)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:738)
at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:714)
at com.google.gson.internal.Streams.parse(Streams.java:48)
... 16 more
It looks like this is an error in Forge's dev-time login implementation, specifically this line:
As can be seen on line 12 of the OP's Gradle scan, this creates a string like {preferredLanguage=[com.mojang.authlib.properties.Property@d5b810e]} for the userProperties argument.
Minecraft's Main class attempts to deserialise the userProperties argument as JSON and throws the above error because this string isn't valid JSON.
Instead of using toString, LaunchTesting probably needs to use PropertyMap.Serializer (via Gson) to properly serialise the user properties as JSON.
The text was updated successfully, but these errors were encountered:
Originally reported here for 1.14.4, another user reported it for 1.15.2 a few hours ago. The problem code appears to be in both versions.
Running the client in userdev with the
--username
and--password
argument produces this error:It looks like this is an error in Forge's dev-time login implementation, specifically this line:
As can be seen on line 12 of the OP's Gradle scan, this creates a string like
{preferredLanguage=[com.mojang.authlib.properties.Property@d5b810e]}
for theuserProperties
argument.Minecraft's
Main
class attempts to deserialise theuserProperties
argument as JSON and throws the above error because this string isn't valid JSON.Instead of using
toString
,LaunchTesting
probably needs to usePropertyMap.Serializer
(viaGson
) to properly serialise the user properties as JSON.The text was updated successfully, but these errors were encountered: