Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListUserCertificateOrderResponse.body.certificateOrderList wrong type #398

Open
frangere opened this issue Mar 12, 2022 · 0 comments
Open

Comments

@frangere
Copy link

frangere commented Mar 12, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant