Re: [Simple-support] Simple XML and Android
Brought to you by:
niallg
|
From: Eddy U. <edd...@we...> - 2012-04-03 22:17:10
|
sorry, just forgot to paste the full error stack: http://pastebin.com/7Nrk1esD - eddy 2012/4/4 Eddy Unruh <edd...@we...> > Hello everybody, > > > I am trying to use the Simple XML library with Android and getting some > errors with it, where the main error is this: > "org.eclipse.persistence.indirection.IndirectList in loader > dalvik.system.PathClassLoader..." > > The Model which has to be deserialized is also used by a rest-server to > produce the necessary XML, there are also some JPA-annotations like the > following: > @OneToMany > @ElementList(required = false) > private List<Substance> substances = new ArrayList<>(); > > this line produces the following xml output: > <substances class="org.eclipse.persistence.indirection.IndirectList"> > ... > </substances> > > Here I see now where the error is coming from - Android is not aware of > org.eclipse.persistence! > But my question is now: Why is the line class="...IndirectList" produced > and how can I change that to avoid the errors in the Android application? > > > Best regards > eddy > > |