WFS-Plugin runs into an Timeout when NumberformatException occous
-----------------------------------------------------------------
Key: GEOT-1404
URL: http://jira.codehaus.org/browse/GEOT-1404
Project: GeoTools
Issue Type: Bug
Components: data wfs
Affects Versions: 2.3.2, 2.4-M4, 2.3.1, 2.3.0
Reporter: Tim Englich
Assignee: David Zwiers
Attachments: patch_TimeoutException_invalidSchema.txt
I got a very ugly Exception with a missconfigured WFS.
When I try to read it, the WFS-Plugin (WFSFeatureReader) throws a
NumberFormatException when it try to parse the missconfigured Element (an
String 'true')in an DoubleValue which was declared in the XML-Schema).
The WFS-Plugin don't do any work after that happend.
My thread hangs at the following position
FeatureReader fr = dataStore.getFeatureReader(query,Transaction.AUTO_COMMIT);
and returned with the TimeoutException after the defined Time.
The logoutput shows that a NumberformatException occours in the first
DataSet. But the reader still wait for incomming Data although the reading
Thread has already been terminated.
I also don't get the information that a NumberformatException occours back to
my code so that the Application told the user the wrong reason for the
failure.
I take a look into the soucecode and indentify the position that
might have to be changed.
I think the org.geotools.data.wfs.WFSFeatureReader.run() method does not
handle all exceptions correctly.
I think we should at least catch the RuntimeException additionally and handle
it like StopException and SAXException.
--
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