[关闭]
@TedZhou 2024-08-16T09:47:15.000000Z 字数 1864 阅读 45

java 开发异灵录

java 日志


一次发版突然出现这样的错误:

  1. Exception in thread "http-nio-8886-exec-12" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy
  2. at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:119)
  3. at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:419)
  4. at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)
  5. at ch.qos.logback.classic.Logger.log(Logger.java:765)
  6. at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:221)
  7. at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:303)
  8. at java.logging/java.util.logging.Logger.log(Logger.java:979)
  9. at java.logging/java.util.logging.Logger.doLog(Logger.java:1006)
  10. at java.logging/java.util.logging.Logger.logp(Logger.java:1283)
  11. at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:175)
  12. at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:141)
  13. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1740)
  14. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  15. at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
  16. at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
  17. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  18. at java.base/java.lang.Thread.run(Thread.java:829)

网上有的说是jar包冲突(https://developer.aliyun.com/article/626924),
有的说是jdk版本或os环境问题,
还有说是启动中打包导致的(https://blog.csdn.net/qq_42256196/article/details/127545943),
……
各种分析无果。

最后,我试着重新打包再部署上去就没问题了:(

IDEA Community 2022.2.3 安装 RESTful toolkit 插件导致的问题

想在IDEA里直接测试api,
社区版tools里没找到HTTP Client,
于是在插件市场看到RESTful toolkit就想试试。
没想到安装RESTful toolkit插件重启IDEA之后还么开始用就发现:
SpringBoot应用起不来了!
Console输出的错误莫名其妙,
说是application.yml里引用自pom.xml的${spring.profiles.active}找不到。
似乎是Maven没做好编译似的。
关键是把这个插件禁了卸了重启IDEA甚至重启电脑了都仍然报错。

实在没头绪,最后重装IDEA就好了,shit!
sh

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注