java.lang.NullPointerException

Spring JIRA | Alan Xu | 1 year ago
  1. 0

    We have been seeing the the following NullPointerException with CouchbaseTemplate.findById calls. As we dug deeper, it turns out to be related to Spring AOP. Specifically, we set up Spring AOP pointcuts for each CouchbaseTemplate method so that we can do logging/benchmarking/error-handling/etc off of DB activities. However, as some of the CouchbaseTemplate methods are final (such as findById), they cannot be proxied/extended (to delegate to the underlying CouchbaseTemplate), and that led to NullPointerExceptions as findById is then executed against the proxy instead of being delegated/forwarded. Any specific reason why some of the methods (not all) are marked as final? Thanks! NullPointerException stacktrace below. CouchbaseTemplate.java:176 is trying to reference this.client which is null for the proxy object. 2015-06-04 02:18:55,346 [main] ERROR test.AbstractTestContext:33 (WorkflowDaoTestImpl.hasEntityAuditHistory) {} - hasEntityAuditHistory(net.mlbam.mm.ams.workflow.dao.WorkflowDaoTestImpl) failed junit test: java.lang.NullPointerException at org.springframework.data.couchbase.core.CouchbaseTemplate$1.doInBucket(CouchbaseTemplate.java:176) at org.springframework.data.couchbase.core.CouchbaseTemplate$1.doInBucket(CouchbaseTemplate.java:173) at org.springframework.data.couchbase.core.CouchbaseTemplate.execute(CouchbaseTemplate.java:244) at org.springframework.data.couchbase.core.CouchbaseTemplate$$FastClassBySpringCGLIB$$65a4c456.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 org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) at com.mlbam.mm.commons.spring.couchbase.aop.CouchbaseLoggingAspect.logCouchbaseClientActivity(CouchbaseLoggingAspect.java:44) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) 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:68) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) at com.mlbam.mm.commons.spring.couchbase.aop.CouchbaseTimeoutRetryAspect.retryIfTimedout(CouchbaseTimeoutRetryAspect.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) 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:68) 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.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653) at org.springframework.data.couchbase.core.CouchbaseTemplate$$EnhancerBySpringCGLIB$$d5900aee.execute(<generated>) at org.springframework.data.couchbase.core.CouchbaseTemplate.findById(CouchbaseTemplate.java:173) at org.springframework.data.couchbase.repository.support.SimpleCouchbaseRepository.findOne(SimpleCouchbaseRepository.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:442) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:427) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:381) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.repository.core.support.RepositoryFactorySupport$DefaultMethodInvokingMethodInterceptor.invoke(RepositoryFactorySupport.java:512) 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.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy57.findOne(Unknown Source) at com.mlbam.mm.commons.webapp.couchbase.dao.BaseDocumentAccess.getByKey(BaseDocumentAccess.java:31) at com.mlbam.mm.commons.webapp.couchbase.dao.BaseDocumentAccess.getById(BaseDocumentAccess.java:37) at com.mlbam.mm.commons.webapp.couchbase.dao.BaseDocumentAccess$$FastClassBySpringCGLIB$$bcb11c14.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 org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653) at com.mlbam.mm.commons.webapp.couchbase.dao.EntityAuditHistoryDao$$EnhancerBySpringCGLIB$$363274a7.getById(<generated>) at com.mlbam.mm.commons.webapp.couchbase.service.validation.BaseDocumentAsserts.assertExists(BaseDocumentAsserts.java:32) at com.mlbam.mm.commons.webapp.couchbase.service.AbstractDocumentService.getById(AbstractDocumentService.java:54) at com.mlbam.mm.commons.webapp.couchbase.service.EntityAuditHistoryService.getByEntityId(EntityAuditHistoryService.java:167) at com.mlbam.mm.commons.webapp.couchbase.AbstractWebAppTestContext.assertEntityAuditHistoryMatches(AbstractWebAppTestContext.java:137) at net.mlbam.mm.ams.workflow.dao.WorkflowDaoTestImpl.hasEntityAuditHistory(WorkflowDaoTestImpl.java:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

    Spring JIRA | 1 year ago | Alan Xu
    java.lang.NullPointerException
  2. 0

    We have been seeing the the following NullPointerException with CouchbaseTemplate.findById calls. As we dug deeper, it turns out to be related to Spring AOP. Specifically, we set up Spring AOP pointcuts for each CouchbaseTemplate method so that we can do logging/benchmarking/error-handling/etc off of DB activities. However, as some of the CouchbaseTemplate methods are final (such as findById), they cannot be proxied/extended (to delegate to the underlying CouchbaseTemplate), and that led to NullPointerExceptions as findById is then executed against the proxy instead of being delegated/forwarded. Any specific reason why some of the methods (not all) are marked as final? Thanks! NullPointerException stacktrace below. CouchbaseTemplate.java:176 is trying to reference this.client which is null for the proxy object. 2015-06-04 02:18:55,346 [main] ERROR test.AbstractTestContext:33 (WorkflowDaoTestImpl.hasEntityAuditHistory) {} - hasEntityAuditHistory(net.mlbam.mm.ams.workflow.dao.WorkflowDaoTestImpl) failed junit test: java.lang.NullPointerException at org.springframework.data.couchbase.core.CouchbaseTemplate$1.doInBucket(CouchbaseTemplate.java:176) at org.springframework.data.couchbase.core.CouchbaseTemplate$1.doInBucket(CouchbaseTemplate.java:173) at org.springframework.data.couchbase.core.CouchbaseTemplate.execute(CouchbaseTemplate.java:244) at org.springframework.data.couchbase.core.CouchbaseTemplate$$FastClassBySpringCGLIB$$65a4c456.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 org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) at com.mlbam.mm.commons.spring.couchbase.aop.CouchbaseLoggingAspect.logCouchbaseClientActivity(CouchbaseLoggingAspect.java:44) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) 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:68) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) at com.mlbam.mm.commons.spring.couchbase.aop.CouchbaseTimeoutRetryAspect.retryIfTimedout(CouchbaseTimeoutRetryAspect.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) 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:68) 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.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653) at org.springframework.data.couchbase.core.CouchbaseTemplate$$EnhancerBySpringCGLIB$$d5900aee.execute(<generated>) at org.springframework.data.couchbase.core.CouchbaseTemplate.findById(CouchbaseTemplate.java:173) at org.springframework.data.couchbase.repository.support.SimpleCouchbaseRepository.findOne(SimpleCouchbaseRepository.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:442) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:427) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:381) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.repository.core.support.RepositoryFactorySupport$DefaultMethodInvokingMethodInterceptor.invoke(RepositoryFactorySupport.java:512) 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.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy57.findOne(Unknown Source) at com.mlbam.mm.commons.webapp.couchbase.dao.BaseDocumentAccess.getByKey(BaseDocumentAccess.java:31) at com.mlbam.mm.commons.webapp.couchbase.dao.BaseDocumentAccess.getById(BaseDocumentAccess.java:37) at com.mlbam.mm.commons.webapp.couchbase.dao.BaseDocumentAccess$$FastClassBySpringCGLIB$$bcb11c14.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 org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653) at com.mlbam.mm.commons.webapp.couchbase.dao.EntityAuditHistoryDao$$EnhancerBySpringCGLIB$$363274a7.getById(<generated>) at com.mlbam.mm.commons.webapp.couchbase.service.validation.BaseDocumentAsserts.assertExists(BaseDocumentAsserts.java:32) at com.mlbam.mm.commons.webapp.couchbase.service.AbstractDocumentService.getById(AbstractDocumentService.java:54) at com.mlbam.mm.commons.webapp.couchbase.service.EntityAuditHistoryService.getByEntityId(EntityAuditHistoryService.java:167) at com.mlbam.mm.commons.webapp.couchbase.AbstractWebAppTestContext.assertEntityAuditHistoryMatches(AbstractWebAppTestContext.java:137) at net.mlbam.mm.ams.workflow.dao.WorkflowDaoTestImpl.hasEntityAuditHistory(WorkflowDaoTestImpl.java:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

    Spring JIRA | 1 year ago | Alan Xu
    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 org.springframework.data.couchbase.core.CouchbaseTemplate$1.doInBucket()
    2. Spring Data Couchbase
      CouchbaseTemplate$$FastClassBySpringCGLIB$$65a4c456.invoke
      1. org.springframework.data.couchbase.core.CouchbaseTemplate$1.doInBucket(CouchbaseTemplate.java:176)
      2. org.springframework.data.couchbase.core.CouchbaseTemplate$1.doInBucket(CouchbaseTemplate.java:173)
      3. org.springframework.data.couchbase.core.CouchbaseTemplate.execute(CouchbaseTemplate.java:244)
      4. org.springframework.data.couchbase.core.CouchbaseTemplate$$FastClassBySpringCGLIB$$65a4c456.invoke(<generated>)
      4 frames
    3. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame
    4. Spring AOP
      MethodInvocationProceedingJoinPoint.proceed
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3. org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
      3 frames
    5. com.mlbam.mm
      CouchbaseLoggingAspect.logCouchbaseClientActivity
      1. com.mlbam.mm.commons.spring.couchbase.aop.CouchbaseLoggingAspect.logCouchbaseClientActivity(CouchbaseLoggingAspect.java:44)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:483)
      3 frames
    7. Spring AOP
      MethodInvocationProceedingJoinPoint.proceed
      1. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
      2. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
      3. org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      5. org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
      5 frames
    8. com.mlbam.mm
      CouchbaseTimeoutRetryAspect.retryIfTimedout
      1. com.mlbam.mm.commons.spring.couchbase.aop.CouchbaseTimeoutRetryAspect.retryIfTimedout(CouchbaseTimeoutRetryAspect.java:64)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    10. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
      2. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
      3. org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      5. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      6. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      7. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
      7 frames
    11. Spring Data Couchbase
      SimpleCouchbaseRepository.findOne
      1. org.springframework.data.couchbase.core.CouchbaseTemplate$$EnhancerBySpringCGLIB$$d5900aee.execute(<generated>)
      2. org.springframework.data.couchbase.core.CouchbaseTemplate.findById(CouchbaseTemplate.java:173)
      3. org.springframework.data.couchbase.repository.support.SimpleCouchbaseRepository.findOne(SimpleCouchbaseRepository.java:101)
      3 frames
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    13. Spring Data Core
      RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:442)
      2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:427)
      3. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:381)
      3 frames
    14. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    15. Spring Data Core
      RepositoryFactorySupport$DefaultMethodInvokingMethodInterceptor.invoke
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$DefaultMethodInvokingMethodInterceptor.invoke(RepositoryFactorySupport.java:512)
      1 frame
    16. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    17. Spring Data Couchbase
      ViewPostProcessor$ViewInterceptor.invoke
      1. org.springframework.data.couchbase.repository.support.ViewPostProcessor$ViewInterceptor.invoke(ViewPostProcessor.java:87)
      1 frame
    18. 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.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      4 frames
    19. com.sun.proxy
      $Proxy57.findOne
      1. com.sun.proxy.$Proxy57.findOne(Unknown Source)
      1 frame
    20. com.mlbam.mm
      BaseDocumentAccess$$FastClassBySpringCGLIB$$bcb11c14.invoke
      1. com.mlbam.mm.commons.webapp.couchbase.dao.BaseDocumentAccess.getByKey(BaseDocumentAccess.java:31)
      2. com.mlbam.mm.commons.webapp.couchbase.dao.BaseDocumentAccess.getById(BaseDocumentAccess.java:37)
      3. com.mlbam.mm.commons.webapp.couchbase.dao.BaseDocumentAccess$$FastClassBySpringCGLIB$$bcb11c14.invoke(<generated>)
      3 frames
    21. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame
    22. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      5. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
      5 frames
    23. com.mlbam.mm
      AbstractWebAppTestContext.assertEntityAuditHistoryMatches
      1. com.mlbam.mm.commons.webapp.couchbase.dao.EntityAuditHistoryDao$$EnhancerBySpringCGLIB$$363274a7.getById(<generated>)
      2. com.mlbam.mm.commons.webapp.couchbase.service.validation.BaseDocumentAsserts.assertExists(BaseDocumentAsserts.java:32)
      3. com.mlbam.mm.commons.webapp.couchbase.service.AbstractDocumentService.getById(AbstractDocumentService.java:54)
      4. com.mlbam.mm.commons.webapp.couchbase.service.EntityAuditHistoryService.getByEntityId(EntityAuditHistoryService.java:167)
      5. com.mlbam.mm.commons.webapp.couchbase.AbstractWebAppTestContext.assertEntityAuditHistoryMatches(AbstractWebAppTestContext.java:137)
      5 frames
    24. net.mlbam.mm
      WorkflowDaoTestImpl.hasEntityAuditHistory
      1. net.mlbam.mm.ams.workflow.dao.WorkflowDaoTestImpl.hasEntityAuditHistory(WorkflowDaoTestImpl.java:32)
      1 frame
    25. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    26. JUnit
      ReflectiveCallable.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      2 frames