Hi Glenn:
On 7/6/2011 5:19 AM, Comiskey, Glenn wrote:
Hi,
I am looking into the Feature Collection element of THREDDS v4.2.7 
(http://www.unidata.ucar.edu/projects/THREDDS/tech/tds4.2/tutorial/FeatureCollectionsTutorial.html). 
I have downloaded the file catalogFmrc.xml, edited as necessary, and 
implemented a <catalogRef> element in catalog.xml.
However, I am running into difficulty with <collection spec=""/> syntax.
Quickly discovered that I had to use slash (/) in the pathname even 
though running on a Windows server as the standard Windows path 
seperator backslash (\) resulted in an error message being logged in 
catalogInit.log:
readCatalog(): Exception on catalog=C:\Program Files\Apache Software 
Foundation\Tomcat 6.0 THREDDS\content\thredds\catalogFmrc.xml String 
index out of range: -1  log=null catalog
correct. if you always use a "/" anywhere a file specification is needed 
in the TDS (and Java!), it always works.
Still have a problem, though, defining wildcard filenames so that the 
files get grouped together. If I specify a single file name, i.e 
<collection 
spec="C:/data/datasets/forecasts/DNMI-Nsea.2011-07-06.grb"/>, 
everything works:
[2011-07-06T11:58:28.140+0100] INFO  
thredds.inventory.bdb.MetadataManager: MetadataManager: open bdb at 
root C:\Program Files\Apache Software Foundation\Tomcat 6.0 
THREDDS\content\thredds/cache/collection/ readOnly = false
[2011-07-06T11:58:28.153+0100] INFO  
thredds.inventory.bdb.MetadataManager: NMIFMRC #files deleted = 0
[2011-07-06T11:58:28.381+0100] INFO  ucar.nc2.ft.fmrc.Fmrc: 
C:/data/datasets/forecasts/DNMI-Nsea.2011-07-06.grb: make new Dataset, 
new proto = false
[2011-07-06T11:58:28.383+0100] INFO  ucar.nc2.ft.fmrc.Fmrc: 
C:/data/datasets/forecasts/DNMI-Nsea.2011-07-06.grb: make new Dataset, 
new proto = false
However, if I try using a wildcard substitute, i.e. <collection 
spec="C:/data/datasets/forecasts/DNMI-Nsea.2011-07-??.grb"/> or 
<collection 
spec="C:/data/datasets/forecasts/DNMI-Nsea.2011-07-*.grb"/>,   it fails:
these are regular expressions, not wildcard syntax. I think you would 
need for those 2 examples:
C:/data/datasets/forecasts/DNMI-Nsea.2011-07-..\.grb$
C:/data/datasets/forecasts/DNMI-Nsea.2011-07-.*grb$
The $ "end anchor" is important to exclude index files that sometimes 
are in the same directory.
featureCollectionScan.log:
[2011-07-06T12:12:31.458+0100] INFO  
thredds.inventory.bdb.MetadataManager: MetadataManager: open bdb at 
root C:\Program Files\Apache Software Foundation\Tomcat 6.0 
THREDDS\content\thredds/cache/collection/ readOnly = false
[2011-07-06T12:12:31.471+0100] INFO  
thredds.inventory.bdb.MetadataManager: NMIFMRC #files deleted = 1
[2011-07-06T12:12:31.476+0100] ERROR ucar.nc2.ft.fmrc.FmrcDataset: 
Fmrc collection is empty =fmrc:NMIFMRC
[2011-07-06T12:12:31.477+0100] ERROR ucar.nc2.ft.fmrc.Fmrc: 
C:/data/datasets/forecasts/DNMI-Nsea.2011-07-??.grb: makeFmrcInv failed
[2011-07-06T12:12:31.494+0100] ERROR ucar.nc2.ft.fmrc.FmrcDataset: 
Fmrc collection is empty =fmrc:NMIFMRC
[2011-07-06T12:12:31.494+0100] ERROR ucar.nc2.ft.fmrc.Fmrc: 
C:/data/datasets/forecasts/DNMI-Nsea.2011-07-??.grb: makeFmrcInv failed
[2011-07-06T12:13:27.309+0100] INFO  
thredds.inventory.bdb.MetadataManager: MetadataManager: open bdb at 
root C:\Program Files\Apache Software Foundation\Tomcat 6.0 
THREDDS\content\thredds/cache/collection/ readOnly = false
[2011-07-06T12:13:27.322+0100] INFO  
thredds.inventory.bdb.MetadataManager: NMIFMRC #files deleted = 0
[2011-07-06T12:13:27.328+0100] ERROR ucar.nc2.ft.fmrc.FmrcDataset: 
Fmrc collection is empty =fmrc:NMIFMRC
[2011-07-06T12:13:27.328+0100] ERROR ucar.nc2.ft.fmrc.Fmrc: 
C:/data/datasets/forecasts/DNMI-Nsea.2011-07-*.grb: makeFmrcInv failed
[2011-07-06T12:13:27.328+0100] ERROR ucar.nc2.ft.fmrc.FmrcDataset: 
Fmrc collection is empty =fmrc:NMIFMRC
[2011-07-06T12:13:27.329+0100] ERROR ucar.nc2.ft.fmrc.Fmrc: 
C:/data/datasets/forecasts/DNMI-Nsea.2011-07-*.grb: makeFmrcInv failed
threddsServlet.log:
2011-07-06T12:13:27.348 +0100 [      8232][      11] ERROR - 
thredds.server.catalogservice.LocalCatalogServiceController - 
handleRequestInternal(): Problem handling request.
java.lang.NullPointerException
 at ucar.nc2.ft.fmrc.FmrcDataset.getNetcdfDataset2D(FmrcDataset.java:166)
 at ucar.nc2.ft.fmrc.Fmrc.getDataset2D(Fmrc.java:183)
Does this feature of THREDDS not work on Windows servers?
Kind regards,
Glenn Comiskey
Data System Administrator
_______________________________________________
thredds mailing list
thredds@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/