[JAVA-2050] Error: Can't find a codec for class com.mongodb.client.model.geojson.Polygon Created: 02/Dec/15 Updated: 11/Sep/19 Resolved: 14/Dec/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 3.1.1 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | riju pahwa | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mac-os ElCapital |
||
| Description |
|
| Comments |
| Comment by riju pahwa [ 04/Dec/15 ] |
|
Thanks Jeff. I am not modifying the codec registry. I don't think I am loading the wrong class file. I did switch from 3.0.4 to 3.1.1. I did switch my code to use morphia and that seemed to be working fine. Thanks again! |
| Comment by Jeffrey Yemin [ 03/Dec/15 ] |
|
I'm not able to reproduce this with 3.1.1. There are a couple of possibilities to consider:
|
| Comment by riju pahwa [ 02/Dec/15 ] |
|
Jeff - Thanks for the reply. I am seeing this with the above code not the commented one. ---- Dec 02, 2015 2:35:28 PM com.mongodb.diagnostics.logging.JULLogger log Exception in thread "main" org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class com.mongodb.client.model.geojson.Polygon. |
| Comment by Jeffrey Yemin [ 02/Dec/15 ] |
|
Are you seeing that with the pasted code, or with code that uses the commented out 'filter' variable? Can you provide a full stack trace please? |