2016-05-25 9 views
0

BluemixでプロビジョニングしたWatsonサービスを呼び出すためのコードを試してみます。私は次のエラーを取得する:ここでJavaからBluemixのWatsonを呼び出すと、Trust Managerエラーが発生する

Unable to extract the trust manager on [email protected], sslSocketFactory is class com.ibm.jsse2.SSLSocketFactoryImpl

は私のコードです:

try { 
    DocumentConversion service = new DocumentConversion("2016-05-25"); 
    service.setUsernameAndPassword("*****", "*****"); 

    File doc = new File("C:/Sample1.pdf"); 
    Answers htmlToAnswers = service.convertDocumentToAnswer(doc).execute(); 
    System.out.println(htmlToAnswers); 
} catch(Exception e) { 
    System.out.println("Error! -> " + e.getMessage()); 
} 

思考? Bluemixから証明書をインポートする必要がありますか?ありがとう。

答えて

関連する問題