[
https://issues.jboss.org/browse/ISPN-6131?page=com.atlassian.jira.plugin....
]
Anna Manukyan updated ISPN-6131:
--------------------------------
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 is:
{code:java}
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"));
}
{code}
was:
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)
...
ScriptingManager.removeScript throws ISPN026005 exception when the
script exists
---------------------------------------------------------------------------------
Key: ISPN-6131
URL:
https://issues.jboss.org/browse/ISPN-6131
Project: Infinispan
Issue Type: Bug
Reporter: Anna Manukyan
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 is:
{code:java}
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"));
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)