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

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

Open
cikichen opened this issue Mar 4, 2021 · 5 comments

Comments

@cikichen
Copy link

cikichen commented Mar 4, 2021

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
Copy link
Author

cikichen commented Mar 4, 2021

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

@Dev-Umb
Copy link
Owner

Dev-Umb commented Mar 4, 2021

很抱歉,是我的问题

@Dev-Umb
Copy link
Owner

Dev-Umb commented Mar 4, 2021

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

@cikichen
Copy link
Author

cikichen commented Mar 4, 2021

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

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

@Dev-Umb
Copy link
Owner

Dev-Umb commented Mar 4, 2021

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

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

2 participants