Hi,
Here's the geoserver log. is this configuration wrong ? How can I correct it ?
My intention is to get gml2 from geoserver. How can I correct it in geoserver ?
10 Sep 15:31:08 INFO [geoserver.wfs] -Request: getServiceInfo10 Sep 15:31:09
INFO [geoserver.wfs] -Request: getCapabilities acceptVersions:
version = [1.0.0] sections = null acceptFormats = null
updateSequence = null baseUrl = http://localhost:8080/geoserver/
namespace = null service = WFS10 Sep 15:31:10 INFO [geoserver.wfs]
-Request: getServiceInfo10 Sep 15:31:10 INFO [geoserver.wfs] -Request:
describeFeatureType handle = null service = WFS version =
1.0.0 baseUrl = http://localhost:8080/geoserver/ providedVersion
= null typeName = [{topp}enugu_adm] outputFormat = XMLSCHEMA
Subsequent request are as follows:
Request: getServiceInfo10 Sep 15:38:08 INFO [geoserver.wfs] -Request:
getFeature handle = null service = WFS version = 1.0.0
baseUrl = http://localhost:8080/geoserver/ providedVersion = null
query = [net.opengis.wfs.impl.querytypei...@1d33244 (group: null,
propertyName: null, function: null, filter: [[ topp:the_geom bbox POLYGON
((6.969 5.928, 6.969 7.0997446153846155, 7.919455384615385 7.0997446153846155,
7.919455384615385 5.928, 6.969 5.928)) ] AND [ topp:the_geom intersects POLYGON
((6.969 5.928, 6.969 7.098, 7.9190000000000005 7.098, 7.9190000000000005 5.928,
6.969 5.928)) ]], sortBy: null, featureVersion: null, handle: null, srsName:
null, typeName:[{topp}enugu_adm])] maxFeatures = null
outputFormat = GML2 resultType = results traverseXlinkDepth =
null traverseXlinkExpiry = null formatOptions = {}10 Sep
15:38:08 INFO [geoserver.wfs] -
--- On Thu, 9/9/10, Jody Garnett <[email protected]> wrote:
From: Jody Garnett <[email protected]>
Subject: Re: [Geotools-gt2-users] gt-wfs plug in issue
To: "Roman Isitua" <[email protected]>
Cc: "geotools user mailing list" <[email protected]>
Date: Thursday, September 9, 2010, 11:03 PM
Have a look at the geoserver logs; it should be making a couple of requests;
getCapabilities; describeFeatureType
And then for each request it often uses getFeatures and describeFeatureType
(for the schema). You may have run into a geoserver configuration issue; as as
part of the getFeatures response ( a gml document) it refers to the schema
(which is a call to describeFeatureType from the same server). Please check
your getFeatures result using the geoserver demo requests just to be sure it
works correctly and refers to the schema correctly.
And yes please update the wiki example.
Jody
On 09/09/2010, at 1:14 AM, Roman Isitua wrote:
Hello everyone,
I am developing an application that uses the geomajas web gis framework. The
application is supposed to access vector datafrom geoserver through wfs.
Geomajas uses the geotools wfs plugin to talk to geoserver wfs. I have
configured my stores and layers properly in geoserver. My data uses the topp
workspace.
I got the following error while trying to use it
10:19:20.971 [btpool0-4] INFO o.g.i.service.CommandDispatcherImpl - 8 execute
command command.render.GetVectorTile for user token null in locale default,
request GetVectorTileRequest{code=0-0-0, layerId=topp:enugu_adm, crs=EPSG:4326,
scale=275.65733672603903, panOrigin=(7.413500000000001, 6.4895000000000005),
filter='null', crs='EPSG:4326', renderer='SVG',
styleinfo=org.geomajas.configuration.namedstylei...@1eed1f4,
paintGeometries=true, paintLabels=false, featureIncludes=12}10:19:20.974
[btpool0-4] INFO o.g.c.render.GetVectorTileCommand - request start layer
topp:enugu_adm, crs EPSG:4326[ERROR]Sep 7, 2010 10:19:22 AM
org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy
createFeatureReaderPOST[ERROR]WARNING: java.io.IOException:
java.net.UnknownHostException: www.openplans.org[ERROR]Sep 7, 2010 10:19:22 AM
org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy
createFeatureReaderPOST[ERROR]WARNING: java.io.IOException:
java.net.UnknownHostException: www.openplans.org[ERROR]Sep 7, 2010 10:19:23 AM
org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy
createFeatureReaderGET[ERROR]WARNING: java.io.IOException:
java.net.UnknownHostException: www.openplans.org10:19:24.049 [btpool0-4] ERROR
o.g.i.service.CommandDispatcherImpl -
Error executing commandjava.util.NoSuchElementException: Could not aquire
feature:java.io.IOException: java.net.UnknownHostException: www.openplans.org
at
org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:56)
~[gt-main-2.6.3.jar:na] at
org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:41)
~[gt-main-2.6.3.jar:na] at
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:94)
~[geomajas-impl-1.7.1.jar:1.7.1] at
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:61)
~[geomajas-impl-1.7.1.jar:1.7.1] at
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:72)
~[geomajas-impl-1.7.1.jar:1.7.1] at
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:58)
~[geomajas-impl-1.7.1.jar:1.7.1] at
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:135)
~[geomajas-impl-1.7.1.jar:1.7.1] at
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:141)
~[geomajas-impl-1.7.1.jar:1.7.1] at
org.geomajas.internal.layer.VectorLayerServiceImpl$$FastClassByCGLIB$$a536c9a8.invoke(<generated>)
~[na:na] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
~[cglib-nodep-2.2.jar:na] at
>From the logs it seems like for some reason unknown to me the gt-wfs plugin is
>trying to read the location of the topp uri which is
>www.openplans.org/topp.the topp uri is just a name space and should not be
>read at all only just the gml features. I don't
know if this is a bug. My wfs get capabilities url is this
WFSDataStoreFactory:GET_CAPABILITIES_URL:
http://localhost:8080/geoserver/ows?service=WFS&VERSION=1.0.0&request=GetCapabilities
is this url wrong ? In ur example on the wfs plug in page
(http://docs.codehaus.org/display/GEOTDOC/WFS+Plugin) the url specified there
was http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities. I presume this
was a mistake.
Has anyone experienced this before ? how was it resolved ?
I would really appreciate it if I can get help on this. I am using geoserver
2.0.2 and geotools 2.6.3.
Cheers,
Roman.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance.
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users