Giter Site home page Giter Site logo

mongo4idea's People

Contributors

cunneen avatar dacopan avatar dboissier avatar mancubus77 avatar masteram avatar piddubnyi avatar pwilkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mongo4idea's Issues

Unable to connect to MongoDB instance in MongoHQ hosting

The error I am getting varies depending whether I try to test the connection, where I get this error message:
10:10:05 PM CommandFailure: Error when accessing Mongo server: command failed [$eval]: { "serverUsed" : "alex.mongohq.com/23.22.16.107:10040" , "ok" : 0.0 , "errmsg" : "unauthorized"}
or if I am trying to open the console, where I get this other error message:
connecting to: alex.mongohq.com:10040/test
exception: login failed
Wed May 22 22:14:14.907 JavaScript execution failed: Error: 18 { ok: 0.0, errmsg: "auth fails" } at src/mongo/shell/db.js:L228

why is trying to use the test db name? I can assure you the username and password is correct, so I don't understand that error message. On the other hand I am able to connect using the mongo command line client without any issue.

Cheers,
Angel.

wrong label

"Jenkins settings" --> "Mongo pluggin settings"

com.mongodb.util.JSONParseException

mydb.things.find();
^:
mydb.things.find();
^
com.mongodb.util.JSONParseException:
mydb.things.find();
^
at com.mongodb.util.JSONParser.parse(JSON.java:198)
at com.mongodb.util.JSONParser.parse(JSON.java:145)
at com.mongodb.util.JSON.parse(JSON.java:81)
at com.mongodb.util.JSON.parse(JSON.java:66)
at org.codinjutsu.tools.mongo.model.MongoQueryOptions.setFilter(MongoQueryOptions.java:69)
at org.codinjutsu.tools.mongo.view.QueryPanel.getQueryOptions(QueryPanel.java:173)
at org.codinjutsu.tools.mongo.view.MongoRunnerPanel.showResults(MongoRunnerPanel.java:94)
at org.codinjutsu.tools.mongo.MongoComponent$1$1.run(MongoComponent.java:120)
at com.intellij.openapi.wm.impl.ToolWindowImpl$3$1.run(ToolWindowImpl.java:138)
at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:33)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

com.mongodb.util.JSONParseException:
mydb.things.find();
^
at com.mongodb.util.JSONParser.parse(JSON.java:198)
at com.mongodb.util.JSONParser.parse(JSON.java:145)
at com.mongodb.util.JSON.parse(JSON.java:81)
at com.mongodb.util.JSON.parse(JSON.java:66)
at org.codinjutsu.tools.mongo.model.MongoQueryOptions.setFilter(MongoQueryOptions.java:69)
at org.codinjutsu.tools.mongo.view.QueryPanel.getQueryOptions(QueryPanel.java:173)
at org.codinjutsu.tools.mongo.view.MongoRunnerPanel.showResults(MongoRunnerPanel.java:94)
at org.codinjutsu.tools.mongo.MongoComponent$1$1.run(MongoComponent.java:120)
at com.intellij.openapi.wm.impl.ToolWindowImpl$3$1.run(ToolWindowImpl.java:138)
at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:33)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

error connectiong on local db

Trying to connect to localhost (it's a local replicatset), idea froze and I had to Crtl+C it

I have the following trace

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-0 12.1.4#IU-129.713, eap:false"
^C[5724231]  ERROR - tools.mongo.logic.MongoManager - Error when collecting Mongo databases 
[5724248]  ERROR - pplication.impl.LaterInvocator - org/apache/log4j/DefaultThrowableRenderer 
[5724249]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=LaterInvocator[lastRunnable=null],notifier=null,catchExceptions=false,when=1372691951603] on sun.awt.X11.XToolkit@1e1c1eb 
[5724249]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=LaterInvocator[lastRunnable=null],notifier=null,catchExceptions=false,when=1372691951603] on sun.awt.X11.XToolkit@1e1c1eb 
[5724249]  ERROR - llij.ide.plugins.PluginManager - org/apache/log4j/DefaultThrowableRenderer 
[5724249]  ERROR - llij.ide.plugins.PluginManager - org/apache/log4j/DefaultThrowableRenderer 
[5747765]   WARN - api.vfs.impl.local.FileWatcher - Watcher terminated. 

I use intellij 12.1 and my plugin is uip to date

