Widfly 9.0.2 is not initializing in debug mode

Asked

Viewed 277 times

1

In the controller of my application, I have a method with a POST request, before it was a void method, with no return, but I changed so that it already returned the generated records, after this change, the server of my application, widfly 9.0.2 no longer starts, crashes and timeout on startup, when you are initiating "Mojarra 2.2.12" in Debug mode.

Method:

@RequestMapping(value = "/gerarNotificacao", method = RequestMethod.POST)
public List<Notificacao> gerarNotificacao(@RequestBody NotificacaoConsulta notificacao) throws Exception {

    List<Conta> contas = contaService.consultaContasDebitos(notificacao);

    return notificacaoSimulacaoService.gerarNotificacoes(contas);

} 

Exception:

``11:10:03,926 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 64) Inicializando Mojarra 2.2.12-jbossorg-2 20150729-1131 para o contexto '/divida'
11:13:43,299 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:44,147 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0019: Stopped Driver service with driver-name = PlataformaLogpro.war_org.postgresql.Driver_9_1
11:13:44,287 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 70) WFLYUT0022: Unregistered web context: /laboratorio
11:13:44,291 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 69) WFLYUT0022: Unregistered web context: /divida
11:13:46,573 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment dividaativa (runtime-name: dividaativa.war) in 3108ms
11:13:46,581 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment laboratorio (runtime-name: laboratorio.war) in 3101ms
11:13:48,466 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.server.DeployerChainAddHandler$FinalRuntimeStepHandler@34e5c4c3 for operation {"operation" => "add-deployer-chains","address" => []} at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
    at org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:396)
    at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1384)
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1332)
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1292)
    at org.jboss.as.controller.AbstractOperationContext$Step.access$300(AbstractOperationContext.java:1180)
    at org.jboss.as.controller.AbstractOperationContext.handleContainerStabilityFailure(AbstractOperationContext.java:964)
    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:590)
    at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:354)
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:330)
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1183)
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:453)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:327)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:313)
    at org.jboss.as.server.ServerService.boot(ServerService.java:384)
    at org.jboss.as.server.ServerService.boot(ServerService.java:359)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:271)
    at java.lang.Thread.run(Unknown Source)

11:13:48,604 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.server.DeployerChainAddHandler$FinalRuntimeStepHandler@34e5c4c3 for operation {"operation" => "add-deployer-chains","address" => []} at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException
11:13:53,698 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.domain.management.security.SecurityRealmAddHandler$ServiceInstallStepHandler@616ff021 for operation {"address" => [("core-service" => "management"),("security-realm" => "ApplicationRealm")],"operation" => "add","map-groups-to-roles" => undefined} 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:396)
    at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1384)
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1332)
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1307)
    at org.jboss.as.controller.AbstractOperationContext$Step.access$300(AbstractOperationContext.java:1180)
    at org.jboss.as.controller.AbstractOperationContext.handleContainerStabilityFailure(AbstractOperationContext.java:964)
    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:590)
    at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:354)
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:330)
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1183)
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:453)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:327)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:313)
    at org.jboss.as.server.ServerService.boot(ServerService.java:384)
    at org.jboss.as.server.ServerService.boot(ServerService.java:359)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:271)
    at java.lang.Thread.run(Unknown Source)
``
  • Do you use Maven? If yes, try running "Maven Clean" and then a "Maven Update". If you don’t use Maven, try cleaning the project on the server.

  • I use Maven, but it didn’t work, cleaning the project on the server had already tried, it didn’t work either.

  • Remove the working Breakpoints.

1 answer

0

The wildfly has a standard timeout of 300ms. Try increasing the jboss timeout by adding the option "blocking.".

For this change the file bin/standalone.conf.bat (location may vary depending on your wildfly installation)

Add the line

set "JAVA_OPTS=%JAVA_OPTS% -Djboss.as.management.blocking.timeout=600

The timeout value must be changed as desired

  • Thanks for the reply, now it is starting, but initializes in 8 minutes, it is a long time, before initialized in less than 1 minute, some suggestion or may be something in the code?

  • Several factors may contribute to this problem, one of them may be machine memory, but to know the exact problem it is necessary to have more information about your application. In this case it might be better to open a new question about slowness and put more information with memory, cpu among others.

  • Before my last change, booting was instantaneous, it took 40 seconds to start the wildfly server, as it was before: @Requestmapping(value = "/beginNotification", method = Requestmethod.POST) public void beginNotification(@RequestBody NotificacaoConsulta notificacao) throws Exception {&#xA;&#xA; List<Conta> contas = contaService.consultaContasDebitos(notificacao);&#xA;&#xA; notificacaoSimulacaoService.gerarNotificacoes(contas);&#xA;&#xA;}

  • Take a look at Wildfly’s log file to see if there’s anything there. By the time it appears on the log lines, maybe to see where it is crashing or taking so long to boot.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.