[ https://issues.apache.org/jira/browse/JCLOUDS-1583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anand updated JCLOUDS-1583: --------------------------- Attachment: template.json > java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY > ---------------------------------------------------------------------- > > Key: JCLOUDS-1583 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1583 > Project: jclouds > Issue Type: Bug > Components: jclouds-compute > Affects Versions: 2.2.1 > Reporter: Anand > Priority: Major > Attachments: template.json > > > I was trying to create VM using DeploymentApi.create but throws exception as > below. The template.json has type = Array for few parameters. > com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: > Expected a string but was BEGIN_ARRAY at line 1 column 472 path > $.properties.parameters..value > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:193) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:321) > at > org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:287) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:275) > at > org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:187) > at com.google.gson.Gson.fromJson(Gson.java:927) > at com.google.gson.Gson.fromJson(Gson.java:892) -- This message was sent by Atlassian Jira (v8.3.4#803005)