Could not aquire feature:java.net.SocketTimeoutException: Read timed out

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Could not aquire feature:java.net.SocketTimeoutException: Read timed out

Christian.Strobl

hi all,

i have a problem regarding the use of wfs in udig. with a certain wfs i get alwas the error message

-----------%<-------------------------------------------------------------------------------------------------------------------------->%----------
Rendering process failed Error rendering feature   Could not aquire feature:java.net.SocketTimeoutException: Read timed out
-----------%<-------------------------------------------------------------------------------------------------------------------------->%----------

the same wfs is working fine with qgis or gvsig. i am using udig 1.2.1 under windows xp, the wfs comes from geoserver 2.02 (ubuntu). the log entry shows the following entry

-----------%<-------------------------------------------------------------------------------------------------------------------------->%----------

!ENTRY net.refractions.udig.project 1 0 2011-08-22 23:00:36.093
!MESSAGE cfzall rendering error:java.util.NoSuchElementException: Could not aquire feature:java.net.SocketTimeoutException: Read timed out
!STACK 0
java.util.NoSuchElementException: Could not aquire feature:java.net.SocketTimeoutException: Read timed out
    at org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:56)
    at org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:41)
    at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2011)
    at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1932)
    at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:764)
    at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:572)
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:359)
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:222)
    at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:108)
    at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:213)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:212)
    at org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:192)
    at org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReaderGet(WFS_1_0_0_DataStore.java:518)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReaderGET(NonStrictWFSStrategy.java:132)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReader(NonStrictWFSStrategy.java:101)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:72)
    at org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReader(WFS_1_0_0_DataStore.java:747)
    at org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:212)
    at org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:228)
    at org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:196)
    at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:1996)
    ... 8 more

!ENTRY net.refractions.udig.project 2 0 2011-08-22 23:00:36.125
!MESSAGE Problem beim Rendern:Could not aquire feature:java.net.SocketTimeoutException: Read timed out
!STACK 0
net.refractions.udig.project.render.RenderException: Problem beim Rendern:Could not aquire feature:java.net.SocketTimeoutException: Read timed out
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:388)
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:222)
    at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:108)
    at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:213)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.util.NoSuchElementException: Could not aquire feature:java.net.SocketTimeoutException: Read timed out
    at org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:56)
    at org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:41)
    at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2011)
    at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1932)
    at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:764)
    at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:572)
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:359)
    ... 4 more
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:212)
    at org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:192)
    at org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReaderGet(WFS_1_0_0_DataStore.java:518)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReaderGET(NonStrictWFSStrategy.java:132)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReader(NonStrictWFSStrategy.java:101)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:72)
    at org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReader(WFS_1_0_0_DataStore.java:747)
    at org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:212)
    at org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:228)
    at org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:196)
    at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:1996)
    ... 8 more

-----------%<-------------------------------------------------------------------------------------------------------------------------->%----------

it seems that udig stops the rendering because of any timeout, but i have found no possibility to change the read timeout for (wfs-)layers in the properties.

any help or hint appreciated
best regads
christian

_______________________________________________
udig-users mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/udig-users
Reply | Threaded
Open this post in threaded view
|

Re: Could not aquire feature:java.net.SocketTimeoutException: Read timed out

Hochmeister Rudolf
Hi,

Udig uses a short timeout value (3 seconds or so) by default.
But one can adjust this parameter if needed. When adding a new WFS
datastore click the checkbox below the url input field, which is called
"Extended" or "Erweitert" and set the "timeout in seconds"
appropriately. I noticed that also
GET or POST has to be selected (which are both deselected), in order to
accept the new time out value!  

Cheers,

Rudi


_______________________________________________
udig-users mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/udig-users
Reply | Threaded
Open this post in threaded view
|

Re: Could not aquire feature:java.net.SocketTimeoutException: Read timed out

Jody Garnett-2
In reply to this post by Christian.Strobl
It is very common to run into issues from uDig that other systems do not experience in this manner. If you could send me the WFS GetCapabilites I can probably show you where the issue is.

