Skip to content

Error logging in on 1.21.11. #156

@kevinthegreat1

Description

@kevinthegreat1

Expected behavior

Observed/actual behavior

The login always completes with an error, although the login does appear to be successful, and I am able to join servers.

[pool-9-thread-1/ERROR] (Auth Me) Could not login via Microsoft!

java.util.concurrent.CompletionException: java.lang.IllegalAccessError: class me.axieum.mcmod.authme.api.util.SessionUtils tried to access private method 'void com.mojang.realmsclient.client.RealmsClient.<init>(java.lang.String, java.lang.String, net.minecraft.client.Minecraft)' (me.axieum.mcmod.authme.api.util.SessionUtils and com.mojang.realmsclient.client.RealmsClient are in unnamed module of loader 'knot' @5c3bd550)
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.IllegalAccessError: class me.axieum.mcmod.authme.api.util.SessionUtils tried to access private method 'void com.mojang.realmsclient.client.RealmsClient.<init>(java.lang.String, java.lang.String, net.minecraft.client.Minecraft)' (me.axieum.mcmod.authme.api.util.SessionUtils and com.mojang.realmsclient.client.RealmsClient are in unnamed module of loader 'knot' @5c3bd550)
	at knot//me.axieum.mcmod.authme.api.util.SessionUtils.setUser(SessionUtils.java:101)
	at knot//me.axieum.mcmod.authme.api.gui.screen.MicrosoftAuthScreen.lambda$init$7(MicrosoftAuthScreen.java:128)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718)
	... 5 more

Steps/models to reproduce

Login with microsoft from a dev env.

Version

9.1.0+1.21.11

Agreements

  • I am running the latest version of the mod.
  • My version of Minecraft is supported.
  • I have searched for and ensured there isn't already an open issue regarding this.

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions