任何人都可以解释。
我正在使用Netbeans并致力于Spring Boot MVC + thymeleaf + mongodb。
当我修改一些代码并保存时,Netbeans会自动编译代码,然后刷新浏览器以查看更改。一切几乎都能正常工作,但是在我快速修改和多次保存期间,有时我会留下语法错误或任何东西,netbeans会再次自动编译,当我刷新浏览器时会出现销售500错误,但是我可以解决我的错误,而不是再次保存netbeans编译我刷新页面,然后一切正常。但是奇怪的是,在netbeans控制台上,它每隔2秒就会用下面的错误堆栈跟踪填充Netbeans输出窗口。
只有在前500个错误之后才会发生。
25-Jun-2018 01:14:41.407 INFO [cluster-ClusterId{value='5b2ffb579a044517f5820132', description='null'}-localhost:27017] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [com.mongodb.connection.ServerDescription]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.mongodb.connection.ServerDescription]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1295)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1283)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1142)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1104)
at ch.qos.logback.classic.spi.PackagingDataCalculator.loadClass(PackagingDataCalculator.java:204)
at ch.qos.logback.classic.spi.PackagingDataCalculator.bestEffortLoadClass(PackagingDataCalculator.java:228)
at ch.qos.logback.classic.spi.PackagingDataCalculator.computeBySTEP(PackagingDataCalculator.java:135)
at ch.qos.logback.classic.spi.PackagingDataCalculator.populateUncommonFrames(PackagingDataCalculator.java:111)
at ch.qos.logback.classic.spi.PackagingDataCalculator.populateFrames(PackagingDataCalculator.java:104)
at ch.qos.logback.classic.spi.PackagingDataCalculator.calculate(PackagingDataCalculator.java:58)
at ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:142)
at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:122)
at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:419)
at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)
at ch.qos.logback.classic.Logger.warn(Logger.java:692)
at com.mongodb.diagnostics.logging.SLF4JLogger.warn(SLF4JLogger.java:91)
at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:152)
at java.lang.Thread.run(Thread.java:748)
答案 0 :(得分:0)