[Geoserver-users] Problem with WFS BBOX - geoserver 1.4 RC3

Hello,
I'm working with Geoserver 1.4 RC3 and i've problem WFS BBOX query on postgis layers.
When i post this query with shapefile layers it works fine:

<wfs:GetFeature service="WFS" version="1.0.0"
  outputFormat="GML2"
  xmlns:topp="http://www.openplans.org/topp&quot;
  xmlns:wfs="http://www.opengis.net/wfs&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:gml="http://www.opengis.net/gml&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.opengis.net/wfs
                      http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
  <wfs:Query typeName="topp:states">
    <wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName>
    <wfs:PropertyName>topp:PERSONS</wfs:PropertyName>
    <ogc:Filter>
      <ogc:BBOX>
        <ogc:PropertyName>the_geom</ogc:PropertyName>
        <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
           <gml:coordinates>-75.102613,40.212597 -72.361859,41.512517</gml:coordinates>
        </gml:Box>
      </ogc:BBOX>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

But the same query with a postgis layer fails and i have this exception:

  <?xml version="1.0" ?>
- <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/ogc http://10.91.13.155:8084/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd&quot;&gt;
  <ServiceException>javax.xml.transform.TransformerException: Translator error at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:130) at

the postgis table contains an oid field.
any solutions?

Best regards
Tim

_________________________________________________________________
Retrouvez tout en un clin d'oeil avec Live Search ! http://www.live.com/?mkt=fr-fr

Thierry Beaufreton wrote:

Hello,
I'm working with Geoserver 1.4 RC3 and i've problem WFS BBOX query on postgis layers.
When i post this query with shapefile layers it works fine:

<wfs:GetFeature service="WFS" version="1.0.0"
  outputFormat="GML2"
  xmlns:topp="http://www.openplans.org/topp&quot;
  xmlns:wfs="http://www.opengis.net/wfs&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:gml="http://www.opengis.net/gml&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.opengis.net/wfs
                      http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
  <wfs:Query typeName="topp:states">
    <wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName>
    <wfs:PropertyName>topp:PERSONS</wfs:PropertyName>
    <ogc:Filter>
      <ogc:BBOX>
        <ogc:PropertyName>the_geom</ogc:PropertyName>
        <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
           <gml:coordinates>-75.102613,40.212597 -72.361859,41.512517</gml:coordinates>
        </gml:Box>
      </ogc:BBOX>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

But the same query with a postgis layer fails and i have this exception:

  <?xml version="1.0" ?>
- <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/ogc http://10.91.13.155:8084/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd&quot;&gt;
  <ServiceException>javax.xml.transform.TransformerException: Translator error at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:130) at

the postgis table contains an oid field.
any solutions?

Thta's actually a sort of hidden error. Could you set Config -> Server -> Verbose Exceptions to true? Or take a look at the logs? And paste the full error message that you get, you may already be getting it but just haven't included it in this message. We need to see the full java stack trace.

best regards,

Chris

Best regards
Tim

_________________________________________________________________
Retrouvez tout en un clin d'oeil avec Live Search ! http://www.live.com/?mkt=fr-fr

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45646a31271501460912952!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Thierry Beaufreton ha scritto:

Hello,
I'm working with Geoserver 1.4 RC3 and i've problem WFS BBOX query on postgis layers.

....

  <?xml version="1.0" ?>
- <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/ogc http://10.91.13.155:8084/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd&quot;&gt;
  <ServiceException>javax.xml.transform.TransformerException: Translator error at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:130) at

the postgis table contains an oid field.
any solutions?

Ah, you should get a better stack trace using this geoserver:
http://geo.openplans.org/aaime/geoserver.war

Cheers
Andrea

Hello,
Many thanks for your message.
I have tested the wfs bbox post query on postgis layer with verbose exception to true,
and here is the full java stack trace:

