我正在尝试将Java应用程序中的MongoDB从3.2升级到4.0.1
我已经完成了代码更改并将其部署到Kubernetes Cluster中,但是遇到了以下错误。当我检查pom文件时,我可以看到登录版本为1.11.1,而Java驱动程序为3.10.2
有人能解决这个问题吗?
org.apache.catalina.loader.WebappClassLoaderBase loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load com.mongodb.internal.conne
ction.LoggingCommandEventSender. The eventual following stack trace is caused by an error thrown for debugging purposes
as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1792)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1750)
at com.mongodb.internal.connection.InternalStreamConnection.createCommandEventSender(InternalStreamConnection.ja
va:679)
at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:245)
at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:83)
at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:38)
at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.lookupServerDescription(DefaultSer
verMonitor.java:180)
at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:124)
at java.lang.Thread.run(Thread.java:748)