Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to override methods from class net.minecraft.server.level.PlayerChunkMap #155

Open
AoElite opened this issue Sep 27, 2022 · 3 comments

Comments

@AoElite
Copy link

AoElite commented Sep 27, 2022

Describe the issue
Error on start up when using latest paper.

Spigot version
This server is running Paper version git-Paper-177 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT) (Git: 1bbd273)

Plugin version
slimeworldmanager-classmodifier-2.10.0-SNAPSHOT.jar
slimeworldmanager-plugin-2.10.0-SNAPSHOT.jar
Git: 8fa7819

How to reproduce
Use specified jar and start the server.
(Also yes -javaagent:slimeworldmanager-classmodifier-2.10.0-SNAPSHOT.jar is included in the start script)

Crash reports (if available)

[19:38:06 ERROR]: [STDERR] [com.grinderwolf.swm.clsm.NMSTransformer] Failed to override methods from class net.minecraft.server.level.PlayerChunkMap.
[19:38:06 WARN]: javassist.CannotCompileException: Method a
[19:38:06 WARN]:        at com.grinderwolf.swm.clsm.NMSTransformer.transform(NMSTransformer.java:261)
[19:38:06 WARN]:        at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244)
[19:38:06 WARN]:        at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
[19:38:06 WARN]:        at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:541)
[19:38:06 WARN]:        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[19:38:06 WARN]:        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
[19:38:06 WARN]:        at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
[19:38:06 WARN]:        at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524)
[19:38:06 WARN]:        at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427)
[19:38:06 WARN]:        at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421)
[19:38:06 WARN]:        at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
[19:38:06 WARN]:        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:420)
[19:38:06 WARN]:        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
[19:38:06 WARN]:        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[19:38:06 WARN]:        at net.minecraft.world.level.World.<init>(World.java:278)
[19:38:06 WARN]:        at net.minecraft.server.level.WorldServer.<init>(WorldServer.java:526)
[19:38:06 WARN]:        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:586)
[19:38:06 WARN]:        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:422)
[19:38:06 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:306)
[19:38:06 WARN]:        at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1100)
[19:38:06 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305)
[19:38:06 WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)
[19:38:06 WARN]: Caused by: javassist.CannotCompileException: [source error] no such field: $0/q
[19:38:06 WARN]:        at javassist.CtBehavior.insertBefore(CtBehavior.java:806)
[19:38:06 WARN]:        at javassist.CtBehavior.insertBefore(CtBehavior.java:766)
[19:38:06 WARN]:        at com.grinderwolf.swm.clsm.NMSTransformer.transform(NMSTransformer.java:247)
[19:38:06 WARN]:        ... 21 more
[19:38:06 WARN]: Caused by: compile error: no such field: $0/q
[19:38:06 WARN]:        at javassist.compiler.MemberResolver.lookupFieldByJvmName2(MemberResolver.java:288)
[19:38:06 WARN]:        at javassist.compiler.TypeChecker.fieldAccess2(TypeChecker.java:941)
[19:38:06 WARN]:        at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:929)
[19:38:06 WARN]:        at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:831)
[19:38:06 WARN]:        at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:605)
[19:38:06 WARN]:        at javassist.compiler.ast.Expr.accept(Expr.java:71)
[19:38:06 WARN]:        at javassist.compiler.JvstTypeChecker.atMethodArgs(JvstTypeChecker.java:235)
[19:38:06 WARN]:        at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:763)
[19:38:06 WARN]:        at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:723)
[19:38:06 WARN]:        at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:170)
[19:38:06 WARN]:        at javassist.compiler.ast.CallExpr.accept(CallExpr.java:49)
[19:38:06 WARN]:        at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:266)
[19:38:06 WARN]:        at javassist.compiler.CodeGen.compileBooleanExpr(CodeGen.java:260)
[19:38:06 WARN]:        at javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:414)
[19:38:06 WARN]:        at javassist.compiler.CodeGen.atStmnt(CodeGen.java:385)
[19:38:06 WARN]:        at javassist.compiler.ast.Stmnt.accept(Stmnt.java:53)
[19:38:06 WARN]:        at javassist.compiler.CodeGen.atStmnt(CodeGen.java:381)
[19:38:06 WARN]:        at javassist.compiler.ast.Stmnt.accept(Stmnt.java:53)
[19:38:06 WARN]:        at javassist.compiler.Javac.compileStmnt(Javac.java:578)
[19:38:06 WARN]:        at javassist.CtBehavior.insertBefore(CtBehavior.java:786)
[19:38:06 WARN]:        ... 23 more
@Paul19988
Copy link
Owner

We are not compatible with the latest paper due to the MASSIVE chunk rewrite

@Owen1212055
Copy link
Collaborator

We will be soon! :) (hopefully)

@Owen1212055 Owen1212055 reopened this Sep 28, 2022
@vytskalt
Copy link

Are you gonna drop support for Spigot after making it work with the chunk rewrite?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants