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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.1.0.DR8
    • 7.1.0.DR7
    • 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 }

      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.

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

              Created:
              Updated:
              Resolved: