java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Java Driver with replica sets
    via by Roland Kargl,
  • Error on startup from using Java API
    via by Leif Mortenson,
  • [mongodb-user] Java Driver with replica sets
    via by Roland Kargl,
  • When reloading the same or a new version of an ejb using the mongo driver 2.8.0, NullPointerException occurs continuously in Glassfish logs as the precedent thread was not stopped and tries too use a closed connection. We need to restart Glassfish server each time we want to redeploy our code, which is not possible. This didn't happen with the 2.7.3 version of the driver. [#|2012-06-05T15:18:39.418+0200|WARNING|glassfish3.1.1|com.mongodb.ReplicaSetStatus.wolverine|_ThreadID=24;_ThreadName=Thread-3;|Server seen down: localhost/127.0.0.1:27018 java.lang.NullPointerException at com.mongodb.OutMessage.query(OutMessage.java:38) at com.mongodb.OutMessage.query(OutMessage.java:34) at com.mongodb.DBPort.findOne(DBPort.java:144) at com.mongodb.DBPort.runCommand(DBPort.java:156) at com.mongodb.ReplicaSetStatus$UpdatableNode.update(ReplicaSetStatus.java:507) at com.mongodb.ReplicaSetStatus$Updater.updateAll(ReplicaSetStatus.java:708) at com.mongodb.ReplicaSetStatus$Updater.run(ReplicaSetStatus.java:674) |#] [#|2012-06-05T15:18:39.494+0200|WARNING|glassfish3.1.1|com.mongodb.ReplicaSetStatus.wolverine|_ThreadID=24;_ThreadName=Thread-3;|Server seen down: localhost/127.0.0.1:27017 java.lang.NullPointerException at com.mongodb.OutMessage.query(OutMessage.java:38) at com.mongodb.OutMessage.query(OutMessage.java:34) at com.mongodb.DBPort.findOne(DBPort.java:144) at com.mongodb.DBPort.runCommand(DBPort.java:156) at com.mongodb.ReplicaSetStatus$UpdatableNode.update(ReplicaSetStatus.java:507) at com.mongodb.ReplicaSetStatus$Updater.updateAll(ReplicaSetStatus.java:708) at com.mongodb.ReplicaSetStatus$Updater.run(ReplicaSetStatus.java:674) |#]
    via by Emmanuel VINET,
    • java.lang.NullPointerException: null at com.mongodb.DBTCPConnector.checkMaster(DBTCPConnector.java:438)[mongo.jar:na] at com.mongodb.ReplicaSetStatus$Updater.run(ReplicaSetStatus.java:421)[mongo.jar:na]
    No Bugmate found.