Re: THREDDS Catalog Generator Error

Ken Keiser wrote:

Looks like you are trying to read a config file on your local filesystem. I believe the generator is looking to access the config file through a URL path - meaning that you need to have the file accessible up through a web server. Ken Keiser

Information Technology and Systems Center
University of Alabama in Huntsville
Technology Hall
Huntsville, AL 35899
Email: keiser@xxxxxxxxxxxx Web:
Phone: 256-824-6825  Fax: 256-824-5149

    -----Original Message-----
    *From:* Mark A Ohrenschall [mailto:Mark.A.Ohrenschall@xxxxxxxx]
    *Sent:* Monday, March 10, 2003 6:33 PM
    *To:* thredds@xxxxxxxxxxxxxxxx
    *Cc:* Ken Tanaka
    *Subject:* THREDDS Catalog Generator Error


    I'm trying to run a simple test of the THREDDS catalog generator,
    and this is what's happening:

[mao@panther THREDDS]$ /usr/java/j2sdk1.4.1_02/bin/java -classpath 
thredds.cataloggen.CatalogGen mytest.xml
Catalog NOT read successfully (mytest.xml):
Message=----Catalog Validation version 0.6.02
** InvCatalogFactory.readXML (1) MalformedURLException on URL <mytest.xml> no 
protocol: mytest.xml

Exception in thread "main" java.lang.NullPointerException
       at thredds.cataloggen.CatalogGen.<init>(
       at thredds.cataloggen.CatalogGen.main(
[mao@panther THREDDS]$ cat mytest.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.3 U ( by Mark Ohrenschall (US 
Dept of Commerce/NOAA/NESDIS) -->
<catalog name="my test" version="0.6">
 <dataset name="my collection" dataType="Grid">
   <metadata metadataType="CatalogGenConfig">
     <catalogGenConfig type="Catalog">
       <datasetSource name="ds source" type="Local" structure="DirTree" 
         <resultService name="myserver" serviceType="DODS" 
base=""; accessPointHeader="/data/www/html/"/>
         <datasetNamer name="My Test" type="RegExp" addLevel="false" 
matchPattern="([a-z]+)\.nc$" substitutePattern="My Test $1"/>
[mao@panther THREDDS]$

    Any idea why I'm getting the MalformedURLException?



i think you can use file:///path

best to use absolute path if you can

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