Hi,all,sir,

what's wrong with this?


I want import org boundary data into dhis2.  add some orgs, and  create a  gml 
file as the user doc guided, file like:


 <?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
     xsi:schemaLocation="http://ogr.maptools.org/ main1.xsd"
     xmlns:ogr="http://ogr.maptools.org/";
     xmlns:gml="http://www.opengis.net/gml";>
  <gml:boundedBy>
    <gml:Box>
      
<gml:coord><gml:X>102.8622570920001</gml:X><gml:Y>30.76031556600005</gml:Y></gml:coord>
      
<gml:coord><gml:X>103.7439320390002</gml:X><gml:Y>31.71955975000006</gml:Y></gml:coord>
    </gml:Box>
  </gml:boundedBy>                      
  <gml:featureMember>
    <ogr:mian fid="F0">
      <ogr:geometryProperty><gml:Polygon 
srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>103.62481779500014,31.537141913000053
 103.62451709100016,31.535322779000094 103.62466086100014,31.530970029000084 
103.62574409700014,31.524920208000051 103.62562210100012,31.524068145000083 
103.62483881600016,31.522496213000093 103.62077686800015,31.517012467000058 
103.61973198000011,31.516817363000051 103.61885734500011,31.517819580000062 
103.61829453100013,31.517721531000085 103.61637853600016,31.514642783000085 
103.61620359500013,31.51374413900006 103.61649060200013,31.51245049100006 
103.61566895300015,31.509814311000095 103.61566493100015,31.506376836000097 
103.61484138700015,31.499969845000088 103.61530185000012,31.499406785000101 
103.61599383400012,31.496902549000055 103.61318011600015,31.496142428000066 
103.61142887600013,31.494965807000053 103.61018441000012,31.493356995000081 
103.60977310700015,31.49042244600005 103.60906637200016,31.489118429000051 
103.60893561600012,31.485424111000068 103.60917991400011,31.48509338300007 
103.60967881200015,31.484999427000073 103.61020857000013,31.485348174000048 
103.61641595100015,31.486636654000073 103.61748375300013,31.486523172000055 
103.61787105200013,31.486133061000057 103.61717549600016,31.484211331000061 
103.61726233100013,31.48018530900006 103.61651247100015,31.479319255000092 
103.61584231600013,31.477819044000082 103.61313264700013,31.475798922000049 
103.61083853700015,31.472767255000086 103.60991132600016,31.470471210000053 
103.61002406600014,31.469346598000094 103.60961751900012,31.467049335000095 
103.60977101700014,31.465334792000103 103.60906452600013,31.464366046000087 
103.60873138100013,31.463064973000055 103.60811765500014,31.462323772000072 
103.60792655000014,31.460626078000104 103.60494097100015,31.457175386000099 
103.60442228300016,31.455474271000096 103.60524883900014,31.454197550000082 
103.60598188700011,31.453668632000095 103.60651382700016,31.452535161000096 
103.60600907200013,31.451760765000099 103.60612052700017,31.450985656000078 
103.60719168500012,31.449881125000068 103.60752359700015,31.448613132000073 
103.60817147300016,31.448266954000101 103.60885253300013,31.446790817000103 
103.60899751700012,31.445902269000069 103.60872180100014,31.444486386000072 
103.60894249700013,31.442934600000083 103.60751983400016,31.440694065000084 
103.60536892300014,31.438204601000074 103.60414868400012,31.437209144000086 
103.60112570300012,31.436117216000092 103.59820572000015,31.43617112900008 
103.59795814700013,31.435909008000088 103.59921583300016,31.435360143000047 
103.59997440100013,31.434536432000098 103.60082541100016,31.434262223000097 
103.60155007500012,31.433537791000074 103.60171153800016,31.43247332700005 
103.60258477300012,31.431832749000101 103.60263035500017,31.43148643900005 
103.60358378200011,31.431288750000103 103.60388956900013,31.4304424040001 
103.60556251600015,31.428769945000077 103.60590617600016,31.427412467000092 
103.60668713000014,31.427816475000064 103.60899487200012,31.428079582000091 
103.61083890700016,31.426589160000074 103.61374410400012,31.425580170000067 
103.61409064800014,31.424663184000075 103.61453828700014,31.424543171000064 
103.61540541500013,31.423578771000077 103.61754784700015,31.423318367000064 
103.61901573400016,31.422591187000044 103.61999370900017,31.421633130000053 
103.62208813500015,31.420766748000087 103.62315267400012,31.419787511000067 
103.62367380800011,31.418333880000056 103.62494224400015,31.416700413000083 
103.62494385100015,31.41546072000008 103.62534657600015,31.414237653000065 
103.6262394160001,31.413092047000102 103.62714936400012,31.409118224000075 
103.62714712100014,31.405731434000096 103.62808331600014,31.404341044000059 
103.62850161600014,31.40296218500006 103.63011211800013,31.401142908000079 
103.63025119400011,31.398151258000066 103.63075096800017,31.396653195000081 
103.63195545200014,31.394902972000089 103.63220802200011,31.392869238000088 
103.63505027600014,31.391341454000067 103.63624302900016,31.389290379000069 
103.63672949200017,31.387600805000055 103.63693039200015,31.385826187000102 
103.63576079100012,31.384077998000091 103.63685864800013,31.381971236000052 
103.63664170600012,31.379344800000091 103.63594054100015,31.378257624000092 
103.63627556800017,31.376019742000064 103.63595001800016,31.373957759000085 
103.63703826900016,31.372957416000101 103.63714782800015,31.372075046000099 
103.63883346400016,31.371148998000049 103.63937043100012,31.369159188000051 
103.64016113100014,31.368340674000045 103.63971725900014,31.367078627000094 
103.63929113300016,31.366875879000098 103.63918561500017,31.366053125000089 
103.63740571000012,31.365744545000062 103.63700972900014,31.364677906000079 
103.63765360100014,31.363793144000081 103.63743542100015,31.362691703000081 
103.63784985600013,31.361457497000082 103.63914712200014,31.360321926000065 
103.64004466300015,31.359851623000075 103.64074622600012,31.35984854900007 
103.64188999700016,31.358832251000049 103.64203726200017,31.357851158000098 
103.64125391800015,31.355803097000056 103.63411531900012,31.353278317000068 
103.63191274300013,31.352914871000074 103.63010059800015,31.351213422000079 
103.62900111500012,31.349276580000062 103.62716195200012,31.3479925870001 
103.62616168600013,31.346685992000086 103.62552402700011,31.346530366000046 
103.62481424800015,31.346565145000081 103.62368131800015,31.347155403000066 
103.62182895600014,31.34736007100005 103.61880439100017,31.348825444000081 
103.61790771400015,31.348992541000051 103.61586096500015,31.349049838000067 
103.61362202600017,31.348526971000094 103.61019665900014,31.349154543000079 
103.60928586600014,31.349708299000071 103.60834407900015,31.35122393300005 
103.60607777600015,31.352625979000059 103.60258312800013,31.35344828100008 
103.60200879700012,31.353237550000099 103.60148123000013,31.355516185000077 
103.60194737700013,31.357203585000061 103.60283568700011,31.358239576000095 
103.60290881100015,31.360524257000087 103.60226878400012,31.36127678700009 
103.60130308100015,31.361667874000062 103.60120048000012,31.36348680800009 
103.59987685900013,31.365635682000086 103.59776384500016,31.366511052000103 
103.59556354200011,31.366961693000086 103.59278279100012,31.368602462000094 
103.59011538900013,31.370798626000092 103.58941489200012,31.372068068000058 
103.58849095700012,31.372864396000097 103.58607695000015,31.376252127000065 
103.58437395300014,31.377152204000048 103.58332113700013,31.378601393000075 
103.58203770500015,31.37869943300009 103.58018912800017,31.379881730000101 
103.57732087500013,31.38081541700009 103.57606210700011,31.382076639000072 
103.57553602800012,31.382939039000085 103.57565103000015,31.384110693000054 
103.57412459900016,31.388278940000102 103.57285349100013,31.389930921000051 
103.57225075100015,31.390317392000068 103.57074163900013,31.39278848600005 
103.56995644900014,31.399215905000084 103.56867301900016,31.401827221000101 
103.56770374800013,31.402373065000084 103.56687896000012,31.402446893000072 
103.56617643400014,31.405433362000078 103.56512458100016,31.407922636000048 
103.56445039000012,31.408794576000073 103.56378333200014,31.409234827000059 
103.56250449200016,31.408449516000097 103.56187744600011,31.408845349000067 
103.55982040200016,31.408649446000052 103.55791057600013,31.409182450000085 
103.55640292900013,31.410065806000059 103.55446777000016,31.412270493000076 
103.55205790400011,31.413940363000073 103.55101376700017,31.415040002000094 
103.54919258700012,31.41572451600009 103.54330201000012,31.416420295000048 
103.53750527700011,31.41842749200006 103.53686650100016,31.418942286000089 
103.53900544300015,31.422984365000069 103.53894935000014,31.42340968300007 
103.53762901800016,31.424778653000061 103.53769215000013,31.425391362000049 
103.53942062100012,31.427140379000058 103.54116781400015,31.4278698140001 
103.54097261200016,31.428999484000059 103.53948706100013,31.430941600000065 
103.53775437300013,31.431901356000051 103.53042779800015,31.432202906000065 
103.52809331700016,31.432015059000058 103.52646908400013,31.432229018000069 
103.52532488800014,31.432799260000049 103.52319605900011,31.435906402000079 
103.52259260800015,31.438050751000073 103.52214807600015,31.438335850000065 
103.51988646700012,31.438648340000068 103.51714264800013,31.440382700000065 
103.51725650000017,31.442871348000065 103.51829932800015,31.444452361000085 
103.51831778800013,31.44648856400007 103.51869604400015,31.447420070000099 
103.51871748500017,31.447825925000096 103.51814020400015,31.448696076000058 
103.51782932600017,31.44899668400009 103.51604613200011,31.448872179000059 
103.51293939600012,31.449848311000061 103.51168105600011,31.449942529000076 
103.51130975100014,31.450542249000105 103.51013668700013,31.451263240000085 
103.50845025000015,31.451889299000101 103.50708763200012,31.453796232000084 
103.50533355300014,31.455522564000056 103.50435390900016,31.45604985800005 
103.50325467600013,31.456113200000086 103.50034704600013,31.458507746000095 
103.49883950900013,31.458952604000071 103.49757963500015,31.45986819000009 
103.49686870700012,31.460872470000051 103.49784445700013,31.467159693000067 
103.49752771500012,31.470569373000071 103.49586436700017,31.471733291000099 
103.49415506600015,31.4715850790001 103.49309343800016,31.472535619000066 
103.49099294900017,31.473455987000101 103.49004015900012,31.474183790000065 
103.48869100700014,31.475876953000093 103.49203871200015,31.477121032000095 
103.49343410400014,31.47793779600007 103.49488242500014,31.480250765000072 
103.49747225200016,31.480802804000085 103.49842637700013,31.481384092000063 
103.49853267000016,31.482114362000086 103.50055452300013,31.483202493000103 
103.50248157500013,31.483500917000093 103.50329121500013,31.48413383100009 
103.50517771200012,31.484726453000089 103.50630137400017,31.485411347000049 
103.50724335300011,31.485499684000072 103.50860092700012,31.486473194000066 
103.51521376200017,31.487527849000081 103.51669044100012,31.487432972000104 
103.51862118100016,31.48846504400009 103.51990077800016,31.48822062200005 
103.52256570200015,31.489015100000096 103.52392603600012,31.48879828700009 
103.52537281300012,31.489379613000064 103.52759605400016,31.491203803000101 
103.52829551500015,31.492079224000086 103.52865375700016,31.494974638000055 
103.52736867500012,31.497073374000045 103.52732942100012,31.498943074000092 
103.52601919000014,31.501112296000056 103.52528981400016,31.502978597000062 
103.52306385400013,31.50657512800009 103.52361891700015,31.509368819000056 
103.52431098500013,31.510023864000082 103.52413650300016,31.510587718000089 
103.52451339200016,31.511259844000076 103.52439295300016,31.511672397000066 
103.52487793700011,31.512427781000071 103.52633755400014,31.51326135400009 
103.52543816600014,31.514020151000093 103.52379364600014,31.514728923000089 
103.52403538700015,31.516697418000057 103.52452855500016,31.516935029000045 
103.52676649400016,31.515376016000086 103.52852093700014,31.512956120000094 
103.52889537600012,31.510676469000057 103.53038939900014,31.507611568000101 
103.53070603200015,31.504696838000051 103.53105774700012,31.504440538000065 
103.53163848400013,31.504842151000073 103.53214288700016,31.505864041000077 
103.53170736800014,31.512078428000077 103.53214134200013,31.513777647000062 
103.53196857300016,31.515295256000083 103.53224184400014,31.51714972900006 
103.53311455500014,31.520235164000063 103.53462333300016,31.521505286000057 
103.53677480200015,31.52114338000009 103.53923927500014,31.520204100000083 
103.54097423600014,31.519025626000051 103.54146956300015,31.519127912000066 
103.54212028400016,31.52066206800006 103.54257415700013,31.52090797800005 
103.54345597800013,31.520944970000098 103.54420336800015,31.520572555000083 
103.54606604700015,31.520750014000068 103.55100532200012,31.519975573000092 
103.55088237500016,31.518393058000097 103.55110434100011,31.517687440000056 
103.55233315600016,31.517535306000092 103.55414326500014,31.516401303000091 
103.55749290900015,31.515431414000059 103.55857422700014,31.514206669000053 
103.56216867900017,31.512823498000071 103.56262722000017,31.512415444000084 
103.56351576100015,31.510522519000087 103.56580989900012,31.50921440700008 
103.56919220500012,31.504763201000085 103.57092603800011,31.503994264000053 
103.57200398100017,31.502955279000073 103.57183086300013,31.5023324950001 
103.57222192300016,31.500305189000098 103.57350422200012,31.499539486000085 
103.57544071400015,31.497127875000068 103.57613669000014,31.495944918000102 
103.57670660000016,31.493334006000079 103.57783366400017,31.492495209000047 
103.57915763800017,31.492857100000059 103.58194634400014,31.495070477000095 
103.58561951400017,31.498979430000102 103.58673209400014,31.499778119000062 
103.58969100800012,31.500105378000082 103.59077605800015,31.500498184000058 
103.59304634400014,31.502807226000098 103.59640892700016,31.505093612000078 
103.59680238400013,31.505824674000074 103.59651627600012,31.508874909000063 
103.59678368400014,31.509995182000093 103.59734252000013,31.510485813000081 
103.59943477800012,31.511200869000071 103.60410473800012,31.513684053000098 
103.60930783000011,31.515369390000071 103.61166546900014,31.516894048000065 
103.61213934200011,31.518592576000081 103.61185657400014,31.519180706000068 
103.61198047300016,31.520129493000095 103.61135236300011,31.520967574000075 
103.61199383400012,31.523026267000056 103.61183536700015,31.524625893000092 
103.61140100700013,31.525554643000099 103.61198029000015,31.527894198000098 
103.61284948200013,31.529443261000065 103.61341040200013,31.531500151000071 
103.61215828100013,31.533791765000071 103.61228674800016,31.534770259000052 
103.61303369100014,31.535984386000074 103.61274521900012,31.53733012000006 
103.61329348600012,31.537712645000077 103.6143091950001,31.539241295000096 
103.61415593900013,31.540066423000066 103.61439901600014,31.541568178000059 
103.61625099000017,31.544904356000099 103.61941394700013,31.546458071000099 
103.62088600000013,31.542548023000073 103.62328803700015,31.539756751000048 
103.62481779500014,31.537141913000053</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
      <ogr:name>xxxx</ogr:name>
      <ogr:Code>513221100</ogr:Code>
    </ogr:mian>
  </gml:featureMember>
