java.lang.NullPointerException

Spring JIRA | Puneet Dewan | 1 year ago
  1. 0

    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

    Spring JIRA | 1 year ago | Puneet Dewan
    java.lang.NullPointerException
  2. 0

    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

    Spring JIRA | 1 year ago | Puneet Dewan
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at net.spy.memcached.internal.OperationFuture.getCas()
    2. Spymemcached
      OperationFuture.getCas
      1. net.spy.memcached.internal.OperationFuture.getCas(OperationFuture.java:226)
      1 frame
    3. Spring Data Couchbase
      SimpleCouchbaseRepository.save
      1. org.springframework.data.couchbase.core.CouchbaseTemplate$4.doInBucket(CouchbaseTemplate.java:319)
      2. org.springframework.data.couchbase.core.CouchbaseTemplate$4.doInBucket(CouchbaseTemplate.java:301)
      3. org.springframework.data.couchbase.core.CouchbaseTemplate.execute(CouchbaseTemplate.java:246)
      4. org.springframework.data.couchbase.core.CouchbaseTemplate.save(CouchbaseTemplate.java:301)
      5. org.springframework.data.couchbase.core.CouchbaseTemplate.save(CouchbaseTemplate.java:150)
      6. org.springframework.data.couchbase.repository.support.SimpleCouchbaseRepository.save(SimpleCouchbaseRepository.java:82)
      6 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    5. Spring Data Core
      RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:475)
      2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:460)
      3. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:432)
      3 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    7. Spring Data Couchbase
      ViewPostProcessor$ViewInterceptor.invoke
      1. org.springframework.data.couchbase.repository.support.ViewPostProcessor$ViewInterceptor.invoke(ViewPostProcessor.java:87)
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      4. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      5. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      6. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      6 frames
    9. com.sun.proxy
      $Proxy122.save
      1. com.sun.proxy.$Proxy122.save(Unknown Source)
      1 frame
    10. com.paypal.fi
      CouchbaseRepository$$FastClassBySpringCGLIB$$ca9d4fbb.invoke
      1. com.paypal.fi.data.couchbase.repository.CouchbaseRepository.saveUserDocumentAsync(CouchbaseRepository.java:192)
      2. com.paypal.fi.data.couchbase.repository.CouchbaseRepository$$FastClassBySpringCGLIB$$ca9d4fbb.invoke(<generated>)
      2 frames
    11. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame
    12. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      2 frames
    13. com.paypal.fi
      CalTransactionAwareInterceptor.invoke
      1. com.paypal.fi.core.annotation.CalTransactionAwareInterceptor.invoke(CalTransactionAwareInterceptor.java:69)
      1 frame
    14. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    15. com.paypal.fi
      AsyncTask.call
      1. com.paypal.fi.core.annotation.NamedAsyncInterceptor$1.call(NamedAsyncInterceptor.java:51)
      2. com.paypal.fi.core.async.AsyncTask.call(AsyncTask.java:61)
      2 frames
    16. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4. java.lang.Thread.run(Thread.java:744)
      4 frames