java.net.ConnectException: Connection refused}}] at org.springframework.data.mongodb.core.MongoExceptionTranslator.transl ateExceptionIfPossible(MongoExceptionTranslator.java:75) ~[spring-data-mongodb-1 .8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConver tRuntimeException(MongoTemplate.java:2013) ~[spring-data-mongodb-1.8.0.RELEASE.j ar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInt ernal(MongoTemplate.java:1843) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.doFindOne(MongoTe mplate.java:1656) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.findOne(MongoTemp late.java:564) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.query.AbstractMongoQuery$ SingleEntityExecution.execute(AbstractMongoQuery.java:312) ~[spring-data-mongodb -1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.query.AbstractMongoQuery. execute(AbstractMongoQuery.java:108) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:n a] at org.springframework.data.repository.core.support.RepositoryFactorySup port$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:454) ~[spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.data.repository.core.support.RepositoryFactorySup port$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:432) ~[ spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.data.projection.DefaultMethodInvokingMethodInterc eptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) ~[spring-data-commo ns-1.11.0.RELEASE.jar!/:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invok e(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RE LEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE]

GitHub | Samriddhi1 | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 698#249355576

    GitHub | 5 months ago | Samriddhi1
    java.net.ConnectException: Connection refused}}] at org.springframework.data.mongodb.core.MongoExceptionTranslator.transl ateExceptionIfPossible(MongoExceptionTranslator.java:75) ~[spring-data-mongodb-1 .8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConver tRuntimeException(MongoTemplate.java:2013) ~[spring-data-mongodb-1.8.0.RELEASE.j ar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInt ernal(MongoTemplate.java:1843) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.doFindOne(MongoTe mplate.java:1656) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.findOne(MongoTemp late.java:564) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.query.AbstractMongoQuery$ SingleEntityExecution.execute(AbstractMongoQuery.java:312) ~[spring-data-mongodb -1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.query.AbstractMongoQuery. execute(AbstractMongoQuery.java:108) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:n a] at org.springframework.data.repository.core.support.RepositoryFactorySup port$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:454) ~[spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.data.repository.core.support.RepositoryFactorySup port$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:432) ~[ spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.data.projection.DefaultMethodInvokingMethodInterc eptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) ~[spring-data-commo ns-1.11.0.RELEASE.jar!/:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invok e(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RE LEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE]

    Root Cause Analysis

    1. java.net.ConnectException

      Connection refused}}] at org.springframework.data.mongodb.core.MongoExceptionTranslator.transl ateExceptionIfPossible(MongoExceptionTranslator.java:75) ~[spring-data-mongodb-1 .8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConver tRuntimeException(MongoTemplate.java:2013) ~[spring-data-mongodb-1.8.0.RELEASE.j ar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInt ernal(MongoTemplate.java:1843) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.doFindOne(MongoTe mplate.java:1656) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.findOne(MongoTemp late.java:564) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.query.AbstractMongoQuery$ SingleEntityExecution.execute(AbstractMongoQuery.java:312) ~[spring-data-mongodb -1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.query.AbstractMongoQuery. execute(AbstractMongoQuery.java:108) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:n a] at org.springframework.data.repository.core.support.RepositoryFactorySup port$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:454) ~[spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.data.repository.core.support.RepositoryFactorySup port$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:432) ~[ spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.data.projection.DefaultMethodInvokingMethodInterc eptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) ~[spring-data-commo ns-1.11.0.RELEASE.jar!/:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invok e(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RE LEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE]

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke()
    2. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
      1 frame
    3. com.sun.proxy
      $Proxy68.findByName
      1. com.sun.proxy.$Proxy68.findByName(Unknown Source)[na:na]
      1 frame
    4. com.capitalone.dashboard
      CollectorServiceImpl.initProductCollectorOnStartup
      1. com.capitalone.dashboard.service.CollectorServiceImpl.initProductCollectorOnStartup(CollectorServiceImpl.java:65)[api.jar!/:2.0.0-SNAPSHOT]
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_66]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_66]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_66]
      4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_66]
      4 frames