App-schema does not state which mapping failed when an attribute failed to bind
-------------------------------------------------------------------------------

                 Key: GEOT-3278
                 URL: http://jira.codehaus.org/browse/GEOT-3278
             Project: GeoTools
          Issue Type: Improvement
          Components: data app-schema
    Affects Versions: 2.7-M3
            Reporter: Andrea Aime
            Assignee: Ben Caradoc-Davies
             Fix For: 2.7-M4
         Attachments: GEOT-3278.patch

App schema mapping failures sometimes to not provide any indication of which 
mapping failed, example:

org.geotools.feature.IllegalAttributeException:http://www.w3.org/2001/XMLSchema:integer
not nillable:null value:null
       at org.geotools.feature.type.Types.validate(Types.java:112)
       at org.geotools.feature.type.Types.validate(Types.java:80)
       at org.geotools.feature.AttributeImpl.<init>(AttributeImpl.java:51)
       at 
org.geotools.feature.AppSchemaFeatureFactoryImpl.createAttribute(AppSchemaFeatureFactoryImpl.java:63)
       at 
org.geotools.feature.AttributeBuilder.create(AttributeBuilder.java:583)
       at org.geotools.feature.AttributeBuilder.add(AttributeBuilder.java:495)
       at org.geotools.data.complex.filter.XPath.setValue(XPath.java:769)

The attached patch makes sure the target path is reported instead

-- 
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

        

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to