GeoServer

WFS getCapabilities link fails when feature type has no keywords configured

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.3
  • Fix Version/s: 1.6.4
  • Component/s: WFS
  • Labels:
    None
  • Environment:
    Tomcat on Linux deployed from war including MySQL extension.
  • Number of attachments :
    2

Description

WFS getCapabilities link from GeoServer home page fails. See attached tomcat log file and xml response.

Provided it is working the error should be reproducable from here:
http://89.249.160.206/geoserver/wfs?service=WFS&request=GetCapabilities

Activity

Hide
Andrea Aime added a comment -

This is caused by some feature type missing the keywords element in the configuration, and the WFS 1.1 capabilities encoder being unable to cope with it:

Caused by: java.lang.NullPointerException
	at org.geoserver.wfs.CapabilitiesTransformer$WFS1_1$CapabilitiesTranslator1_1.keywords(CapabilitiesTransformer.java:1447)
	at org.geoserver.wfs.CapabilitiesTransformer$WFS1_1$CapabilitiesTranslator1_1.featureType(CapabilitiesTransformer.java:1229)
	at org.geoserver.wfs.CapabilitiesTransformer$WFS1_1$CapabilitiesTranslator1_1.featureTypeList(CapabilitiesTransformer.java:1124)
	at org.geoserver.wfs.CapabilitiesTransformer$WFS1_1$CapabilitiesTranslator1_1.encode(CapabilitiesTransformer.java:825)
	at org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:702)

The WFS 1.0 encoder on the other side is NPE safe.

Show
Andrea Aime added a comment - This is caused by some feature type missing the keywords element in the configuration, and the WFS 1.1 capabilities encoder being unable to cope with it:
Caused by: java.lang.NullPointerException
	at org.geoserver.wfs.CapabilitiesTransformer$WFS1_1$CapabilitiesTranslator1_1.keywords(CapabilitiesTransformer.java:1447)
	at org.geoserver.wfs.CapabilitiesTransformer$WFS1_1$CapabilitiesTranslator1_1.featureType(CapabilitiesTransformer.java:1229)
	at org.geoserver.wfs.CapabilitiesTransformer$WFS1_1$CapabilitiesTranslator1_1.featureTypeList(CapabilitiesTransformer.java:1124)
	at org.geoserver.wfs.CapabilitiesTransformer$WFS1_1$CapabilitiesTranslator1_1.encode(CapabilitiesTransformer.java:825)
	at org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:702)
The WFS 1.0 encoder on the other side is NPE safe.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: