GML output won't work on freshly configured workspaces
------------------------------------------------------
Key: GEOS-4751
URL: https://jira.codehaus.org/browse/GEOS-4751
Project: GeoServer
Issue Type: Bug
Components: Configuration, WFS
Affects Versions: 2.1.1
Reporter: Andrea Aime
Assignee: Andrea Aime
Fix For: 2.1.2
Quickest way to reproduce:
- configure a new workspace
- modify an existing store to use the newly configured workspace
- preview GML of a vector layer in the store, you should get this:
{panel}
05 set 09:37:02 ERROR [geoserver.ows] -
java.lang.NullPointerException
at org.geoserver.wfs.xml.GML2OutputFormat.prepare(GML2OutputFormat.java:149)
at org.geoserver.wfs.xml.GML2OutputFormat.write(GML2OutputFormat.java:294)
at org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:141)
at org.geoserver.ows.Dispatcher.response(Dispatcher.java:750)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:238)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
{panel}
The user reporting this said it also happens by adding a new store in the new workspace, this path should be checked as well
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira