use HTTPClient to access
https://maps.googleapis.com/m.
error report:
28, 2018 6:22:31 org.apache.http.impl.execchain.RetryExec execute
: I/O exception (java.net.SocketException) caught when processing request to {s}->https://maps.googleapis.com:443: Connection reset
28, 2018 6:22:31 org.apache.http.impl.execchain.RetryExec execute
: Retrying request to {s}->https://maps.googleapis.com:443
28, 2018 6:22:31 org.apache.http.impl.execchain.RetryExec execute
: I/O exception (java.net.SocketException) caught when processing request to {s}->https://maps.googleapis.com:443: Connection reset
28, 2018 6:22:31 org.apache.http.impl.execchain.RetryExec execute
: Retrying request to {s}->https://maps.googleapis.com:443
28, 2018 6:22:31 org.apache.http.impl.execchain.RetryExec execute
: I/O exception (java.net.SocketException) caught when processing request to {s}->https://maps.googleapis.com:443: Connection reset
28, 2018 6:22:31 org.apache.http.impl.execchain.RetryExec execute
: Retrying request to {s}->https://maps.googleapis.com:443
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.read(InputRecord.java:503)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
but access using POSTMAN:
{
"results": [
{
"address_components": [
{
"long_name": "",
"short_name": "",
"types": [
"route"
]
},
{
"long_name": "",
"short_name": "",
"types": [
"neighborhood",
"political"
]
},
{
"long_name": "",
"short_name": "",
"types": [
"political",
"sublocality",
"sublocality_level_1"
]
},
{
"long_name": "",
"short_name": "",
"types": [
"administrative_area_level_1",
"political"
]
},
{
"long_name": "",
"short_name": "CN",
"types": [
"country",
"political"
]
},
{
"long_name": "200000",
"short_name": "200000",
"types": [
"postal_code"
]
}
],
"formatted_address": " : 200000",
"geometry": {
"location": {
"lat": 31.232026,
"lng": 121.502905
},
"location_type": "GEOMETRIC_CENTER",
"viewport": {
"northeast": {
"lat": 31.2333749802915,
"lng": 121.5042539802915
},
"southwest": {
"lat": 31.2306770197085,
"lng": 121.5015560197085
}
}
},
"partial_match": true,
"place_id": "ChIJrXof1e9wsjURkIdeYvnA9eQ",
"types": [
"establishment",
"point_of_interest"
]
}
],
"status": "OK"
}
What is the reason for ?
Open an address that can be accessed by VPN, browsers