java.lang.RuntimeException: Encode failed for _Feature. Cause: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Writing GML causes XML encoding error?

    Geographic Information Systems | 6 months ago | Francesco
    java.lang.RuntimeException: Encode failed for _Feature. Cause: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.

    Root Cause Analysis

    1. java.lang.RuntimeException

      Encode failed for _Feature. Cause: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.

      at org.geotools.xml.impl.ElementEncodeExecutor.visit()
    2. org.geotools.xml
      Encoder.encode
      1. org.geotools.xml.impl.ElementEncodeExecutor.visit(ElementEncodeExecutor.java:132)
      2. org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:215)
      3. org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:181)
      4. org.geotools.xml.impl.BindingVisitorDispatch.walk(BindingVisitorDispatch.java:44)
      5. org.geotools.xml.impl.ElementEncoder.encode(ElementEncoder.java:83)
      6. org.geotools.xml.Encoder.encode(Encoder.java:1100)
      7. org.geotools.xml.Encoder.encode(Encoder.java:836)
      8. org.geotools.xml.Encoder.encode(Encoder.java:564)
      8 frames