-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.4
-
Component/s: None
-
Labels:None
-
Environment:linux ubuntu
I'm using morphia for object mappings.
I have no problem inserting objects to database or pulling them via
the shell.
When using the java driver both 1.4 and 2.0rc
For some objects i get the following exception:
Exception in thread "main" com.mongodb.MongoInternalException:
couldn't get next element
at com.mongodb.DBCursor.hasNext(DBCursor.java:402)
at
knil.attributeGraphIndexer.postAnalytics.MongoTest.run2(MongoTest.java:
90)
at
knil.attributeGraphIndexer.postAnalytics.MongoTest.main(MongoTest.java:
100)
Caused by: com.mongodb.MongoException: invalid bson? size:134217743
remaining: 8077
at com.mongodb.ByteDecoder.decodeNext(ByteDecoder.java:191)
at com.mongodb.ByteDecoder.decodeNext(ByteDecoder.java:254)
at com.mongodb.ByteDecoder.decodeNext(ByteDecoder.java:235)
at com.mongodb.ByteDecoder.readObject(ByteDecoder.java:104)
at com.mongodb.DBApiLayer$SingleResult.<init>(DBApiLayer.java:407)
at com.mongodb.DBApiLayer$MyCollection.find(DBApiLayer.java:299)
at com.mongodb.DBCursor._check(DBCursor.java:253)
at com.mongodb.DBCursor._hasNext(DBCursor.java:374)
at com.mongodb.DBCursor.hasNext(DBCursor.java:399)
... 2 more
attached is a db with the object
any ideas what is wrong?