SBPrime / AsyncWorldEdit

Async WorldEdit - Edit millions of blocks without lag!
Other
197 stars 80 forks source link

Exception: java.lang.reflect.InaccessibleObjectException, Unable to make field private #378

Closed mrfloris closed 3 years ago

mrfloris commented 3 years ago
java16
> ver
[20:10:12 INFO]: Checking version, please wait...
[20:10:12 INFO]: This server is running Paper version git-Paper-708 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
You are 3 version(s) behind
Previous version: git-Paper-700 (MC: 1.16.5)
> ver WorldEdit
[20:10:16 INFO]: WorldEdit version 7.3.0-SNAPSHOT+5758-504b8bb
> ver AsyncWorldEdit
[20:10:19 INFO]: AsyncWorldEdit version 3.8.4
[20:10:19 INFO]: This plugin attaches into WorldEdit and makes it asynchronous.
[20:10:19 INFO]: Website: https://github.com/SBPrime/AsyncWorldEdit/wiki
[20:10:19 INFO]: Author: SBPrime
>
[20:05:12 INFO]: mrfloris issued server command: //move 1
[20:05:12 INFO]: [AsyncWorldEdit] -----------------------------------------------------------------------
[20:05:12 INFO]: [AsyncWorldEdit] Warning: Class scanner encountered an error while scanning class
[20:05:12 INFO]: [AsyncWorldEdit] Exception: java.lang.reflect.InaccessibleObjectException, Unable to make field private static final long java.util.ArrayList.serialVersionUID accessible: module java.base does not "opens java.util" to unnamed module @4148c2f1
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.asyncinjector.scanner.ClassScanner.unpack(ClassScanner.java:313)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.asyncinjector.scanner.ClassScanner.scan(ClassScanner.java:190)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.asyncinjector.async.AsyncOperationProcessor.process(AsyncOperationProcessor.java:132)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.injector.core.visitors.Helpers.executeMethodEx(Helpers.java:99)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.function.operation.Operations.completeLegacy(Operations.java)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.EditSession.moveRegion(EditSession.java:1523)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.command.RegionCommands.move(RegionCommands.java:332)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.command.RegionCommandsRegistration.cmd$_move(RegionCommandsRegistration.java:548)
[20:05:12 INFO]: [AsyncWorldEdit] org.enginehub.piston.CommandManager.execute(CommandManager.java:157)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.extension.platform.PlatformCommandManager.handleCommand(PlatformCommandManager.java:496)
[20:05:12 INFO]: [AsyncWorldEdit] jdk.internal.reflect.GeneratedMethodAccessor282.invoke(Unknown Source)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.Method.invoke(Method.java:567)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.MethodEventHandler.dispatch(MethodEventHandler.java:58)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventBus.nonwrapped_dispatch(EventBus.java:193)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.worldedit.util.eventbus.EventBusWrapper.dispatch(EventBusWrapper.java:107)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventBus.nonwrapped_post(EventBus.java:181)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.worldedit.util.eventbus.EventBusWrapper.post(EventBusWrapper.java:71)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.worldedit.CancelabeEditSession$EventBusWrapESEvent.post(CancelabeEditSession.java:519)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.bukkit.WorldEditPlugin.onCommand(WorldEditPlugin.java:375)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:55)
[20:05:12 INFO]: [AsyncWorldEdit] org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159)
[20:05:12 INFO]: [AsyncWorldEdit] org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:827)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2176)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:1991)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1944)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:50)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:8)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:35)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1265)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1258)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1219)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1133)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:290)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.Thread.run(Thread.java:831)
[20:05:12 INFO]: [AsyncWorldEdit] Class: class java.util.ArrayList
[20:05:12 INFO]: [AsyncWorldEdit] Object: []
[20:05:12 INFO]: [AsyncWorldEdit] Send this message to the author of the plugin!
[20:05:12 INFO]: [AsyncWorldEdit] https://github.com/SBPrime/AsyncWorldEdit/issues
[20:05:12 INFO]: [AsyncWorldEdit] -----------------------------------------------------------------------
[20:05:12 INFO]: [AsyncWorldEdit] -----------------------------------------------------------------------
[20:05:12 INFO]: [AsyncWorldEdit] Warning: Class scanner encountered an error while scanning class
[20:05:12 INFO]: [AsyncWorldEdit] Exception: java.lang.reflect.InaccessibleObjectException, Unable to make field transient java.lang.Object[] java.util.ArrayDeque.elements accessible: module java.base does not "opens java.util" to unnamed module @4148c2f1
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.asyncinjector.scanner.ClassScanner.unpack(ClassScanner.java:313)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.asyncinjector.scanner.ClassScanner.scan(ClassScanner.java:190)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.asyncinjector.async.AsyncOperationProcessor.process(AsyncOperationProcessor.java:132)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.injector.core.visitors.Helpers.executeMethodEx(Helpers.java:99)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.function.operation.Operations.completeLegacy(Operations.java)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.EditSession.moveRegion(EditSession.java:1523)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.command.RegionCommands.move(RegionCommands.java:332)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.command.RegionCommandsRegistration.cmd$_move(RegionCommandsRegistration.java:548)
[20:05:12 INFO]: [AsyncWorldEdit] org.enginehub.piston.CommandManager.execute(CommandManager.java:157)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.extension.platform.PlatformCommandManager.handleCommand(PlatformCommandManager.java:496)
[20:05:12 INFO]: [AsyncWorldEdit] jdk.internal.reflect.GeneratedMethodAccessor282.invoke(Unknown Source)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.reflect.Method.invoke(Method.java:567)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.MethodEventHandler.dispatch(MethodEventHandler.java:58)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventBus.nonwrapped_dispatch(EventBus.java:193)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.worldedit.util.eventbus.EventBusWrapper.dispatch(EventBusWrapper.java:107)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventBus.nonwrapped_post(EventBus.java:181)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.worldedit.util.eventbus.EventBusWrapper.post(EventBusWrapper.java:71)
[20:05:12 INFO]: [AsyncWorldEdit] org.primesoft.asyncworldedit.worldedit.CancelabeEditSession$EventBusWrapESEvent.post(CancelabeEditSession.java:519)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.worldedit.bukkit.WorldEditPlugin.onCommand(WorldEditPlugin.java:375)
[20:05:12 INFO]: [AsyncWorldEdit] com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:55)
[20:05:12 INFO]: [AsyncWorldEdit] org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159)
[20:05:12 INFO]: [AsyncWorldEdit] org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:827)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2176)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:1991)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1944)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:50)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:8)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:35)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1265)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1258)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1219)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1133)
[20:05:12 INFO]: [AsyncWorldEdit] net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:290)
[20:05:12 INFO]: [AsyncWorldEdit] java.base/java.lang.Thread.run(Thread.java:831)
[20:05:12 INFO]: [AsyncWorldEdit] Class: class java.util.ArrayDeque
[20:05:12 INFO]: [AsyncWorldEdit] Object: [com.sk89q.worldedit.function.operation.ForwardExtentCopy@29aed0dd, com.sk89q.worldedit.function.visitor.RegionVisitor@7239b88a]
[20:05:12 INFO]: [AsyncWorldEdit] Send this message to the author of the plugin!
[20:05:12 INFO]: [AsyncWorldEdit] https://github.com/SBPrime/AsyncWorldEdit/issues
[20:05:12 INFO]: [AsyncWorldEdit] -----------------------------------------------------------------------
SBPrime commented 3 years ago

Could you enable debug mode and send the full class scanner log (attach a file)

mrfloris commented 3 years ago

I am a bit confused, sorry. The wiki here shows debug: false for debug mode in the example config.yml, but when i delete the asyncworldedit/ folder and let it generate a default new one, it's the apache one and says off. I change it to on, ON, and other apache values, i even tried restarting using debug: false below the lang strings, but i dont see a file being generated, nor do i see it spit out more info in the console.

  debug: true
  messages:
    #Show debug messages (valid options: https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html)
    debugLevel: on
    #Show undo cleanup messages
    #Valid options: 
    # * off - no message (only errors),
    # * startup - show the message only on startup
    # * [Default] on - show all undo cleanup messages
    undoCleanup: on

Am I misunderstanding what you want, or am i looking in the wrong place? Sorry for being a nub

mrfloris commented 3 years ago

Ah, progress, I got more this time. awe-debug.log

SBPrime commented 3 years ago

Thx, the error is related to reflection. Most likely I have it fixed now but to test I need to know the version of java that you are using.

mrfloris commented 3 years ago
% java --version
openjdk 16.0.1 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)
SBPrime commented 3 years ago

Fixed in latest version.