javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

3,735 views
Skip to first unread message

edduenas...@gmail.com

unread,
Dec 17, 2014, 2:15:18 AM12/17/14
to adwor...@googlegroups.com

Hi,
We tried to run the code provided in the following link


But we are getting the following error

Exception in thread "main" AxisFault
 faultSubcode: 
 faultString: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?



We have set the https proxy and port in our code explicitly 

System.setProperty("https.proxyHost", "***.**.**");
System.setProperty("https.proxyPort","80");

Josh Radcliff (AdWords API Team)

unread,
Dec 17, 2014, 12:06:06 PM12/17/14
to adwor...@googlegroups.com
Hi,

Those system properties are read the first time certain core classes are loaded by the class loader, so if you are calling System.setProperty(...) after that happens, those settings won't have any effect.

To see if that's the problem, could you try setting the properties on the command line by passing JVM arguments, as outlined here?

Thanks,
Josh, AdWords API Team

edduenas...@gmail.com

unread,
Dec 24, 2014, 1:56:23 AM12/24/14
to adwor...@googlegroups.com
Hi,
We tried setting the properties on the command line by passing JVM arguments, but still we are getting the same ssl exception as below.
Exception in thread "main" AxisFault
 faultSubcode: 
 faultString: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

Josh Radcliff (AdWords API Team)

unread,
Dec 30, 2014, 9:24:18 AM12/30/14
to adwor...@googlegroups.com
Hi,

Are you able to make connections to other SSL URLs via your proxy? Looking around stackoverflow, etc., this sounds like it may be caused by an issue with your proxy server.

Cheers,
Josh, AdWords API Team

edduenas...@gmail.com

unread,
Dec 31, 2014, 2:26:14 PM12/31/14
to adwor...@googlegroups.com
Hi Josh,

we earlier looked at stackoverflow, we are facing this issue when we use axis implementation of google adwords webservice, instead when we use jaxws implementation it is working fine. I am not sure this is the issue with axis implementation (some where I read that axis overwrites proxy configurations internally)

Please let us know if it is suggested way to use jaxws google-lib (adwords-appengine) files instead of axis api files(adwords-axis)

Thanks.

Jason Stedman

unread,
Jan 1, 2015, 10:39:19 AM1/1/15
to adwor...@googlegroups.com
Edduenas,

Try using the http.proxyHost and http.proxyPort instead of https.* ones.

Judging by the port in your posted settings it sounds like an insecure proxy which would explain this error message perfectly.

Hope this helps!

Reply all
Reply to author
Forward
0 new messages