[JAVA-547] ArrayIndexOutOfBoundsException in BasicBSONDecoder Created: 30/Mar/12  Updated: 19/Oct/16  Resolved: 12/Aug/12

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

Type: Bug Priority: Major - P3
Reporter: Ryan Nitz Assignee: Jeffrey Yemin
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Unfortunately, I do not have the BSON to recreate...

03-30-2012 13:59:05 [pool-5-thread-87] ERROR SomethingIngestionSvc [run:232] - null
java.lang.ArrayIndexOutOfBoundsException: null
at org.bson.BasicBSONDecoder$BSONInput._need(BasicBSONDecoder.java:318) ~[mongo.jar:na]
at org.bson.BasicBSONDecoder$BSONInput.read(BasicBSONDecoder.java:366) ~[mongo.jar:na]
at org.bson.BasicBSONDecoder$BSONInput.readCStr(BasicBSONDecoder.java:428) ~[mongo.jar:na]
at org.bson.BasicBSONDecoder.decodeElement(BasicBSONDecoder.java:123) ~[mongo.jar:na]
at org.bson.BasicBSONDecoder.decodeElement(BasicBSONDecoder.java:206) ~[mongo.jar:na]
at org.bson.BasicBSONDecoder.decodeElement(BasicBSONDecoder.java:206) ~[mongo.jar:na]
at org.bson.BasicBSONDecoder._decode(BasicBSONDecoder.java:79) ~[mongo.jar:na]
at org.bson.BasicBSONDecoder.decode(BasicBSONDecoder.java:57) ~[mongo.jar:na]
at org.bson.BasicBSONDecoder.readObject(BasicBSONDecoder.java:42) ~[mongo.jar:na]
at org.bson.BasicBSONDecoder.readObject(BasicBSONDecoder.java:32) ~[mongo.jar:na]
at org.bson.BSON.decode(BSON.java:308) ~[mongo.jar:na]
at SomethingIngestionSvc.processMsg(SomethingIngestionSvc.java:66) ~[classes/:na]
at SomethingIngestionSvc$SomethingProcessor.run(SomethingIngestionSvc.java:229) ~[classes/:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [na:1.6.0_30]



 Comments   
Comment by Ryan Nitz [ 12/Aug/12 ]

This was likely corrupt bson (i.e., outside the realm of the driver).

Comment by Jeffrey Yemin [ 12/Aug/12 ]

Let me know if you see this again. Not even sure what version of the driver you were using.

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