java.lang.NullPointerException

JIRA | Emmanuel VINET | 5 years ago
  1. 0

    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) |#]

    JIRA | 5 years ago | Emmanuel VINET
    java.lang.NullPointerException
  2. 0

    Java Driver with replica sets

    Google Groups | 5 years ago | Roland Kargl
    java.lang.NullPointerException
  3. 0

    Error on startup from using Java API

    Google Groups | 6 years ago | Leif Mortenson
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NullPointerExceptions after last night's deployment

    Google Groups | 6 years ago | bradford
    java.lang.NullPointerException
  6. 0

    [mongodb-user] Java Driver with replica sets

    Google Groups | 5 years ago | Roland Kargl
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.mongodb.OutMessage.query()
    2. MongoDB Java Driver
      ReplicaSetStatus$Updater.run
      1. com.mongodb.OutMessage.query(OutMessage.java:38)
      2. com.mongodb.OutMessage.query(OutMessage.java:34)
      3. com.mongodb.DBPort.findOne(DBPort.java:144)
      4. com.mongodb.DBPort.runCommand(DBPort.java:156)
      5. com.mongodb.ReplicaSetStatus$UpdatableNode.update(ReplicaSetStatus.java:507)
      6. com.mongodb.ReplicaSetStatus$Updater.updateAll(ReplicaSetStatus.java:708)
      7. com.mongodb.ReplicaSetStatus$Updater.run(ReplicaSetStatus.java:674)
      7 frames