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

Attempt to remove cache container with default-cache defined throws NPE

    XMLWordPrintable

Details

    • Bug
    • Status: Verified (View Workflow)
    • Minor
    • Resolution: Done
    • 7.1.0.DR7
    • 7.1.0.DR8
    • Clustering
    • None
    • User Experience
    • Workaround Exists
    • Hide
      1. /subsystem=infinispan/cache-container=foo:undefine-attribute(name=default-cache)
      2. reload
      3. /subsystem=infinispan/cache-container=foo/local-cache=bar:remove()
      4. /subsystem=infinispan/cache-container=foo:remove
      Show
      /subsystem=infinispan/cache-container=foo:undefine-attribute(name=default-cache) reload /subsystem=infinispan/cache-container=foo/local-cache=bar:remove() /subsystem=infinispan/cache-container=foo:remove
    • Hide
      1. /subsystem=infinispan/cache-container=foo:add()
      2. /subsystem=infinispan/cache-container=foo/local-cache=bar:add()
      3. /subsystem=infinispan/cache-container=foo:write-attribute(name=default-cache, value=bar)
      4. reload
      5. /subsystem=infinispan/cache-container=foo:remove
      6. [standalone@localhost:9990 /] /subsystem=infinispan/cache-container=foo:remove
        {
            "outcome" => "failed",
            "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.NullPointerException",
            "rolled-back" => true
        }
        
      Show
      /subsystem=infinispan/cache-container=foo:add() /subsystem=infinispan/cache-container=foo/local-cache=bar:add() /subsystem=infinispan/cache-container=foo:write-attribute(name=default-cache, value=bar) reload /subsystem=infinispan/cache-container=foo:remove [standalone@localhost:9990 /] /subsystem=infinispan/cache-container=foo:remove { "outcome" => "failed" , "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.NullPointerException" , "rolled-back" => true }

    Description

      When I create a local cache as a child of some cache container and then set it to that cache container as its default cache, it is impossible to remove that cache container.

      Attachments

        Issue Links

          Activity

            People

              pferraro@redhat.com Paul Ferraro
              jkasik@redhat.com Jan Kasik
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: