@Dituon 问题解决了,感谢大佬
CCC3115 发布的帖子
-
RE: Petpet - 生成各种奇怪的图片
2025-03-17 18:16:29 INFO/Petpet-Onebot: ▌ 已连接到服务器 ┈━═☆
2025-03-17 18:16:29 INFO/BaseHttpServer: HTTP 图像服务器已在端口 2233 上启动
2025-03-17 18:16:30 INFO/FontManager: Font register success: MiSans-Bold.ttf, Aller-Bold.ttf, Handel-Gothic.ttf
2025-03-17 18:16:31 INFO/Petpet:
=============== Petpet 环境检查 ===============
推荐使用 JetBrainsRuntime JVM 运行 Petpet:
https://github.com/JetBrains/JetBrainsRuntime使用 Oracle Corporation 提供的 JVM 可能不支持以下功能:
-
彩色 Emoji 渲染
-
Linux 上的增强字体渲染
-
亚像素抗锯齿
2025-03-17 18:16:31 INFO/Petpet-Onebot:██████╗ ███████╗████████╗██████╗ ███████╗████████╗
██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██╔════╝╚══██╔══╝
██████╔╝█████╗ ██║ ██████╔╝█████╗ ██║
██╔═══╝ ██╔══╝ ██║ ██╔═══╝ ██╔══╝ ██║
██║ ███████╗ ██║ ██║ ███████╗ ██║
╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ v1.0.0-beta2
2025-03-17 18:16:31 INFO/Petpet-Onebot: Petpet Onebot 客户端启动成功:
2025-03-17 18:16:31 INFO/Petpet-Onebot: 已加载 138 模板; 随机表列包含 92 模板;
2025-03-17 18:16:31 INFO/Petpet-Onebot: 已注册 2 脚本; 默认模板为 index-text-tabel;
2025-03-17 18:16:31 INFO/Petpet-Onebot: 已加载 94 字体; 默认字体为 MiSans;
2025-03-17 18:16:31 INFO/Petpet-Onebot: Petpet Onebot 客户端启动完毕, 发送 pet 以触发默认模板...
启动成功,不管给机器人输入什么指令都是收到上面那一段信息
java版本是jdk17.0.0.1,onebot用的astragocq v1.3.1-pre-8,系统是centos -
-
RE: Petpet - 生成各种奇怪的图片
大佬您好,我在使用petpet-onebot-1.0.0-beta2,输入指令之后返回
2025-03-17 17:57:27 ERROR/Petpet-Onebot: 处理 Onebot 事件时出现异常:
java.lang.ClassCastException: class com.google.gson.JsonPrimitive cannot be cast to class com.google.gson.JsonArray (com.google.gson.JsonPrimitive and com.google.gson.JsonArray are in unnamed module of loader 'app')
at com.google.gson.JsonObject.getAsJsonArray(JsonObject.java:209)
at moe.dituon.petpet.bot.qq.onebot.handler.OnebotMessageChainWrapper.<init>(OnebotMessageChainWrapper.kt:43)
at moe.dituon.petpet.bot.qq.onebot.handler.OnebotMessageChainWrapper.<init>(OnebotMessageChainWrapper.kt:15)
at moe.dituon.petpet.bot.qq.onebot.handler.OnebotGroupMessageChainWrapper.<init>(OnebotGroupMessageChainWrapper.kt:13)
at moe.dituon.petpet.bot.qq.onebot.handler.OnebotGroupMessageHandler$OnebotGroupMessageContext.<init>(OnebotGroupMessageHandler.kt:25)
at moe.dituon.petpet.bot.qq.onebot.handler.OnebotGroupMessageHandler.handle(OnebotGroupMessageHandler.kt:19)
at moe.dituon.petpet.bot.qq.onebot.MainKt$main$2.onMessage(Main.kt:81)
at moe.dituon.petpet.bot.qq.onebot.MainKt$main$2.onMessage(Main.kt:80)
at cn.evolvefield.onebot.client.listener.EventListenerKt.message(EventListener.kt:21)
at cn.evolvefield.onebot.client.handler.EventBus.onReceive(EventBus.kt:44)
at cn.evolvefield.onebot.client.connection.IAdapter$onReceiveMessage$1$1$1.invokeSuspend(IAdapter.kt:32)
at cn.evolvefield.onebot.client.connection.IAdapter$onReceiveMessage$1$1$1.invoke(IAdapter.kt)
at cn.evolvefield.onebot.client.connection.IAdapter$onReceiveMessage$1$1$1.invoke(IAdapter.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:100)
at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:146)
at kotlinx.coroutines.TimeoutKt.withTimeoutOrNull(Timeout.kt:103)
at cn.evolvefield.onebot.client.connection.IAdapter$onReceiveMessage$1.invokeSuspend(IAdapter.kt:30)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) -
RE: 在线作曲(唱歌)插件
2022-10-24 23:47:38 E/MiderBot: io.ktor.client.network.sockets.SocketTimeoutException: Socket timeout has expired [url=http://sinsy.sp.nitech.ac.jp/index.php, socket_timeout=unknown] ms
io.ktor.client.network.sockets.SocketTimeoutException: Socket timeout has expired [url=http://sinsy.sp.nitech.ac.jp/index.php, socket_timeout=unknown] ms
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//io.ktor.client.plugins.HttpTimeoutKt.SocketTimeoutException(HttpTimeout.kt:219)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//io.ktor.client.engine.okhttp.OkUtilsKt.mapOkHttpException(OkUtils.kt:79)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//io.ktor.client.engine.okhttp.OkUtilsKt.access$mapOkHttpException(OkUtils.kt:1)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//io.ktor.client.engine.okhttp.OkHttpCallback.onFailure(OkUtils.kt:39)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:525)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.net.SocketTimeoutException: timeout
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okio.SocketAsyncTimeout.newTimeoutException(JvmOkio.kt:143)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okio.AsyncTimeout.access$newTimeoutException(AsyncTimeout.kt:162)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:335)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okio.RealBufferedSource.indexOf(RealBufferedSource.kt:427)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:320)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http1.HeadersReader.readLine(HeadersReader.kt:29)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:178)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
... 3 more
Caused by: java.net.SocketException: Socket closed
at java.base/sun.nio.ch.NioSocketImpl.endRead(NioSocketImpl.java:248)
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:327)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350)
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okio.InputStreamSource.read(JvmOkio.kt:90)
at mider-bot-0.1.8-bundled-silk4j.mirai2.jar[private]//okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:129)
... 20 more
大佬你好,请问一些在输入稍微长点的带有歌词的代码后出现这样的报错该如何解决