将 Couchbase Java SDK 从 3.0.9 升级到 3.1.2 创建问题DocumentExistsException:具有给定 ID 的文档已经存在

问题描述

Caused by: java.util.concurrent.CompletionException: com.couchbase.client.core.error.DocumentExistsException: 具有给定 id 的文档已经存在 java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)\n\tat java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)\n\tat java. base/java.util.concurrent.CompletableFuture$uniapply.tryFire(CompletableFuture.java:645)\n\tat java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)\n\tat java. base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)\n\tat com.couchbase.client.core.msg.BaseRequest.succeed(BaseRequest.java:143)\n\tat com.couchbase. client.core.io.netty.kv.keyvalueMessageHandler.decodeAndComplete(keyvalueMessageHandler.java:322)\n\tat com.couchbase.client.core.io.netty.kv.keyvalueMessageHandler.decode(keyvalueMessageHandler.java:301)\n \tat com.couchbase.client.core.io.netty.kv.keyvalueMessageHandler.channelRead(keyvalueMessageHandler.java:228)\n\tat com.couchbase.client.core.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead( AbstractChannelHandlerContext.java:379)

省略了 1 个常见框架\n原因:com.couchbase.client.core.error.DocumentExistsException:具有给定 ID 的文档已经存在\n\tat com.couchbase.client.java.kv.InsertAccessor.lambda$insert$0 (InsertAccessor.java:45)\n\tat java.base/java.util.concurrent.CompletableFuture$uniapply.tryFire(CompletableFuture.java:642)\n\t...省略了33个常用框架\n\n"}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)