{"action":"closed","issue":{"url":"https://api.github.com/repos/dboissier/mongo4idea/issues/71","labels_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/71/comments","events_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/71/events","html_url":"https://github.com/dboissier/mongo4idea/issues/71","id":27202188,"number":71,"title":"Connection-related exceptions not handled","user":{"login":"kolen","id":24191,"avatar_url":"https://avatars.githubusercontent.com/u/24191?v=3","gravatar_id":"","url":"https://api.github.com/users/kolen","html_url":"https://github.com/kolen","followers_url":"https://api.github.com/users/kolen/followers","following_url":"https://api.github.com/users/kolen/following{/other_user}","gists_url":"https://api.github.com/users/kolen/gists{/gist_id}","starred_url":"https://api.github.com/users/kolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolen/subscriptions","organizations_url":"https://api.github.com/users/kolen/orgs","repos_url":"https://api.github.com/users/kolen/repos","events_url":"https://api.github.com/users/kolen/events{/privacy}","received_events_url":"https://api.github.com/users/kolen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dboissier/mongo4idea/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dboissier/mongo4idea/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-02-08T15:28:09Z","updated_at":"2015-03-01T22:34:03Z","closed_at":"2015-03-01T22:34:03Z","body":"Instead of error message, \"IDE internal error\" icon appears, when trying to refresh server if connection cannot be established.\r\n\r\nWhen host cannot be resolved:\r\n```\r\nError when collecting Mongo databases: some-unexistent-host\r\njava.net.UnknownHostException: some-unexistent-host\r\n\tat java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)\r\n\tat java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)\r\n\tat java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)\r\n\tat java.net.InetAddress.getAllByName0(InetAddress.java:1246)\r\n\tat java.net.InetAddress.getAllByName(InetAddress.java:1162)\r\n\tat java.net.InetAddress.getAllByName(InetAddress.java:1098)\r\n\tat java.net.InetAddress.getByName(InetAddress.java:1048)\r\n\tat com.mongodb.ServerAddress.updateInetAddress(ServerAddress.java:204)\r\n\tat com.mongodb.ServerAddress.<init>(ServerAddress.java:73)\r\n\tat com.mongodb.ServerAddress.<init>(ServerAddress.java:46)\r\n\tat com.mongodb.Mongo.<init>(Mongo.java:321)\r\n\tat com.mongodb.MongoClient.<init>(MongoClient.java:192)\r\n\tat org.codinjutsu.tools.mongo.logic.MongoManager.createMongoClient(MongoManager.java:265)\r\n\tat org.codinjutsu.tools.mongo.logic.MongoManager.loadDatabaseCollections(MongoManager.java:81)\r\n\tat org.codinjutsu.tools.mongo.view.MongoExplorerPanel.addIfPossibleDatabase(MongoExplorerPanel.java:157)\r\n\tat org.codinjutsu.tools.mongo.view.MongoExplorerPanel.access$100(MongoExplorerPanel.java:52)\r\n\tat org.codinjutsu.tools.mongo.view.MongoExplorerPanel$1.run(MongoExplorerPanel.java:106)\r\n\tat com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:346)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)\r\n\tat java.awt.EventQueue.access$200(EventQueue.java:103)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:694)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:692)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:703)\r\n\tat com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:91)\r\n```\r\n\r\nWhen unable to connect to server:\r\n```\r\nError when collecting Mongo databases: can't call something : /8.8.8.8:27017/admin\r\ncom.mongodb.MongoException$Network: can't call something : /8.8.8.8:27017/admin\r\n\tat com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:295)\r\n\tat com.mongodb.DBTCPConnector.call(DBTCPConnector.java:257)\r\n\tat com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:310)\r\n\tat com.mongodb.DB.command(DB.java:274)\r\n\tat com.mongodb.DB.command(DB.java:256)\r\n\tat com.mongodb.DB.command(DB.java:313)\r\n\tat org.codinjutsu.tools.mongo.logic.MongoManager.getDatabaseNames(MongoManager.java:302)\r\n\tat org.codinjutsu.tools.mongo.logic.MongoManager.loadDatabaseCollections(MongoManager.java:92)\r\n\tat org.codinjutsu.tools.mongo.view.MongoExplorerPanel.addIfPossibleDatabase(MongoExplorerPanel.java:157)\r\n\tat org.codinjutsu.tools.mongo.view.MongoExplorerPanel.access$100(MongoExplorerPanel.java:52)\r\n\tat org.codinjutsu.tools.mongo.view.MongoExplorerPanel$1.run(MongoExplorerPanel.java:106)\r\n\tat com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:346)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)\r\n\tat java.awt.EventQueue.access$200(EventQueue.java:103)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:694)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:692)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:703)\r\n\tat com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:91)\r\nCaused by: java.io.IOException: couldn't connect to [/8.8.8.8:27017] bc:java.net.SocketTimeoutException: connect timed out\r\n\tat com.mongodb.DBPort._open(DBPort.java:214)\r\n\tat com.mongodb.DBPort.go(DBPort.java:107)\r\n\tat com.mongodb.DBPort.call(DBPort.java:74)\r\n\tat com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286)\r\n\t... 28 more\r\n```"}}