gpt4 book ai didi

java - 在服务器上以 Debug模式运行项目时发生 Wildfly 超时 [300]

转载 作者:行者123 更新时间:2023-12-02 01:10:53 29 4
gpt4 key购买 nike

当我在 Wildfly 中运行我的项目时没有问题。但是在 Eclipse 中,当我在 5 分钟(即 300 秒)后在服务器上以 Debug模式运行项目时,会发生超时错误。我尝试通过添加来更改独立配置bat文件设置 JAVA_OPTS=%JAVA_OPTS% "-Djboss.as.management.blocking.timeout=600"但 300 秒后仍然出现同样的错误。我也尝试更改 Eclipse 的调试设置,但是 n

11:17:34,027 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[
("core-service" => "management"),
("management-interface" => "http-interface")

更多错误

11:13:12,871 INFO  [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO  Main:114 /**************** Rule Engine Main Configutation *******************/
11:13:12,871 INFO [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO Main:115 THREAD_LIMIT : 5
11:13:12,871 INFO [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO Main:116 IS QUEUE: true
11:13:12,871 INFO [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO Main:117 SERVICE_EXE_THREAD_LIMIT: 0
11:13:12,871 INFO [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO Main:118 IS SERVICE EXE QUEUE: false
11:13:12,871 INFO [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO Main:119 DB_REPLICATION_THREAD_LIMIT: 0
11:13:12,871 INFO [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO Main:120 IS DB_REPLICATOR QUEUE: false
11:13:12,871 INFO [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO Main:84 ok
11:17:34,027 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[
("core-service" => "management"),
("management-interface" => "http-interface")
]'
11:17:34,056 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) WFLYJCA0019: Stopped Driver service with driver-name = FILE_UPLOADER_API.war_com.mysql.jdbc.Driver_5_1
11:17:39,037 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.server.DeployerChainAddHandler$FinalRuntimeStepHandler@88002ff for operation add-deployer-chains at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
at org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:524)
at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1485)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1439)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1412)
at org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1286)
at org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:859)
at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:709)
at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:521)
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:470)
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:432)
at org.jboss.as.server.ServerService.boot(ServerService.java:427)
at org.jboss.as.server.ServerService.boot(ServerService.java:386)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372)
at java.lang.Thread.run(Unknown Source)

11:17:39,049 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.server.DeployerChainAddHandler$FinalRuntimeStepHandler@88002ff for operation add-deployer-chains at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException
11:17:44,060 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.domain.management.security.SecurityRealmAddHandler$ServiceInstallStepHandler@2cb7e0f0 for operation add at address [
("core-service" => "management"),
("security-realm" => "ApplicationRealm")
] failed handling operation rollback -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
at org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:524)
at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1485)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1439)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1422)
at org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1286)
at org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:859)
at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:709)
at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:521)
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:470)
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:432)
at org.jboss.as.server.ServerService.boot(ServerService.java:427)
at org.jboss.as.server.ServerService.boot(ServerService.java:386)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372)
at java.lang.Thread.run(Unknown Source)

最佳答案

i tried changing the standalone config bat file by adding set JAVA_OPTS=%JAVA_OPTS% "-Djboss.as.management.blocking.timeout=600"

您更改了 .bat 文件,但日志中似乎仍然超时 = 300。您应该更改standalone.xml 文件。您可以将 deployment-timeout="xxx" 属性添加到 deployment-scanner 元素。 This page帮助您更改超时属性。有时超时异常只是超时异常。如果这是问题所在,上述操作将解决问题。但如果问题不仅仅是超时异常,则此操作(增加超时)隐藏了真正的问题。

首先,问题的根源可能是eclipse。删除所有断点并重新启动服务器。如果此解决方案不能解决问题,请使用 standalone.bat 而不是 eclipse 手动启动服务器。

如果都没有解决问题,你应该自己找出真正的问题。例如,您的 DNS 设置可能已正确设置。

关于java - 在服务器上以 Debug模式运行项目时发生 Wildfly 超时 [300],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57686041/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com