• ·Î±×ÀÎ ÇÔ ÇØº¸²ô³ª?

  • Sarangnamu.net June 17, 2003
    Home Login Profile Study Open Project Q&A Google Code
    value failed for JSON property bounds due to missing (therefore NULL) value for creator parameter bounds which is a non-nullable type
    json ÆÄ½ÌÀ» ÁÖ·Î jackson À» ÀÌ¿ëÇϴµ¥ google ¿¡ geo code ¸¦ Àü´ÞÇØ Áö¿ª¸íÀ» ¾ò´Â ºÎºÐÀ» kotlin À¸·Î Æ÷ÆÃ ÇÏ´Ù°¡ ´ÙÀ½°ú °°Àº ¿À·ù°¡ ¹ß»ý Çß´Ù. 
    
    W/System.err: com.fasterxml.jackson.module.kotlin.MissingKotlinParameterException: Instantiation of [simple type, class net.sarangnamu.common.gps.domains.Geometry] value failed for JSON property bounds due to missing (therefore NULL) value for creator parameter bounds which is a non-nullable type
    W/System.err:     at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 53, column: 10] (through reference chain: net.sarangnamu.common.gps.domains.Address["results"]->java.util.ArrayList[0]->net.sarangnamu.common.gps.domains.AddressResult["geometry"]->net.sarangnamu.common.gps.domains.Geometry["bounds"])
    
    ÆÄ½ÌÀ» À§ÇÑ Å¬·¡½º´Â ¾Æ·¡¿Í °°¾Ò°í Å©°Ô ¹®Á¦°¡ ¾ø¾îº¸¿´´Âµ¥ ´Ù½Ã »ý°¢Çغ¸´Ï ÄÚÆ²¸° Ư¼ºÀ» ¹«½ÃÇÑ ÄÚµùÀ̶ó´Â°É ¾Ë°Ô µÇ¾ú°í 
    @JsonIgnoreProperties(ignoreUnknown = true)
    data class Geometry(
        val bounds: NorthEastSouthWest,
        val location: Location,
        val location_type: String,
        val viewport: NorthEastSouthWest
    ) : Serializable
    
    ´ÙÀ½°ú °°ÀÌ º¯°æÇÏ¿´´Ù. 
    @JsonIgnoreProperties(ignoreUnknown = true)
    data class Geometry(
        val bounds: NorthEastSouthWest?,
        val location: Location,
        val location_type: String,
        val viewport: NorthEastSouthWest
    ) : Serializable
    
    null ÀÌ ¿Ã¼ö ÀÖÀ½À» ¾Ë¸®´Â ? À» bounds ¿¡ Ãß°¡ÇÑ °ÍÀ¸·Î ¸îºÐ°£ -_ - È¥¶õ¿¡ ºüÁö±ä ÇßÁö¸¸ ¾ÕÀ¸·Î jackson °´Ã¼¸¦ ¸¸µå´Âµ¥ ÁÖÀÇÇØ¾ßÇÒ µí ½Í´Ù. 

    Comment


    ÀÔ·ÂÇÏ3 1524665434



    Locations of visitors to this page