Error marker in popup points to incorrect position

When query JSON contains error, red popup is shown with invalid line and line with "^" marker below. However, since proportional font is used, marker doesn't point to position when error is detected.

Table view

Thanks for this terrific and very useful plugin. A view table like MongoVUE make the plugin more useful.

show all databases

the plugin is mono-base : it would be nice if it discovers all present bases

Explorer does not update after change

The Explorer-view does not update when modifying an existing serverconnection (for instance change the label), adding a new connection if there is at least one existing connection, or deleting an existing connection. The updates are shown after PyCharm is restarted.

Tested on PyCharm 2.6, PyCharm 2.7.1, Mongo Explorer 0.3.0

font color in tool windows on Darcula theme / Webstorm has bad contrast

I'm using Webstorm 5.0 / Darcula theme and the Mongo Runner tool window looks like that:
mongorunner_background

I've seen the Readme.md's screenshots that there's a setting for font-colors that makes everything nice but I can't figure out how to configure that. Can someone point me to the right color setting keys to change the font colors?

documentation is unclear regarding connecting to authenticated servers

When I try to connect to an authenticated (remote) server I get the following error

Error when accessing Mongo server: command failed [$eval]: { "serverUsed" : "servername/server_ip:27017" , "ok" : 0.0 , "errmsg" : "unauthorized"}

(I've edited the "servername/server_ip" section in the message above)

and in Mongo Explorer the server shows up in red with an "unable to connect" tool-tip

I have created a user with the highest possible privileges i.e.
readWriteAnyDatabase, userAdminAnyDatabase, dbAdminAnyDatabase and clusterAdmin
and it still wont connect. This isn't a problem when I run the server with no authentication so its not a connectivity problem.

The documentation suggests I can connect to a specific database using a username & password with privileges on that database, but I can't get it to work.

CollectionUtils not Found / NoClassDefFoundError

This occurs when entering and leaving inputfield in the configuration window (this ist in Idea12 on a mac).
Errormessage and Stacktrace follows.

Errormessage

Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.options.newEditor.OptionsEditor$9@3b5eaf92,notifier=null,catchExceptions=false,when=1354842771185] on apple.awt.CToolkit@1804e4: org/apache/commons/collections/CollectionUtils

Stacktrace

Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.options.newEditor.OptionsEditor$9@3b5eaf92,notifier=null,catchExceptions=false,when=1354842771185] on apple.awt.CToolkit@1804e4: org/apache/commons/collections/CollectionUtils
java.lang.NoClassDefFoundError: org/apache/commons/collections/CollectionUtils
at org.codinjutsu.tools.mongo.view.ConfigurationPanel.isModified(ConfigurationPanel.java:90)
at org.codinjutsu.tools.mongo.MongoComponent.isModified(MongoComponent.java:145)
at com.intellij.openapi.options.newEditor.OptionsEditor.i(OptionsEditor.java:560)
at com.intellij.openapi.options.newEditor.OptionsEditor.g(OptionsEditor.java:549)
at com.intellij.openapi.options.newEditor.OptionsEditor.e(OptionsEditor.java:504)
at com.intellij.openapi.options.newEditor.OptionsEditor.d(OptionsEditor.java:496)
at com.intellij.openapi.options.newEditor.OptionsEditor.access$2300(OptionsEditor.java:68)
at com.intellij.openapi.options.newEditor.OptionsEditor$7.runEdt(OptionsEditor.java:367)
at com.intellij.openapi.util.EdtRunnable$1.run(EdtRunnable.java:28)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:1912)
at com.intellij.openapi.util.EdtRunnable.run(EdtRunnable.java:25)
at com.intellij.openapi.util.ExecutionCallback.setExecuted(ExecutionCallback.java:54)
at com.intellij.openapi.util.ActionCallback.setDone(ActionCallback.java:62)
at com.intellij.openapi.util.ActionCallback$1.run(ActionCallback.java:172)
at com.intellij.openapi.util.ExecutionCallback.setExecuted(ExecutionCallback.java:54)
at com.intellij.openapi.util.ActionCallback.setDone(ActionCallback.java:62)
at com.intellij.openapi.options.newEditor.OptionsEditor$9.run(OptionsEditor.java:459)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:663)
at java.awt.EventQueue$2.run(EventQueue.java:661)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
at java.awt.Dialog$1.run(Dialog.java:1044)
at java.awt.Dialog$3.run(Dialog.java:1096)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1094)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.a(DialogWrapperPeerImpl.java:727)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:723)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:425)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1438)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1414)
at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:64)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:51)
at com.intellij.ide.MacOSApplicationProvider$Worker$1.handlePreferences(MacOSApplicationProvider.java:101)
at com.apple.eawt._AppEventLegacyHandler$2.dispatchEvent(_AppEventLegacyHandler.java:90)
at com.apple.eawt._AppEventLegacyHandler.sendEventToEachListenerUntilHandled(_AppEventLegacyHandler.java:168)
at com.apple.eawt._AppEventLegacyHandler.handlePreferences(_AppEventLegacyHandler.java:88)
at com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(_AppEventHandler.java:253)
at com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(_AppEventHandler.java:244)
at com.apple.eawt._AppEventHandler$_AppEventDispatcher$1.run(_AppEventHandler.java:489)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:663)
at java.awt.EventQueue$2.run(EventQueue.java:661)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

