org.simpleframework.xml.core.PersistenceException: Duplicate annotation of name 'effects' on @org.simpleframework.xml.ElementListUnion(value=[@org.simpleframework.xml.ElementList(entry=attraction, inline=false, data=false, name=effects, type=class net.keigwin.entities.Attraction, required=true, empty=true), @org.simpleframework.xml.ElementList(entry=repulsion, inline=false, data=false, name=effects, type=class net.keigwin.entities.Repulsion, required=true, empty=true)]) on field 'mEffects' private java.util.List net.keigwin.entities.Environment.mEffects

Stack Overflow | Kevin K. | 10 months ago
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

    SimpleXml: How to set name when using ElementUnionList

    Stack Overflow | 10 months ago | Kevin K.
    org.simpleframework.xml.core.PersistenceException: Duplicate annotation of name 'effects' on @org.simpleframework.xml.ElementListUnion(value=[@org.simpleframework.xml.ElementList(entry=attraction, inline=false, data=false, name=effects, type=class net.keigwin.entities.Attraction, required=true, empty=true), @org.simpleframework.xml.ElementList(entry=repulsion, inline=false, data=false, name=effects, type=class net.keigwin.entities.Repulsion, required=true, empty=true)]) on field 'mEffects' private java.util.List net.keigwin.entities.Environment.mEffects
  2. 0

    SimpleXML Duplicate annotation of name 'field'

    Stack Overflow | 11 months ago | user1734209
    org.simpleframework.xml.core.PersistenceException: Duplicate annotation of name 'field' on @org.simpleframework.xml.ElementListUnion(value=[@org.simpleframework.xml.ElementList(data=false, empty=true, entry=, inline=false, name=, required=true, type=class com.example.test.client.formdata.model.CltDataTypeLocation), @org.simpleframework.xml.ElementList(data=false, empty=true, entry=, inline=false, name=, required=true, type=class com.example.test.client.formdata.model.CltDataTypeUser), @org.simpleframework.xml.ElementList(data=false, empty=true, entry=, inline=false, name=, required=true, type=class com.example.test.client.formdata.model.CltDataTypeText)]) on field 'field' protected java.util.List com.example.test.client.formdata.model.Formroot$Auto.field

    Root Cause Analysis

    1. org.simpleframework.xml.core.PersistenceException

      Duplicate annotation of name 'effects' on @org.simpleframework.xml.ElementListUnion(value=[@org.simpleframework.xml.ElementList(entry=attraction, inline=false, data=false, name=effects, type=class net.keigwin.entities.Attraction, required=true, empty=true), @org.simpleframework.xml.ElementList(entry=repulsion, inline=false, data=false, name=effects, type=class net.keigwin.entities.Repulsion, required=true, empty=true)]) on field 'mEffects' private java.util.List net.keigwin.entities.Environment.mEffects

      at org.simpleframework.xml.core.StructureBuilder.union()
    2. Simple XML
      StructureBuilder.union
      1. org.simpleframework.xml.core.StructureBuilder.union(StructureBuilder.java:225)
      1 frame