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]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Samriddhi1
, 1 year ago
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
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 com.sun.proxy.$Proxy68.findByName(Unknown Source)
at com.capitalone.dashboard.service.CollectorServiceImpl.initProductCollectorOnStartup(CollectorServiceImpl.java:65)
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:497)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.