[ECODP-dev] CKANClient-J Library and TestCases

Dimitrios Mexis dimitrios.mexis at tenforce.com
Wed Aug 7 11:42:17 UTC 2013


(remind)

On 6/08/2013 10:38, Dimitrios Mexis wrote:
> Hello,
>
> Is these tests and the relevant library updated for recent CKAN 
> version as installed for EU ODP ?
>
> I get for example failures like this:
>
>  <testcase classname="org.ckan.tests.CreateTestCases" 
> name="test_CreateDatasetWithPlusInName" time="0.499">
>     <error message="java.lang.IllegalStateException: Expected
>     but was STRING at line 1 column 10" 
> type="com.google.gson.JsonSyntaxException">com.google.gson.JsonSyntaxException: 
> java.lang.IllegalStateException:
>     Expected BEGIN_OBJECT but was STRING at line 1 column 10
>     at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
>     at com.google.gson.Gson.fromJson(Gson.java:791)
>     at com.google.gson.Gson.fromJson(Gson.java:757)
>     at com.google.gson.Gson.fromJson(Gson.java:706)
>     at com.google.gson.Gson.fromJson(Gson.java:678)
>     at org.ckan.Client.LoadClass(Unknown Source)
>     at org.ckan.Client.createDataset(Unknown Source)
>     at 
> org.ckan.tests.CreateTestCases.test_CreateDatasetWithPlusInName(Unknown Source)
> Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but 
> was STRING at line 1 column 10
>     at com.google.gson.stream.JsonReader.expect(JsonReader.java:339)
>     at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322)
>     at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165)
> </error>
>   </testcase>
>
> <system-err><![CDATA[]]></system-err>
>
>
> Regards
> Dimitrios

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130807/c3139f79/attachment.html>


More information about the ecodp-dev mailing list