[JAVA-1820] Unable to Map JSON to POJO Created: 19/May/15 Updated: 11/Sep/19 Resolved: 20/May/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | murali | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 14.04 |
||
| Description |
|
Unable to Map JSON to POJO. I have inserted JSON from R tool. Please find the attached error log and bson dump . |
| Comments |
| Comment by Ross Lawley [ 20/May/15 ] |
|
As you can read and Map to a POJO when you manually insert the data, you have confirmed this isn't a Java driver issue. For that reason I'm closing this ticket as "Works as Designed". Rather it seems that this is an integration issue with the tooling you are using for whatever reason. There is little information to go on to help identify the cause and as mentioned previously this isn't the best place to get support. Please could you post your question to mongodb-user mailinglist or stackoverflow and link it to this ticket so I can follow it. The reasons being are you will reach a boarder audience there, some of whom may have had similar issues in the past. It might prove helpful in your post to include what the JSON looks like and the POJO object as well. Also, provide version information, what version of Spring, Java Driver, MongoDB etc. |
| Comment by murali [ 20/May/15 ] |
|
The data set in both environments(ubuntu and Windows) is same. |
| Comment by Ross Lawley [ 19/May/15 ] |
|
Hi murali.lancer, It seems strange that it works on Windows but not on Ubuntu, is the dataset the same? I'd see anything attached to the ticket - can you provide a reproduction case? Also, does querying the data from the mongo shell work as expected? Just to let you know for future reference, the JAVA Jira project is really for Java driver bugs or feature requests. The best place for questions regarding MongoDB usage or the Java driver specifics is the mongodb-user mailinglist or stackoverflow as you will reach a boarder audience there and who may have had similar issues in the past. Ross |
| Comment by murali [ 19/May/15 ] |
|
Java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [] |
| Comment by murali [ 19/May/15 ] |
|
Please help me |