Inside the capabilities file there is a section documenting the different operations including GetFeature. May systems assume the GetFeature operation is *always* at the same location of the capabilities document; but since you can cache the capabilities document (or even have it as a file on your local file system - uDig does not make that assumption.

Please check that your capabilities file actually has the GetFeature operation pointing at the correct location; because udig is going to blindly follow the GetCapabilities document as a description of how to work with the service.

The same goes for the contents of GetFeatures; the top of the file should refer to a valid schema (often a reference to DescribeFeatureType operation which once again has to match the actual service). 

I think you may be able to change the time out in the advanced properties; yes it looks like you can in the Add Data (or AddLayer wizard when you choose WFS).

Cheers,
-- 
Jody Garnett

On Tuesday, 23 August 2011 at 7:45 AM, [hidden email] wrote:


hi all,

i have a problem regarding the use of wfs in udig. with a certain wfs i get alwas the error message

-----------%<-------------------------------------------------------------------------------------------------------------------------->%----------
Rendering process failed Error rendering feature   Could not aquire feature:java.net.SocketTimeoutException: Read timed out
-----------%<-------------------------------------------------------------------------------------------------------------------------->%----------

the same wfs is working fine with qgis or gvsig. i am using udig 1.2.1 under windows xp, the wfs comes from geoserver 2.02 (ubuntu). the log entry shows the following entry

-----------%<-------------------------------------------------------------------------------------------------------------------------->%----------

!ENTRY net.refractions.udig.project 1 0 2011-08-22 23:00:36.093
!MESSAGE cfzall rendering error:java.util.NoSuchElementException: Could not aquire feature:java.net.SocketTimeoutException: Read timed out
!STACK 0
java.util.NoSuchElementException: Could not aquire feature:java.net.SocketTimeoutException: Read timed out
    at org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:56)
    at org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:41)
    at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2011)
    at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1932)
    at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:764)
    at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:572)
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:359)
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:222)
    at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:108)
    at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:213)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:212)
    at org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:192)
    at org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReaderGet(WFS_1_0_0_DataStore.java:518)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReaderGET(NonStrictWFSStrategy.java:132)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReader(NonStrictWFSStrategy.java:101)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:72)
    at org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReader(WFS_1_0_0_DataStore.java:747)
    at org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:212)
    at org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:228)
    at org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:196)
    at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:1996)
    ... 8 more

!ENTRY net.refractions.udig.project 2 0 2011-08-22 23:00:36.125
!MESSAGE Problem beim Rendern:Could not aquire feature:java.net.SocketTimeoutException: Read timed out
!STACK 0
net.refractions.udig.project.render.RenderException: Problem beim Rendern:Could not aquire feature:java.net.SocketTimeoutException: Read timed out
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:388)
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:222)
    at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:108)
    at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:213)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.util.NoSuchElementException: Could not aquire feature:java.net.SocketTimeoutException: Read timed out
    at org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:56)
    at org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:41)
    at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2011)
    at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1932)
    at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:764)
    at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:572)
    at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:359)
    ... 4 more
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:212)
    at org.geotools.wfs.protocol.DefaultConnectionFactory.getInputStream(DefaultConnectionFactory.java:192)
    at org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReaderGet(WFS_1_0_0_DataStore.java:518)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReaderGET(NonStrictWFSStrategy.java:132)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.createFeatureReader(NonStrictWFSStrategy.java:101)
    at org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:72)
    at org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReader(WFS_1_0_0_DataStore.java:747)
    at org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:212)
    at org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:228)
    at org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:196)
    at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:1996)
    ... 8 more

-----------%<-------------------------------------------------------------------------------------------------------------------------->%----------

it seems that udig stops the rendering because of any timeout, but i have found no possibility to change the read timeout for (wfs-)layers in the properties.

any help or hint appreciated
best regads
christian
_______________________________________________
udig-users mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/udig-users


_______________________________________________
udig-users mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/udig-users