Can't detect Timeout exception on WFSDataStore getFeatureReader
----------------------------------------------------------------
Key: GEOT-1382
URL: http://jira.codehaus.org/browse/GEOT-1382
Project: GeoTools
Issue Type: Bug
Components: data wfs
Affects Versions: 2.3.1
Reporter: Jordi
Assignee: David Zwiers
There's no way to detect a Timeout exception when creating a FeatureReader from
a WFSDatastore.
A log warning is showed but the Timeout exception is loosed, it's not throwed
when calling getFeatureReader.
The result on GetFeatureReader when a Timeout is produced it's the same as if
the operation worked ok and there were'nt no features to read.
This is a problem when you want to show that there was a Timeout exception
performing the operation.
I suspect the problem is here: (NonStrictWFSStrategy class)
protected FeatureReader createFeatureReader(Transaction transaction, Query
query) throws IOException {
Data data;
data=createFeatureReaderPOST(query, transaction);
if( data.reader==null)
data=createFeatureReaderGET(query, transaction);
if(data.reader==null && data.saxException!=null)
throw new IOException(data.saxException.toString());
if(data.reader==null && data.ioException!=null)
throw data.ioException;
return data.reader;
}
When the conditions (data.saxException!=null, data.ioException!=null) are
checked the Timeout exception is missed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel