[infinispan-issues] [JBoss JIRA] (ISPN-5025) Infinispan ArrayIndexOutOfBoundsException in ComponentMetadataPersister
Tristan Tarrant (JIRA)
issues at jboss.org
Tue Aug 2 08:08:00 EDT 2016
[ https://issues.jboss.org/browse/ISPN-5025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant closed ISPN-5025.
---------------------------------
Resolution: Out of Date
> 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.4.11#64026)
More information about the infinispan-issues
mailing list