On Thu, Feb 17, 2011 at 6:44 PM, Hajo Kliemeck <[email protected]> wrote:

> and the stacktrace:
> 17 Feb 16:47:39 INFO [geoserver.wfs] -
> Request: getServiceInfo
> 17 Feb 16:48:00 ERROR [geoserver.ows] -
> java.net.SocketTimeoutException: Read timed out
>         at java.net.SocketInputStream.socketRead0(Native Method)
>        at java.net.SocketInputStream.read(SocketInputStream.java:129)
>        at
>
> org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:751)
>        at
>
> org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:781)
>        at
>
> org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116)
>        at
>
> org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)
>        at org.apache.coyote.Request.doRead(Request.java:428)
>        at
>
> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304)
>        at
> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)
>        at
> org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:327)
>        at
>
> org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
>        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
>        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
>        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
>        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
>        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
>        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
>        at java.io.InputStreamReader.read(InputStreamReader.java:167)
>        at java.io.BufferedReader.fill(BufferedReader.java:136)
>        at java.io.BufferedReader.read1(BufferedReader.java:187)
>        at java.io.BufferedReader.read(BufferedReader.java:261)
>        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>        at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown
> Source)
>        at
>
> org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>        at org.geotools.xml.Parser.parse(Parser.java:223)
>        at
> org.geoserver.wfs.xml.v1_1_0.WfsXmlReader.read(WfsXmlReader.java:91)
>        at
> org.geoserver.ows.Dispatcher.parseRequestXML(Dispatcher.java:1180)
>        at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:466)
>


By the looks of the stack trace GeoServer is still trying to parse the
request and
failing to do so because the client won't provide the entire XML (or at the
very least
GeoServer does not seem able to retrieve it all triggering the timeout after
some time).

It is indeed strange. I've tried with the following request against
topp:states

<?xml version="1.0" encoding="UTF-8"?>
<GetFeature xmlns:ogc="http://www.opengis.net/ogc";
  xmlns:topp="http://www.openplans.org/topp"; xmlns:gml="
http://www.opengis.net/gml";
  xmlns="http://www.opengis.net/wfs"; maxFeatures="5000"
  outputFormat="text/xml; subtype=gml/3.1.1" resultType="results"
  service="WFS" version="1.1.0">
  <Query srsName="EPSG:4326" typeName="topp:states">
    <ogc:Filter>
      <ogc:DWithin>
        <ogc:PropertyName>the_geom</ogc:PropertyName>
        <gml:Point>
          <gml:pos>-90 40</gml:pos>
        </gml:Point>
        <ogc:Distance>1</ogc:Distance>
      </ogc:DWithin>
    </ogc:Filter>
  </Query>
</GetFeature>

which is similar to yours but can be reproduce with sample data.
Tried with firefox "poster" extension and with curl on the command line,
both replied quickly and correctly.

So I guess it might be specific of the client you're using to make the
request?
What are you using? Or maybe it's specific to the operating system, the
java version... who knows.

I certanly can't reproduce with the default GeoServer config on Ubuntu 64
bits,
Firefox and curl.

Cheers
Andrea



-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to