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

Infinispan ArrayIndexOutOfBoundsException in ComponentMetadataPersister

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • Configuration
    • None

      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.

            Unassigned Unassigned
            usmareedu_jira Uday Mareedu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: