kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhong,Jason (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KYLIN-1220) JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY
Date Tue, 12 Jan 2016 10:50:39 GMT

     [ https://issues.apache.org/jira/browse/KYLIN-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zhong,Jason resolved KYLIN-1220.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0

> JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY
> -----------------------------------------------------------------------------------------
>
>                 Key: KYLIN-1220
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1220
>             Project: Kylin
>          Issue Type: Bug
>          Components: Web 
>    Affects Versions: v2.0
>         Environment: HDP2.3.2
>            Reporter: wangxianbin
>            Assignee: Zhong,Jason
>             Fix For: 2.0
>
>
> JsonMappingException when I create cube, I think it cause by class var "column" in class
"DimensionDesc" which is not String array any more, how ever web didn't follow up this change.
> L4J [2015-12-10 17:23:50,781][ERROR][org.apache.kylin.rest.controller.CubeController]
- The cube definition is not valid.
> com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of
java.lang.String out of START_ARRAY token
>  at [Source: java.io.StringReader@407d4132; line: 10, column: 22] (through reference
chain: org.apache.kylin.cube.model.CubeDesc["dimensions"]->org.apache.kylin.cube.model.DimensionDesc["column"])
> 	at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)
> 	at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:575)
> 	at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:46)
> 	at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11)
> 	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:464)
> 	at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:107)
> 	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:295)
> 	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)
> 	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:230)
> 	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:207)
> 	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:23)
> 	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:464)
> 	at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:107)
> 	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:295)
> 	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)
> 	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)
> 	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)
> 	at org.apache.kylin.common.util.JsonUtil.readValue(JsonUtil.java:54)
> 	at org.apache.kylin.rest.controller.CubeController.deserializeCubeDesc(CubeController.java:699)
> 	at org.apache.kylin.rest.controller.CubeController.saveCubeDesc(CubeController.java:327)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message