Closed rsignell-usgs closed 8 years ago
This is related to https://github.com/Reading-eScience-Centre/edal-java/issues/52 somehow. The error is occurring in the same place, but I'm unable to reproduce it - it works fine in ncWMS2.
I'll make that code a little more robust, but it'd be interesting to be able to track down the root cause of this.
@guygriffiths , I just discovered that stopping ncWMS2 and starting it again makes the problem go away. Does that give you any clues or do you have suggestions what to look for when the problem appears again (which seems likely)? As you say, this is likely the same exact problem I had with #52.
OK, I can reproduce this by setting the Title field to an empty string in the ncWMS2 admin interface. I think that a reload would fix this whilst it may be interpreted as a null upon submission, once saved in the XML it should be an empty string.
I've changed the code so that in that case, the ID is reused for the title of the dataset. Even if that's not the cause it will fail more gracefully and not cause the dataset loading to fail.
I'll try and get a bugfix release out this week.
When the problem occurs for me, I can't force load any dataset -- they all give that same error. And they all have titles. Or am I not understanding the problem you discovered?
When I said "reload" I meant restarting ncWMS2 as per your recommendation, rather than forcing a refresh on the dataset.
null titles or null IDs for the dataset are the only likely suspects for causing that NullPointerException - I don't know how they are getting through as null if you've set them, but I think that's the root cause.
when I try to load this FRMC DAP Data URL into ncWMS2: http://geoport-dev.whoi.edu/thredds/dodsC/coawst_4/use/fmrc/coawst_4_use_best.ncd I get:
I've tried this with two different versions of the TDS.
Can you confirm that this fails in ncWMS2?
If so, how can I figure out why it's failing?
It works okay with the built-in TDS ncWMS: http://geoport-dev.whoi.edu/thredds/godiva2/godiva2.html?server=http://geoport-dev.whoi.edu/thredds/wms/coawst_4/use/fmrc/coawst_4_use_best.ncd#