This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Rich, Yes, our handling of URLs where we don't know the service type depends on the order in which we try different services on that URL and how we handle exceptions on those attempts. Looks like our latest and greatest broke the OPeNDAP URL that ends in ".ncml" case. I've added this as a JIRA issue here: https://www.unidata.ucar.edu/jira/browse/TDS-295 I saw the same 400 response behavior in the ToolsUI Viewer but didn't get an Exception trace. What method are you using to open this URL in netCDF-Java? Thanks, Ethan Rich Signell wrote: > This DAP URL > http://geoport.whoi.edu/thredds/dodsC/usgs/data0/bathy/lidar/me/maine_geo.ncml > from datasetScanned NcML file works fine in NetCDF Java 4.2, but in > netcdf 4.3, gives: > > java.io.IOException: Server returned HTTP response code: 400 for URL: > http://geoport.whoi.edu/thredds/dodsC/usgs/data0/bathy/lidar/me/maine_geo.ncml > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown > Source) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown > Source) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown > Source) > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown > Source) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown > Source) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown > Source) > > It seems that > dods://geoport.whoi.edu/thredds/dodsC/usgs/data0/bathy/lidar/me/maine_geo.ncml > works in 4.3, so perhaps just reinstate the logic that allowed "http" > prefix to work via OPeNDAP with .ncml" suffix. Ticket Details =================== Ticket ID: KDX-923886 Department: Support THREDDS Priority: Normal Status: Closed