Jackan Test #411
Test didn't pass!
java.lang.reflect.InvocationTargetException
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 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 the metadata of a dataset (package) and its resources. :param id: the id or name of the dataset :type id: string","success":true,"result":[{"id":"e52a6821-f447-4b3c-84ce-5419273e8e47","name":"orario-ferroviario-regionale-stops","title":"Orario Ferroviario Regionale - Stops","maintainer":"dati.gov.it - i dati aperti della pubblica amministrazione","maintainer_email":"info@agid.gov.it","notes":"\u003Cp\u003EOrario Ferroviario Regionale Lombardia. Servizio Trenord e Malpensa Express. Tabella \u0022stops\u0022 secondo standard GTFS transit feed .\u003C\/p\u003E","url":"http:\/\/www.dati.gov.it\/dataset\/orario-ferroviario-regionale-stops","state":"Active","private":"Pubblicato","revision_timestamp":"Ven, 10\/09\/2015 - 13:25","metadata_created":"Ven, 10\/09\/2015 - 13:25","metadata_modified":"Ven, 10\/09\/2015 - 13:25","creator_user_id":"bf8095b4-6329-4f65-bdba-8b623393c870","type":"Dataset","resources":[{"id":"27717ad3-c91f-4510-8604-d9a600f75791","revision_id":"","url":"https:\/\/www.dati.lombardia.it\/Mobilit-e-trasporti\/Orario-Ferroviario-Regionale-Stops\/j5jz-kvqn","description":"","format":"","state":"Active","revision_timestamp":"Ven, 10\/09\/2015 - 13:25","name":"Orario Ferroviario Regionale - Stops","mimetype":"","size":"","created":"Ven, 10\/09\/2015 - 13:25","resource_group_id":"","last_modified":"Date changed\tVen, 10\/09\/2015 - 13:25"}],"tags":[{"id":"9835646d-8981-426b-b68f-c48f8b110525","vocabulary_id":"6","name":"treni"},{"id":"5353ebb7-317e-4968-bb2b-24d23232c921","vocabulary_id":"6","name":"linee ferroviarie"},{"id":"62a94fdb-d594-434e-8eab-fcc63f999df4","vocabulary_id":"6","name":"orari"},{"id":"85988f1b-af91-4299-a150-e022848d1864","vocabulary_id":"6","name":"lombardi"},{"id":"c3e58f02-e20c-484b-9249-61a2f4734baa","vocabulary_id":"6","name":"gtfs"}]}]} CkanClient{catalogURL=http://www.dati.gov.it, ckanToken=null}
at eu.trentorise.opendata.jackan.CkanClient.getHttp(CkanClient.java:530)
at eu.trentorise.opendata.jackan.CkanClient.getDataset(CkanClient.java:823)
at eu.trentorise.opendata.jackan.test.ckan.ReadCkanIT.testDatasetAndResource(ReadCkanIT.java:227)
... 13 more
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of eu.trentorise.opendata.jackan.model.CkanDataset out of START_ARRAY token
at [Source: {"help":"Return the metadata of a dataset (package) and its resources. :param id: the id or name of the dataset :type id: string","success":true,"result":[{"id":"e52a6821-f447-4b3c-84ce-5419273e8e47","name":"orario-ferroviario-regionale-stops","title":"Orario Ferroviario Regionale - Stops","maintainer":"dati.gov.it - i dati aperti della pubblica amministrazione","maintainer_email":"info@agid.gov.it","notes":"\u003Cp\u003EOrario Ferroviario Regionale Lombardia. Servizio Trenord e Malpensa Express. Tabella \u0022stops\u0022 secondo standard GTFS transit feed .\u003C\/p\u003E","url":"http:\/\/www.dati.gov.it\/dataset\/orario-ferroviario-regionale-stops","state":"Active","private":"Pubblicato","revision_timestamp":"Ven, 10\/09\/2015 - 13:25","metadata_created":"Ven, 10\/09\/2015 - 13:25","metadata_modified":"Ven, 10\/09\/2015 - 13:25","creator_user_id":"bf8095b4-6329-4f65-bdba-8b623393c870","type":"Dataset","resources":[{"id":"27717ad3-c91f-4510-8604-d9a600f75791","revision_id":"","url":"https:\/\/www.dati.lombardia.it\/Mobilit-e-trasporti\/Orario-Ferroviario-Regionale-Stops\/j5jz-kvqn","description":"","format":"","state":"Active","revision_timestamp":"Ven, 10\/09\/2015 - 13:25","name":"Orario Ferroviario Regionale - Stops","mimetype":"","size":"","created":"Ven, 10\/09\/2015 - 13:25","resource_group_id":"","last_modified":"Date changed\tVen, 10\/09\/2015 - 13:25"}],"tags":[{"id":"9835646d-8981-426b-b68f-c48f8b110525","vocabulary_id":"6","name":"treni"},{"id":"5353ebb7-317e-4968-bb2b-24d23232c921","vocabulary_id":"6","name":"linee ferroviarie"},{"id":"62a94fdb-d594-434e-8eab-fcc63f999df4","vocabulary_id":"6","name":"orari"},{"id":"85988f1b-af91-4299-a150-e022848d1864","vocabulary_id":"6","name":"lombardi"},{"id":"c3e58f02-e20c-484b-9249-61a2f4734baa","vocabulary_id":"6","name":"gtfs"}]}]}; line: 1, column: 145] (through reference chain: eu.trentorise.opendata.jackan.DatasetResponse["result"])
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.DeserializationContext.mappingException(DeserializationContext.java:850)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1258)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:155)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:134)
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)
... 15 more