Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-274

NullPointerException due to race condition during concurrent access to DBTCPTransport

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.6
    • Affects Version/s: 2.4, 2.5
    • Component/s: None
    • None

      After testing the fix in JAVA-263, the following now occurs (using 2.5 trunk)

      java.lang.NullPointerException
      at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:302)
      at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:206)
      at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:271)
      at com.mongodb.DBCursor._check(DBCursor.java:342)
      at com.mongodb.DBCursor._hasNext(DBCursor.java:472)
      at com.mongodb.DBCursor.hasNext(DBCursor.java:497)
      .......

      This is not the same error, but it does seem to be related.

            Assignee:
            antoine Antoine Girbal
            Reporter:
            david_dawson David Dawson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: