Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6131

ScriptingManager.removeScript throws ISPN026005 exception when the script exists

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.2.0.Final
    • None
    • None
    • None

    Description

      ScriptingManager.removeScript() method call with existing script name throws following exception:

      org.infinispan.commons.CacheException: ISPN026005: No script named 'test.js'
      at org.infinispan.scripting.impl.ScriptingManagerImpl.removeScript(ScriptingManagerImpl.java:121)
      at org.infinispan.scripting.ScriptingTest.testRemovingScript(ScriptingTest.java:61)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      ...

      The test code for script removing is:

      public void testRemovingScript() throws Exception {
            assertNotNull(cacheManager.getCache(ScriptingManager.SCRIPT_CACHE).get("test.js"));
      
            scriptingManager.removeScript("test.js");
            assertNull(cacheManager.getCache(ScriptingManager.SCRIPT_CACHE).get("test.js"));
         }
      

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            amanukya@redhat.com Anna Manukyan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: