Reading-eScience-Centre / ncwms

ncWMS - A Web Map Service for displaying environmental data over the web
Other
62 stars 30 forks source link

GetMap returns "HTTP Status 500 - java.lang.NullPointerException" #58

Closed Abouzeid closed 4 years ago

Abouzeid commented 4 years ago

When I disable either the Dynamic Service cache or the ncWMS Cache, the GetMap request returns a NullPointerException. I'd like to disable the Dynamic service cache as the datasets change regularly. Also, is there any recommended on the maximum number of datasets ncWMS could have.

Thanks a lot in advance. Any help will be appreciated.

image

guygriffiths commented 4 years ago

Thanks for pointing this out. I've just fixed it so it'll be in the next release. For the time being I would recommend setting the cache element timeout to a low number. It's specified in minutes and accepts floating points. 0 is "never expire", so it needs to be >0.

Abouzeid commented 4 years ago

Understood thanks @guygriffiths for your reply.