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

java.lang.StackOverflowError adding credential-store after setting a node-identifier

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • 7.3.0.GA.CR4
    • Management
    • None

    Description

      java.lang.StackOverflowError could thrown while writting an attribute. See WFCORE-4774 and https://github.com/wildfly/wildfly-core/pull/4038/files for more details.

      • issue is a regression against 7.2.0
      • workaround exists (at least for this case), simply run the credential-store add operation again
      • reload between commands doesn't help
      • the issue is already fixed for Wildfly 19

      Steps to reproduce:

      bin] $ ./standalone.sh &
      bin] $ ./jboss-cli.sh -c
      [standalone@localhost:9990 /] /subsystem=transactions:write-attribute(name=node-identifier, value=12345)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-restart" => true,
              "process-state" => "restart-required"
          }
      }
      # reload here DOESN'T HELP!
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=bridge-cs001:add(credential-reference={clear-text=pass123}, relative-to=jboss.server.data.dir, create=true, location=bridge-cs001.jceks)
      10:25:36,858 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0403: Unexpected failure during execution of the following operation(s): [{
          "address" => [
              ("subsystem" => "elytron"),
              ("credential-store" => "bridge-cs001")
          ],
          "operation" => "add",
          "relative-to" => "jboss.server.data.dir",
          "create" => true,
          "location" => "bridge-cs001.jceks",
          "credential-reference" => {"clear-text" => "pass123"},
          "operation-headers" => {
              "caller-type" => "user",
              "access-mechanism" => "NATIVE"
          },
          "modifiable" => undefined,
          "implementation-properties" => undefined,
          "type" => undefined,
          "provider-name" => undefined,
          "providers" => undefined,
          "other-providers" => undefined
      }]: java.lang.StackOverflowError
      	at org.jboss.as.controller.capability.registry.CapabilityId.equals(CapabilityId.java:74)
      	at java.util.HashMap.getNode(HashMap.java:572)
      	at java.util.HashMap.get(HashMap.java:557)
      	at org.jboss.as.controller.CapabilityRegistry.getCapabilityStatus(CapabilityRegistry.java:391)
      	at org.jboss.as.controller.CapabilityRegistry.getDependentCapabilityStatus(CapabilityRegistry.java:426)
      	at org.jboss.as.controller.CapabilityRegistry.getCapabilityStatus(CapabilityRegistry.java:392)
      	at org.jboss.as.controller.CapabilityRegistry.getDependentCapabilityStatus(CapabilityRegistry.java:426)
      ...
      	at org.jboss.as.controller.CapabilityRegistry.getDependentCapabilityStatus(CapabilityRegistry.java:426)
      	at org.jboss.as.controller.CapabilityRegistry.getCapabilityStatus(CapabilityRegistry.java:392)
      
      {
          "outcome" => "failed",
          "failure-description" => "java.lang.StackOverflowError:null"
      }
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: