[JAVA-208] NullPointerException in DBApiLayer.requestDone Created: 04/Nov/10  Updated: 04/Dec/13  Resolved: 22/Feb/11

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 2.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Sydney Redelinghuys Assignee: Antoine Girbal
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongod 1.6.1 (64 bit) Linux


Attachments: Text File Java208.java     Text File Java208_2.java    

 Description   

Under load we get the following NullPointerException

java.lang.NullPointerException
at com.mongodb.DBTCPConnector$MyPort.requestDone(DBTCPConnector.java:334)
at com.mongodb.DBTCPConnector.requestDone(DBTCPConnector.java:106)
at com.mongodb.DBApiLayer.requestDone(DBApiLayer.java:71)

This seems not to be an issue with 2.2 or 2.1

Thank



 Comments   
Comment by Martin Grotzke [ 01/Mar/11 ]

Ok, great!

Will this one (JAVA-208) be part of 2.5?

Comment by Scott Hernandez (Inactive) [ 01/Mar/11 ]

The 2.5 release is just waiting on updating the release notes and doing the final push. It should happen today.

Comment by Martin Grotzke [ 01/Mar/11 ]

Will this fix be part of 2.5? It has not set 2.5 as fix version. Also 2.5 is still open, is there s.th. blocking the release?

Comment by Martin Grotzke [ 22/Feb/11 ]

Intended release in 2 days sounds rather cool!
Thanx for this info, Eliot!

Comment by Eliot Horowitz (Inactive) [ 22/Feb/11 ]

@martin no, just master for github.

You can see the intended release date for 2.5 here: http://jira.mongodb.org/browse/JAVA/fixforversion/10215

Comment by Martin Grotzke [ 22/Feb/11 ]

Are maven SNAPSHOT releases available somewhere btw? Is there a release ETA of 2.5?

Comment by Sydney Redelinghuys [ 22/Feb/11 ]

Just tried b1a588d and it passes all our tests. Thanks

Comment by Martin Grotzke [ 21/Feb/11 ]

I think we ran into the same issue, with Driver 2.4:

java.lang.NullPointerException
at com.mongodb.DBTCPConnector$MyPort.requestDone(DBTCPConnector.java:336)
at com.mongodb.DBTCPConnector.requestDone(DBTCPConnector.java:106)
at com.mongodb.DBApiLayer.requestDone(DBApiLayer.java:75)
at com.freiheit.shopping24.adm.util.mongodb.MongoDBConstistencyAdvice.performConsistently(MongoDBConstistencyAdvice.java:49)

Just tested against the current master (commit b1a588dbc, 2.5-pre), with this it works for us.

Comment by Antoine Girbal [ 17/Feb/11 ]

could you try again to reproduce with the head from git?
we've done some clean up in driver.
thx

Comment by Eliot Horowitz (Inactive) [ 22/Nov/10 ]

We've tried a variety of systems, etc... and can't reproduce.
If you can send us more info or a different script...
Also, can you try master of the java driver just in case.

Comment by Eliot Horowitz (Inactive) [ 21/Nov/10 ]

Robert - can you try on windows?
I can't reproduce on mac or linux.

Comment by Sydney Redelinghuys [ 16/Nov/10 ]

The attached class reproduces the bug for me in Windows XP 32 bit.

Comment by Eliot Horowitz (Inactive) [ 13/Nov/10 ]

Has this happened again?
Can't reproduce

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