Dev-Umb / FAQ-Bot-QQ

一个基于Mirai框架的Q群问答机器人
GNU Affero General Public License v3.0
38 stars 4 forks source link

Caused by: java.lang.NullPointerException: appConfig.gameDBUrl must not be null #6

Open cikichen opened 3 years ago

cikichen commented 3 years ago
Exception in thread "main" java.lang.ExceptionInInitializerError
    at io.farewell12345.github.faqbot.MainKt.main(Main.kt:21)
    at io.farewell12345.github.faqbot.MainKt$$$main.invoke(Unknown Source)
    at kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$1.invokeSuspend(IntrinsicsJvm.kt:205)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlin.coroutines.ContinuationKt.startCoroutine(Continuation.kt:115)
    at kotlin.coroutines.jvm.internal.RunSuspendKt.runSuspend(RunSuspend.kt:19)
    at io.farewell12345.github.faqbot.MainKt.main(Main.kt)
Caused by: java.lang.NullPointerException: appConfig.gameDBUrl must not be null
    at io.farewell12345.github.faqbot.DTO.DB.DB.<clinit>(DB.kt:16)
    ... 7 more
cikichen commented 3 years ago

还一个问题是README里面写的创建faq数据库,代码里面的jdbc却是fqa,报错搞了半天才发现问题

Dev-Umb commented 3 years ago

很抱歉,是我的问题

Dev-Umb commented 3 years ago

已对java/io/farewell12345/github/faqbot/AppConfig.java进行修改,以config中配置的数据库url为唯一url

cikichen commented 3 years ago

已对java/io/farewell12345/github/faqbot/AppConfig.java进行修改,以config中配置的数据库url为唯一url

SQL不全,缺少群组和游戏相关的表,还有gameAPI能添加README吗?

Dev-Umb commented 3 years ago

相关表已添加到SQL文件夹下,readme已更新