NullPointerException: update failed for ActionGroup

version : today's
(I can't copy stack on idea)

pseudo stack :

MongoRunnerPannel.java:135
CopyResultAction.java:48
ActionUtis.java:98

Java :

$ java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) Server VM (build 23.0-b21, mixed mode)

Idea :

Idea version : 11.1.4 full

Allows modification in the tree results

-- From Danny Bloemendaal

When the query returns raw documents of a collection (such as db.collection.find()), it could be convenient to allow value modification in the tree result.

no mongo server available

plugin 0.1.2
idea 12

preferences => Mongo plugin =>
server : localhost
port : 27017

=> Test Connection OK

Mongo server explorer => No mongo server available

Add a Mongo Server + specify database

Hello,

Nice interface for adding/managing server connections.

I notice that the plugin does not work when on a server you can view only one specific database.

From console I connect with
mongo localhost:27017/restricteddatabase -u user -p mypassword

I tried specifying --nodb in arguments list but still get Invalid credentials.(the credentials are good but do not have full access).

Plugin fails without mongodb

Dec 10, 2012 12:51:09 PM com.mongodb.DBTCPConnector initDirectConnection
WARNING: Exception executing isMaster command on localhost/127.0.0.1:27017
java.io.IOException: couldn't connect to [localhost/127.0.0.1:27017] bc:java.net.ConnectException: Connection refused
at com.mongodb.DBPort._open(DBPort.java:214)
at com.mongodb.DBPort.go(DBPort.java:107)
at com.mongodb.DBPort.go(DBPort.java:88)
at com.mongodb.DBPort.findOne(DBPort.java:143)
at com.mongodb.DBPort.runCommand(DBPort.java:148)
at com.mongodb.DBTCPConnector.initDirectConnection(DBTCPConnector.java:539)
at com.mongodb.DBTCPConnector.checkMaster(DBTCPConnector.java:518)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:266)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:289)
at com.mongodb.DB.command(DB.java:259)
at com.mongodb.DB.command(DB.java:241)
at com.mongodb.DB.command(DB.java:282)
at com.mongodb.Mongo.getDatabaseNames(Mongo.java:373)
at org.codinjutsu.tools.mongo.logic.MongoManager.connect(MongoManager.java:34)
at org.codinjutsu.tools.mongo.MongoComponent.projectOpened(MongoComponent.java:106)
at com.intellij.openapi.project.impl.ProjectImpl.projectOpened(ProjectImpl.java:400)
at com.intellij.openapi.project.impl.ProjectImpl.access$200(ProjectImpl.java:74)
at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:435)
at com.intellij.openapi.project.impl.ProjectManagerImpl$2.projectOpened(ProjectManagerImpl.java:153)
at com.intellij.openapi.project.impl.ProjectManagerImpl.fireProjectOpened(ProjectManagerImpl.java:1077)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:418)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:484)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:175)
at com.intellij.ide.RecentProjectsManager.doOpenProject(RecentProjectsManager.java:44)
at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:322)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:110)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:220)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:212)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:202)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:42)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:128)
at $Proxy42.appStarting(Unknown Source)
at com.intellij.idea.IdeaApplication.loadProject(IdeaApplication.java:330)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:56)
at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:298)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Dec 10, 2012 12:51:09 PM com.mongodb.DBPortPool gotError
WARNING: emptying DBPortPool to localhost/127.0.0.1:27017 b/c of error
java.io.IOException: couldn't connect to [localhost/127.0.0.1:27017] bc:java.net.ConnectException: Connection refused
at com.mongodb.DBPort._open(DBPort.java:214)
at com.mongodb.DBPort.go(DBPort.java:107)
at com.mongodb.DBPort.call(DBPort.java:74)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:275)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:289)
at com.mongodb.DB.command(DB.java:259)
at com.mongodb.DB.command(DB.java:241)
at com.mongodb.DB.command(DB.java:282)
at com.mongodb.Mongo.getDatabaseNames(Mongo.java:373)
at org.codinjutsu.tools.mongo.logic.MongoManager.connect(MongoManager.java:34)
at org.codinjutsu.tools.mongo.MongoComponent.projectOpened(MongoComponent.java:106)
at com.intellij.openapi.project.impl.ProjectImpl.projectOpened(ProjectImpl.java:400)
at com.intellij.openapi.project.impl.ProjectImpl.access$200(ProjectImpl.java:74)
at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:435)
at com.intellij.openapi.project.impl.ProjectManagerImpl$2.projectOpened(ProjectManagerImpl.java:153)
at com.intellij.openapi.project.impl.ProjectManagerImpl.fireProjectOpened(ProjectManagerImpl.java:1077)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:418)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:484)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:175)
at com.intellij.ide.RecentProjectsManager.doOpenProject(RecentProjectsManager.java:44)
at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:322)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:110)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:220)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:212)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:202)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:42)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:128)
at $Proxy42.appStarting(Unknown Source)
at com.intellij.idea.IdeaApplication.loadProject(IdeaApplication.java:330)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:56)
at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:298)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[ 8698] ERROR - ellij.project.impl.ProjectImpl - can't call something : localhost/127.0.0.1:27017/admin
com.mongodb.MongoException$Network: can't call something : localhost/127.0.0.1:27017/admin
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:284)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:289)
at com.mongodb.DB.command(DB.java:259)
at com.mongodb.DB.command(DB.java:241)
at com.mongodb.DB.command(DB.java:282)
at com.mongodb.Mongo.getDatabaseNames(Mongo.java:373)
at org.codinjutsu.tools.mongo.logic.MongoManager.connect(MongoManager.java:34)
at org.codinjutsu.tools.mongo.MongoComponent.projectOpened(MongoComponent.java:106)
at com.intellij.openapi.project.impl.ProjectImpl.projectOpened(ProjectImpl.java:400)
at com.intellij.openapi.project.impl.ProjectImpl.access$200(ProjectImpl.java:74)
at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:435)
at com.intellij.openapi.project.impl.ProjectManagerImpl$2.projectOpened(ProjectManagerImpl.java:153)
at com.intellij.openapi.project.impl.ProjectManagerImpl.fireProjectOpened(ProjectManagerImpl.java:1077)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:418)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:484)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:175)
at com.intellij.ide.RecentProjectsManager.doOpenProject(RecentProjectsManager.java:44)
at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:322)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:110)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:220)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:212)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:202)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:42)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:128)
at $Proxy42.appStarting(Unknown Source)
at com.intellij.idea.IdeaApplication.loadProject(IdeaApplication.java:330)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:56)
at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:298)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.io.IOException: couldn't connect to [localhost/127.0.0.1:27017] bc:java.net.ConnectException: Connection refused
at com.mongodb.DBPort._open(DBPort.java:214)
at com.mongodb.DBPort.go(DBPort.java:107)
at com.mongodb.DBPort.call(DBPort.java:74)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:275)
... 50 more
[ 8700] ERROR - ellij.project.impl.ProjectImpl - IntelliJ IDEA 11.1.4 Build #IC-117.963
[ 8700] ERROR - ellij.project.impl.ProjectImpl - JDK: 1.6.0_26
[ 8700] ERROR - ellij.project.impl.ProjectImpl - VM: Java HotSpot(TM) 64-Bit Server VM
[ 8700] ERROR - ellij.project.impl.ProjectImpl - Vendor: Sun Microsystems Inc.
[ 8700] ERROR - ellij.project.impl.ProjectImpl - OS: Linux
[ 8700] ERROR - ellij.project.impl.ProjectImpl - Last Action:
[ 8700] ERROR - ellij.project.impl.ProjectImpl - Original exception:
java.io.IOException: couldn't connect to [localhost/127.0.0.1:27017] bc:java.net.ConnectException: Connection refused
at com.mongodb.DBPort._open(DBPort.java:214)
at com.mongodb.DBPort.go(DBPort.java:107)
at com.mongodb.DBPort.call(DBPort.java:74)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:275)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:289)
at com.mongodb.DB.command(DB.java:259)
at com.mongodb.DB.command(DB.java:241)
at com.mongodb.DB.command(DB.java:282)
at com.mongodb.Mongo.getDatabaseNames(Mongo.java:373)
at org.codinjutsu.tools.mongo.logic.MongoManager.connect(MongoManager.java:34)
at org.codinjutsu.tools.mongo.MongoComponent.projectOpened(MongoComponent.java:106)
at com.intellij.openapi.project.impl.ProjectImpl.projectOpened(ProjectImpl.java:400)
at com.intellij.openapi.project.impl.ProjectImpl.access$200(ProjectImpl.java:74)
at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:435)
at com.intellij.openapi.project.impl.ProjectManagerImpl$2.projectOpened(ProjectManagerImpl.java:153)
at com.intellij.openapi.project.impl.ProjectManagerImpl.fireProjectOpened(ProjectManagerImpl.java:1077)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:418)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:484)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:175)
at com.intellij.ide.RecentProjectsManager.doOpenProject(RecentProjectsManager.java:44)
at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:322)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:110)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:220)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:212)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:202)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:42)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:128)
at $Proxy42.appStarting(Unknown Source)
at com.intellij.idea.IdeaApplication.loadProject(IdeaApplication.java:330)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:56)
at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:298)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Provide expand/collapse actions

