ClassCastException when encoding MeasureTypeBinding for complex features
------------------------------------------------------------------------
Key: GEOT-3294
URL: http://jira.codehaus.org/browse/GEOT-3294
Project: GeoTools
Issue Type: Bug
Components: ext xml-xsd
Affects Versions: 2.0.0
Reporter: Rini Angreani
Assignee: Xiangtan Lin
Fix For: 2.6.6
I was getting ClassCastException when encoding gsml:CGI_NumericValue when "uom"
wasn't set in the client properties.
The error goes away when "uom" is set.
Ben's initial investigation shows that in BindingVisitorDispatch, line 35, the
object was a FeatureTypeCollectionImpl, as opposed to ComplexAttribute.
It wasn't detected before because our existing unit tests only had
CGI_TermValue, which doesn't happen to have a specific binding (whereas
MeasureTypeBinding exists for CGI_NumericValue and catches this).
Users shouldn't be getting ClassCastException, because it doesn't mean anything
to them. If it is to throw errors, it should at least be more meaningful. In my
opinion, since there is no output validation against schemas in GeoServer, so
it should spit out the output without 'uom' with no errors. It's up to users to
validate their own output (for the time being anyway).
--
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