我正在尝试与 API 服务器建立安全连接,但我收到SSLHandshakeException了客户端问候。-Djavax.net.debug=ssl输出是:
Ignoring unavailable cipher suite: TLS_DHE_DSS_WITH_AES_256_GCM_SHA384
Ignoring unavailable cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA
Ignoring unavailable cipher suite: TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
Ignoring unavailable cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
Ignoring unavailable cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA256
Ignoring unavailable cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA
Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384
Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
Ignoring unavailable cipher suite: TLS_RSA_WITH_AES_256_GCM_SHA384
Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
Ignoring unavailable cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384
Ignoring unavailable cipher …Run Code Online (Sandbox Code Playgroud) 我正在使用带有<generatorName>java</generatorName>,的生成器<library>native</library>。
问题是生成的块使用 Jackson 进行反序列化,并尝试反序列化主体的 InputStream,即使 Content-Length 为零,这也会产生错误com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
不幸的是,当读取这些接收到的空输入流时,不可能将 Jackson 的 ObjectMapper 配置为返回 null。
是否有可能生成一个能够毫无例外地处理这些带有空主体的情况的客户端?