java.lang.NullPointerException
at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:276)
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:151)
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:141)
at com.mongodb.DBApiLayer$MyCollection.update(DBApiLayer.java:299)
at com.mongodb.DBCollection.update(DBCollection.java:125)
at com.mongodb.DBCollection.save(DBCollection.java:545)
at com.mongodb.DBCollection.save(DBCollection.java:517)
I am getting the NPE at the same line when my code calls 'find' as
well. I am on version 2.4 of the Java driver and Mongo 1.6.5. Anyone
ever seen this before or have any insight for what might be causing
it?
Thanks!
Chris
Thanks
Chris
On Tue, Feb 22, 2011 at 5:37 PM, Bernie Hackett <ber...@10gen.com> wrote:
> We've seen these issues internally as well. There are fixes coming in
> the next java driver release (later this week hopefully) that should
> address this issue.
> --
> 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.
>
>
On Tue, Feb 22, 2011 at 6:07 PM, Bernie Hackett <ber...@10gen.com> wrote:
> I'm assuming that you are reading from and writing to a replica set?
> In that case you may be able to work around the find() issue by using
> slaveOk to do reads from a secondary. The only workaround for save()
> is to catch the NPE and retry the writes.