0 Replies Latest reply on Oct 8, 2012 2:42 AM by Lukasz Kaleta

    NullPointerException at org.jboss.cache.invocation.NodeInvocationDelegate.isValid(NodeInvocationDelegate.java:480)

    Lukasz Kaleta Newbie

      Hi, we are getting such exception on production server:

       

      java.lang.NullPointerException
       at org.jboss.cache.invocation.NodeInvocationDelegate.isValid(NodeInvocationDelegate.java:480)
       at org.hibernate.cache.jbc.BasicRegionAdapter.ensureRegionRootExists(BasicRegionAdapter.java:271)
       at org.hibernate.cache.jbc.access.TransactionalAccessDelegate.get(TransactionalAccessDelegate.java:70)
       at org.hibernate.cache.jbc.entity.TransactionalAccess.get(TransactionalAccess.java:63)
       at org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:587)
       at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:459)
       at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227)
       at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285)
       at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)
       at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090)
       at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1038)
       at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:630)
       at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:236)
       at org.hibernate.collection.PersistentList.initializeFromCache(PersistentList.java:423)
       at org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:58)
       at org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:159)
       at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:71)
       at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1863)
       at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:369)
       at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111)
       at org.hibernate.collection.PersistentList.iterator(PersistentList.java:138)
       at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:232)
       at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:213)
       at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:226)
       at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:196)
       at sun.reflect.GeneratedMethodAccessor490.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
       at org.jbpm.graph.def.Node_$$_javassist_308.fireEvent(Node_$$_javassist_308.java)
      

       

      Since the error come from loading collection from hibernate second level cache we disable this collection as cachable.

      But after that exception comes from different parts of the system:

       

      java.lang.NullPointerException
              at org.jboss.cache.invocation.NodeInvocationDelegate.isValid(NodeInvocationDelegate.java:480)
              at org.hibernate.cache.jbc.BasicRegionAdapter.ensureRegionRootExists(BasicRegionAdapter.java:271)
              at org.hibernate.cache.jbc.access.TransactionalAccessDelegate.get(TransactionalAccessDelegate.java:70)
              at org.hibernate.cache.jbc.entity.TransactionalAccess.get(TransactionalAccess.java:63)
              at org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:587)
              at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:459)
              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:1090)
              at org.hibernate.impl.SessionImpl.immediateLoad(SessionImpl.java:1026)
              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:190)
              at org.jbpm.graph.def.Action_$$_javassist_264.getEvent(Action_$$_javassist_264.java)
              at org.jbpm.graph.exe.ExecutionContext.setAction(ExecutionContext.java:85)
              at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:271)
              at sun.reflect.GeneratedMethodAccessor1306.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
              at org.jbpm.graph.node.State_$$_javassist_147.executeAction(State_$$_javassist_147.java)
              at org.jbpm.job.Timer.execute(Timer.java:59)
              at sun.reflect.GeneratedMethodAccessor1305.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
              at org.jbpm.job.Job_$$_javassist_235.execute(Job_$$_javassist_235.java)
      

       

      and

       

       

      java.lang.NullPointerException
       at org.jboss.cache.invocation.NodeInvocationDelegate.isValid(NodeInvocationDelegate.java:480)
       at org.hibernate.cache.jbc.BasicRegionAdapter.ensureRegionRootExists(BasicRegionAdapter.java:271)
       at org.hibernate.cache.jbc.access.TransactionalAccessDelegate.insert(TransactionalAccessDelegate.java:140)
       at org.hibernate.cache.jbc.entity.TransactionalAccess.insert(TransactionalAccess.java:79)
       at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:120)
       at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273)
       at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:265)
       at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
       at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
       at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
       at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
       at com.consol.cmas.core.dao.hibernate.TicketDaoHibernate.update(TicketDaoHibernate.java:100)
       at com.consol.cmas.core.server.service.TicketInternalServiceImpl.update(TicketInternalServiceImpl.java:120)
       at sun.reflect.GeneratedMethodAccessor1010.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
       at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
       at com.consol.cmas.core.server.internal.TransactionalOperationAspect.automaticUpdateActivator(TransactionalOperationAspect.java:53)
       at sun.reflect.GeneratedMethodAccessor261.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
       at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
       at $Proxy467.update(Unknown Source)
       at com.consol.cmas.core.server.service.TicketServiceImpl.update(TicketServiceImpl.java:253)
       at com.consol.cmas.core.server.service.TicketServiceImpl.update(TicketServiceImpl.java:207)
       at sun.reflect.GeneratedMethodAccessor1044.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
       at com.consol.cmas.core.server.history.LogInterceptor.invoke(LogInterceptor.java:69)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
       at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
       at com.consol.cmas.core.server.internal.TransactionalOperationAspect.automaticUpdateActivator(TransactionalOperationAspect.java:53)
       at sun.reflect.GeneratedMethodAccessor261.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
       at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
       at com.consol.cmas.core.server.internal.ScriptValidationAspect.scriptValidationHandler(ScriptValidationAspect.java:49)
       at sun.reflect.GeneratedMethodAccessor978.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
       at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
       at com.consol.cmas.core.server.internal.TicketUpdateAspect.isTicketUpdatable(TicketUpdateAspect.java:74)
       at sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
       at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
       at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
       at $Proxy472.update(Unknown Source)
       at com.consol.cmas.core.server.service.WorkflowContextServiceImpl.setGroupProperty(WorkflowContextServiceImpl.java:1182)
       at sun.reflect.GeneratedMethodAccessor1183.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
       at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
       at com.consol.cmas.core.server.internal.TransactionalOperationAspect.automaticUpdateActivator(TransactionalOperationAspect.java:53)
       at sun.reflect.GeneratedMethodAccessor261.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
       at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
       at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
       at $Proxy613.setGroupProperty(Unknown Source)
       at com.consol.cmas.common.service.WorkflowContextService$setGroupProperty.call(Unknown Source)
       at 
      

       

      maybe somene have a hint how to solve this or why this can happen ?

       

      After this occurs server stops to respond, so far only restarts works but maybe there is some other way which we do not know.