[Geoserver-users] problem displaying geoserver WFS in udig

Hi
i have a problem displaying geoserver WFS in udig, the error message is:

net.refractions.udig.project.render.RenderException: Problem rendering:
Exception rendering layer DefaultMapLayer[ Test, VISIBLE,
style=StyleImpl<NO_PARENT>[ name=Default Styler],
data=net.refractions.udig.project.internal.impl.UDIGFeatureStore@anonymised.com,
query=Query: [Request All Features]
   feature type: null
   filter: Filter.NONE
   [properties: ALL ]]
        at
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(Unknown
Source)
        at
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(Unknown
Source)
        at
net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(Unknown
Source)
        at
net.refractions.udig.project.internal.render.impl.RenderJob.run(Unknown
Source)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.Exception: Exception rendering layer DefaultMapLayer[
Test, VISIBLE, style=StyleImpl<NO_PARENT>[ name=Default Styler],
data=net.refractions.udig.project.internal.impl.UDIGFeatureStore@anonymised.com,
query=Query: [Request All Features]
   feature type: null
   filter: Filter.NONE
   [properties: ALL ]]
        at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:467)
        at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:374)
        ... 5 more
Caused by: java.io.IOException: org.xml.sax.SAXException: Too few elements
for http://camden.gns.cri.nz:8080/geoserver/ts:tsevent_view1 (type =
tsevent_view1_Type) : 0 children, 1 minOccurs
        at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:324)
        at
org.geotools.data.wfs.WFSFeatureReader.loadElement(WFSFeatureReader.java:184)
        at
org.geotools.data.wfs.WFSFeatureReader.hasNext(WFSFeatureReader.java:173)
        at
org.geotools.data.ReTypeFeatureReader.hasNext(ReTypeFeatureReader.java:149)
        
My geoserver datastore is based on a postgis view, it displays well on the
OpenLayers mapview (from the geoserver home page). the WFS getfeature
request returnns:

<wfs:FeatureCollection numberOfFeatures="1814"
timeStamp="2008-09-09T11:49:23.177+12:00"
xsi:schemaLocation="http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd
http://camden.gns.cri.nz:8080/geoserver/ts
http://localhost:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=ts:tsevent_view1&quot;&gt;
<gml:featureMembers>
<ts:tsevent_view1 gml:id="tsevent_view1.26676">
<gml:boundedBy>
<gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
<gml:lowerCorner>14.002 120.993</gml:lowerCorner>
<gml:upperCorner>14.002 120.993</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<ts:id>2853</ts:id>
<ts:year>1754</ts:year>
<ts:month>11</ts:month>
<ts:day>15</ts:day>
<ts:latitude>14.002</ts:latitude>
<ts:longitude>120.993</ts:longitude>
<ts:location_name>LUZON ISLAND</ts:location_name>
<ts:country>PHILIPPINES</ts:country>
<ts:region_code>84</ts:region_code>
<ts:cause_code>6</ts:cause_code>
<ts:event_validity>1</ts:event_validity>
<ts:warning_status_id>0</ts:warning_status_id>
<ts:objectid>11519</ts:objectid>
<ts:the_geom>
<gml:Point srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
<gml:pos>14.002 120.993</gml:pos>
</gml:Point>
</ts:the_geom>
......
</ts:tsevent_view1>

I have not done any customised config on the geoserver. The only thing i can
think about is the large number of attributes and number of records. May be
a filter is needed? Please help.

Thanks

Sige

--
View this message in context: http://www.nabble.com/problem-displaying-geoserver-WFS-in-udig-tp19384290p19384290.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Geoserver defaults to WFS 1.1.0 but uDig supports only WFS 1.0.0. Add to URL you use in uDig for connection parameters &service=WFS&version=1.0.0. That may help.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: geoserver-users-bounces@lists.sourceforge.net puolesta: sige
Lähetetty: ti 9.9.2008 4:18
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] problem displaying geoserver WFS in udig

Hi
i have a problem displaying geoserver WFS in udig, the error message is:

net.refractions.udig.project.render.RenderException: Problem rendering:
Exception rendering layer DefaultMapLayer[ Test, VISIBLE,
style=StyleImpl<NO_PARENT>[ name=Default Styler],
data=net.refractions.udig.project.internal.impl.UDIGFeatureStore@anonymised.com..,
query=Query: [Request All Features]
   feature type: null
   filter: Filter.NONE
   [properties: ALL ]]
        at
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(Unknown
Source)
        at
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(Unknown
Source)
        at
net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(Unknown
Source)
        at
net.refractions.udig.project.internal.render.impl.RenderJob.run(Unknown
Source)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.Exception: Exception rendering layer DefaultMapLayer[
Test, VISIBLE, style=StyleImpl<NO_PARENT>[ name=Default Styler],
data=net.refractions.udig.project.internal.impl.UDIGFeatureStore@anonymised.com..,
query=Query: [Request All Features]
   feature type: null
   filter: Filter.NONE
   [properties: ALL ]]
        at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:467)
        at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:374)
        ... 5 more
Caused by: java.io.IOException: org.xml.sax.SAXException: Too few elements
for http://camden.gns.cri.nz:8080/geoserver/ts:tsevent_view1 (type =
tsevent_view1_Type) : 0 children, 1 minOccurs
        at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:324)
        at
org.geotools.data.wfs.WFSFeatureReader.loadElement(WFSFeatureReader.java:184)
        at
org.geotools.data.wfs.WFSFeatureReader.hasNext(WFSFeatureReader.java:173)
        at
org.geotools.data.ReTypeFeatureReader.hasNext(ReTypeFeatureReader.java:149)
        
My geoserver datastore is based on a postgis view, it displays well on the
OpenLayers mapview (from the geoserver home page). the WFS getfeature
request returnns:

<wfs:FeatureCollection numberOfFeatures="1814"
timeStamp="2008-09-09T11:49:23.177+12:00"
xsi:schemaLocation="http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd
http://camden.gns.cri.nz:8080/geoserver/ts
http://localhost:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=ts:tsevent_view1&quot;&gt;
<gml:featureMembers>
<ts:tsevent_view1 gml:id="tsevent_view1.26676">
<gml:boundedBy>
<gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
<gml:lowerCorner>14.002 120.993</gml:lowerCorner>
<gml:upperCorner>14.002 120.993</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<ts:id>2853</ts:id>
<ts:year>1754</ts:year>
<ts:month>11</ts:month>
<ts:day>15</ts:day>
<ts:latitude>14.002</ts:latitude>
<ts:longitude>120.993</ts:longitude>
<ts:location_name>LUZON ISLAND</ts:location_name>
<ts:country>PHILIPPINES</ts:country>
<ts:region_code>84</ts:region_code>
<ts:cause_code>6</ts:cause_code>
<ts:event_validity>1</ts:event_validity>
<ts:warning_status_id>0</ts:warning_status_id>
<ts:objectid>11519</ts:objectid>
<ts:the_geom>
<gml:Point srsName="urn:x-ogc:def:crs:EPSG:6.11.2:4326">
<gml:pos>14.002 120.993</gml:pos>
</gml:Point>
</ts:the_geom>
......
</ts:tsevent_view1>

I have not done any customised config on the geoserver. The only thing i can
think about is the large number of attributes and number of records. May be
a filter is needed? Please help.

Thanks

Sige

--
View this message in context: http://www.nabble.com/problem-displaying-geoserver-WFS-in-udig-tp19384290p19384290.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users