boatmeme / microsoft-translator-java-api

Java wrapper for the Microsoft Translator API
http://code.google.com/p/microsoft-translator-java-api/
Apache License 2.0
86 stars 61 forks source link

Failed Hostname Verification Check #43

Closed nicolecarter closed 11 years ago

nicolecarter commented 11 years ago

Hello,

I am receiving the following error:

java.lang.Exception: [microsoft-translator-api] Error retrieving translation : [Security:090504]Certificate chain received from datamarket.accesscontrol.windows.net - 70.37.92.127 failed hostname verification check. Certificate contained accesscontrol.windows.net but check expected datamarket.accesscontrol.windows.net

I have the following Code in my programs:

String client = "myclientid"; String secret = "myclientsecret"; Translate.setClientId(client); Translate.setClientSecret(secret);

String transText = Translate.execute("hello", Language.ENGLISH, Language.FRENCH); System.out.println(transText);

I have the appropriate imports in the code. I have also set up the account appropriately: I have subscribed to the Microsoft Translator API on Azure Marketplace and have registered my application in the Azure DataMarket.

Anyone have an idea how to fix this?

Thanks, Nicole

nicolecarter commented 11 years ago

It turns out it was a problem with WebLogic. So it is all fixed!