{"action":"created","issue":{"url":"https://api.github.com/repos/dboissier/mongo4idea/issues/173","repository_url":"https://api.github.com/repos/dboissier/mongo4idea","labels_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/173/comments","events_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/173/events","html_url":"https://github.com/dboissier/mongo4idea/issues/173","id":190682045,"number":173,"title":"CodecConfigurationException on query collection with DBRef","user":{"login":"RomanIsko","id":4456572,"avatar_url":"https://avatars.githubusercontent.com/u/4456572?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanIsko","html_url":"https://github.com/RomanIsko","followers_url":"https://api.github.com/users/RomanIsko/followers","following_url":"https://api.github.com/users/RomanIsko/following{/other_user}","gists_url":"https://api.github.com/users/RomanIsko/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanIsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanIsko/subscriptions","organizations_url":"https://api.github.com/users/RomanIsko/orgs","repos_url":"https://api.github.com/users/RomanIsko/repos","events_url":"https://api.github.com/users/RomanIsko/events{/privacy}","received_events_url":"https://api.github.com/users/RomanIsko/received_events","type":"User","site_admin":false},"labels":[{"id":16910870,"url":"https://api.github.com/repos/dboissier/mongo4idea/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-11-21T10:54:41Z","updated_at":"2016-11-26T13:26:25Z","closed_at":null,"body":"Environment:\r\nUbuntu 16.04\r\nIDEA 2016.2.5\r\nJava 1.8.0_111\r\n\r\nSteps:\r\n- prepare DB with this query\r\n```\r\ndb.example.insert({\r\n  \"_id\" : ObjectId(\"5126bbf64aed4daf9e2ab771\"),\r\n  \"creator\" : {\r\n                  \"$ref\" : \"creators\",\r\n                  \"$id\" : ObjectId(\"5126bc054aed4daf9e2ab772\"),\r\n                  \"$db\" : \"users\"\r\n               }\r\n})\r\n```\r\n- open IDEA\r\n- Invoke 'View collection content' from context menu\r\n- check Event log\r\n\r\nActual: Data isn't shown for user because there is CodecConfigurationException in Event log\r\n```\r\nCan't find a codec for class com.mongodb.DBRef.\r\norg.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class com.mongodb.DBRef.\r\n\tat org.bson.codecs.configuration.CodecCache.getOrThrow(CodecCache.java:46)\r\n\tat org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:63)\r\n\tat org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:37)\r\n\tat org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:174)\r\n\tat org.bson.codecs.DocumentCodec.writeMap(DocumentCodec.java:189)\r\n\tat org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:131)\r\n\tat org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:45)\r\n\tat org.bson.Document.toJson(Document.java:294)\r\n\tat org.bson.Document.toJson(Document.java:268)\r\n\tat org.bson.Document.toJson(Document.java:255)\r\n\tat org.codinjutsu.tools.mongo.view.nodedescriptor.MongoValueDescriptor$MongoDocumentValueDescriptor.toString(MongoValueDescriptor.java:175)\r\n\tat javax.swing.tree.DefaultMutableTreeNode.toString(DefaultMutableTreeNode.java:1244)\r\n\tat javax.swing.JTree.convertValueToText(JTree.java:1596)\r\n\tat javax.swing.tree.DefaultTreeCellRenderer.getTreeCellRendererComponent(DefaultTreeCellRenderer.java:428)\r\n\tat com.intellij.ui.treeStructure.treetable.TreeTableTree$1.getTreeCellRendererComponent(TreeTableTree.java:122)\r\n\tat javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2807)\r\n\tat javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:492)\r\n\tat javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1360)\r\n\tat javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1496)\r\n\tat javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1288)\r\n\tat javax.swing.tree.VariableHeightLayoutCache.rebuild(VariableHeightLayoutCache.java:743)\r\n\tat javax.swing.tree.VariableHeightLayoutCache.setModel(VariableHeightLayoutCache.java:109)\r\n\tat javax.swing.plaf.basic.BasicTreeUI.setModel(BasicTreeUI.java:412)\r\n\tat javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(BasicTreeUI.java:3414)\r\n\tat java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)\r\n\tat java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)\r\n\tat java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)\r\n\tat java.awt.Component.firePropertyChange(Component.java:8428)\r\n\tat javax.swing.JTree.setModel(JTree.java:882)\r\n\tat javax.swing.JTree.<init>(JTree.java:670)\r\n\tat com.intellij.ui.treeStructure.Tree.<init>(Tree.java:68)\r\n\tat com.intellij.ui.treeStructure.treetable.TreeTableTree.<init>(TreeTableTree.java:43)\r\n\tat com.intellij.ui.treeStructure.treetable.TreeTable.setModel(TreeTable.java:65)\r\n\tat com.intellij.ui.treeStructure.treetable.TreeTable.<init>(TreeTable.java:57)\r\n\tat org.codinjutsu.tools.mongo.view.JsonTreeTableView.<init>(JsonTreeTableView.java:77)\r\n\tat org.codinjutsu.tools.mongo.view.MongoResultPanel.updateResultTreeTable(MongoResultPanel.java:119)\r\n\tat org.codinjutsu.tools.mongo.view.MongoResultPanel.updateResultView(MongoResultPanel.java:112)\r\n\tat org.codinjutsu.tools.mongo.view.MongoPanel$4$2.run(MongoPanel.java:222)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)\r\n\tat com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:326)\r\n\tat com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:726)\r\n\tat com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:795)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:631)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:387)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n```\r\n\r\nExpected: Content is shown for user without exception."},"comment":{"url":"https://api.github.com/repos/dboissier/mongo4idea/issues/comments/263063407","html_url":"https://github.com/dboissier/mongo4idea/issues/173#issuecomment-263063407","issue_url":"https://api.github.com/repos/dboissier/mongo4idea/issues/173","id":263063407,"user":{"login":"RomanIsko","id":4456572,"avatar_url":"https://avatars.githubusercontent.com/u/4456572?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanIsko","html_url":"https://github.com/RomanIsko","followers_url":"https://api.github.com/users/RomanIsko/followers","following_url":"https://api.github.com/users/RomanIsko/following{/other_user}","gists_url":"https://api.github.com/users/RomanIsko/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanIsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanIsko/subscriptions","organizations_url":"https://api.github.com/users/RomanIsko/orgs","repos_url":"https://api.github.com/users/RomanIsko/repos","events_url":"https://api.github.com/users/RomanIsko/events{/privacy}","received_events_url":"https://api.github.com/users/RomanIsko/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T13:26:25Z","updated_at":"2016-11-26T13:26:25Z","body":"Thanks for the update. Now I don't have any exception. Reference is shown.\r\n\r\nBTW, we use Spring Data MongoDB in our project."}}
{"actor":{"display_login":"RomanIsko"}}