mogodb ver. 2.0.1: com.mongodb.MongoException: can't find a master

998 views
Skip to first unread message

buzznt

unread,
Dec 8, 2011, 5:07:10 AM12/8/11
to mongodb-user
Any idea why?

Full error:

com.mongodb.MongoException: can't find a master
at
com.mongodb.DBTCPConnector.checkMaster(DBTCPConnector.java:434)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:
209)
at com.mongodb.DBApiLayer
$MyCollection.__find(DBApiLayer.java:305)
at com.mongodb.DBCollection.findOne(DBCollection.java:
647)
at com.mongodb.DBCollection.findOne(DBCollection.java:
626)
at com.mongodb.DBCollection.findOne(DBCollection.java:
615)
at com.mongodb.Mongo.isLocked(Mongo.java:607)
at
org.mongo.jmongob.MongoPanel.updateComponentCustom(MongoPanel.java:
107)
at
org.mongo.jmongob.MongoPanel.updateComponentCustom(MongoPanel.java:23)
at
com.edgytech.swingfast.XmlComponentUnit.updateComponent(XmlComponentUnit.java:
242)
at
com.edgytech.swingfast.XmlJComponentUnit.updateComponent(XmlJComponentUnit.java:
51)
at
com.edgytech.swingfast.XmlComponentUnit.updateComponent(XmlComponentUnit.java:
260)
at
org.mongo.jmongob.Workspace.setContent(Workspace.java:33)
at
org.mongo.jmongob.JMongoBrowser.displayElement(JMongoBrowser.java:169)
at
org.mongo.jmongob.JMongoBrowser.displayNode(JMongoBrowser.java:204)
at
org.mongo.jmongob.BaseTreeNode.handleNodeSelection(BaseTreeNode.java:
75)
at com.edgytech.swingfast.Tree.valueChanged(Tree.java:
199)
at javax.swing.JTree.fireValueChanged(Unknown Source)
at javax.swing.JTree
$TreeSelectionRedirector.valueChanged(Unknown Source)
at
javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown
Source)
at
javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown
Source)
at
javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown
Source)
at
javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown
Source)
at javax.swing.JTree.setSelectionPath(Unknown Source)
at com.edgytech.swingfast.Tree.selectNode(Tree.java:
253)
at com.edgytech.swingfast.Tree.selectNode(Tree.java:
247)
at
org.mongo.jmongob.JMongoBrowser.addMongo(JMongoBrowser.java:148)
at org.mongo.jmongob.MainMenu.connect(MainMenu.java:
121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.edgytech.swingfast.ButtonBase.actionPerformed(ButtonBase.java:297)
at
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton
$Handler.actionPerformed(Unknown Source)
at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown
Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI
$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown
Source)
at javax.swing.JComponent.processMouseEvent(Unknown
Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown
Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native
Method)
at java.security.AccessControlContext
$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext
$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native
Method)
at java.security.AccessControlContext
$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown
Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Tony Hannan

unread,
Dec 8, 2011, 10:07:17 AM12/8/11
to mongod...@googlegroups.com
Looks like you are trying to connect to a replica set, but there is no master, or the hosts you supply for the replica set are wrong.


--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


Reply all
Reply to author
Forward
0 new messages