Hello there
I found a problem that may be related to issue GEOS-4025 ("Layer preview cause Error")
Good thing is, this one is easy to reproduce on GeoServer 2.0.2. It seems to be related to GeoServer not being able to cope with missing files in the data dir.
The steps are the following (obs: regarding environment, I'm on Windows XP)
1. Install GeoServer 2.0.2 from scratch (I installed it stand-alone)
2. OK, everything is working right? Now stop GeoServer, go to its data dir and delete everything in there.
3. Start GeoServer. It will create some files in the data dir and work properly (Layer preview page opens OK)
4. Stop GeoServer and start again. Everything seems to be in place, but when you go to the layer preview page, you get an "Ooops" error (see attachment)
Codewise, when debugging the 2.0.2 code, the problem seemed to be caused by org.geoserver.wms.WMS getting a null value when calling serviceInfo.getMetadata() within the getSvgRenderer() method.
That's it. Andrea, do you want me to place this as a comment to GEOS-4025, or should I open a new JIRA here?
Cheers
Milton
PS: I haven't tested it using the SNAPSHOT code or nightly build..
--
Milton Jonathan
Grupo GIS e Meio Ambiente
Tecgraf/PUC-Rio
Tel: +55-21-3527-2502
(attachments)
GeoServer_Oops.pdf (134 KB)