6 Replies Latest reply on Jan 23, 2012 9:53 AM by Brent Douglas

    ISPN000136 NPE in CR3&4

    Brent Douglas Newbie

      Hello all,

       

      I'm trying to configure some caching with infinispan however running into some issues. The stack trace and cache configurations are below. The cache configurations were working in CR2. Neither the key or value I am putting are null. I am running on AS7 built from the master branch about 2 hours ago with close to the default standalone-ha.xml with some additional config. Does this look like a familiar problem to anyone?

       

      Brent

       

       

      16:52:28,732 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (http-localhost.localdomain-127.0.0.1-8080-6) ISPN000136: Execution error: java.lang.NullPointerException
                at org.infinispan.commands.write.PutKeyValueCommand.perform(PutKeyValueCommand.java:82) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.CallInterceptor.handleDefault(CallInterceptor.java:83) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:61) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.DistributionInterceptor.handleWriteCommand(DistributionInterceptor.java:464) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.DistributionInterceptor.visitPutKeyValueCommand(DistributionInterceptor.java:274) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.EntryWrappingInterceptor.invokeNextAndApplyChanges(EntryWrappingInterceptor.java:199) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.EntryWrappingInterceptor.visitPutKeyValueCommand(EntryWrappingInterceptor.java:134) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.locking.NonTransactionalLockingInterceptor.visitPutKeyValueCommand(NonTransactionalLockingInterceptor.java:68) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:61) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.StateTransferLockInterceptor.handleWithRetries(StateTransferLockInterceptor.java:201) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.StateTransferLockInterceptor.visitPutKeyValueCommand(StateTransferLockInterceptor.java:131) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:116) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:76) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:61) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:941) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.CacheImpl.put(CacheImpl.java:654) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.CacheImpl.put(CacheImpl.java:646) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at org.infinispan.CacheSupport.put(CacheSupport.java:52) [infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
                at com.britensw.pluto.framework.services.cache.AccountCache.getBalance(AccountCache.java:59) [pluto-framework.jar:]
                at sun.reflect.GeneratedMethodAccessor638.invoke(Unknown Source) [:1.6.0_29]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_29]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_29]
                at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:127) [jboss-as-weld-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135) [jboss-as-weld-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at com.britensw.pluto.interop.lifecycle.RequiresNewInterceptor.aroundInvoke(RequiresNewInterceptor.java:43) [pluto-interop.jar:]
                at sun.reflect.GeneratedMethodAccessor407.invoke(Unknown Source) [:1.6.0_29]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_29]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_29]
                at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:123) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:45) [jboss-as-jpa-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:84) [jboss-as-weld-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202) [jboss-as-ejb3-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306) [jboss-as-ejb3-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190) [jboss-as-ejb3-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:57) [jboss-as-ejb3-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
                at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
                at com.britensw.pluto.framework.services.cache.AccountCache$$$view554.getBalance(Unknown Source) [pluto-framework.jar:]
                at com.britensw.pluto.web.model.clients.accounts.ui.AccountTreeNode.getLabel(AccountTreeNode.java:69)
                at sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source) [:1.6.0_29]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_29]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_29]
                at javax.el.BeanELResolver.getValue(BeanELResolver.java:302) [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
                at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
                at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
                at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
                at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
                at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                at org.richfaces.component.html.HtmlDndParam.getValue(HtmlDndParam.java:96)
                at org.richfaces.renderkit.DnDParametersEncoder.doEncodeAsMap(DnDParametersEncoder.java:228)
                at org.richfaces.renderkit.DnDParametersEncoder.doEncode(DnDParametersEncoder.java:80)
                at org.richfaces.renderkit.CompositeRenderer.encodeAttributeParameters(CompositeRenderer.java:234)
                at org.richfaces.renderkit.html.TreeNodeRenderer.doEncodeBegin(TreeNodeRenderer.java:145)
                at org.richfaces.renderkit.html.TreeNodeRenderer.doEncodeBegin(TreeNodeRenderer.java:86)
                at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
                at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:816)
                at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)
                at org.richfaces.renderkit.TreeRendererBase$DataVisitorWithLastElement.process(TreeRendererBase.java:255)
                at org.richfaces.model.AbstractTreeDataModel.processElement(AbstractTreeDataModel.java:111)
                at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:294)
                at org.richfaces.model.StackingTreeModel$Visitor1.process(StackingTreeModel.java:416)
                at org.richfaces.model.StackingTreeModel$ShiftingDataVisitor.end(StackingTreeModel.java:461)
                at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:348)
                at org.richfaces.model.StackingTreeModel$Visitor1.process(StackingTreeModel.java:416)
                at org.richfaces.model.StackingTreeModel$ShiftingDataVisitor.process(StackingTreeModel.java:451)
                at org.richfaces.model.StackingTreeModel$1.process(StackingTreeModel.java:339)
                at org.richfaces.model.SequenceDataModel.walk(SequenceDataModel.java:80)
                at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:323)
                at org.richfaces.model.StackingTreeModel$Visitor1.process(StackingTreeModel.java:416)
                at org.richfaces.model.StackingTreeModel$ShiftingDataVisitor.process(StackingTreeModel.java:451)
                at org.richfaces.model.StackingTreeModel$1.process(StackingTreeModel.java:339)
                at org.richfaces.model.SequenceDataModel.walk(SequenceDataModel.java:80)
                at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:323)
                at org.richfaces.model.StackingTreeModel.walk(StackingTreeModel.java:387)
                at org.richfaces.component.UITree.walk(UITree.java:422)
                at org.richfaces.renderkit.TreeRendererBase.writeContent(TreeRendererBase.java:683)
                at org.richfaces.renderkit.TreeRendererBase.encodeChildren(TreeRendererBase.java:629)
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:186)
                at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                at org.jboss.seam.ui.renderkit.ValidateAllRendererBase.doEncodeChildren(ValidateAllRendererBase.java:27)
                at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:594)
                at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:63)
                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
                at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                at com.britensw.pluto.web.filter.DownloadFilter.doFilter(DownloadFilter.java:87)
                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                at com.britensw.pluto.web.filter.LoggingFilter.doFilter(LoggingFilter.java:63)
                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
                at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:67)
                at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:48)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:155)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
                at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)
                at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)
                at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)
                at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
      
      

       

       

      new ConfigurationBuilder()
                              .invocationBatching()
                                  .disable()
                              .clustering()
                                  .cacheMode(CacheMode.DIST_ASYNC)
                                  .l1()
                                      .enable()
                              .hash()
                                  .numOwners(1)
                              .async()
                                  .eviction()
                                      .maxEntries(10000)
                                      .strategy(EvictionStrategy.LRU)
                                      .threadPolicy(EvictionThreadPolicy.DEFAULT)
                                  .expiration()
                                      .lifespan(1000000)
                                      .maxIdle(100000)
                                      .wakeUpInterval(5000)
                              .build();
      
      new GlobalConfigurationBuilder()
                              .clusteredDefault()
                              .asyncListenerExecutor()
                              .addProperty("maxThreads", "2")
                              .build();
      
      
        • 1. Re: ISPN000136 NPE in CR3&4
          Galder Zamarreño Master

          @Brent, can you provide the sequence of cache events that's leading to this? Can you provide a test case?

           

          Also, if can you replicate this issue easily? If so, on top of the sequence of events, please enable TRACE on org.infinispan and attach (a zipped) log.

          • 2. Re: ISPN000136 NPE in CR3&4
            Brent Douglas Newbie

            Hi Galder,

             

            Currently I've not been able to the reproduce issue as I thought I'd better trawl back through my history to make sure it was not a change that I introduced in my project. Here are some snippets the errors I have been getting:

             

            This warning during startup with AS7's standalone-ha, this might be one for the AS7 forums though. They appear on startup before any deployments are loaded.

            http://pastie.org/3216876

             

            When I went back far enough in my history I managed to load the page that had been causing problems. Shortly after I got this in the logs and all network traffic was blocked.

            http://pastie.org/3216868

             

            When the second level caches are starting each one produces this:

            http://pastie.org/3216969

             

            The original:

            http://pastie.org/3217004

             

            I can't recall how I got this exactly. I can achieve this in the same manner as the original but when looking at a different data set.

            http://pastie.org/3217001

             

             

            Is there config that might need to change for CR4 compared to CR2? I have changed:

             

            <property name="hibernate.cache.infinispan.entity.eviction.wake_up_interval" value="5000"/>

             

            to

             

            <property name="hibernate.cache.infinispan.entity.expiration.wake_up_interval" value="5000"/>

             

            as per a warning log.

             

            I will continue to look into this this afternoon and post anything of use that I find and over the weekend I shall try to produce and attach a TRACE log of each one of those errors and any others that I encounter.

             

            It's worth that I run my project from a slightly modified version of AS7 that allows me to use the second level cache with the copy of hibernate 3 bundled with my app. I'm not sure if it is to blame for these errors however it has been working fine with CR2 and our production deployments run on this build without problem.

             

            Brent

             

            Edit: I have trace logs from the original exception and also from the error in TimSort.mergeLo however I would prefer to email them to you than post them on here. My email is brent dot n dot douglas at gmail dot com.

            • 4. Re: ISPN000136 NPE in CR3&4
              Brent Douglas Newbie

              @Galder, Thanks for looking at them. Do the IllegalStateException's when the second level caches are starting (http://pastie.org/pastes/3216969/text) look like a real problem?

              • 5. Re: ISPN000136 NPE in CR3&4
                Dan Berindei Expert

                @Brent, you can ignore the "Unblocking transactions" error - it is benign.

                 

                Could you post the definitions of your entities? The TimSort stacktrace suggests that the key hashCode can change from one invocation to the next, and I'm not sure how that could happen.

                If a key's hashCode can change, that would probably explain the NullPointerException in PutKeyValueCommand as well.

                • 6. Re: ISPN000136 NPE in CR3&4
                  Brent Douglas Newbie

                  @Dan, I think I have found the cause of the NPE and it is in my code. The hashcode for our entity base class is constant and comes from the primary key assigned to it by postgresql however the equals implementation was not proxy aware. Our app is split into two sections, one half runs on seam2 + jsf and the other weld + resteasy. This cache should only contain seam proxies but weld proxies appear to be leaking into it. Both the seam2 and the weld proxies would have had the same hashcode however would not have been equal due to a comparison of the runtime class within equals. I hacked up a test solution that compares the entity class rather than the proxy and I no longer get the NPE.

                   

                  My thanks to both yourself and Galder for spending the time to investigate it.