-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Hi,
i am a FEWS user. My currently installed Deltares Open Archive bundles THREDDS version 5.6. I cannot upgrade to 5.8 immediately because of it.
In an effort to provide data to third-parties, i have identified TDS WMS 1.3.0 as a suitable service.
Unfortunately, when i try to test WMS GetMap service using default wmsConfig.xml (generated by TDS itself), an error is thrown:
java.lang.NullPointerException: Cannot read field "allowFeatureInfo" because "newSettings" is null
thredds.server.wms.config.LayerSettings.replaceNullValues(LayerSettings.java:215)
thredds.server.wms.config.WmsDetailedConfig.getSettings(WmsDetailedConfig.java:200)
thredds.server.wms.TdsEnhancedVariableMetadata.(TdsEnhancedVariableMetadata.java:45)
thredds.server.wms.ThreddsWmsCatalogue.getLayerMetadata(ThreddsWmsCatalogue.java:423)
uk.ac.rdg.resc.edal.wms.util.WmsUtils.getLayerMetadata(WmsUtils.java:285)
uk.ac.rdg.resc.edal.wms.GetMapStyleParams.(GetMapStyleParams.java:182)
uk.ac.rdg.resc.edal.wms.GetMapParameters.(GetMapParameters.java:97)
uk.ac.rdg.resc.edal.wms.WmsServlet.getMap(WmsServlet.java:410)
[...]
I have tried with many other NetCDF, all CF-1.6 compliant, with no success. All others TDS services are working fine. WMS GetCapabilities works as well.
I have read some threads where it was pointed that missing default configuration parameters could be the cause of it, but as said, wmsConfig.xml was generated by TDS itself on first initialization.
Can you help me?
Thanks,
Eugenio
UPDATE: i have tried using manually installing upgrading to TDS 5.8, same error
TDS is provided using:
- java-17-openjdk-17.0.16.0.8-2.el8.x86_64
- Apache Tomcat/10.1.48
- RHEL 8
This is my current wmsConfig.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wmsConfig SYSTEM "https://schemas.unidata.ucar.edu/thredds/dtd/ncwms/wmsConfig_2_0.dtd">
<!--
Detailed configuration of the WMS service. This config file can be used to
set default styling parameters for each dataset/variable, and to enable or disable
the GetFeatureInfo operation.
-->
<wmsConfig>
<global>
<!-- These settings apply to all datasets unless overridden below -->
<defaults>
<!-- The global defaults. All elements are mandatory -->
<allowFeatureInfo>true</allowFeatureInfo>
<defaultColorScaleRange>-50 50</defaultColorScaleRange>
<defaultAboveMaxColor>#000000</defaultAboveMaxColor>
<defaultBelowMinColor>#000000</defaultBelowMinColor>
<defaultNoDataColor>extend</defaultNoDataColor>
<defaultOpacity>100</defaultOpacity>
<defaultPaletteName>psu-viridis</defaultPaletteName>
<defaultNumColorBands>20</defaultNumColorBands>
<logScaling>false</logScaling>
<!--Deprecated: intervalTime (does not work, to be removed in v6)-->
<intervalTime>false</intervalTime>
</defaults>
<standardNames>
<!-- Use this section to set defaults per standard name -->
<!-- Units must come from the UDUNITS vocabulary -->
<standardName name="sea_water_potential_temperature" units="K">
<defaultColorScaleRange>268 308</defaultColorScaleRange>
</standardName>
<standardName name="sea_water_temperature" units="K">
<defaultColorScaleRange>268 308</defaultColorScaleRange>
</standardName>
<standardName name="mass_concentration_of_chlorophyll_in_sea_water" units="kg m-3">
<logScaling>true</logScaling>
</standardName>
</standardNames>
</global>
<overrides>
<datasetPath pathSpec="testAll/20040503*_eta_211.nc">
<!-- Will apply to all paths that match the path spec above -->
<pathDefaults>
<!-- These will apply to all variables in this path unless overridden below -->
<allowFeatureInfo>false</allowFeatureInfo>
<defaultPaletteName>x-Occam</defaultPaletteName>
</pathDefaults>
<variables>
<!-- Configure variables individually according to their internal ID.
This is the most specific setting and will override any others -->
<variable id="Z_sfc">
<defaultColorScaleRange>0 2920</defaultColorScaleRange>
<defaultAboveMaxColor>extend</defaultAboveMaxColor>
<defaultBelowMinColor>#0000ff</defaultBelowMinColor>
<defaultNoDataColor>transparent</defaultNoDataColor>
<defaultOpacity>95</defaultOpacity>
</variable>
</variables>
</datasetPath>
<datasetPath pathSpec="testAll/20040504*_eta_211.nc">
<!-- Will apply to all paths that match the path spec above -->
<pathDefaults>
<!-- These will apply to all variables in this path unless overridden below -->
<allowFeatureInfo>true</allowFeatureInfo>
<defaultPaletteName>seq-Reds</defaultPaletteName>
</pathDefaults>
<variables>
<!-- Configure variables individually according to their internal ID.
This is the most specific setting and will override any others -->
<variable id="Z_sfc">
<defaultColorScaleRange>0 3170</defaultColorScaleRange>
</variable>
</variables>
</datasetPath>
</overrides>
</wmsConfig>