@cssxsh 辛苦了
N
NiGuangOwO 发布的帖子
-
RE: Weibo Helper 一个简单的将微博转发到QQ的插件
大佬前段时间插件还能用,这两天突然开始报错了
2022-07-05 18:52:08 W/weibo-helper: Linked class io.ktor.client.engine.okhttp.OkHttp in onebot-mirai-0.3.4-all.jar but plugin not depend on it. 2022-07-05 18:52:08 W/weibo-helper: Class loading logic may change in feature. 2022-07-05 18:52:08 E/weibo-helper: Exception in coroutine Plugin xyz.cssxsh.mirai.plugin.weibo-helper of weibo-helper java.lang.ClassCastException: class io.ktor.client.engine.okhttp.OkHttp cannot be cast to class io.ktor.client.engine.HttpClientEngineFactory (io.ktor.client.engine.okhttp.OkHttp is in unnamed module of loader 'onebot-mirai-0.3.4-all.jar' @f77cd9; io.ktor.client.engine.HttpClientEngineFactory is in unnamed module of loader 'weibo-helper-1.5.2.jar[private]' @45d714) at weibo-helper-1.5.2.jar//xyz.cssxsh.weibo.WeiboClient.<init>(WeiboClient.kt:48) at weibo-helper-1.5.2.jar//xyz.cssxsh.mirai.weibo.WeiboUtilsKt$client$2$1.<init>(WeiboUtils.kt:62) at weibo-helper-1.5.2.jar//xyz.cssxsh.mirai.weibo.WeiboUtilsKt$client$2.invoke(WeiboUtils.kt:62) at weibo-helper-1.5.2.jar//xyz.cssxsh.mirai.weibo.WeiboUtilsKt$client$2.invoke(WeiboUtils.kt:61) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at weibo-helper-1.5.2.jar//xyz.cssxsh.mirai.weibo.WeiboUtilsKt.getClient(WeiboUtils.kt:61) at weibo-helper-1.5.2.jar//xyz.cssxsh.mirai.weibo.WeiboHelperPlugin$onEnable$2.invokeSuspend(WeiboHelperPlugin.kt:37) at weibo-helper-1.5.2.jar//xyz.cssxsh.mirai.weibo.WeiboHelperPlugin$onEnable$2.invoke(WeiboHelperPlugin.kt) at weibo-helper-1.5.2.jar//xyz.cssxsh.mirai.weibo.WeiboHelperPlugin$onEnable$2.invoke(WeiboHelperPlugin.kt) at net.mamoe.mirai.event.EventChannel$subscribeOnce$1.invokeSuspend(EventChannel.kt:542) at net.mamoe.mirai.event.EventChannel$subscribeOnce$1.invoke(EventChannel.kt) at net.mamoe.mirai.event.EventChannel$subscribeOnce$1.invoke(EventChannel.kt) at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invokeSuspend(SafeListener.kt:58) at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt) at net.mamoe.mirai.internal.event.SafeListener$onEvent$2.invoke(SafeListener.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:166) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) at net.mamoe.mirai.internal.event.SafeListener.onEvent(SafeListener.kt:58) at net.mamoe.mirai.internal.event.EventListeners.process(EventListeners.kt:119) at net.mamoe.mirai.internal.event.EventListeners.callListeners$mirai_core(EventListeners.kt:73) at net.mamoe.mirai.internal.event.EventChannelImpl.callListeners(EventChannelImpl.kt:85) at net.mamoe.mirai.internal.event.EventChannelImpl.broadcastEventImpl(EventChannelImpl.kt:75) at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast$suspendImpl(EventDispatcher.kt:98) at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast(EventDispatcher.kt) at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcastAsync$job$1.invokeSuspend(EventDispatcher.kt:112) at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcastAsync$job$1.invoke(EventDispatcher.kt) at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcastAsync$job$1.invoke(EventDispatcher.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:55) at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112) at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126) at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56) at kotlinx.coroutines.BuildersKt.launch(Unknown Source) at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcastAsync-kKe4JaQ(EventDispatcher.kt:109) at net.mamoe.mirai.internal.network.components.EventDispatcher.broadcastAsync-kKe4JaQ$default(EventDispatcher.kt:34) at net.mamoe.mirai.internal.QQAndroidBot$stateObserverChain$1.stateChanged0(QQAndroidBot.kt:105) at net.mamoe.mirai.internal.network.handler.state.StateChangedObserver.stateChanged(StateChangedObserver.kt:93) at net.mamoe.mirai.internal.network.handler.state.CombinedStateObserver.stateChanged(CombinedStateObserver.kt:31) at net.mamoe.mirai.internal.network.handler.state.SafeStateObserver.stateChanged(SafeStateObserver.kt:55) at net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport.setStateImpl$mirai_core(NetworkHandlerSupport.kt:305) at net.mamoe.mirai.internal.network.impl.netty.NettyNetworkHandler$StateLoading.resumeConnection0(NettyNetworkHandler.kt:425) at net.mamoe.mirai.internal.network.impl.netty.NettyNetworkHandler$StateLoading$resumeConnection0$1.invokeSuspend(NettyNetworkHandler.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279) at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59) at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38) at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:245) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:464) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:168) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:167) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:52) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.itxtech.mcl.Utility.bootJars(Utility.java:89) at org.itxtech.mcl.Utility.bootJars(Utility.java:79) at org.itxtech.mcl.Utility.bootMirai(Utility.java:101) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:109) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:148) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:189) at org.itxtech.mcl.Loader.tryCatching(Loader.java:146) at org.itxtech.mcl.Loader.start(Loader.java:189) at org.itxtech.mcl.Loader.main(Loader.java:79)