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] 与allmusic mod的okhttp3库冲突 #29

Closed
nnnnn111bot opened this issue Jan 26, 2024 · 3 comments
Closed

[Bug] 与allmusic mod的okhttp3库冲突 #29

nnnnn111bot opened this issue Jan 26, 2024 · 3 comments
Assignees

Comments

@nnnnn111bot
Copy link

Bug 描述

我在我的1.18.2服务器使用此mod,将其与allmusic mod一起启动后发生冲突

复现问题的步骤

1:启动服务器
2:服务器启动后加载allmusic
3:报错后自动关服

日志记录

:[22:24:21] [Server thread/INFO]: Done (6.359s)! For help, type "help"
[22:24:21] [Server thread/INFO]: §d[AllMusic]§e正在初始化网络爬虫
[22:24:22] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NoSuchFieldError: okio/Options.Companion
at okhttp3.internal.Util.(Util.kt:70) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at okhttp3.internal.concurrent.TaskRunner.(TaskRunner.kt:309) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at okhttp3.ConnectionPool.(ConnectionPool.kt:41) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at okhttp3.ConnectionPool.(ConnectionPool.kt:47) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at okhttp3.OkHttpClient$Builder.(OkHttpClient.kt:471) ~[com_squareup_okhttp3_okhttp-4.10.0-f0ad7a2a4fa6af51.jar:?]
at coloryr.allmusic.core.music.api.HttpClientUtil.init(HttpClientUtil.java:30) ~[%5BFabric1.18.2%5DAllMusic_Server-2.19.4.jar:?]
at coloryr.allmusic.core.music.api.APIMain.(APIMain.java:34) ~[%5BFabric1.18.2%5DAllMusic_Server-2.19.4.jar:?]
at coloryr.allmusic.core.AllMusic.start(AllMusic.java:337) ~[%5BFabric1.18.2%5DAllMusic_Server-2.19.4.jar:?]
at coloryr.allmusic.AllMusicFabric.lambda$onInitialize$1(AllMusicFabric.java:45) ~[%5BFabric1.18.2%5DAllMusic_Server-2.19.4.jar:?]
at net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$2(ServerLifecycleEvents.java:49) ~[fabric-lifecycle-events-v1-2.1.1+cc71601c60-9ad41f25ee9ba96b.jar:?]
at net.minecraft.server.MinecraftServer.handler$zod000$fabric-lifecycle-events-v1$afterSetupServer(MinecraftServer.java:5312) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:676) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:273) ~[server-intermediary.jar:?]
at java.lang.Thread.run(Thread.java:889) [?:?]
[22:24:22] [Server thread/ERROR]: This crash report has been saved to: D:\server.\crash-reports\crash-2024-01-26_22.24.22-server.txt
[22:24:22] [Server thread/INFO]: §d[AllMusic]§2§e已停止,感谢使用

模组加载器

Fabric

我的世界版本

1.18.x

Mod版本

ChatImage-1.1.5+1.18.2+fabric

电脑系统|JAVA版本

Windows 11 10.0.22621.2861
java:java version "20" 2023-03-21
Java(TM) SE Runtime Environment (build 20+36-2344)
Java HotSpot(TM) 64-Bit Server VM (build 20+36-2344, mixed mode, sharing)

服务器版本

fabric-server-mc.1.18.2-loader.0.15.6-launcher.1.0.0.jar

截图

No response

备注

No response

@kitUIN
Copy link
Owner

kitUIN commented Jan 26, 2024

请问是这个AllMusic吗?->https://github.com/Coloryr/AllMusic_Server

@nnnnn111bot
Copy link
Author

是的

@Coloryr
Copy link

Coloryr commented Jan 27, 2024

我用的okhttp4,你的是okhttp3

@kitUIN kitUIN closed this as completed Feb 5, 2024
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

3 participants