I have a lot of databases in my server. As such it would be very helpful for to have collapse/expand actors for the nodes. Or at least have the default be to shows the databases within a server in collapsed view.

Query by ObjectId()

I don't seem to be able to perform a query by object id , such as :

{my_id: ObjectId('50d1e99f128ca529e40000a4')}

NullPointerException

NullPointerException when using "view collection content" on a db node

null
java.lang.NullPointerException
    at org.codinjutsu.tools.mongo.logic.MongoManager.loadCollectionValues(MongoManager.java:78)
    at org.codinjutsu.tools.mongo.logic.MongoManager.loadCollectionValues(MongoManager.java:74)
    at org.codinjutsu.tools.mongo.view.MongoRunnerPanel.showResults(MongoRunnerPanel.java:93)
    at org.codinjutsu.tools.mongo.MongoComponent$1$1.run(MongoComponent.java:118)
    at com.intellij.openapi.wm.impl.ToolWindowImpl$3$1.run(ToolWindowImpl.java:138)
    at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:33)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
    at java.awt.EventQueue.access$000(EventQueue.java:102)
    at java.awt.EventQueue$3.run(EventQueue.java:662)
    at java.awt.EventQueue$3.run(EventQueue.java:660)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

NullPointerException when database name is specified

When I specify database name in server configuration, MongoExplorer is not able to load anything. "NullPointerException: Error when collectiong Mongo databases" is thrown when I click to Refresh Server button.
WebStorm version: WS-129.221

Everything is ok when I not specify database name.

Good job anyway! ๐Ÿ‘

No way to connect to server if Autoconnect is disabled

Thanks for this cool plugin! On my system there is no way to connect to a server in the Explorer-view if Autoconnect is disabled. The Shell is working fine.

Steps to reproduce:

  1. install plugin, restart PyCharm
  2. open Mongo Explorer, klik wrench-icon to create a new server
  3. set path to mongo executable (/usr/bin/mongo)
  4. create a new server (url: localhost, port 27017, user: -, pass: -)> Leave 'Connect on IDE startup' unchecked. Click OK.
  5. Click OK.
  6. In Mongo Explorer, the new server is now connected and you can browse it.
  7. Close PyCharm
  8. Start PyCharm, open Mongo Explorer
  9. The server you created is not connected or browsable, and there is no way to connect it (tried doubleclicking, richt clicking, fiddling with the shell).

The connection to the server is working correctly though, since the Shell works perfectly.

authentication at external mongo server fails

Can you confirm that logging into an external mongo server with authentication is working?
I keep getting "errmsg":"need to login" on the listDatabases command while using a admin user with full rights.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.