org.springframework.data.mongodb.UncategorizedMongoDbException

Exception receiving message; nested exception is com.mongodb.MongoSocketReadException: Exception receiving message] with root cause java.net.SocketException: Connection reset

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • Stack trace

    • org.springframework.data.mongodb.UncategorizedMongoDbException: Exception receiving message; nested exception is com.mongodb.MongoSocketReadException: Exception receiving message] with root cause java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:209)[na:1.8.0_111] at java.net.SocketInputStream.read(SocketInputStream.java:141)[na:1.8.0_111] at com.mongodb.connection.SocketStream.read(SocketStream.java:85)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.InternalStreamConnection.receiveResponseBuffers(InternalStreamConnection.java:491)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.InternalStreamConnection.receiveMessage(InternalStreamConnection.java:221)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.CommandHelper.receiveReply(CommandHelper.java:134)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.CommandHelper.receiveCommandResult(CommandHelper.java:121)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.InternalStreamConnectionInitializer.initializeConnectionDescription(InternalStreamConnectionInitializer.java:83)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:43)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.UsageTrackingInternalConnection.open(UsageTrackingInternalConnection.java:46)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.DefaultConnectionPool$PooledConnection.open(DefaultConnectionPool.java:362)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:93)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:80)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.connection.DefaultServer.getConnection(DefaultServer.java:69)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.getConnection(ClusterBinding.java:86)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:193)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:168)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.operation.FindOperation.execute(FindOperation.java:394)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.operation.FindOperation.execute(FindOperation.java:57)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.Mongo.execute(Mongo.java:738)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.Mongo$2.execute(Mongo.java:725)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.DBCursor.initializeCursor(DBCursor.java:815)[mongo-java-driver-3.0.2.jar!/:na] at com.mongodb.DBCursor.hasNext(DBCursor.java:149)[mongo-java-driver-3.0.2.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1882)[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1707)[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1690)[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:602)[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.support.SimpleMongoRepository.findAll(SimpleMongoRepository.java:268)[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.support.SimpleMongoRepository.findAll(SimpleMongoRepository.java:227)[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_111] at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:475)[spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:460)[spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.data.repository.core.support.RepositoryFactorySupport$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.RELEASE] at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)[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.RELEASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at com.sun.proxy.$Proxy76.findAll(Unknown Source)[na:na] at com.capitalone.dashboard.service.DashboardServiceImpl.all(DashboardServiceImpl.java:59)[api.jar!/:2.0.5-SNAPSHOT] at com.capitalone.dashboard.rest.DashboardController.dashboards(DashboardController.java:39)[api.jar!/:2.0.5-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_111] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)[spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:776)[spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:705)[spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)[spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)[spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)[spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)[spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)[spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)[spring-webmvc-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-embed-websocket-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at com.capitalone.dashboard.config.LoggingFilter.doFilter(LoggingFilter.java:111)[api.jar!/:2.0.5-SNAPSHOT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_111] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_111] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.0.23.jar!/:8.0.23] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_111]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.