I get this on Lucee 4.5.1.022 on Tomcat 7.0.52, Java 1.8.0_45
Lucee 4.5.1.022 Error (javax.net.ssl.SSLPeerUnverifiedException)MessageHost
name ‘maps.googleapis.com’ does not match the certificate subject provided
by the peer (CN=.googleapis.com, O=Google Inc, L=Mountain View,
ST=California, C=US)Causejavax.net.ssl.SSLPeerUnverifiedExceptionurl
https://maps.googleapis.com/maps/api/geocode/json?address=64%20Warrigal%20Road%2C%20Surrey%20Hills%20VICJava
StacktraceHost name ‘maps.googleapis.com’ does not match the certificate
subject provided by the peer (CN=.googleapis.com, O=Google Inc, L=Mountain
View, ST=California, C=US)
at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:465):465
at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:395):395
at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353):353
at
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134):134
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353):353
at
org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380):380
at
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236):236
at
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184):184
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88):88
at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110):110
at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184):184
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82):82
at lucee.runtime.tag.Executor41.execute(Http41.java:1450):1450
at lucee.runtime.tag.Executor41.run(Http41.java:1438):1438
Timestamp7/19/15 8:55:38 PM CEST
This is with the Lucee installed
from http://bitbucket.org/lucee/lucee/downloads/lucee-4.5.1.022-jars.zip.
The http://bitbucket.org/lucee/lucee/downloads/lucee-4.5.1.022-jars.zip
includes Apache HttpClient 4.4.1. The latest version is 4.5.
When I updated to 4.5 the problem was gone.
I downloaded 4.5.tar.gz, extracted and renamed from
httpcomponents-client-4.5/lib
httpclient-4.5.jar → apache-commons-httpclient.jar
httpcore-4.4.1.jar (not updated)
httpmime-4.5.jar → apache-commons-httpmime.jar
Question is, why is 4.5.1.022 shipped with 4.4.1 and not 4.5?On Wednesday, July 8, 2015 at 12:13:44 PM UTC+2, Adam Chapman wrote:
Hi All,
Running this code on Tomcat 7, Java 1.7.0_76 works fine.
Running this code on Tomcat 8, Java 8 throws error below.
Code:
Address = “64 Warrigal Road, Surrey Hills VIC”
geocodeUrl = "
https://maps.googleapis.com/maps/api/geocode/json?address=#URLEncodedFormat(Address)#
"
cfhttp(url=“#geocodeUrl#” method=“GET” timeout=“3” throwonerror=“No”) {}
WriteDump(cfhttp);
abort;
Exception
org.apache.http.impl.conn.CPool.setValidateAfterInactivity(I)V
java.lang.NoSuchMethodError
Sorry for the vauge error, that’s the only info I could get right now… I
will try to grab a stack trace ASAP.
Can anyone else confirm this?
Regards,
Adam