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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Matt Kohanek, 1 year ago
Type class java.util.ArrayList is not compatible with class java.lang.String
via Coderanch by Henry Wong, 1 year ago
Type class java.util.ArrayList is not compatible with class java.lang.String
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(Factory.java:105)
at org.simpleframework.xml.core.PrimitiveFactory.getInstance(PrimitiveFactory.java:66)
at org.simpleframework.xml.core.Primitive.readElement(Primitive.java:181)
at org.simpleframework.xml.core.Primitive.read(Primitive.java:119)
at org.simpleframework.xml.core.Composite.readObject(Composite.java:520)
at org.simpleframework.xml.core.Composite.read(Composite.java:477)
at org.simpleframework.xml.core.Composite.readElement(Composite.java:458)
at org.simpleframework.xml.core.Composite.readElements(Composite.java:374)
at org.simpleframework.xml.core.Composite.read(Composite.java:259)
at org.simpleframework.xml.core.Composite.read(Composite.java:204)
at org.simpleframework.xml.core.Composite.read(Composite.java:158)
at org.simpleframework.xml.core.Composite.read(Composite.java:135)
at org.simpleframework.xml.core.Traverser.read(Traverser.java:78)
at org.simpleframework.xml.core.CompositeInlineList.read(CompositeInlineList.java:182)
at org.simpleframework.xml.core.CompositeInlineList.read(CompositeInlineList.java:159)
at org.simpleframework.xml.core.CompositeInlineList.read(CompositeInlineList.java:117)
at org.simpleframework.xml.core.Composite.readObject(Composite.java:520)
at org.simpleframework.xml.core.Composite.read(Composite.java:477)
at org.simpleframework.xml.core.Composite.readElement(Composite.java:458)
at org.simpleframework.xml.core.Composite.readElements(Composite.java:374)
at org.simpleframework.xml.core.Composite.read(Composite.java:259)
at org.simpleframework.xml.core.Composite.read(Composite.java:204)
at org.simpleframework.xml.core.Composite.read(Composite.java:158)
at org.simpleframework.xml.core.Composite.read(Composite.java:135)
at org.simpleframework.xml.core.Traverser.read(Traverser.java:78)
at org.simpleframework.xml.core.Persister.read(Persister.java:544)
at org.simpleframework.xml.core.Persister.read(Persister.java:526)
at org.simpleframework.xml.core.Persister.read(Persister.java:507)
at org.simpleframework.xml.core.Persister.read(Persister.java:489)
at org.simpleframework.xml.core.Persister.read(Persister.java:471)
at projectContainer.MeasurementProjectCollectionXMLAO.readXML(MeasurementProjectCollectionXMLAO.java:17)
at testContainer.ProjectTreeTest.loadProjectNodes(ProjectTreeTest.java:34)
at testContainer.TempMain.main(TempMain.java:11)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.