[netcdf-java] Another(?) catalog problem in netcdf-java

With both netcdf-java v5.5.2 and v5.5.3, the CatalogBuilder no longer seems
to work with a remoteCatalogService catalog. This code worked before.

Specifically, trying to get a catalog from a remoteCatalogService catalog
returns a catalog that is null:
thredds.client.catalog.Catalog catalog = (new
thredds.client.catalog.builder.CatalogBuilder()).buildFromURI(new
java.net.URI(
    "
https://oceanwatch.pfeg.noaa.gov/thredds/remoteCatalogService?catalog=https://thredds1.pfeg.noaa.gov/thredds/catalog/Satellite/MPOC/catalog.xml";));

System.out.println(catalog == null);

That prints "true".

A null is not a useful response. If the URL is invalid for this method,
then there should be an exception saying so, or more specifically solving
the problem.

I will solve the problem in my code by using the remote URL directly. Since
this code used to work, it seems like the best solution is for you to have
the CatalogBuilder switch to using the remote catalog's url.

Can you please investigate and (if true) fix these problems?

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