Skip to content

Server-side crash, possibly caused by override methods from mods that are not annotated #370

@juraj-hrivnak

Description

@juraj-hrivnak

I mentioned it on Discord...

[11:59:11] [SERVER/ERROR] [underdog]: An exception occurred while running scripts. Look at latest.log for a full stacktrace:
    java.lang.NoClassDefFoundError: net/minecraft/client/util/ITooltipFlag
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetPublicMethods(Class.java:2902)
        at java.lang.Class.getMethods(Class.java:1615)
        at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1336)
        at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1197)
        at java.beans.Introspector.getBeanInfo(Introspector.java:426)
        at java.beans.Introspector.getBeanInfo(Introspector.java:173)
        at groovy.lang.MetaClassImpl.lambda$addProperties$25(MetaClassImpl.java:3466)
        at java.security.AccessController.doPrivileged(Native Method)
        at groovy.lang.MetaClassImpl.doPrivileged(MetaClassImpl.java:3519)
        at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3466)
        at groovy.lang.MetaClassImpl.reinitialize(MetaClassImpl.java:3448)
        at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3441)
        at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:272)
        at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:314)
        at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:324)
        at postInit.recipes.woodworking.Woodworking.run(Woodworking.groovy:297)
        at com.cleanroommc.groovyscript.sandbox.GroovyScriptSandbox.runScript(GroovyScriptSandbox.java:148)
        at com.cleanroommc.groovyscript.sandbox.GroovyScriptSandbox.loadScripts(GroovyScriptSandbox.java:269)

Probably, some mod overrides the client-side method without the annotation.

I can easily test it, because I've set up a GitHub action that runs the Underdog server and checks for errors in GrS: https://github.com/juraj-hrivnak/Underdog/actions/runs/20208425746
So, feel free to ping me on Discord or here.

Also, I can try to fix it if you can help me with where I should look.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions