[JAVA-274] NullPointerException due to race condition during concurrent access to DBTCPTransport Created: 16/Feb/11  Updated: 18/Nov/18  Resolved: 23/Feb/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 2.4, 2.5
Fix Version/s: 2.6

Type: Bug Priority: Critical - P2
Reporter: David Dawson Assignee: Antoine Girbal
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.



 Comments   
Comment by Antoine Girbal [ 23/Feb/11 ]

assuming this fixed from refactoring

Comment by Antoine Girbal [ 17/Feb/11 ]

could you try again with driver from trunk?
thx

Generated at Thu Feb 08 08:51:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.