工具型应用, 已经获取到token , javaSDK报错,不知道可有其他同学碰到该问题啊?
换了几个API报错都一样
YZClient client = new DefaultYZClient(new Token("token被替换掉了")); //new Sign(appKey, appSecret)
YouzanUsersWeixinFollowersGetParams youzanUsersWeixinFollowersGetParams = new YouzanUsersWeixinFollowersGetParams();
SimpleDateFormat sy = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
youzanUsersWeixinFollowersGetParams.setStartFollow(sy.parse("2010-03-21 00:00:00"));
youzanUsersWeixinFollowersGetParams.setPageSize(1L);
youzanUsersWeixinFollowersGetParams.setPageNo(1L);
youzanUsersWeixinFollowersGetParams.setOnlyFollow(1L);
youzanUsersWeixinFollowersGetParams.setEndFollow(sy.parse("2018-10-19 00:00:00"));
YouzanUsersWeixinFollowersGet youzanUsersWeixinFollowersGet = new YouzanUsersWeixinFollowersGet();
youzanUsersWeixinFollowersGet.setAPIParams(youzanUsersWeixinFollowersGetParams);
// YouzanUsersWeixinFollowersGetResult result = client.invoke(youzanUsersWeixinFollowersGet);
//
// System.out.println(result);
// YZClient client = new DefaultYZClient(new Token("418ab734cee63608959b7cc134fd4a14"));
YouzanItemGetParams youzanItemGetParams = new YouzanItemGetParams();
youzanItemGetParams.setItemId(405464579L);
YouzanItemGet youzanItemGet = new YouzanItemGet();
youzanItemGet.setAPIParams(youzanItemGetParams);
YouzanItemGetResult result1 = client.invoke(youzanItemGet);
System.out.println(result1.getItem().getItemId());
Exception in thread "main" java.lang.VerifyError: class com.youzan.open.sdk.util.json.MyNumberDeserializers$BooleanDeserializer overrides final method _parseBoolean.(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Boolean;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.youzan.open.sdk.client.core.DefaultYZClient.handleError(DefaultYZClient.java:111)
at com.youzan.open.sdk.client.core.DefaultYZClient.invoke(DefaultYZClient.java:90)
at YouzanDataService.main(YouzanDataService.java:47)
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|