</ogr:FeatureCollection>


where I import with no org, the import can complete ok , but after add org,  
the "ogr:name" or "ogr:Code" value  all exists in orgtree,  but  got :


   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 
'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
Warning:  org.apache.xerces.parsers.SAXParser: Feature 
'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 
'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 
'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not 
recognized.
* INFO  2017-11-28 15:30:09,684 [Level: ERROR, category: METADATA_IMPORT, time: 
Tue Nov 28 15:30:09 CST 2017, message: GML import failed: GML import failed 
during pre-processing stage.] (InMemoryNotifier.java [taskScheduler-2])
* ERROR 2017-11-28 15:30:09,693 GML import failed:  
(DefaultGmlImportService.java [taskScheduler-2])
java.lang.Exception: GML import failed during pre-processing stage.
        at 
org.hisp.dhis.dxf2.gml.DefaultGmlImportService.preProcessGml(DefaultGmlImportService.java:221)
        at 
org.hisp.dhis.dxf2.gml.DefaultGmlImportService.importGml(DefaultGmlImportService.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
        at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
        at com.sun.proxy.$Proxy200.importGml(Unknown Source)
        at 
org.hisp.dhis.importexport.action.util.ImportMetaDataGmlTask.call(ImportMetaDataGmlTask.java:71)
        at 
org.hisp.dhis.security.SecurityContextRunnable.run(SecurityContextRunnable.java:57)
        at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)



--

此致

   林晓东

莫愁前路无知己,天下谁人不识君。
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to