Ok, I see.

And what about the "externally managed" transactions? How does the Geotools 
client do it, do you know?

Thanks for your help!

Julien


On 6/5/2014 9:46 AM, Andrea Aime wrote:
On Thu, Jun 5, 2014 at 3:33 PM, electrotype <[email protected] <mailto:[email protected]>> wrote:

    That could be acceptable for my application. But the problem is GeoServer 
doesn't return
    enough information when an error occures. For example, if the second Insert 
fails, here is the
    kind of response Geoserver returns :

    ------------------------------

    |<?xml version="1.0" ?>
    <ServiceExceptionReport
        version="1.2.0"
        xmlns="http://www.opengis.net/ogc";  <http://www.opengis.net/ogc>
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
<http://www.w3.org/2001/XMLSchema-instance>
        xsi:schemaLocation="http://www.opengis.net/ogc 
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd";  
<http://www.opengis.net/ogchttp://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd>>
<ServiceException>
             java.lang.RuntimeException: Parsing failed for DIAMETRE: 
java.lang.NumberFormatException Parsing failed for DIAMETRE: 
java.lang.NumberFormatException
             null
         </ServiceException>

    </ServiceExceptionReport>|

    ------------------------------


Given the nature of the error, I don't think it's possible, the Transaction document is parsed as a whole, and interpreted only later, if an error occurr during parsing,
only an error at the global level is feasible, as the request contents are 
still not interpreted.
If instead we are talking about errors happening during the actual write on the data, then using the handle attribute should do the trick

Cheers
Andrea

--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to