aliyun / aliyun/alibabacloud-java-async-sdk

发送短信报错

Open
#8 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
34
Forks
29
PR merge metrics
No merged PRs in 30d

Description

`// Asynchronously get the return value of the API request

CompletableFuture response = client.sendSms(sendSmsRequest);

// Synchronously get the return value of the API request

SendSmsResponse resp = response.get();`

执行到resonse.get()时,报错:
java.lang.NoClassDefFoundError: org/apache/hc/client5/http/async/methods/SimpleRequestBuilder

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the asynchronous SMS example and the call to response.get(), then inspect the runtime dependencies for org/apache/hc/client5/http/async/methods/SimpleRequestBuilder. Reproduce the NoClassDefFoundError using the shown request flow. Done means the example reaches a SendSmsResponse without this missing-class error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.