Jackan Test #1178
Test didn't pass!
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at eu.trentorise.opendata.jackan.test.ckan.CkanTestReporter.runTest(CkanTestReporter.java:188)
at eu.trentorise.opendata.jackan.test.ckan.CkanTestReporter.runTests(CkanTestReporter.java:266)
at eu.trentorise.opendata.jackan.test.ckan.CkanTestReporter.main(CkanTestReporter.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
at java.lang.Thread.run(Thread.java:745)
Caused by: eu.trentorise.opendata.jackan.exceptions.CkanException: Couldn't interpret json returned by the server! Returned text was: {"help":"Return a list of the names of the site\u0027s groups.\n\n :param order_by: the field to sort the list by, must be ``\u0027name\u0027`` or\n ``\u0027packages\u0027`` (optional, default: ``\u0027name\u0027``) Deprecated use sort.\n :type order_by: string\n :param sort: sorting of the search results. Optional. Default:\n \u0022name asc\u0022 string of field name and sort-order. The allowed fields are\n \u0027name\u0027 and \u0027packages\u0027\n :type sort: string\n :param all_fields: return full group dictionaries instead of just names\n (optional, default: ``False``)\n :type all_fields: boolean\n\n :rtype: list of strings","success":true,"result":[{"name":"office-medicare-hearings-and-appeals"},{"name":"us-department-agriculture"},{"name":"state-missouri"},{"name":"state-hawaii"},{"name":"state-oregon"},{"name":"state-oklahoma"},{"name":"state-illinois"},{"name":"state-california"},{"name":"city-san-francisco"},{"name":"city-boston"},{"name":"city-chicago"},{"name":"state-washington"},{"name":"state-maryland"},{"name":"state-colorado"},{"name":"indian-health-service"},{"name":"new-york-state-department-health"},{"name":"national-institute-drug-abuse"},{"name":"office-national-coordinator-health-information-technology"},{"name":"national-library-medicine"},{"name":"department-health-human-services"},{"name":"administration-children-and-families"},{"name":"centers-disease-control-and-prevention"},{"name":"centers-medicare-medicaid-services"},{"name":"health-resources-and-services-administration"},{"name":"agency-healthcare-research-and-quality"},{"name":"national-institutes-health"},{"name":"office-inspector-general"},{"name":"us-food-and-drug-administration"},{"name":"substance-abuse-mental-health-services-administration"},{"name":"assistant-secretary-planning-evaluation"},{"name":"administration-community-living"},{"name":"national-cancer-institute"},{"name":"program-support-center"},{"name":"departmental-management"}]} CkanClient{catalogURL=http://hub.healthdata.gov, ckanToken=null}
at eu.trentorise.opendata.jackan.CkanClient.getHttp(CkanClient.java:530)
at eu.trentorise.opendata.jackan.CkanClient.getGroupNames(CkanClient.java:1048)
at eu.trentorise.opendata.jackan.test.ckan.ReadCkanIT.testGroupNames(ReadCkanIT.java:311)
... 12 more
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: {"help":"Return a list of the names of the site\u0027s groups.\n\n :param order_by: the field to sort the list by, must be ``\u0027name\u0027`` or\n ``\u0027packages\u0027`` (optional, default: ``\u0027name\u0027``) Deprecated use sort.\n :type order_by: string\n :param sort: sorting of the search results. Optional. Default:\n \u0022name asc\u0022 string of field name and sort-order. The allowed fields are\n \u0027name\u0027 and \u0027packages\u0027\n :type sort: string\n :param all_fields: return full group dictionaries instead of just names\n (optional, default: ``False``)\n :type all_fields: boolean\n\n :rtype: list of strings","success":true,"result":[{"name":"office-medicare-hearings-and-appeals"},{"name":"us-department-agriculture"},{"name":"state-missouri"},{"name":"state-hawaii"},{"name":"state-oregon"},{"name":"state-oklahoma"},{"name":"state-illinois"},{"name":"state-california"},{"name":"city-san-francisco"},{"name":"city-boston"},{"name":"city-chicago"},{"name":"state-washington"},{"name":"state-maryland"},{"name":"state-colorado"},{"name":"indian-health-service"},{"name":"new-york-state-department-health"},{"name":"national-institute-drug-abuse"},{"name":"office-national-coordinator-health-information-technology"},{"name":"national-library-medicine"},{"name":"department-health-human-services"},{"name":"administration-children-and-families"},{"name":"centers-disease-control-and-prevention"},{"name":"centers-medicare-medicaid-services"},{"name":"health-resources-and-services-administration"},{"name":"agency-healthcare-research-and-quality"},{"name":"national-institutes-health"},{"name":"office-inspector-general"},{"name":"us-food-and-drug-administration"},{"name":"substance-abuse-mental-health-services-administration"},{"name":"assistant-secretary-planning-evaluation"},{"name":"administration-community-living"},{"name":"national-cancer-institute"},{"name":"program-support-center"},{"name":"departmental-management"}]}; line: 1, column: 715] (through reference chain: eu.trentorise.opendata.jackan.GroupNamesResponse["result"]->java.util.ArrayList[0])
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:854)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseString(StdDeserializer.java:846)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:190)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:161)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:19)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:101)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3702)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2714)
at eu.trentorise.opendata.jackan.CkanClient.getHttp(CkanClient.java:528)
... 14 more