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

RE: FW: Java Error




As an example, I just hit this file on thredds motherlode and I get the
same response:

HTTPServer:http://motherlode.ucar.edu:8080/thredds/fileServer/fmrc/NCEP/
NAM/Alaska_11km/files/NAM_Alaska_11km_20090204_1200.grib2

java.io.IOException: Server does not support byte Ranges
        at
ucar.unidata.io.http.HTTPRandomAccessFile.<init>(HTTPRandomAccessFile.ja
va:123)
        at
ucar.unidata.io.http.HTTPRandomAccessFile.<init>(HTTPRandomAccessFile.ja
va:94)
        at ucar.nc2.NetcdfFile.getRaf(NetcdfFile.java:441)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:347)
        at
ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:622)
        at
ucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:500)
        at ucar.nc2.ui.ToolsUI$NCdumpPanel.run(ToolsUI.java:1214)
        at ucar.nc2.ui.ToolsUI$GetDataTask.run(ToolsUI.java:3098)
        at java.lang.Thread.run(Unknown Source)




-----Original Message-----
From: John Caron [mailto:address@hidden] 
Sent: Wednesday, February 04, 2009 12:21 PM
To: David Stuebe
Cc: Jennifer Read; Guy De Wardener; address@hidden
Subject: Re: FW: Java Error

see

http://www.unidata.ucar.edu/software/netcdf-java/reference/HTTPservice.h
tml

David Stuebe wrote:
>
> Hi John
>
> CC Jenn, Guy
>
> I have run into a problem accessing files on HTTP servers using netcdf

> Java. I get this error: Server does not support byte Ranges
>
> The strange part is that the error only occurs when accessing the 
> files from ASA. Specifically when I take my laptop home and make the 
> same NETCDF JAVA request from my house it works fine. Similarly local 
> files, or files hosted inside the ASA network are fine. There is 
> something funny about the fire wall or our service provider but we 
> can't seem to figure out what. Have you run into this before?
>
> Let me know if you have any ideas
>
> Thanks
>
> David Stuebe
>
> *From:* Jennifer Read
> *Sent:* Tuesday, February 03, 2009 10:33 AM
> *To:* Jennifer Read; Guy De Wardener
> *Cc:* David Stuebe
> *Subject:* RE: Java Error
>
> We tested with this address: 
>
http://science.whoi.edu/users/kestons/redtide_2005_hindcast/OUT/avg_gom_
0014.nc 
> using java NetCDF (One ring to bind them).
>
> *From:* Jennifer Read
> *Sent:* Tuesday, February 03, 2009 10:22 AM
> *To:* Guy De Wardener
> *Cc:* David Stuebe
> *Subject:* Java Error
>
> So, Dave is getting this error:
>
> java.io.IOException: Server does not support byte Ranges
>
> at 
>
ucar.unidata.io.http.HTTPRandomAccessFile.<init>(HTTPRandomAccessFile.ja
va:123)
>
> at 
>
ucar.unidata.io.http.HTTPRandomAccessFile.<init>(HTTPRandomAccessFile.ja
va:94)
>
> at ucar.nc2.NetcdfFile.getRaf(NetcdfFile.java:441)
>
> at ucar.nc2.NetcdfFile.open(NetcdfFile.java:347)
>
> at 
>
ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:622)
>
> at ucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:500)
>
> at ucar.nc2.ui.ToolsUI$NCdumpPanel.run(ToolsUI.java:1214)
>
> at ucar.nc2.ui.ToolsUI$GetDataTask.run(ToolsUI.java:3098)
>
> at java.lang.Thread.run(Unknown Source)
>
> When he tries to connect from inside ASA to another source. It works 
> outside (at home) and it works inside if he's connecting inside. I'm 
> having him see what happens if he uses wireless and tries to connect. 
> It isn't a firewall issue- there have been no firewall changes in the 
> past long time.
>