Skip to content

NoClassDefFoundError: FakeInventoryView during PluginDisableEvent on Paper 26.2 #123

Description

@gummiangler

A NoClassDefFoundError is thrown for xyz.xenondevs.invui.internal.util.FakeInventoryView during the server shutdown sequence.

This issue only occurs if a player has an InvUI inventory/window actively open when the server stops or the plugin is disabled.

Error Log

[22:38:47 ERROR]: Could not pass event PluginDisableEvent to LobbyCore v1.0-SNAPSHOT
java.lang.NoClassDefFoundError: xyz/xenondevs/invui/internal/util/FakeInventoryView
        at xyz.xenondevs.invui.internal.menu.CustomContainerMenu$ContainerMenuProxy.getBukkitView(CustomContainerMenu.java:797)
        at org.bukkit.craftbukkit.event.CraftEventFactory.handleInventoryCloseEvent(CraftEventFactory.java:1602)
        at org.bukkit.craftbukkit.entity.CraftHumanEntity.closeInventory(CraftHumanEntity.java:598)
        at xyz.xenondevs.invui.window.AbstractWindow.close(AbstractWindow.java:587)
        at xyz.xenondevs.invui.window.WindowManager.lambda$new$0(WindowManager.java:29)
        at xyz.xenondevs.invui.InvUI.handlePluginDisable(InvUI.java:165)
Caused by: java.lang.ClassNotFoundException: xyz.xenondevs.invui.internal.util.FakeInventoryView
        at io.papermc.paper.plugin.entrypoint.classloader.PaperPluginClassLoader.loadClass(PaperPluginClassLoader.java:146)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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