java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • While we try to save the document in couchbase, we see NPE thrown from OperationFuture.getCas() method. It seems there could be a timeout happening in getCas() resulting in NullPointerException to be thrown. st=java.lang.NullPointerException at net.spy.memcached.internal.OperationFuture.getCas(OperationFuture.java:226) at org.springframework.data.couchbase.core.CouchbaseTemplate$4.doInBucket(CouchbaseTemplate.java:319) at org.springframework.data.couchbase.core.CouchbaseTemplate$4.doInBucket(CouchbaseTemplate.java:301) at org.springframework.data.couchbase.core.CouchbaseTemplate.execute(CouchbaseTemplate.java:246) at org.springframework.data.couchbase.core.CouchbaseTemplate.save(CouchbaseTemplate.java:301) at org.springframework.data.couchbase.core.CouchbaseTemplate.save(CouchbaseTemplate.java:150) at org.springframework.data.couchbase.repository.support.SimpleCouchbaseRepository.save(SimpleCouchbaseRepository.java:82) at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:475) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:460) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:432) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.couchbase.repository.support.ViewPostProcessor$ViewInterceptor.invoke(ViewPostProcessor.java:87) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy122.save(Unknown Source) at com.paypal.fi.data.couchbase.repository.CouchbaseRepository.saveUserDocumentAsync(CouchbaseRepository.java:192) at com.paypal.fi.data.couchbase.repository.CouchbaseRepository$$FastClassBySpringCGLIB$$ca9d4fbb.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at com.paypal.fi.core.annotation.CalTransactionAwareInterceptor.invoke(CalTransactionAwareInterceptor.java:69) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at com.paypal.fi.core.annotation.NamedAsyncInterceptor$1.call(NamedAsyncInterceptor.java:51) at com.paypal.fi.core.async.AsyncTask.call(AsyncTask.java:61) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) &msg=Exception in parent CAL Transaction
    via by Puneet Dewan,
  • While we try to save the document in couchbase, we see NPE thrown from OperationFuture.getCas() method. It seems there could be a timeout happening in getCas() resulting in NullPointerException to be thrown. st=java.lang.NullPointerException at net.spy.memcached.internal.OperationFuture.getCas(OperationFuture.java:226) at org.springframework.data.couchbase.core.CouchbaseTemplate$4.doInBucket(CouchbaseTemplate.java:319) at org.springframework.data.couchbase.core.CouchbaseTemplate$4.doInBucket(CouchbaseTemplate.java:301) at org.springframework.data.couchbase.core.CouchbaseTemplate.execute(CouchbaseTemplate.java:246) at org.springframework.data.couchbase.core.CouchbaseTemplate.save(CouchbaseTemplate.java:301) at org.springframework.data.couchbase.core.CouchbaseTemplate.save(CouchbaseTemplate.java:150) at org.springframework.data.couchbase.repository.support.SimpleCouchbaseRepository.save(SimpleCouchbaseRepository.java:82) at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:475) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:460) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:432) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.couchbase.repository.support.ViewPostProcessor$ViewInterceptor.invoke(ViewPostProcessor.java:87) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy122.save(Unknown Source) at com.paypal.fi.data.couchbase.repository.CouchbaseRepository.saveUserDocumentAsync(CouchbaseRepository.java:192) at com.paypal.fi.data.couchbase.repository.CouchbaseRepository$$FastClassBySpringCGLIB$$ca9d4fbb.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at com.paypal.fi.core.annotation.CalTransactionAwareInterceptor.invoke(CalTransactionAwareInterceptor.java:69) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at com.paypal.fi.core.annotation.NamedAsyncInterceptor$1.call(NamedAsyncInterceptor.java:51) at com.paypal.fi.core.async.AsyncTask.call(AsyncTask.java:61) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) &msg=Exception in parent CAL Transaction
    via by Puneet Dewan,
    • java.lang.NullPointerException at net.spy.memcached.internal.OperationFuture.getCas(OperationFuture.java:226) at org.springframework.data.couchbase.core.CouchbaseTemplate$4.doInBucket(CouchbaseTemplate.java:319) at org.springframework.data.couchbase.core.CouchbaseTemplate$4.doInBucket(CouchbaseTemplate.java:301) at org.springframework.data.couchbase.core.CouchbaseTemplate.execute(CouchbaseTemplate.java:246) at org.springframework.data.couchbase.core.CouchbaseTemplate.save(CouchbaseTemplate.java:301) at org.springframework.data.couchbase.core.CouchbaseTemplate.save(CouchbaseTemplate.java:150) at org.springframework.data.couchbase.repository.support.SimpleCouchbaseRepository.save(SimpleCouchbaseRepository.java:82) at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:475) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:460) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:432) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.couchbase.repository.support.ViewPostProcessor$ViewInterceptor.invoke(ViewPostProcessor.java:87) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy122.save(Unknown Source) at com.paypal.fi.data.couchbase.repository.CouchbaseRepository.saveUserDocumentAsync(CouchbaseRepository.java:192) at com.paypal.fi.data.couchbase.repository.CouchbaseRepository$$FastClassBySpringCGLIB$$ca9d4fbb.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at com.paypal.fi.core.annotation.CalTransactionAwareInterceptor.invoke(CalTransactionAwareInterceptor.java:69) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at com.paypal.fi.core.annotation.NamedAsyncInterceptor$1.call(NamedAsyncInterceptor.java:51) at com.paypal.fi.core.async.AsyncTask.call(AsyncTask.java:61) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)
    No Bugmate found.