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

The add-identity filesystem-realm operation in Elytron subsystem intermittently fails on NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.2.0.CD12
    • 7.1.0.CR1
    • Security
    • None
    • Hide

      I've seen this while running security context propagation tests in manualmode module of AS TS:

      cd testsuite/integration/manualmode
      mvn clean test -Dtest=SecurityContext\*
      
      Show
      I've seen this while running security context propagation tests in manualmode module of AS TS: cd testsuite/integration/manualmode mvn clean test -Dtest=SecurityContext\*

      Elytron filesystem-realm has an add-identity operation. I've experienced in few occasions it failed with NullPointerException.

      I'm executing set of CLI operations as batch using:

      run-batch --file=/path/to/script.cli -v
      

      When I hit the issue I see following in the log:

      17:23:19,182 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add-identity") failed - address: ([
          ("subsystem" => "elytron"),
          ("filesystem-realm" => "SeccontextFsRealm")
      ]): java.lang.NullPointerException
          at org.wildfly.extension.elytron.ModifiableRealmDecorator$AddIdentityHandler.executeRuntimeStep(ModifiableRealmDecorator.java:128)
          at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:59)
          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:976)
          at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:722)
          at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:446)
          at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1402)
          at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:418)
          at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
          at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
          at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
          at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
          at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:217)
          at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$400(ModelControllerClientOperationHandler.java:137)
          at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:161)
          at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:157)
          at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:287)
          at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:244)
          at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
          at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
          at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:157)
          at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
          at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      

      I'm attaching also the CLI file which caused the problem.

      The code which executes the script in Java seems like:

      CommandContext commandCtx = ... //initialize
      commandCtx.handle("run-batch --file=/path/to/script.cli -v");
      

              yborgess1@redhat.com Yeray Borges Santana
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Martin Svehla Martin Svehla
              Martin Svehla Martin Svehla
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: