1 2 3 Previous Next 34 Replies Latest reply on Jan 29, 2007 6:16 PM by manik Go to original post
      • 30. Re: NPE when using optimistic locking with JbossCache 1.4.0.
        kgrjb

        hi manik

        i got a massive number of ".. is newer .." error on read only transactions and even with only 1 user running - that is effectively no concurrency.

        surprisingly the identical setup[i really mean identical because i copied the whole jboss dir with all cache settings and everything] seems to work on a different server in the cluster.

        org.jboss.cache.CacheException: DataNode ... version org.hibernate.cache.OptimisticTreeCache$DataVersionAdapter@1afd07df ... is newer than workspace node org.hibernate.cache.OptimisticTreeCache$DataVersionAdapter@1afd07df ...
        at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.simpleValidate(OptimisticValidatorInterceptor.java:127)
        at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.validateNodes(OptimisticValidatorInterceptor.java:101)
        at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.invoke(OptimisticValidatorInterceptor.java:66)
        at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
        at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:95)
        at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
        at org.jboss.cache.interceptors.OptimisticReplicationInterceptor.invoke(OptimisticReplicationInterceptor.java:74)
        at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
        at org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:804)
        at org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1069)
        at org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:75)
        at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491)
        at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110)
        at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324)
        at org.jboss.tm.TxManager.commit(TxManager.java:240)
        at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
        at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
        at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
        at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:211)
        at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
        ...


        • 31. Re: NPE when using optimistic locking with JbossCache 1.4.0.
          mraccola

          I upgraded from 1.3.0.SP2 to 1.4.1 to get some bug fixes and no I am getting the "in newer than" exception all over the place and I wasn't getting it before. I am using Hibernate 3.2 GA.

          Caused by: org.jboss.cache.optimistic.DataVersioningException: DataNode [/...] version Ver=10350 is newer than workspace node Ver=10344
          at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.simpleValidate(OptimisticValidatorInterceptor.java(Compiled Code))
          at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.validateNodes(OptimisticValidatorInterceptor.java(Compiled Code))
          at org.jboss.cache.interceptors.OptimisticValidatorInterceptor.invoke(OptimisticValidatorInterceptor.java(Compiled Code))
          at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java(Compiled Code))
          at org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java(Compiled Code))
          at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java(Compiled Code))
          at org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java(Compiled Code))
          ... 73 more


          • 32. Re: NPE when using optimistic locking with JbossCache 1.4.0.
            manik

            And this does not happen when you use 1.3.0.SP2? This is caused by concurrent updates on the node.

            • 33. Re: NPE when using optimistic locking with JbossCache 1.4.0.
              mraccola

              I rolled back to 1.3.0.SP2 and I am no longer experiencing the issue.

              • 34. Re: NPE when using optimistic locking with JbossCache 1.4.0.
                manik

                And is this under load only?

                1 2 3 Previous Next