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 <[email protected]> wrote: > 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":"data","description":"php > Cartridge","displayName":"php","host":"php.stratos.org > ","metadataKeys":{"@xsi.nil":"true"},"multiTenant":false,"provider":"apache","public":false,"type":"php","version":7}] > > The expected output for metadataKeys is an array. > > What could be the reason for this? > > > -- > *Dinithi De Silva* > Associate Software Engineer, WSO2 Inc. > m:+94716667655 | e:[email protected] | w: www.wso2.com > | a: #20, Palm Grove, Colombo 03 > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos
