我正在尝试从 json 文件加载 Google 凭据。所以在那之前,我知道,我们必须得到默认的谷歌传输。参考自。但它总是给null
. 有人遇到这个问题吗?
这是我的片段:
try {
JSON_FACTORY = JacksonFactory.getDefaultInstance();
HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();
} catch (Throwable t) {
Utilities.writeToLogFile(Constants.LOG_ERROR_LEVEL, ".. EXCEPTION" + t.toString());
}
这总是以catch
部分结束。说如下
... EXCEPTIONjava.security.KeyStoreException: java.security.NoSuchAlgorithmException: KeyStore JKS implementation not found