Uday Mareedu created ISPN-5025:
----------------------------------
Summary: Infinispan ArrayIndexOutOfBoundsException in
ComponentMetadataPersister
Key: ISPN-5025
URL:
https://issues.jboss.org/browse/ISPN-5025
Project: Infinispan
Issue Type: Feature Request
Components: Configuration
Reporter: Uday Mareedu
Hi Team,
In my project we need to implement the caching for the application which is running in
JBOSS. Basically I need to cache the objects from the servlet. I have downloaded the
infinispan-7.0.2.Final-minimal to try it in eclipse.
Below is the very sample code to try.
import org.infinispan.Cache;
import org.infinispan.manager.DefaultCacheManager;
public class SimpleCaching {
static void main(String args[]) {
try {
System.out.print("Start");
Cache<Object, Object> c = new DefaultCacheManager().getCache();
c.put("key", "value");
c.putIfAbsent("key", "newValue");
System.out.print(c.get("key"));
} catch (Exception ex1) {
System.out.println(ex1.getMessage());
}
}
}
I have added all the dependencies, but I am getting "Exception in thread
"main" java.lang.ArrayIndexOutOfBoundsException: 0
at
org.infinispan.factories.components.ComponentMetadataPersister.main(ComponentMetadataPersister.java:50)"
exception.
I am very new to this, can anyone explain where I am missing.
Thanks in advance for your help!
Regards,
Uday Shankar.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)