[netcdf-java] Reading web netCDF data: Connection timed out when looking for https resource (but it timed out looking for http resource)

  • To: netcdf-java@xxxxxxxxxxxxxxxx
  • Subject: [netcdf-java] Reading web netCDF data: Connection timed out when looking for https resource (but it timed out looking for http resource)
  • From: Jesse Bickel - NOAA Affiliate <jesse.bickel@xxxxxxxx>
  • Date: Thu, 24 Oct 2019 17:48:30 -0500
When using cdm-core-5.2.0, when attempting to access a netCDF resource on a 
server that serves https on port 443 but does not serve http on port 80, 
attempting to access the https resource fails but with a message indicating it 
tried port 80.

See redacted stack trace below.

I wonder if it is related to the diff at 
https://github.com/Unidata/netcdf-java/compare/v5.1.0...v5.2.0#diff-89b73930910f1f42a6af87d6d282a372
 but this is speculation.

Jesse

--
Contractor, ERT, Inc.
Federal Affiliation: NWC/OWP/NOAA/DOC

Failed to open netCDF file https://fqdn-of-server/path/to/netcdf_resource.nc
...
Caused by: ucar.httpservices.HTTPException: 
org.apache.http.conn.HttpHostConnectException: Connect to fqdn-of-server:80 
[fqdn-of-server/x.x.x.x] failed: Connection timed out: connect
        at ucar.httpservices.HTTPMethod.executeRaw(HTTPMethod.java:373)
        at ucar.httpservices.HTTPMethod.execute(HTTPMethod.java:314)
        at 
ucar.unidata.io.http.HTTPRandomAccessFile.doConnect(HTTPRandomAccessFile.java:136)
        at 
ucar.unidata.io.http.HTTPRandomAccessFile.<init>(HTTPRandomAccessFile.java:60)
        at 
ucar.unidata.io.http.HTTPRandomAccessFile.<init>(HTTPRandomAccessFile.java:40)
        at ucar.nc2.NetcdfFile.getRaf(NetcdfFile.java:448)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:338)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:305)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:290)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:278)
        at wres.io.reading.nwm.NWMTimeSeries.openFile(NWMTimeSeries.java:194)
        ... 52 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 
fqdn-of-server:80 [fqdn-of-server/x.x.x.x] failed: Connection timed out: connect
        at 
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156)
        at 
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374)
        at 
org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
        at 
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
        at 
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
        at 
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
        at 
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
        at 
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
        at ucar.httpservices.HTTPMethod.executeRaw(HTTPMethod.java:366)
        ... 62 more
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
        at 
java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)
        at 
java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
        at 
java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
        at 
java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
        at java.base/java.net.Socket.connect(Socket.java:591)
        at 
org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
        at 
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
        ... 72 more


  • 2019 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: