【问题标题】:Jrebel remote server configuration error: “IllegalStateException: Unable to determine code source archive from file...”Jrebel 远程服务器配置错误:“IllegalStateException: Unable to determine code source archive from file...”
【发布时间】:2017-12-26 02:06:25
【问题描述】:

当我添加“-Drebel.remoting_plugin=true”来运行我的 Spring Boot jar 文件时,我收到了这个错误: java.lang.IllegalStateException: java.lang.IllegalStateException: 无法从文件中确定代码源存档。

提示: Jrebel remote server configuration

【问题讨论】:

  • 这似乎是自 JRebel 7.0.13 以来引入的一个错误。修复后会通知您。
  • 如果可能的话,将spring-boot更新到1.4或更高版本,这个错误只发生在以前的版本上。
  • 是的,这个错误已在 Jrebel 7.1.5 中修复

标签: java spring-boot intellij-idea jrebel


【解决方案1】:

这是 JRebel 版本 7.0.13-7.1.4 中的一个错误,它导致 ProtectionDomain CodeSource 位置 URL 对于最初从 JAR 加载的可重新加载类不正确。

这会影响 spring-boot 版本 BOOT-INF/classes),所以 spring-boot 内部类可以重新加载并接收网址不正确。

在 7.1.5 发布之前,您可以在此处下载夜间版本:https://zeroturnaround.com/software/jrebel/download/nightly-build/

【讨论】:

  • 非常感谢您的帮助
猜你喜欢
  • 2020-08-21
  • 2017-04-02
  • 1970-01-01
  • 2020-02-09
  • 2022-12-01
  • 1970-01-01
  • 2013-03-07
  • 2020-06-24
  • 1970-01-01
相关资源
最近更新 更多