From: Thomas C. <t.c...@ne...> - 2014-08-18 07:35:51
|
Thanks for the Andrea, I’ve changed the URI of the workspace namespace, is that enough to pull it back in synch or would I need to edit the catalog directly? It was confusing me because the problem was intermittent. I thought if something had corrupted in the data dir it would just not work at all. Cheers Tom From: and...@gm... [mailto:and...@gm...] On Behalf Of Andrea Aime Sent: 15 August 2014 15:21 To: Thomas Colley; geo...@li... Subject: Re: [Geoserver-users] Intermittent WFS Exception On Fri, Aug 15, 2014 at 3:46 PM, Thomas Colley <t.c...@ne...> wrote: 2014-08-15 14:38:22,881 ERROR [geoserver.ows] - java.lang.NullPointerException at org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.buildSchemaInternal(FeatureTypeSchemaBuilder.java:192) at org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.addApplicationTypes(FeatureTypeSchemaBuilder.java:487) Hmm... it would seem there is something wrong with the workspace/namespace configuration? The code balks here: String targetPrefix = (String) ns2featureTypeInfos.keySet().iterator().next(); String targetNamespace = catalog.getNamespaceByPrefix(targetPrefix).getURI(); <- here Which means that somehow it's not able to find the namespace associated to the specified workspace (the target prefix is the workspace name). The data dir that makes it fail has likely a workspace.xml/namespace.xml that have gone out of synch with each other. Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/NWWaa2 for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- |