这个问题可能是本地测试OK,移植到服务器上去的时候报这个错。
完整报错信息:com.pingplusplus.exception.APIConnectionException: IOException during API request to Pingpp (https://api.pingxx.com): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Please check your internet connection and try again. If this problem persists,you should check Pingpp's service status at https://pingxx.com, or let us know at support@pingxx.com.
这个问题可能跟你的 dns 解析 和 dns 缓存以及 jdk 的环境可能有关系,和 sdk 本质上没有关系;建议用户先切换下网络环境试下,再把jdk更新到最新(1.7以上),unable to find valid certification path这个可能是jdk的ca证书不对。