GeoTools can not read GML produced by GeoServer on Oracle Locatore
------------------------------------------------------------------
Key: GEOS-634
URL: http://jira.codehaus.org/browse/GEOS-634
Project: GeoServer
Type: Bug
Components: WFS
Versions: 1.3.0 RC7
Environment: Windows XP SP2, Oracle 9.2
Reporter: Bernard de Terwangne
Assigned to: dblasby
I'm running GeoServer of a simple Oracle locator table including Polygons.
I'm using GeoTools as a WFS client to read the features comming from my server.
Results are as follows :
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:cus="http://www.cus.fr" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cus.fr http://localhost:8082/geoserver/wfs/DescribeFeatureType?typeName=bus:COMM http://www.opengis.net/wfs http://localhost:8082/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd"><gml:boundedBy><gml:Box srsName="http://www.opengis.net/gml/srs/epsg\.xml\#27591"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">988603.69457803,109706.80742712 991791.01175777,113495.52405589</gml:coordinates></gml:Box></gml:boundedBy><gml:featureMember><bus:COMM fid="COMM.001"><bus:NOM_COMMUNE>Yoyo</bus:NOM_COMMUNE><bus:CODE_PRECISION>1/25000</bus:CODE_PRECISION><bus:GEOM><gml:Polygon srsName="http://www.opengis.net/gml/srs/epsg\.xml\#27591"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">990095.70467298,113429.96452293 990021.27899365,113389.50492544 990013.4118497,113400.74370252 989985.9392835,113387.50692063 989928.7463957,113495.52405589 989715.83400769,113393.62581037 989443.73072707,113345.54881953 989487.18733178,113163.35575554 989290.00923168,113093.05096115 989053.12078591,112993.89997225 988968.95483311,112943.45035069 988902.27142244,112910.35839596 988615.55773161,112771.12243547 988603.69457803,112764.62891983 988626.29700749,112733.65984521 988655.8924538,112706.56190492 988764.78371617,112623.64470513 988730.81763433,112599.54377206 988781.01750528,112380.38761901 988863.80982977,112383.38462623 988894.15452788,112401.24179426 988956.09267712,112268.49934942 988966.08270119,112270.87198014 989052.74616001,112065.70186079 989137.0369881,111857.28498362 989116.43256346,111842.29994751 989184.86422834,111693.19883826 989243.05611855,111685.3316943 989344.45486287,111423.09356245 989147.52651338,111400.86575889 989180.36871751,111266.74968574 989213.21092164,111118.27295299 989209.21491201,111117.52370119 989200.09901505,111134.75649271 989195.47862892,111137.62862463 989193.1059982,111147.6186487 989176.87220908,111149.36690291 989173.87520186,111140.25100595 989161.63742238,111140.62563185 989157.51653745,111130.51073248 989154.76928083,111129.26197947 989151.0230218,111117.02419998 989145.65338386,111116.77444938 989136.4126116,111137.87837523 989132.54147727,111141.62463426 989121.9270767,111139.37687884 989114.80918454,111132.25898669 989124.79920862,111110.53068434 989120.42857308,111105.6605476 989117.80619177,111105.5356723 989110.43854901,111120.27095781 989103.44553216,111122.14408732 989095.45351291,111120.52070841 989092.08187978,111112.40381385 989083.34060872,111114.40181866 989077.22171898,111112.15406325 989074.22471176,111106.90930061 989057.24167084,111107.78342772 989053.12078591,111104.7864205 989052.74616001,111099.66653316 989043.38051244,111093.67251872 989032.14173536,111094.04714462 989020.65320768,111103.53766749 989016.28257215,111102.16403918 989010.1636824,111093.79739402 988995.3035216,111097.41877774 988989.55925776,111093.04814221 988989.18463186,111086.80437717 988980.06873489,111087.55362898 988974.82397226,111083.43274405 988963.58519518,111083.80736995 988948.60015907,111078.06310611 988940.85789041,111087.67850428 988935.36337718,111087.80337958 988925.99772961,111084.05712055 988920.37834107,111069.94621155 988907.51618508,111073.81734588 988894.02965258,111069.82133625 988888.90976525,111065.32582542 988887.91076284,111058.08305797 988886.66200983,111057.08405556 988874.67398095,111059.20693568 988870.67797132,111058.45768387 988862.68595206,111047.09403149 988859.81382014,111047.34378209 988856.19243642,111059.95618748 988850.44817258,111065.07607482 988845.32828524,111064.32682301 988840.95764971,111060.70543929 988844.32928283,111033.10799779 988838.83476959,111029.36173876 988939.1096362,110815.07572245 988853.6949304,110797.09367912 988893.28040078,110567.4480008 988907.51618508,110503.51184675 988953.3454205,110348.29184775 988880.16849418,110307.08299846 988967.8309554,110121.14367545 988987.43637764,110069.44530088 989252.04714022,110182.95694938 989279.14508051,110114.1506586 989350.44887731,109928.83571209 989383.29108144,109965.17442464 989413.13627835,109953.31127106 989429.37006747,109980.28433605 989405.2691344,109990.02460952 989479.44506312,110111.90290318 989492.30721911,110105.90888874 989471.20329326,110065.94879246 989579.09555323,110039.72497927 989586.58807128,110052.46225996 989622.92678384,110037.72697446 989578.97067793,109946.81775541 989698.47634087,109895.74375735 989689.73506981,109875.51395861 989809.11585745,109854.78465866 989815.6093731,109816.19819069 989828.22177849,109755.50879446 989838.96105436,109721.66758792 989860.43960612,109710.80343675 989876.92314583,109706.80742712 989944.85530951,109715.29894758 989974.07612992,109720.04420901 989988.43678952,109725.41384695 990009.16608947,109740.77350896 990038.51178518,109800.33902748 990060.86446403,109780.23410404 990077.34800375,109773.61571309 990149.40105236,109774.24008959 990184.24126131,109764.49981613 990194.48103598,109758.75555228 990225.9496118,109798.84052387 990262.91270086,109875.76370921 990285.76488092,109929.46008859 990288.01263634,109964.67492344 990320.10558867,109988.15148001 990325.84985251,110011.00366007 990364.93582168,110095.54423876 990392.40838788,110164.22565425 990411.38943361,110201.93799512 990465.9599401,110156.23363499 990470.08082503,110161.60327293 990475.07583706,110157.7321386 990476.57434067,110163.60127775 990485.44048704,110175.08980543 990488.31261896,110177.46243614 990734.441837,110183.58132589 990729.69657556,110204.43550114 990731.69458038,110202.81212222 990741.18510324,110198.06686079 990775.02630978,110224.41554928 990879.92156253,110113.40140679 990935.86569732,110047.21749732 990987.68894719,109977.03757823 990989.9367026,109915.9735561 991039.26244645,109772.86646128 991175.75115032,109813.95043528 991144.03282389,109942.69687048 991095.83095775,110038.85085216 991243.05893749,110085.55421469 991338.33879207,110112.90190559 991353.44870347,110021.36831004 991595.58191189,110067.19754546 991791.01175777,110179.71019156 991779.77298069,110195.06985357 991673.62897494,110348.54159835 991670.50709242,110347.04309474 991659.76781654,110333.30681164 991639.03851659,110312.702387 991598.95354501,110284.8551949 991568.35909629,110255.3846239 991548.12929755,110244.14584682 991540.7616548,110236.40357816 991541.3860313,110227.6623071 991540.2621536,110225.78917758 991493.43391576,110206.05888005 991439.86241168,110192.57234755 991344.08305591,110162.10277414 991337.09003906,110182.20769758 991309.99209877,110230.78418962 991288.13892111,110283.35669129 991273.27876031,110314.45064121 991263.91311274,110346.16896764 991235.81617004,110402.73747894 991207.34460144,110454.6856041 991145.1567016,110590.92455737 991107.94386194,110681.2093999 991079.97179454,110729.03664014 991071.10564818,110746.01968106 991074.2275307,110756.13458043 991082.21954996,110767.37335751 991092.08469873,110802.83794296 991095.08170595,110823.69211821 991093.95782824,110872.39348556 991090.46131981,110890.00090298 991079.84691924,110919.72122459 991033.51818261,111006.88418461 991112.31449747,111043.84727367 991039.88682296,111210.05629914 991029.14754708,111244.52188218 990961.7148846,111219.79657261 990954.84674306,111243.89750568 990930.62093468,111238.52786774 990896.77972814,111366.64992645 990918.1334046,111415.22641849 990869.68178785,111425.21644256 990881.91956734,111455.06163947 990901.77474018,111448.31837322 990915.38614798,111449.31737563 990921.00553652,111452.06463225 990949.97660632,111478.41332074 990960.34125629,111492.77398034 990960.5910069,111499.01774538 990950.10148162,111498.14361828 990934.11744311,111518.24854172 990997.80384656,111524.24255616 990993.18346043,111545.09673141 990931.99456299,111652.73924077 990843.83260057,111585.43145359 990813.11327655,111647.99397934 990781.02032423,111721.67040686 990725.32594003,111865.15212757 990732.06920628,111879.38791187 990639.41173302,112131.76089496 990697.35387264,112160.48221416 990613.31279514,112367.77521362 990558.99203926,112479.66348321 990497.30364062,112460.43268688 990472.32858044,112562.7055583 990419.13170227,112827.69094677 990402.27353665,112903.24050381 990283.14249961,112852.04163044 990259.29131714,112920.97279653 990330.22048804,112954.43937717 990270.15546831,113076.56742143 990149.40105236,113266.50275407 990167.25822039,113274.99427453 990151.14930657,113297.09720279 990183.2422589,113312.956366 990095.70467298,113429.96452293</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></bus:GEOM><bus:MI_PRINX>1</bus:MI_PRINX></bus:COMM></gml:featureMember></wfs:FeatureCollection>
Reading the feature, I get the folling error :
11-juin-2006 14:59:48 org.geotools.xml.XMLSAXHandler startElement
ATTENTION: org.xml.sax.SAXException: Could not find element handler for http://www.opengis.net/gml : Polygon as a child of GeometryAssociationType.
11-juin-2006 14:59:48 org.geotools.xml.XMLSAXHandler startElement
ATTENTION: Line 2 Col 921
11-juin-2006 14:59:48 org.geotools.data.wfs.WFSDataStore getFeatureReader
ATTENTION: java.io.IOException: org.xml.sax.SAXException: Could not find element handler for http://www.opengis.net/gml : Polygon as a child of GeometryAssociationType.
Doing the same on topp:states sample works fine
Don't know if the problem is in the WFS answer (slightly different with topp:states) of in the way GeoTools interprets things but at least it does not work. An Idea ?
Bernard
--
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