[JAVA-367] java bson exception while reading files from gridfs (that was storead by php driver) Created: 02/Jun/11 Updated: 11/Sep/19 Resolved: 02/Jun/11 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.6.1 |
| Fix Version/s: | 2.6.2 |
| Type: | Task | Priority: | Critical - P2 |
| Reporter: | alezozov | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | bson, crash | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
windows, db: mongodb-win32-i386-1.8.1, php driver: mongo-1.1.4-WINDOWS, java: mongo-2.6.1.jar |
||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Major Change | ||||||||
| Description |
|
Hi. java.lang.ClassCastException: org.bson.types.Binary cannot be cast to [B but when with java and then with php, everything ok. sample code i am using: PHP WRITE CODE $m = new Mongo(); JAVA READ CODE GridFS myFS; else { System.out.println("false"); } ps I danced a lot with this code, modified parameters, changed ids, php and java drivers on older versions. Nothing helped. What I am doing wrong ? Thanks. |
| Comments |
| Comment by Antoine Girbal [ 02/Jun/11 ] |
|
This is due to bug |