com.mongodb.MongoException

HostUnreachable

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 web71

  • via Stack Overflow by Jose Ramon
    ,
  • Stack trace

    • com.mongodb.MongoException: HostUnreachable at com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:246)[mongo-java-driver-2.14.2.jar:na] at com.mongodb.QueryResultIterator.init(QueryResultIterator.java:224)[mongo-java-driver-2.14.2.jar:na] at com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:184)[mongo-java-driver-2.14.2.jar:na] at com.mongodb.QueryResultIterator.<init>(QueryResultIterator.java:62)[mongo-java-driver-2.14.2.jar:na] at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:88)[mongo-java-driver-2.14.2.jar:na] at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:68)[mongo-java-driver-2.14.2.jar:na] at com.mongodb.DBCursor._check(DBCursor.java:498)[mongo-java-driver-2.14.2.jar:na] at com.mongodb.DBCursor._hasNext(DBCursor.java:621)[mongo-java-driver-2.14.2.jar:na] at com.mongodb.DBCursor.hasNext(DBCursor.java:657)[mongo-java-driver-2.14.2.jar:na] at com.xgen.svc.core.dao.system.AppPropertyDao.getValues(AppPropertyDao.java:38)[mms.jar:2.0.6.363] at com.xgen.svc.core.AppSettings.getDBProperties(AppSettings.java:296)[mms.jar:2.0.6.363] at com.xgen.svc.core.AppSettings$DatabasePropertiesRefresher.run(AppSettings.java:273)[mms.jar:2.0.6.363] at com.xgen.svc.core.AppSettings.refreshDatabaseCache(AppSettings.java:500)[mms.jar:2.0.6.363] at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:167)[mms.jar:2.0.6.363] at com.xgen.svc.core.AppSettings.<init>(AppSettings.java:124)[mms.jar:2.0.6.363] at com.xgen.svc.core.AppSettings$$FastClassByGuice$$577b2d6c.newInstance(<generated>)[guice-4.0.jar:2.0.6.363] at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)[guice-4.0.jar:na] at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)[guice-4.0.jar:na] at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)[guice-4.0.jar:na] at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)[guice-4.0.jar:na] at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)[guice-4.0.jar:na] at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)[guice-4.0.jar:na] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)[guice-4.0.jar:na] at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)[guice-4.0.jar:na] at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)[guice-4.0.jar:na] at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)[guice-4.0.jar:na] at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)[guice-4.0.jar:na] at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)[guice-4.0.jar:na] at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)[guice-4.0.jar:na] at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)[guice-4.0.jar:na] at com.mycila.inject.jsr250.Jsr250InjectorImpl.getInstance(Jsr250InjectorImpl.java:123)[mycila-guice-2.10.ga.jar:na] at com.xgen.svc.common.migration.MigrationRunner.run(MigrationRunner.java:215)[mms.jar:2.0.6.363] at com.xgen.svc.common.migration.MigrationRunner.main(MigrationRunner.java:285)[mms.jar:2.0.6.363]

    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

    Unknown visitor
    Unknown visitorOnce,
    sriharshakiransriharshakiran
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    2 more bugmates