Issue 17102

Unrecognized field "globalCoverage" error

17102
Reporter: trobertson
Type: Feedback
Summary: Unrecognized field "globalCoverage" error
Priority: Blocker
Resolution: Fixed
Status: Closed
Created: 2015-02-05 20:57:26.639
Updated: 2015-02-23 17:54:29.059
Resolved: 2015-02-23 17:54:29.035
        
Description: Registry logs showing:
{code}
ERROR [2015-02-05 20:54:24,934+0100] [qtp1876233337-313] org.gbif.occurrence.query.TitleLookup: Cannot lookup dataset title e242f598-69f3-4dbf-b4f6-d2a1c5f6986b
com.sun.jersey.api.client.ClientHandlerException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "globalCoverage" (Class org.gbif.api.model.registry.eml.geospatial.BoundingBox), not marked as ignorable
 at [Source: com.sun.jersey.client.apache4.ApacheHttpClient4Handler$HttpClientResponseInputStream@1ad4f1d2; line: 1, column: 3900] (through reference chain: org.gbif.api.model.registry.Dataset["geographicCoverages"]->org.gbif.api.model.registry.eml.geospatial.GeospatialCoverage["boundingBox"]->org.gbif.api.model.registry.eml.geospatial.BoundingBox["globalCoverage"])
	at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:644) ~[registry-ws-2.20.jar:2.21-SNAPSHOT]
	at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:586) ~[registry-ws-2.20.jar:2.21-SNAPSHOT]
	at com.sun.jersey.api.client.WebResource.handle(WebResource.java:686) ~[registry-ws-2.20.jar:2.21-SNAPSHOT]
	at com.sun.jersey.api.client.WebResource.get(WebResource.java:193) ~[registry-ws-2.20.jar:2.21-SNAPSHOT]
	at org.gbif.occurrence.query.TitleLookup.getDatasetTitle(TitleLookup.java:39) ~[registry-ws-2.20.jar:2.21-SNAPSHOT]
	at org.gbif.occurrence.query.HumanFilterBuilder.getHumanValue(HumanFilterBuilder.java:153) [registry-ws-2.20.jar:2.21-SNAPSHOT]
	at org.gbif.occurrence.query.HumanFilterBuilder.addParamValue(HumanFilterBuilder.java:139) [registry-ws-2.20.jar:2.21-SNAPSHOT]
	at org.gbif.occurrence.query.HumanFilterBuilder.visit(HumanFilterBuilder.java:250) [registry-ws-2.20.jar:2.21-SNAPSHOT]
{code}]]>
    


Author: mdoering@gbif.org
Created: 2015-02-06 08:28:11.072
Updated: 2015-02-06 08:28:11.072
        
The looks like a serious jackson problem reading the json.
Because of otherwise unavoidable dependency loops we had created a new dataset and organization title client called TitleLookup:
https://github.com/gbif/download-query-tools/blob/88f63a86c5e316c305450cd1a98390701d4d3ef9/src/main/java/org/gbif/occurrence/query/TitleLookup.java

That seems to be the cause and not knowing how to deal with mixins
    


Author: mdoering@gbif.org
Created: 2015-02-06 10:55:31.713
Updated: 2015-02-06 10:55:31.713
        
Should be fixed in:

https://github.com/gbif/registry/commit/80d65d9fad66fa1a5b3ad5493b334e00fc0197b4
https://github.com/gbif/download-query-tools/commit/18a40174080bae373024ec5f6f42eb8447605a63
https://github.com/gbif/gbif-common-ws/commit/cac32188d76e4b4b80af9df9f56f5dd47a49c637