Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-24974

NPE Cannot invoke "org.jboss.as.controller.ModelControllerImpl$ManagementModelImpl.getRootResource()" because "this.managementModel" is null

XMLWordPrintable

    • False
    • None
    • False
      1. Unzip fresh server e.g. in test build version jboss-eap-8.0.0.GA-redhat-20230609
      2. run domain.sh and stop until exception occurs.
      3. So far I was able to reproduce very often. Each second run.

      Intermittently 1:2 on domain start, stacktrace is emited in server log

      [Host Controller] 11:16:35,674 ERROR [org.jboss.as.controller.management-operation] (server-registration-threads - 1) WFLYCTL0035: Update of the management operation audit log failed: java.lang.NullPointerException: Cannot invoke "org.jboss.as.controller.ModelControllerImpl$ManagementModelImpl.getRootResource()" because "this.managementModel" is null
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.OperationContextImpl.getModel(OperationContextImpl.java:1446)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.ReadOnlyContext.getModel(ReadOnlyContext.java:382)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.AbstractOperationContext.logAuditRecord(AbstractOperationContext.java:671)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:906)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.AbstractOperationContext.executeDoneStage(AbstractOperationContext.java:899)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:806)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:474)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.ReadOnlyContext.executeOperation(ReadOnlyContext.java:87)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.ModelControllerImpl.executeReadOnlyOperation(ModelControllerImpl.java:327)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.ModelControllerImpl.executeReadOnlyOperation(ModelControllerImpl.java:292)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.AbstractControllerService.executeReadOnlyOperation(AbstractControllerService.java:482)
      [Host Controller]     at org.jboss.as.host-controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.host.controller.DomainModelControllerService.access$300(DomainModelControllerService.java:203)
      [Host Controller]     at org.jboss.as.host-controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor$3.lambda$apply$0(DomainModelControllerService.java:1485)
      [Host Controller]     at org.jboss.as.controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.controller.access.InVmAccess.runInVm(InVmAccess.java:63)
      [Host Controller]     at org.jboss.as.host-controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor$3.apply(DomainModelControllerService.java:1485)
      [Host Controller]     at org.jboss.as.host-controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor$3.apply(DomainModelControllerService.java:1482)
      [Host Controller]     at org.jboss.as.host-controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.host.controller.SecurityActions$Execution$1.execute(SecurityActions.java:77)
      [Host Controller]     at org.jboss.as.host-controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.host.controller.SecurityActions.privilegedExecution(SecurityActions.java:47)
      [Host Controller]     at org.jboss.as.host-controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor.joinActiveOperation(DomainModelControllerService.java:1488)
      [Host Controller]     at org.jboss.as.host-controller@21.0.1.Beta2-redhat-20230609//org.jboss.as.host.controller.mgmt.ServerToHostProtocolHandler$ServerRegistrationRequestHandler$1.execute(ServerToHostProtocolHandler.java:212)
      [Host Controller]     at org.jboss.as.protocol@21.0.1.Beta2-redhat-20230609//org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
      [Host Controller]     at org.jboss.as.protocol@21.0.1.Beta2-redhat-20230609//org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
      [Host Controller]     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      [Host Controller]     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      [Host Controller]     at java.base/java.lang.Thread.run(Thread.java:833)
      [Host Controller]     at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.JBossThread.run(JBossThread.java:513)
      
      

      Domain is started. Maybe just some feature (audit log?) is not started properly.

        1. domain.log
          11 kB
          Martin Choma

              yborgess1@redhat.com Yeray Borges Santana
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: