1 2 Previous Next 21 Replies Latest reply on Dec 2, 2010 11:53 AM by Galder Zamarreño

    NPE with Infinispan 4.1.0-Final and Hib-infinispan-3.5.5-Final

    Chris Meunier Newbie

      Hi,

       

      We recently switched from ehcache to infinispan as our 2nd level cache with Hibernate and since then, we noticed a bug that occurs very much when the cache is warming up. A lot of pages are suddenly broken and triggers the NPE below. After 10-15mn or so, hitting refresh a few times and suddently, no npe any more on this page and it loads but other pages still dont load throwing the NPE.

       

      Hopefully the stack trace should shed some light on what is going on here.

       

      java.lang.NullPointerException

       

          at org.hibernate.cache.infinispan.access.PutFromLoadValidator$PendingPut.access$700(PutFromLoadValidator.java:674)
          at org.hibernate.cache.infinispan.access.PutFromLoadValidator$PendingPutMap.put(PutFromLoadValidator.java:620)
          at org.hibernate.cache.infinispan.access.PutFromLoadValidator.cleanOutdatedPendingPuts(PutFromLoadValidator.java:565)
          at org.hibernate.cache.infinispan.access.PutFromLoadValidator.preventOutdatedPendingPuts(PutFromLoadValidator.java:493)
          at org.hibernate.cache.infinispan.access.PutFromLoadValidator.registerPendingPut(PutFromLoadValidator.java:438)
          at org.hibernate.cache.infinispan.access.TransactionalAccessDelegate.get(TransactionalAccessDelegate.java:66)
          at org.hibernate.cache.infinispan.entity.TransactionalAccess.get(TransactionalAccess.java:36)
          at org.hibernate.engine.BatchFetchQueue.isCached(BatchFetchQueue.java:278)
          at org.hibernate.engine.BatchFetchQueue.getEntityBatch(BatchFetchQueue.java:253)
          at org.hibernate.loader.entity.BatchingEntityLoader.load(BatchingEntityLoader.java:90)
          at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3270)
          at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:496)
          at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:477)
          at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227)
          at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:147)
          at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1080)
          at org.hibernate.impl.SessionImpl.immediateLoad(SessionImpl.java:1018)
          at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:176)
          at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
          at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)

       

      I would appreciate if someone has an idea as we currently have a lot of broken pages because of this...

      Thanks in advance !

       

      --

      Chris

        1 2 Previous Next