You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At Java, listUserCertificateOrder API throw exception:
Exception in thread "main" com.aliyun.tea.TeaException
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:205)
at com.aliyun.tea.TeaModel.toModel(TeaModel.java:176)
at com.aliyun.cas20200407.Client.listUserCertificateOrderWithOptions(Client.java:423)
at com.aliyun.cas20200407.Client.listUserCertificateOrder(Client.java:428)
at com.itrace.top.certs.RequestCerts.listCert(RequestCerts.java:77)
at com.itrace.top.certs.RequestCerts.main(RequestCerts.java:88)
Caused by: com.aliyun.tea.TeaException
Caused by: com.aliyun.tea.TeaException
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:205)
at com.aliyun.tea.TeaModel.toModel(TeaModel.java:176)
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:192)
... 5 more
Caused by: java.lang.IllegalArgumentException: Can not set java.lang.String field com.aliyun.cas20200407.models.ListUserCertificateOrderResponseBody.certificateOrderList to java.util.ArrayList
Caused by: java.lang.IllegalArgumentException: Can not set java.lang.String field com.aliyun.cas20200407.models.ListUserCertificateOrderResponseBody.certificateOrderList to java.util.ArrayList
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
at java.lang.reflect.Field.set(Field.java:764)
at com.aliyun.tea.TeaModel.setTeaModelField(TeaModel.java:201)
... 7 more
This is because, ListUserCertificateOrderResponse.body.certificateOrderList actually is List<Map<String,Object>> instead of String.
The text was updated successfully, but these errors were encountered:
At Java, listUserCertificateOrder API throw exception:
This is because, ListUserCertificateOrderResponse.body.certificateOrderList actually is List<Map<String,Object>> instead of String.
The text was updated successfully, but these errors were encountered: