[API-users] org.gbif.api.vocabulary.License.UNSPECIFIED

Christian Gendreau cgendreau at gbif.org
Fri Aug 19 09:18:54 CEST 2016

Hi James,

The License was implemented using a Jackson Mixin[1] and is provided in
the gbif-common-ws[2] project (version 0.34).
Assuming you are using a JVM based language, it is also possible to use
the registry-ws-client[3] directly to retrieve Dataset objects.

Kind regards,


[1] http://www.cowtowncoder.com/blog/archives/2009/08/entry_305.html
[3] https://github.com/gbif/registry/tree/master/registry-ws-client

Christian Gendreau
Software Developer
Global Biodiversity Information Facility (GBIF)
cgendreau at gbif.org

On 19/08/16 08:58, "API-users on behalf of Nozomi James Ytow"
<api-users-bounces at lists.gbif.org on behalf of nozomi at biol.tsukuba.ac.jp>

>I got the following exception when getting a dataset in my Java code:
>org.codehaus.jackson.map.JsonMappingException: Can not construct instance
>of org.gbif.api.vocabulary.License from String value 'unspecified': value
>not one of declared Enum instance names
> at [Source: 
>line: 1, column: 18567] (through reference chain:
>Because Java Enum is case sensitive, either is necessary to rename the
>entry to lower case, to change the value to upper case, or provide
>conversion code in org.gbif.api.vocabulary.License.
>Or, of course, modify application codes....
>API-users mailing list
>API-users at lists.gbif.org

More information about the API-users mailing list