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 data
> from 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.org
> 10:19:24.049 [btpool0-4] ERROR o.g.i.service.CommandDispatcherImpl - Error
> executing command
> java.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
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
> ~[spring-tx-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$3c7b9ccb.getFeatures(<generated>)
> ~[na:na]
> at
> org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:74)
> ~[geomajas-impl-1.7.1.jar:1.7.1]
> at
> org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:47)
> ~[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.getTile(VectorLayerServiceImpl.java:177)
> ~[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
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
> ~[spring-tx-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$3c7b9ccb.getTile(<generated>)
> ~[na:na]
> at
> org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:73)
> ~[geomajas-command-1.7.1.jar:1.7.1]
> at
> org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:46)
> ~[geomajas-command-1.7.1.jar:1.7.1]
> at
> org.geomajas.command.render.GetVectorTileCommand$$FastClassByCGLIB$$a4dabfcc.invoke(<generated>)
> ~[na:na]
> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
> ~[cglib-nodep-2.2.jar:na]
> at
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
> ~[spring-tx-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)
> ~[spring-aop-3.0.2.RELEASE.jar:3.0.2.RELEASE]
> at
> org.geomajas.command.render.GetVectorTileCommand$$EnhancerByCGLIB$$89082c17.execute(<generated>)
> ~[na:na]
> at
> org.geomajas.internal.service.CommandDispatcherImpl.execute(CommandDispatcherImpl.java:126)
> ~[geomajas-impl-1.7.1.jar:1.7.1]
> at
> org.geomajas.gwt.server.GeomajasServiceImpl.execute(GeomajasServiceImpl.java:86)
> [geomajas-gwt-client-1.7.1.jar:1.7.1]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.6.0_14]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> ~[na:1.6.0_14]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> ~[na:1.6.0_14]
> at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_14]
> at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
> [gwt-servlet-2.0.3.jar:na]
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188)
> [gwt-servlet-2.0.3.jar:na]
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
> [gwt-servlet-2.0.3.jar:na]
> at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
> [gwt-servlet-2.0.3.jar:na]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> [gwt-user-2.0.3.jar:na]
> at
> org.geomajas.gwt.server.GeomajasServiceImpl.service(GeomajasServiceImpl.java:76)
> [geomajas-gwt-client-1.7.1.jar:1.7.1]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> [gwt-user-2.0.3.jar:na]
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
> [gwt-dev-2.0.3.jar:na]
> at
> org.geomajas.servlet.JettyThreadParentFilter.doFilter(JettyThreadParentFilter.java:57)
> [geomajas-common-servlet-1.7.1.jar:1.7.1]
> at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> [gwt-dev-2.0.3.jar:na]
> at org.mortbay.jetty.Server.handle(Server.java:324)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
> [gwt-dev-2.0.3.jar:na]
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
> [gwt-dev-2.0.3.jar:na]
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> [gwt-dev-2.0.3.jar:na]
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> [gwt-dev-2.0.3.jar:na]
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
> [gwt-dev-2.0.3.jar:na]
>
>
> 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