alibabacloud-java-sdk's Issues
VerifyMaterialResponse 返回空
实人认证:纯服务端接入 java sdk调用
身份证号或者身份证图片访问超时时,VerifyMaterialResponse 返回空。
oss-20190517 上传文件到OSS报错 darabonba.core.exception.TeaException: The value is not a map
根据OpenAI平台示例代码https://api.aliyun.com/api/Oss/2019-05-17/PutObject?sdkStyle=dara¶ms={%22x-oss-meta-*%22:{}}:
String filePath = "/home/charlie/downloads/" + video;
String key = stsData.dir + video;
System.out.println("key:" + key);
FileInputStream fis = new FileInputStream(filePath);
PutObjectRequest request = PutObjectRequest.builder()
.bucket(stsData.bucket)
.key(stsData.dir + "/" + video)
.body(fis)
.build();
CompletableFuture<PutObjectResponse> future = ossClient.putObject(request);
报错信息:
java.util.concurrent.CompletionException: darabonba.core.exception.TeaException: The value is not a map
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
at java.base/java.util.concurrent.CompletableFuture.andTree(CompletableFuture.java:1527)
at java.base/java.util.concurrent.CompletableFuture.allOf(CompletableFuture.java:2451)
at cn.chingshen.vlogclijava.services.impls.XingyingServiceImpl.uploadVideos(XingyingServiceImpl.java:163)
at cn.chingshen.vlogclijava.VlogCliJavaApplicationTests.videoUploads(VlogCliJavaApplicationTests.java:69)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:57)
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:232)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)
Caused by: darabonba.core.exception.TeaException: The value is not a map
at darabonba.core.utils.CommonUtil.assertAsMap(CommonUtil.java:45)
at com.aliyun.sdk.gateway.oss.internal.interceptor.TransformRequestBodyInterceptor.fromBody(TransformRequestBodyInterceptor.java:58)
at com.aliyun.sdk.gateway.oss.internal.interceptor.TransformRequestBodyInterceptor.modifyRequest(TransformRequestBodyInterceptor.java:31)
at darabonba.core.interceptor.InterceptorChain.modifyRequest(InterceptorChain.java:69)
at darabonba.core.TeaAsyncHandler.execute(TeaAsyncHandler.java:155)
at com.aliyun.sdk.service.oss20190517.DefaultAsyncClient.putObject(DefaultAsyncClient.java:1225)
at cn.chingshen.vlogclijava.services.impls.XingyingServiceImpl.uploadVideos(XingyingServiceImpl.java:159)
... 69 more
Caused by: java.lang.RuntimeException: The value is not a object
... 76 more
endpoint能不自己填吗
v1版本里直接用region就可以调用了,v2版本还要自己组endpoint,关键endpoint有些还很特殊需要额外处理,能封装起来吗
KeysValue中能否添加json_keys
json类型的索引底下有很多json_keys, 现在用sdk去同步两个地区的索引时,json内部的值同步不过来,希望能优化一下
(我目前的操作, 从A LogStore获取索引keys, 然后更新到B LogStore上, json类型底下的参数同步不了)
xtrace-20190808 AsyncClient.searchTraces darabonba.core.exception.TeaException: darabonba.core.exception.TeaException: key == null
Exception:
Caused by: darabonba.core.exception.TeaException: darabonba.core.exception.TeaException: key == null at com.aliyun.sdk.gateway.pop.interceptor.output.FinalizedOutputInterceptor.modifyOutput(FinalizedOutputInterceptor.java:33) at darabonba.core.interceptor.InterceptorChain.modifyOutput(InterceptorChain.java:96) at darabonba.core.TeaAsyncHandler$RetryableExecutor.lambda$attemptExecute$0(TeaAsyncHandler.java:289) at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774) at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488) at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1975) at com.aliyun.httpcomponent.httpclient.ApacheAsyncHttpClient$1.completed(ApacheAsyncHttpClient.java:133) at com.aliyun.httpcomponent.httpclient.ApacheAsyncHttpClient$1.completed(ApacheAsyncHttpClient.java:130) at org.apache.hc.core5.concurrent.BasicFuture.completed(BasicFuture.java:123) at org.apache.hc.core5.concurrent.ComplexFuture.completed(ComplexFuture.java:79) at org.apache.hc.client5.http.impl.async.InternalAbstractHttpAsyncClient$1$3$1.completed(InternalAbstractHttpAsyncClient.java:298) at org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer$2.completed(AbstractAsyncResponseConsumer.java:108) at org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer.completed(AbstractBinAsyncEntityConsumer.java:84) at org.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer.streamEnd(AbstractBinDataConsumer.java:81) at org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer.streamEnd(AbstractAsyncResponseConsumer.java:149) at org.apache.hc.client5.http.impl.async.HttpAsyncMainClientExec$1.streamEnd(HttpAsyncMainClientExec.java:233) at org.apache.hc.core5.http.impl.nio.ClientHttp1StreamHandler.dataEnd(ClientHttp1StreamHandler.java:280) at org.apache.hc.core5.http.impl.nio.ClientHttp1StreamDuplexer.dataEnd(ClientHttp1StreamDuplexer.java:366) at org.apache.hc.core5.http.impl.nio.AbstractHttp1StreamDuplexer.onInput(AbstractHttp1StreamDuplexer.java:333) at org.apache.hc.core5.http.impl.nio.AbstractHttp1IOEventHandler.inputReady(AbstractHttp1IOEventHandler.java:64) at org.apache.hc.core5.http.impl.nio.ClientHttp1IOEventHandler.inputReady(ClientHttp1IOEventHandler.java:39) at org.apache.hc.core5.reactor.ssl.SSLIOSession.decryptData(SSLIOSession.java:550) at org.apache.hc.core5.reactor.ssl.SSLIOSession.access$400(SSLIOSession.java:72) at org.apache.hc.core5.reactor.ssl.SSLIOSession$1.inputReady(SSLIOSession.java:172) at org.apache.hc.core5.reactor.InternalDataChannel.onIOEvent(InternalDataChannel.java:131) at org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(InternalChannel.java:51) at org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(SingleCoreIOReactor.java:178) at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:127) at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:85) at org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44) at java.lang.Thread.run(Thread.java:750)
Method:
AsyncClient.java
CompletableFuture<SearchTracesResponse> searchTraces(SearchTracesRequest request);
Screenshot
Maybe
The HTTP request has been completed.
When constructing the 'teaResponse.deserializedBody,' using the method 'ParseUtil.readAsJSON()', and it will return a responseBody who's class is 'com.google.gson.internal.LinkedTreeMap'.
If you call 'put(null, null)', it will throw a 'NullPointerException' instead of an 'UnsupportedOperationException'.
In additional to 'UnmodifiableMap', there is also 'LinkedTreeMap'
dubbo传参BatchQueryDeviceDetailRequest需要序列化
<groupId>com.aliyun</groupId> <artifactId>iot20180120</artifactId>
TeaModel 需要序列化,否则不支持dubbo传参
com.aliyun.iot20180120.models.BatchQueryDeviceDetailRequest extends com.aliyun.tea.TeaModel
[bug] FC 3.0 respose body is close
TRMP拉流
我想要TRMP拉流 启动的时候参数怎么配置
How can I send async request with the SDK ?
Hi, we have a server written by Java spring-webflux, and need to do write some data into the Datahub. It seems that there is no support for asynchronous calls in this standard SDK. Is there any solution here, such as send request with okhttp callback. Or it will be support in the future.
Thanks.
[JPMS 支持] 目前SDK缺少稳定模块名称, 在特殊境况下无法构建 (gradle)
gradle 构建报错
gradle 7.6 + JPMS 环境
原因就是 gradle 违反了自动模块解析规则, 拒绝解析依赖文件名的自动模块. 虽是构建工具的问题, 但是建议SDK支持下JPMS
简单点的就在 JDK 清单文件里添加 Automatic-Module-Name
即可
完整支持可以考虑用 https://openjdk.org/jeps/238#Classpath-and-modulepath 添加 module-info.java
如果现在不支持, gradle 无法使用, maven 会依赖文件名解析模块名
将来如果指定的模块名称和文件名解析的不一致又会导致一波报错~
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.