有赞新零售社区

发帖
API使用问题»Java SDK 获取网点详情 报错

Java SDK 获取网点详情 报错

李润安 2017-12-29 1402 浏览 2 评论 | 只看楼主 [打印]
你好:
Java SDK 获取网店详情 报错 ,原因是ByteWrapper没有空的构造函数。谢谢

java.lang.RuntimeException: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class com.youzan.open.sdk.model.ByteWrapper]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?)
at [Source: {"response":{"id":"21153564","kdt_id":"19228105","name":"\u91d1\u8d35\u5bbe\u6b66\u6c49","is_store":"1","is_self_fetch":"1","is_optional_self_fetch_time":"1","support_local_delivery":"0","local_delivery_scope_type":"1","local_delivery_scope":"0","local_delivery_polygon":"","local_delivery_start_amount":"0","local_delivery_fee":"0","phone1":"027","phone2":"85609865","province":"\u6e56\u5317\u7701","city":"\u6b66\u6c49\u5e02","area":"\u6c5f\u6c49\u533a","address":"\u65b0\u534e\u8857\u529e\u4e8b\u5904\u65b0\u534e\u8def316\u53f7\u826f\u53cb\u5927\u53a67\u697cD\u5ea7","county_id":"420103","lng":"114.28038","lat":"30.598815","business_hours":null,"business_hours_advanced":[{"open_time":"00:01","close_time":"23:59","weekdays":["\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d","\u5468\u65e5"]}],"offline_business_hours":[{"open_time":"00:01","close_time":"23:59","weekdays":["\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d","\u5468\u65e5"]}],"image":["https:\/\/img.yzcdn.cn\/upload_files\/2017\/11\/06\/FqFrO7miRyhsN_IDDsqu834yR_qM.jpg"],"image_thumb":["https:\/\/img.yzcdn.cn\/upload_files\/2017\/11\/06\/FqFrO7miRyhsN_IDDsqu834yR_qM.jpg?imageView2\/2\/w\/480\/h\/480\/q\/75\/format\/jpg"],"description":"","created_time":"2017-12-26 14:54:03","updated_time":"2017-12-26 16:37:35","tag_ids":[],"sid":"19228105"}}; line: 1, column: 678]

用手机打开
收藏 ··· 回复
    您的SDK是什么时候下载的,建议到官网下载最新SDK再尝试下。如还有问题,请提供传入的参数

      李润安 青铜   2017-12-29 | 只看该作者
      lass="quote 15">
      有赞-阿星 发表于 2017-12-28 20:56
      您的SDK是什么时候下载的,建议到官网下载最新SDK再尝试下。如还有问题,请提供传入的参数 ...


      你好,我是12月20日下载的。网点的参数是 “id":"21153564
      我现在投降了,不用sdk,直接用client.execute了,谢谢。

        1跳至
        您需要登录后才可以回帖 登录 | 立即注册

        本版积分规则

        复制链接
        新浪微博
        QQ空间
        微信扫码
        • 回复

        • 评分

        客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

        复制成功