【发布时间】:2021-03-09 10:47:44
【问题描述】:
Wildfly 给出错误但无法找到导致此错误的行。有人可以帮助如何记录完整的行而不会导致错误。
16:13:12,716 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "App.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"App.war\".undertow-deployment" => "java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
【问题讨论】:
-
你能分享你的代码吗?
-
有什么办法可以调试吗?
-
Wildfly 有时会在部署因某种原因损坏时记录类似这样的错误。有时,刷新项目、清理并再次部署就足够了(或使用
gradle clean war或类似命令构建新的war 文件)