23 nov. 2006 08:12:40 org.vfny.geoserver.ServiceException getXmlResponse
FIN: return wfs exception is <?xml version="1.0" ?>
<ServiceExceptionReport
   version="1.2.0"
   xmlns="http://www.opengis.net/ogc&quot;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
   xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd&quot;&gt;
   <ServiceException>
      javax.xml.transform.TransformerException: Translator error
  at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:130)
  at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:105)
  at org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.encode(GML2FeatureResponseDelegate.java:228)
  at org.vfny.geoserver.wfs.responses.FeatureResponse.writeTo(FeatureResponse.java:140)
  at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:594)
  at org.vfny.geoserver.servlets.AbstractService.doPost(AbstractService.java:454)
  at org.geoserver.request.Dispatcher.post(Dispatcher.java:273)
  at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:164)
  at org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:57)
  at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
  at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
  at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
  at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
  at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
  at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
  at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: FeatureReader allready produces contents with the correct schema
  at org.geotools.data.ReTypeFeatureReader.typeAttributes(ReTypeFeatureReader.java:88)
  at org.geotools.data.ReTypeFeatureReader.&lt;init&gt;(ReTypeFeatureReader.java:68)
  at org.geotools.data.jdbc.JDBC1DataStore.getFeatureReader(JDBC1DataStore.java:699)
  at org.geotools.data.jdbc.JDBCFeatureCollection.reader(JDBCFeatureCollection.java:78)
  at org.geotools.data.DefaultFeatureResults.getBounds(DefaultFeatureResults.java:193)
  at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransformer.java:389)
  at org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:611)
  at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
  at org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:293)
  at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:126)
  ... 43 more
---------
java.lang.IllegalArgumentException: FeatureReader allready produces contents with the correct schema
  at org.geotools.data.ReTypeFeatureReader.typeAttributes(ReTypeFeatureReader.java:88)
  at org.geotools.data.ReTypeFeatureReader.&lt;init&gt;(ReTypeFeatureReader.java:68)
  at org.geotools.data.jdbc.JDBC1DataStore.getFeatureReader(JDBC1DataStore.java:699)
  at org.geotools.data.jdbc.JDBCFeatureCollection.reader(JDBCFeatureCollection.java:78)
  at org.geotools.data.DefaultFeatureResults.getBounds(DefaultFeatureResults.java:193)
  at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransformer.java:389)
  at org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:611)
  at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
  at org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:293)
  at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:126)
  at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:105)
  at org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.encode(GML2FeatureResponseDelegate.java:228)
  at org.vfny.geoserver.wfs.responses.FeatureResponse.writeTo(FeatureResponse.java:140)
  at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:594)
  at org.vfny.geoserver.servlets.AbstractService.doPost(AbstractService.java:454)
  at org.geoserver.request.Dispatcher.post(Dispatcher.java:273)
  at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:164)
  at org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:57)
  at org.sp

I'm working with Geoserver 1.4 RC3, Tomcat-5.0.28, Fedora Core 5 and jdk1.5.0_09
Best regards

From: Chris Holmes <cholmes@anonymised.com>
To: Thierry Beaufreton <tbeaufreton@anonymised.com>
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Problem with WFS BBOX - geoserver 1.4 RC3
Date: Wed, 22 Nov 2006 11:10:01 -0500

Thierry Beaufreton wrote:

Hello,
I'm working with Geoserver 1.4 RC3 and i've problem WFS BBOX query on postgis layers.
When i post this query with shapefile layers it works fine:

<wfs:GetFeature service="WFS" version="1.0.0"
  outputFormat="GML2"
  xmlns:topp="http://www.openplans.org/topp&quot;
  xmlns:wfs="http://www.opengis.net/wfs&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:gml="http://www.opengis.net/gml&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.opengis.net/wfs
                      http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
  <wfs:Query typeName="topp:states">
    <wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName>
    <wfs:PropertyName>topp:PERSONS</wfs:PropertyName>
    <ogc:Filter>
      <ogc:BBOX>
        <ogc:PropertyName>the_geom</ogc:PropertyName>
        <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
           <gml:coordinates>-75.102613,40.212597 -72.361859,41.512517</gml:coordinates>
        </gml:Box>
      </ogc:BBOX>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

But the same query with a postgis layer fails and i have this exception:

  <?xml version="1.0" ?>
- <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/ogc http://10.91.13.155:8084/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd&quot;&gt;
  <ServiceException>javax.xml.transform.TransformerException: Translator error at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:130) at

the postgis table contains an oid field.
any solutions?

Thta's actually a sort of hidden error. Could you set Config -> Server -> Verbose Exceptions to true? Or take a look at the logs? And paste the full error message that you get, you may already be getting it but just haven't included it in this message. We need to see the full java stack trace.

best regards,

Chris

Best regards
Tim

_________________________________________________________________
Retrouvez tout en un clin d'oeil avec Live Search ! http://www.live.com/?mkt=fr-fr

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,45646a31271501460912952!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

<< cholmes.vcf >>

_________________________________________________________________
Ten : profite de ton Messenger en illimité sur ton mobile ! http://mobile.live.fr/messenger/ten/