5 Replies Latest reply on Sep 30, 2016 12:28 AM by Edgard Neto

    [Error|JpaStore] ISPN000252: Error executing parallel store task

    Edgard Neto Newbie

      Hello everybody,

       

      I am using Infinispan-8.2.4 and I configured a jpa store, as follows:

       

      configuration = new ConfigurationBuilder()

        .compatibility().marshaller(new CustomCacheMarshaller()).enable() //My marshall is not being called in the preload.

        .persistence()

        .passivation(false)

        .addStore(JpaStoreConfigurationBuilder.class)

        .shared(false)

        .entityClass(Product.class) //Product is a simple "String Id and String detail"

        .storeMetadata(false)

        .batchSize(1)

        .preload(true)

        .persistenceUnitName("org.infinispan.persistence.jpa")

        .build();
      }

       

      Everything works fine, but when I using preloading for loading a like 200.000 items, I got the following error:

       

      2016-09-28 22:06:27.666 ERROR 7381 --- [ull,customCache] org.infinispan.persistence.jpa.JpaStore  : ISPN000252: Error executing parallel store task

       

       

      org.infinispan.persistence.spi.PersistenceException: java.lang.NullPointerException

        at org.infinispan.marshall.core.MarshalledEntryImpl.unmarshall(MarshalledEntryImpl.java:116) ~[infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.marshall.core.MarshalledEntryImpl.getValue(MarshalledEntryImpl.java:61) ~[infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.persistence.manager.PersistenceManagerImpl$1.processEntry(PersistenceManagerImpl.java:246) ~[infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.persistence.jpa.JpaStore$LoadingProcessTask.call(JpaStore.java:834) ~[infinispan-cachestore-jpa-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.persistence.jpa.JpaStore$LoadingProcessTask.call(JpaStore.java:762) ~[infinispan-cachestore-jpa-8.2.4.Final.jar:8.2.4.Final]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_102]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_102]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_102]

        at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:20) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at java.util.concurrent.ExecutorCompletionService.submit(ExecutorCompletionService.java:181) [na:1.8.0_102]

        at org.infinispan.executors.ExecutorAllCompletionService.submit(ExecutorAllCompletionService.java:31) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.persistence.jpa.JpaStore.process(JpaStore.java:557) [infinispan-cachestore-jpa-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.persistence.jpa.JpaStore.process(JpaStore.java:496) [infinispan-cachestore-jpa-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.persistence.manager.PersistenceManagerImpl.preload(PersistenceManagerImpl.java:238) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_102]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_102]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_102]

        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_102]

        at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168) [infinispan-commons-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:859) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:628) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:617) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:542) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:238) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:849) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:635) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:585) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.manager.DefaultCacheManager.access$100(DefaultCacheManager.java:125) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        at org.infinispan.manager.DefaultCacheManager$1.run(DefaultCacheManager.java:485) [infinispan-core-8.2.4.Final.jar:8.2.4.Final]

      Caused by: java.lang.NullPointerException: null

        at org.infinispan.marshall.core.MarshalledEntryImpl.unmarshall(MarshalledEntryImpl.java:114) ~[infinispan-core-8.2.4.Final.jar:8.2.4.Final]

        ... 28 common frames omitted