Re: Problem with the response string when listing cartridges through CLI

2015-03-10 Thread Imesh Gunaratne
Yes looks like that, {"@xsi.nil":"true"} means that it is retuning a null. On Mon, Mar 9, 2015 at 3:03 PM, Dinithi De Silva wrote: > Hi Imesh, > > It didn't solve the problem. Now the exception comes is as follows. > > com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: > Expec

Re: Problem with the response string when listing cartridges through CLI

2015-03-09 Thread Dinithi De Silva
Hi Imesh, It didn't solve the problem. Now the exception comes is as follows. com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 125 The result string is as follows. [{"category":"data","description":"tomcat1 Cartridge",

Re: Problem with the response string when listing cartridges through CLI

2015-03-09 Thread Imesh Gunaratne
Adding a new property to the following arrayKeys definition would solve this problem: ... partitions property hostNames memberMap portMap partitionGroup partition member h

Re: Problem with the response string when listing cartridges through CLI

2015-03-08 Thread Vishanth Balasubramaniam
Hi Dinithi, The output of the metadataKeys is a string array or an object array? Please refer [1] and check if that is the issue [1] - http://stackoverflow.com/questions/21374603/com-google-gson-jsonsyntaxexception-java-lang-illegalstateexception-in-android Thank you, Vishanth. On Mon, Mar 9, 2

Re: Problem with the response string when listing cartridges through CLI

2015-03-08 Thread Imesh Gunaratne
May be "metadataKeys" property is not marked as an array in CXF configuration in REST API web application. When there is only one element available, CXF does not return an array unless this configuration is there. On Mon, Mar 9, 2015 at 12:04 PM, Dinithi De Silva wrote: > Hi all, > > While listi

Problem with the response string when listing cartridges through CLI

2015-03-08 Thread Dinithi De Silva
Hi all, While listing the available cartridges using CLI command "list-cartridges" I got the following exception. com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 112 The response string was as follows. [{"category"