Issue Type: Improvement Improvement
Assignee: Unassigned
Attachments: 0001-Better-preservation-of-diagnostic-info-when-errors-o.patch
Created: 05/Jun/12 8:10 AM
Description:

As discussed on the GeoServer mailing list: http://comments.gmane.org/gmane.comp.gis.geoserver.devel/17029

This patch adds explicit error checking in two places:

  • while recording actions in a transaction, detect nulls and immediately throw an NPE (previously the NPE was not raised until the commit(), and the context in which the null was introduced was lost.)
  • while committing, catch exceptions and wrap them in a new exception with a custom error message indicating what sort of XML we were attempting to write when things went wrong.

Tests included.

Project: GeoTools
Priority: Major Major
Reporter: David Winslow
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to