[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #MGR-861889]: use IDV as a viewer from thredds, but netcdf file is password protected by thredds



Emanuele,

I can reproduce the error you see. You need to select the correct "Data Source
Type" before clicking the "Add Source" button. Please select "Grid files
(netCDF/GRIB/OPeNDAP/GEMPAK)". You will then be prompted for your authentication
credentials.

Best,

Unidata IDV Support

> Full Name: emanuele lombardi
> Email Address: address@hidden
> Organization: ENEA
> Package Version: 5.2 build date:2015-08-26 18:19 UTC
> Operating System: Windows 10
> Hardware: Java: home: C:\Program Files\Java\jre1.8.0_65 version: 1.8.0_65 
> j3d:1.6.0-pre10-daily-experimental daily
> Description of problem: There was an error loading the data:
> Error creating data source:opendap.grid with: 
> https://www.medcordex.eu:8290/medcordex/dodsC/MEDCORDEX/test.nc
> Grid data source failed making data set: 
> dods://www.medcordex.eu:8290/medcordex/dodsC/MEDCORDEX/test.nc
> Connection reset
> 
> 
> My thredds server at
> 
> https://www.medcordex.eu:8290/medcordex
> 
> require a password to access my netcdf file. When accessing the file
> within thredds, credentials are requested and if they are OK, the file
> is given to user.  But using IDV as a thredds viewer (via webstart)
> no credential are requested to he user, thus the above error.
> 
> It would be nice if IDV could ask for credentials.
> 
> Thanks for IDV,
> 
> kind regards,
> Emanuele Lombardi
> 
> ******************
> Stack trace:
> java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(Unknown Source)
> at java.net.SocketInputStream.read(Unknown Source)
> at 
> org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160)
> at 
> org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84)
> at 
> org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:273)
> at 
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
> at 
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
> at 
> org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260)
> at 
> org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283)
> at 
> org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:251)
> at 
> org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:197)
> at 
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271)
> at 
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
> at 
> org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:685)
> at 
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:487)
> at 
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
> at 
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
> at ucar.httpservices.HTTPSession.execute(HTTPSession.java:910)
> at ucar.httpservices.HTTPMethod.execute(HTTPMethod.java:306)
> at opendap.dap.DConnect2.openConnection(DConnect2.java:267)
> at opendap.dap.DConnect2.getDDS(DConnect2.java:589)
> at opendap.dap.DConnect2.getDDS(DConnect2.java:560)
> at ucar.nc2.dods.DODSNetcdfFile.<init>(DODSNetcdfFile.java:241)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at 
> ucar.nc2.dataset.NetcdfDataset.openDodsByReflection(NetcdfDataset.java:1040)
> at ucar.nc2.dataset.NetcdfDataset.acquireDODS(NetcdfDataset.java:990)
> at ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:711)
> at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:427)
> at ucar.nc2.dataset.NetcdfDataset.acquireDataset(NetcdfDataset.java:528)
> at ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:117)
> at ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:103)
> at 
> ucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource.java:1182)
> at 
> ucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.java:1204)
> at 
> ucar.unidata.data.grid.GeoGridDataSource.initAfterCreation(GeoGridDataSource.java:507)
> at ucar.unidata.data.DataManager.createDataSource(DataManager.java:1571)
> at ucar.unidata.data.DataManager.createDataSource(DataManager.java:1335)
> at ucar.unidata.data.DataManager.createDataSource(DataManager.java:1318)
> at 
> ucar.unidata.idv.IntegratedDataViewer.loadDataFiles(IntegratedDataViewer.java:555)
> at 
> ucar.unidata.idv.IntegratedDataViewer.initInner(IntegratedDataViewer.java:621)
> at ucar.unidata.idv.IntegratedDataViewer$3.run(IntegratedDataViewer.java:531)
> at ucar.unidata.util.Misc$3.run(Misc.java:1243)
> 
> 
> 


Ticket Details
===================
Ticket ID: MGR-861889
Department: Support IDV
Priority: Normal
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.