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

[Bug/漏洞] 2.1.9.1版本1.16.5 forge无法加载mod #131

Open
3 tasks done
GADDQ opened this issue Feb 12, 2024 · 4 comments
Open
3 tasks done

[Bug/漏洞] 2.1.9.1版本1.16.5 forge无法加载mod #131

GADDQ opened this issue Feb 12, 2024 · 4 comments
Labels
Enhancement(功能请求) New feature or request(新功能请求)

Comments

@GADDQ
Copy link

GADDQ commented Feb 12, 2024

Checks / 检查

  • I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了现有的问题或者拉取请求,以避免重复报告。
  • I confirm that I followed the Docs and read the Changelog, but this problem still exists./我确认我按照文档配置并阅读了Changelog,但这个问题仍然存在。
  • I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。

Java Version / Java版本

8u282

Minecraft Version / Minecraft版本

1.16.5

McBot Version / McBot版本

2.1.9.1

Description / 描述

如标题

To Reproduce / 重现

启动游戏

Log / 日志

Details:
Caused by 0: java.lang.NoClassDefFoundError: cn/evole/onebot/sdk/util/FileUtils
at cn.evole.mods.mcbot.IMcBot.init(IMcBot.java:46) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.IMcBot.(IMcBot.java:41) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.McBot.(McBot.java:29) ~[mcbot:?] {re:classloading}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_282] {}
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_282] {}
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_282] {}
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_282] {}
at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_282] {}
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:67) ~[forge:36.2] {re:classloading}
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:106) ~[forge:?] {re:classloading}
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_282] {}
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_282] {re:computing_frames}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_282] {}

Mod File: [群服互联] McBot-forge-1.16.x-2.1.9.1.jar
Failure message: McBot-forge (mcbot) has failed to load correctly
	java.lang.NoClassDefFoundError: cn/evole/onebot/sdk/util/FileUtils
Mod Version: 2.1.9.1
Mod Issue URL: NOT PROVIDED
Exception message: java.lang.ClassNotFoundException: cn.evole.onebot.sdk.util.FileUtils

Stacktrace:
at java.lang.ClassLoader.findClass(ClassLoader.java:524) ~[?:1.8.0_282] {}
at java.lang.ClassLoader.loadClass(ClassLoader.java:419) ~[?:1.8.0_282] {}
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:106) ~[modlauncher-8.1.3.jar:?] {re:classloading}
at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_282] {}
at cn.evole.mods.mcbot.IMcBot.init(IMcBot.java:46) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.IMcBot.(IMcBot.java:41) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.McBot.(McBot.java:29) ~[mcbot:?] {re:classloading}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_282] {}
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_282] {}
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_282] {}
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_282] {}
at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_282] {}
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:67) ~[forge:36.2] {re:classloading}
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:106) ~[forge:?] {re:classloading}
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_282] {}
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_282] {re:computing_frames}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_282] {}

Config / 配置

配置不用看,启动都启动不了,已经和配置没有关系了

@GADDQ
Copy link
Author

GADDQ commented Feb 12, 2024

@cnlimiter

@GADDQ
Copy link
Author

GADDQ commented Feb 12, 2024

手动混合onebot后的包启动:
Details:
Caused by 0: java.lang.NoClassDefFoundError: cn/evole/config/toml/AutoReloadToml
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_282] {}
at java.lang.ClassLoader.defineClass(ClassLoader.java:757) ~[?:1.8.0_282] {}
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:138) ~[modlauncher-8.1.3.jar:?] {re:classloading}
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) ~[modlauncher-8.1.3.jar:?] {re:classloading}
at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_282] {}
at cn.evole.mods.mcbot.util.locale.I18n.init(I18n.java:28) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.IMcBot.init(IMcBot.java:48) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.IMcBot.(IMcBot.java:41) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.McBot.(McBot.java:29) ~[mcbot:?] {re:classloading}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_282] {}
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_282] {}
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_282] {}
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_282] {}
at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_282] {}
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:67) ~[forge:36.2] {re:classloading}
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:106) ~[forge:?] {re:classloading}
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_282] {}
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_282] {re:computing_frames}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_282] {}

Mod File: [群服互联] McBot-forge-1.16.x-2.1.9.1.jar
Failure message: McBot-forge (mcbot) has failed to load correctly
	java.lang.NoClassDefFoundError: cn/evole/config/toml/AutoReloadToml
Mod Version: 2.1.9.1
Mod Issue URL: NOT PROVIDED
Exception message: java.lang.ClassNotFoundException: cn.evole.config.toml.AutoReloadToml

Stacktrace:
at java.lang.ClassLoader.findClass(ClassLoader.java:524) ~[?:1.8.0_282] {}
at java.lang.ClassLoader.loadClass(ClassLoader.java:419) ~[?:1.8.0_282] {}
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:106) ~[modlauncher-8.1.3.jar:?] {re:classloading}
at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_282] {}
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_282] {}
at java.lang.ClassLoader.defineClass(ClassLoader.java:757) ~[?:1.8.0_282] {}
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:138) ~[modlauncher-8.1.3.jar:?] {re:classloading}
at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) ~[modlauncher-8.1.3.jar:?] {re:classloading}
at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_282] {}
at cn.evole.mods.mcbot.util.locale.I18n.init(I18n.java:28) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.IMcBot.init(IMcBot.java:48) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.IMcBot.(IMcBot.java:41) ~[mcbot:?] {re:classloading}
at cn.evole.mods.mcbot.McBot.(McBot.java:29) ~[mcbot:?] {re:classloading}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_282] {}
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_282] {}
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_282] {}
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_282] {}
at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_282] {}
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:67) ~[forge:36.2] {re:classloading}
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:106) ~[forge:?] {re:classloading}
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_282] {}
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_282] {}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_282] {re:computing_frames}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_282] {}

@cnlimiter
Copy link
Collaborator

1.16.5的jar in jar暂不支持修复

@cnlimiter
Copy link
Collaborator

下个版本依赖采用网络下载模式

@cnlimiter cnlimiter added the Enhancement(功能请求) New feature or request(新功能请求) label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement(功能请求) New feature or request(新功能请求)
Projects
None yet
Development

No branches or pull requests

2 participants