2012-12-18 58 views
2

我試圖從文本文件生成KML文件。 當我嘗試編組內存文件時,出現以下異常。 任何線索?使用JavaAPIForKML寫入KML文件的問題

javax.xml.bind.PropertyException: name: com.sun.xml.bind.namespacePrefixMapper value: [email protected] 
    at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(Unknown Source) 
    at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.setProperty(Unknown Source) 
    at de.micromata.opengis.kml.v_2_2_0.Kml.createMarshaller(Kml.java:642) 
    at de.micromata.opengis.kml.v_2_2_0.Kml.marshal(Kml.java:682) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at sun.reflect.misc.Trampoline.invoke(Unknown Source) 
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at sun.reflect.misc.MethodUtil.invoke(Unknown Source) 

回答