mongodb导数据是的错误:[conn56] AssertionException handling request, closing client connection: 10334 Invalid BSONObj size: -1431247360 (0x00E6B0AA) first ele

在处理mysql->mongodb数据时发现了如下错误:

Fatal error: Uncaught exception 'MongoCursorException' with message 'couldn't get response header' in /home/web1/mongodbliu/product.php:69 Stack trace: #0 /home/web1/mongodbliu/product.php(69): MongoCollection->findOne(Array) #1 {main} thrown in /home/web1/mongodbliu/product.php on line 69

查看mongodb的日志发现有如下错误提示:

[conn56] AssertionException handling request, closing client connection: 10334 Invalid BSONObj size: -1431247360 (0x00E6B0AA) first element: *: ?type=-86

 

升级了php的mongodb驱动 好了 真奇怪。

 

 mongodb的版本是:2.2.0

php是5.3.4

php-mongodb版本是:1.2.12

 

posted @ 2012-09-01 09:29  Linux、Mongo、Php、Shell、Python、C  阅读(1844)  评论(0编辑  收藏  举报