dboissier / mongo4idea Goto Github PK
View Code? Open in Web Editor NEWMongoDB integration in Intellij
License: Apache License 2.0
MongoDB integration in Intellij
License: Apache License 2.0
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.
"Jenkins settings" --> "Mongo pluggin settings"
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)
Note : Suggestion from Stefan Pasat
Add a "Filter" button in the filter panel.
I don't want to restart idea when I change my settings
There is no icon in trees and buttons
When closing the project, a huge stacktrace is displayed which says that the (Query) editor has not been released yet.
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
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.
Aggregate pipeline is rich and generic. It may be a good and easy way to express queries
Could we, by right-clicking on a table, perform actions such as renaming, deleting, cleaning ... ?
on Idea 12, the key value columns of mongo runner UI window do not resize. Nested keys are not accessible.
Thanks for this terrific and very useful plugin. A view table like MongoVUE make the plugin more useful.
the plugin is mono-base : it would be nice if it discovers all present bases
Great Plugin!
It would be great if the working directory for the mongo shell could be set. This would enable to use relative paths in scripts...(e.g. load(./xxx.js))
Is it possible to sort collections alphanumerically?
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
Add an $unwind project to your query in the plugin builder and the editor is expecting a valid json.
IE: {"$categories":1}
But the projection itself makes up part of the json.
IE: {$unwind:"$categories"}
So setting up an $unwind projection in the tool isn't possible.
I'm using Webstorm 5.0 / Darcula theme and the Mongo Runner tool window looks like that:
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?
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.
This occurs when entering and leaving inputfield in the configuration window (this ist in Idea12 on a mac).
Errormessage and Stacktrace follows.
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
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)
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
beware with collections named :
fs.files
fs.chunks
-- 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.
From Alexandre russel :
would be nice if there was a way to tell him to not throw an error when not finding a server. I use mongo only in some project and start the server only when working in those project.
plugin 0.1.2
idea 12
preferences => Mongo plugin =>
server : localhost
port : 27017
=> Test Connection OK
Mongo server explorer => No mongo server available
This CTRL-F5 i find is a little annoying , maybe a ctrl-enter would be better ?
I am using IntelliJ 12.1.1 under Windows 8 64 bit
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).
Seems you need to restart idea to see newly created databases.
Every time I click on the "play" button a new connection is opened
I'm sure that this is on your enhancement list, but just in case of it is not ...
Thanks for this plugin!
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)
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.
I don't seem to be able to perform a query by object id , such as :
{my_id: ObjectId('50d1e99f128ca529e40000a4')}
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)
In the mongo shell, I can do this:
db.collection.find({'name':/xyz/})
But this doesn't work in the plugin.
Thanks in advance.
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! ๐
Maybe no one else has had the need but I'd like to be able to copy parts of a document rather than the whole thing.
Thanks!
I would love beeing able to connect simultaneously to multiple servers (e.g. dev, integration, etc.)
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:
The connection to the server is working correctly though, since the Shell works perfectly.
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.
Add "copy value" action reachable from context menu in results
It will remove huge stacktrace printed by IntelliJ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.