org.simpleframework.xml.core.InstantiationException: Type class java.util.ArrayList is not compatible with class java.lang.String

Coderanch | Matt Kohanek | 8 years ago
  1. 0

    java.util.ArrayList is not compatible with class java.lang.String exception (SOLVED)

    Coderanch | 8 years ago | Matt Kohanek
    org.simpleframework.xml.core.InstantiationException: Type class java.util.ArrayList is not compatible with class java.lang.String
  2. 0

    java.util.ArrayList is not compatible with class java.lang.String exception

    Coderanch | 8 years ago | Henry Wong
    org.simpleframework.xml.core.InstantiationException: Type class java.util.ArrayList is not compatible with class java.lang.String
  3. 0

    Custom converter of Simple XML is not serializing from xml to java object

    Stack Overflow | 3 years ago | lazyguy
    org.simpleframework.xml.core.InstantiationException: Incompatible class [B for field 'imageRef' protected byte[] com.test.Device.imageRef at line 4 at org.simpleframework.xml.core.Factory.getOverride(Factory.java:147) at org.simpleframework.xml.core.PrimitiveFactory.getInstance(PrimitiveFactory.java:82) at org.simpleframework.xml.core.Primitive.readElement(Primitive.java:186)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.simpleframework.xml.core.InstantiationException

      Type class java.util.ArrayList is not compatible with class java.lang.String

      at org.simpleframework.xml.core.Factory.getOverride()
    2. Simple XML
      Persister.read
      1. org.simpleframework.xml.core.Factory.getOverride(Factory.java:105)
      2. org.simpleframework.xml.core.PrimitiveFactory.getInstance(PrimitiveFactory.java:66)
      3. org.simpleframework.xml.core.Primitive.readElement(Primitive.java:181)
      4. org.simpleframework.xml.core.Primitive.read(Primitive.java:119)
      5. org.simpleframework.xml.core.Composite.readObject(Composite.java:520)
      6. org.simpleframework.xml.core.Composite.read(Composite.java:477)
      7. org.simpleframework.xml.core.Composite.readElement(Composite.java:458)
      8. org.simpleframework.xml.core.Composite.readElements(Composite.java:374)
      9. org.simpleframework.xml.core.Composite.read(Composite.java:259)
      10. org.simpleframework.xml.core.Composite.read(Composite.java:204)
      11. org.simpleframework.xml.core.Composite.read(Composite.java:158)
      12. org.simpleframework.xml.core.Composite.read(Composite.java:135)
      13. org.simpleframework.xml.core.Traverser.read(Traverser.java:78)
      14. org.simpleframework.xml.core.CompositeInlineList.read(CompositeInlineList.java:182)
      15. org.simpleframework.xml.core.CompositeInlineList.read(CompositeInlineList.java:159)
      16. org.simpleframework.xml.core.CompositeInlineList.read(CompositeInlineList.java:117)
      17. org.simpleframework.xml.core.Composite.readObject(Composite.java:520)
      18. org.simpleframework.xml.core.Composite.read(Composite.java:477)
      19. org.simpleframework.xml.core.Composite.readElement(Composite.java:458)
      20. org.simpleframework.xml.core.Composite.readElements(Composite.java:374)
      21. org.simpleframework.xml.core.Composite.read(Composite.java:259)
      22. org.simpleframework.xml.core.Composite.read(Composite.java:204)
      23. org.simpleframework.xml.core.Composite.read(Composite.java:158)
      24. org.simpleframework.xml.core.Composite.read(Composite.java:135)
      25. org.simpleframework.xml.core.Traverser.read(Traverser.java:78)
      26. org.simpleframework.xml.core.Persister.read(Persister.java:544)
      27. org.simpleframework.xml.core.Persister.read(Persister.java:526)
      28. org.simpleframework.xml.core.Persister.read(Persister.java:507)
      29. org.simpleframework.xml.core.Persister.read(Persister.java:489)
      30. org.simpleframework.xml.core.Persister.read(Persister.java:471)
      31. org.simpleframework.xml.core.Persister.read(Persister.java:452)
      31 frames
    3. projectContainer
      MeasurementProjectCollectionXMLAO.readXML
      1. projectContainer.MeasurementProjectCollectionXMLAO.readXML(MeasurementProjectCollectionXMLAO.java:17)
      1 frame
    4. testContainer
      TempMain.main
      1. testContainer.ProjectTreeTest.loadProjectNodes(ProjectTreeTest.java:34)
      2. testContainer.TempMain.main(TempMain.java:11)
      2 frames