在使用表格存储,存入内容时报错,全部报错信息如下:
Exception in thread "Thread-4" java.lang.UnsupportedOperationException: This is supposed to be overridden by subclasses.
at com.google.protobuf.GeneratedMessage.getUnknownFields(GeneratedMessage.java:262)
at com.alicloud.openservices.tablestore.core.protocol.OtsInternalApi$Condition.getSerializedSize(OtsInternalApi.java:4509)
at com.google.protobuf.CodedOutputStream.computeMessageSizeNoTag(CodedOutputStream.java:916)
at com.google.protobuf.CodedOutputStream.computeMessageSize(CodedOutputStream.java:668)
at com.alicloud.openservices.tablestore.core.protocol.OtsInternalApi$PutRowRequest.getSerializedSize(OtsInternalApi.java:20799)
at com.google.protobuf.AbstractMessageLite.toByteArray(AbstractMessageLite.java:70)
at com.alicloud.openservices.tablestore.core.OperationLauncher.asyncInvokePost(OperationLauncher.java:117)
at com.alicloud.openservices.tablestore.core.PutRowLauncher.fire(PutRowLauncher.java:53)
at com.alicloud.openservices.tablestore.InternalClient.putRow(InternalClient.java:449)
at com.alicloud.openservices.tablestore.SyncClient.putRow(SyncClient.java:218)
at com.keeson.jdskill.backend.utils.AliIoTUtilRunnable.run(AliIoTUtilRunnable.java:208)
at java.lang.Thread.run(Thread.java:748)
官网上有解决方案了。 https://help.aliyun.com/document_detail/58568.html
详细看一下api,目前你的操作不被支持,需要使用子类
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。