MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    在对话框无论输入什么都报错 W/mirai-hibernate-plugin: Exception in Recorder kotlin.UninitializedPropertyAccessException: lateinit property factory has not been initialized

    使用交流
    3
    22
    1621
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 2
      2376801531 last edited by

      W/mirai-hibernate-plugin: Exception in Recorder
      kotlin.UninitializedPropertyAccessException: lateinit property factory has not been initialized
      at mirai-hibernate-plugin-2.2.1.mirai.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateUtilsKt.getFactory(MiraiHibernateUtils.kt:12)
      at mirai-hibernate-plugin-2.2.1.mirai.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateUtilsKt.useSession(MiraiHibernateUtils.kt:25)
      at mirai-hibernate-plugin-2.2.1.mirai.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder.merge(MiraiHibernateRecorder.kt:29)
      at mirai-hibernate-plugin-2.2.1.mirai.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder.access$merge(MiraiHibernateRecorder.kt:27)
      at mirai-hibernate-plugin-2.2.1.mirai.jar//xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder$record$1.invokeSuspend(MiraiHibernateRecorder.kt:35)
      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:749)
      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)b30fc728-f98e-47fa-bee1-0c2d434461f8-image.png 9cede82c-cf6d-4ff8-bcf7-25cf8a2984c5-image.png

      cssxsh 1 Reply Last reply Reply Quote 0
      • cssxsh
        cssxsh @2376801531 last edited by

        @2376801531
        data\xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin\hibernate.properties

        修改第一行 的 hibernate.connection.url=jdbc:h2:file:/E...
        为 hibernate.connection.url=jdbc:h2:file:E...
        去掉 file:E 中间的 /

        2 1 Reply Last reply Reply Quote 0
        • 2
          2376801531 @cssxsh last edited by 2376801531

          @cssxsh 麻烦问一下是什么原因导致的 我只是在本地测试了下 如果放到服务器还有类似问题怎么办 还有就是这个目录里什么都没有

          2 cssxsh 2 Replies Last reply Reply Quote 0
          • 2
            2376801531 @2376801531 last edited by

            @2376801531 a391cbc0-2947-4e83-b9a4-22fd034650f2-image.png

            1 Reply Last reply Reply Quote 0
            • cssxsh
              cssxsh @2376801531 last edited by

              @2376801531
              我写代码的时候忘记处理多余的 file:/ 了 你可以
              更新 2.2.3 版本,我刚做了修复

              2 1 Reply Last reply Reply Quote 0
              • 2
                2376801531 @cssxsh last edited by

                @cssxsh ok 谢谢

                1 Reply Last reply Reply Quote 0
                • LightToDawn
                  LightToDawn last edited by

                  @cssxsh 我也是这种情况,也已经是2.2.3版本了,是什么情况呢?34614786-c95c-46e7-a80f-43e0d10ce9e5-image.png

                  cssxsh 1 Reply Last reply Reply Quote 0
                  • cssxsh
                    cssxsh @LightToDawn last edited by

                    @LightToDawn
                    你的可能是依赖下载不完全,或者存在插件冲突

                    LightToDawn cssxsh 2 Replies Last reply Reply Quote 0
                    • LightToDawn
                      LightToDawn @cssxsh last edited by

                      @cssxsh 是需要org/slf4j吗?我看现在一启动他就提示我没有org/slf4j

                      cssxsh 3 Replies Last reply Reply Quote 0
                      • cssxsh
                        cssxsh @LightToDawn last edited by

                        @LightToDawn
                        并不是

                        1 Reply Last reply Reply Quote 0
                        • cssxsh
                          cssxsh @LightToDawn last edited by

                          @LightToDawn
                          plugin-libraries\javax\persistence\javax.persistence-api\2.2\
                          文件夹里应该有 jar 文件
                          如果没有就是缺依赖
                          有就是 插件冲突

                          1 Reply Last reply Reply Quote 0
                          • cssxsh
                            cssxsh @cssxsh last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • cssxsh
                              cssxsh @LightToDawn last edited by

                              @LightToDawn
                              目前的解决方法是 使用 mirai.jar 打包版的插件代替 mirai2.jar

                              LightToDawn 1 Reply Last reply Reply Quote 0
                              • LightToDawn
                                LightToDawn last edited by

                                @cssxsh e65a5126-3138-4658-a6ab-2c5ef4a22379-image.png 这样

                                1 Reply Last reply Reply Quote 0
                                • LightToDawn
                                  LightToDawn @cssxsh last edited by

                                  @cssxsh 我重新搞了一下,现在又成这样了呜呜54343816-7579-4c8a-8f01-665cad0394a2-image.png

                                  cssxsh 1 Reply Last reply Reply Quote 0
                                  • cssxsh
                                    cssxsh @LightToDawn last edited by

                                    @LightToDawn
                                    请下载 https://github.com/cssxsh/mirai-hibernate-plugin/releases/tag/v2.2.3
                                    手动安装 mirai.jar 版本

                                    另外,既然已经基本确定是插件冲突问题,为什么不把插件列表给一下

                                    LightToDawn 1 Reply Last reply Reply Quote 0
                                    • LightToDawn
                                      LightToDawn @cssxsh last edited by

                                      @cssxsh 好的,麻烦了
                                      ae9d620c-f8da-4d2d-8b72-a699f1126d2a-image.png

                                      cssxsh 1 Reply Last reply Reply Quote 0
                                      • cssxsh
                                        cssxsh @LightToDawn last edited by

                                        @LightToDawn
                                        列表里怎么有两份 mirai-hibernate-plugin

                                        LightToDawn 1 Reply Last reply Reply Quote 0
                                        • LightToDawn
                                          LightToDawn @cssxsh last edited by

                                          @cssxsh 我是安装的mirai.jar(第二个),运行之后自动下载了第一个,我也不知道怎么回事

                                          cssxsh 1 Reply Last reply Reply Quote 0
                                          • cssxsh
                                            cssxsh @LightToDawn last edited by

                                            @LightToDawn

                                            你没去掉mcl关于hibernate 的自动安装

                                            LightToDawn 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact