gpt4 book ai didi

firebase - Firebase 异常 NoClassDefFoundError : LLRBNode$NodeVisitor 的任何解决方法

转载 作者:行者123 更新时间:2023-12-01 12:25:18 24 4
gpt4 key购买 nike

在不得不切换到 Firebase Admin 4.0.0 SDK 之后,我在服务器上得到了这个。任何人都知道我可以切换回旧的 server-sdk 依赖项的任何方式,或者解决此异常的方法?同时我已经向 FB 报告了它,但想让服务器再次运行...目前我似乎完全被卡住了。

java.lang.NoClassDefFoundError: com/google/firebase/database/collection/LLRBNode$NodeVisitor
at com.google.firebase.database.snapshot.PriorityUtilities.NullPriority(PriorityUtilities.java:13)
at com.google.firebase.database.snapshot.NodeUtilities.NodeFromJSON(NodeUtilities.java:12)
at com.google.firebase.database.core.Repo.updateInfo(Repo.java:540)
at com.google.firebase.database.core.Repo.onServerInfoUpdate(Repo.java:494)
at com.google.firebase.database.core.Repo.onDisconnect(Repo.java:485)
at com.google.firebase.database.connection.PersistentConnectionImpl.onDisconnect(PersistentConnectionImpl.java:409)
at com.google.firebase.database.connection.Connection.close(Connection.java:82)
at com.google.firebase.database.connection.Connection.onReset(Connection.java:199)
at com.google.firebase.database.connection.Connection.onControlMessage(Connection.java:152)
at com.google.firebase.database.connection.Connection.onMessage(Connection.java:110)
at com.google.firebase.database.connection.WebsocketConnection.appendFrame(WebsocketConnection.java:226)
at com.google.firebase.database.connection.WebsocketConnection.handleIncomingFrame(WebsocketConnection.java:271)
at com.google.firebase.database.connection.WebsocketConnection.access$500(WebsocketConnection.java:20)
at com.google.firebase.database.connection.WebsocketConnection$WSClientTubesock$2.run(WebsocketConnection.java:67)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.google.firebase.database.collection.LLRBNode$NodeVisitor
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 21 more

稍后:

Tue Nov 08 14:49:06 CET 2016 [ERROR] RunLoop: Uncaught exception in Firebase Database runloop (3.0.0). Please report to support@firebase.com
java.lang.NullPointerException
at com.google.firebase.database.core.Repo.addEventCallback(Repo.java:518)
at com.google.firebase.database.Query$3.run(Query.java:195)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

最佳答案

Firebase 刚刚发布了 firebase-admin 4.0.1 版。这会添加缺失的类并且似乎可以正常工作。

这本可以得到更好的管理。 firebase-admin 版本 4.0.0 应该已经过测试,此外,在添加新依赖项的同时杀死旧依赖项没有意义 - 应该有一段时间(至少几天)人们不会被迫升级。

关于firebase - Firebase 异常 NoClassDefFoundError : LLRBNode$NodeVisitor 的任何解决方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40488514/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com