Tuesday, April 23, 2013

mongo4idea 0.4.0 is out

Hi,

I am pleased to announce the release 0.4.0 of mongo4idea. Many bug fixes, misc improvements. Here below the changelog:
  • [fix] #39 Mongo connection leak
  • [fix] #33 Error marker in popup points to incorrect position
  • [fix] #32 $unwind operator does not work
  • [fix] #35 No way to connect to server if Autoconnect is disabled
  • [add] #31 Specific database can be set in the configuration
  • [add] #30 Results are rendered in a TreeTable
 
Enjoy it,
 
David

7 comments:

  1. Thank you very much David! Great plugin. Looking forward for "edit" capabilities ;)

    ReplyDelete
  2. Thank you David!.
    I am quite new to webstorm.(using webstorm 6.0.1)
    I installed the plugin and did the server setup. While I test it in "Edit Mongo Server", it works.
    How do I browse the database now?

    Also when I restart the webstorm I get following error. Exception in Plugin Mongo Plugin.
    "Error when collecting mongo databases"

    ReplyDelete
    Replies
    1. It worked after keeping the database field empty. Thank you for such a wonderful tool.

      Delete
  3. I am not sure this is the right place to post this but I do need to find a solution.
    Error when collecting Mongo databases
    java.lang.NullPointerException
    at org.codinjutsu.tools.mongo.logic.MongoManager.loadDatabaseCollections(MongoManager.java:86)
    at org.codinjutsu.tools.mongo.view.MongoExplorerPanel$2.run(MongoExplorerPanel.java:160)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:343)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:682)
    at java.awt.EventQueue$3.run(EventQueue.java:680)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
    at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:686)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:511)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:334)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    ReplyDelete
    Replies
    1. Hi,

      Sorry for the late response. The issue is known and the root cause is the code requires authentication to access your database. I will make it optional. The patch version should be available the next week.

      David

      Delete
  4. Hi, I'm trying to connecto to a MongoDB server at Mongo Labs but I got the next error when trying con config the connection in intelliJ. Do I need to make something or it's the plugin's problem?

    Error when accessing Mongo server: command failed [$eval]: { "serverUsed" : "mymongoserver.mongolab.com/AnIP:MyDBPort" , "ok" : 0.0 , "errmsg" : "unauthorized"}
    com.mongodb.CommandResult$CommandFailure: command failed [$eval]: { "serverUsed" : "mymongoserver.mongolab.com/AnIP:MyDBPort" , "ok" : 0.0 , "errmsg" : "unauthorized"}
    at com.mongodb.CommandResult.getException(CommandResult.java:88)
    at com.mongodb.CommandResult.throwOnError(CommandResult.java:134)
    at com.mongodb.DB.eval(DB.java:371)
    at org.codinjutsu.tools.mongo.logic.MongoManager.connectAndReturnServerVersion(MongoManager.java:63)
    at org.codinjutsu.tools.mongo.view.ServerConfigurationPanel$1.actionPerformed(ServerConfigurationPanel.java:85)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6382)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
    at java.awt.Component.processEvent(Component.java:6147)
    at java.awt.Container.processEvent(Container.java:2083)
    at java.awt.Component.dispatchEventImpl(Component.java:4744)
    at java.awt.Container.dispatchEventImpl(Container.java:2141)
    at java.awt.Component.dispatchEvent(Component.java:4572)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
    at java.awt.Container.dispatchEventImpl(Container.java:2127)
    at java.awt.Window.dispatchEventImpl(Window.java:2489)
    at java.awt.Component.dispatchEvent(Component.java:4572)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:669)
    at java.awt.EventQueue$2.run(EventQueue.java:667)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:683)
    at java.awt.EventQueue$3.run(EventQueue.java:681)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    (Trace trimmed due to comments restrictions)

    ReplyDelete
    Replies
    1. Hi,

      You need to specify the database and your credentials.

      I have an account at MongoLab that I use for testing that case. Normally, it works.

      Please tell me if you still fail to connect to your mongo database.

      Regards,

      David

      Delete