Anyone figure out a solution to this? I really need xstream.... On Aug 8, 4:37 am, dflorey <[email protected]> wrote: > I guess that due to reflection restrictions it is not possible to > useXStreamor other tools relying on relection. > I ended up with creating serializable dto classes. > > On 8 Aug., 08:33, Iqbal Yusuf Dipu <[email protected]> wrote: > > > > > Tried the patch... I'm probably doing something wrong.. getting > > reflection error.. I really needed a XML serializer/de-serializer > > badly... :( Jaxb doesn't work. I can't makeXStreamwork... I've tried > > Bitwext and couldn't make it work.... Can someone guide me to a easy > > simple xml to java serializer that works in GAEj? > > > Thanks. > > > Iqbal Yusuf Dipu > > > On Aug 4, 8:44 am, Sheel <[email protected]> wrote: > > > > Hi, > > > I have a patched version ofxstreamjar which I used with my > > > application. > > > You can download it from > > > herehttp://cloudcms.sheelapps.com/vfs/download/xstream-gae.jar > > > Give it a try. > > > But I think your error is related to Google data api. > > > > Sheelhttp://cloudcms.sheelapps.com > > > CMS for Google App Engine > > > > On Aug 3, 8:34 am, dflorey <[email protected]> wrote: > > > > > I've updated to latestXStreamtrunk and applied your patch. Now I get > > > > a different excpetion: > > > > > com.thoughtworks.xstream.converters.ConversionException: Cannot > > > > construct com.google.gdata.util.common.xml.XmlNamespace as it does not > > > > have a no-args constructor : Cannot construct > > > > com.google.gdata.util.common.xml.XmlNamespace as it does not have a no- > > > > args constructor > > > > ---- Debugging information ---- > > > > message : Cannot construct > > > > com.google.gdata.util.common.xml.XmlNamespace as it does not have a no- > > > > args constructor > > > > cause-exception : > > > > com.thoughtworks.xstream.converters.reflection.ObjectAccessException > > > > cause-message : Cannot construct > > > > com.google.gdata.util.common.xml.XmlNamespace as it does not have a no- > > > > args constructor > > > > class : java.util.ArrayList > > > > required-type : com.google.gdata.util.common.xml.XmlNamespace > > > > path : /list/ > > > > com.google.gdata.data.contacts.ContactEntry/nonRepeatingExtensionMap/ > > > > entry/com.google.gdata.data.extensions.Name/namespace > > > > ------------------------------- > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert > > > > (TreeUnmarshaller.java:78) > > > > at > > > > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert > > > > (AbstractReferenceUnmarshaller.java:63) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > (TreeUnmarshaller.java:65) > > > > at > > > > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. > > > > unmarshallField > > > > (AbstractReflectionConverter.java:256) > > > > at > > > > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. > > > > doUnmarshal > > > > (AbstractReflectionConverter.java:228) > > > > at > > > > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. > > > > unmarshal > > > > (AbstractReflectionConverter.java:168) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert > > > > (TreeUnmarshaller.java:71) > > > > at > > > > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert > > > > (AbstractReferenceUnmarshaller.java:63) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > (TreeUnmarshaller.java:65) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > (TreeUnmarshaller.java:49) > > > > at > > > > com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter > > > > .readItem > > > > (AbstractCollectionConverter.java:71) > > > > at > > > > com.thoughtworks.xstream.converters.collections.MapConverter.populateMap > > > > (MapConverter.java:79) > > > > at > > > > com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal > > > > (MapConverter.java:66) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert > > > > (TreeUnmarshaller.java:71) > > > > at > > > > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert > > > > (AbstractReferenceUnmarshaller.java:63) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > (TreeUnmarshaller.java:65) > > > > at > > > > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. > > > > unmarshallField > > > > (AbstractReflectionConverter.java:256) > > > > at > > > > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. > > > > doUnmarshal > > > > (AbstractReflectionConverter.java:228) > > > > at > > > > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. > > > > unmarshal > > > > (AbstractReflectionConverter.java:168) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert > > > > (TreeUnmarshaller.java:71) > > > > at > > > > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert > > > > (AbstractReferenceUnmarshaller.java:63) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > (TreeUnmarshaller.java:65) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > (TreeUnmarshaller.java:49) > > > > at > > > > com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter > > > > .readItem > > > > (AbstractCollectionConverter.java:71) > > > > at > > > > com.thoughtworks.xstream.converters.collections.CollectionConverter.populat > > > > eCollection > > > > (CollectionConverter.java:68) > > > > at > > > > com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarsh > > > > al > > > > (CollectionConverter.java:61) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert > > > > (TreeUnmarshaller.java:71) > > > > at > > > > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert > > > > (AbstractReferenceUnmarshaller.java:63) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > (TreeUnmarshaller.java:65) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > (TreeUnmarshaller.java:49) > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.start > > > > (TreeUnmarshaller.java:126) > > > > at > > > > > On 3 Aug., 13:03, dflorey <[email protected]> wrote: > > > > > > FYI, this is the exception that I get when unsing .fromXML(String > > > > > xml): > > > > > > java.lang.NoClassDefFoundError: Could not initialize class > > > > > com.google.apphosting.runtime.security.shared.stub.sun.reflect.ReflectionFa > > > > > ctory > > > > > at > > > > > com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getL > > > > > azyRefectionFactory > > > > > (Sun14ReflectionProvider.java:105) > > > > > at > > > > > com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getM > > > > > ungedConstructor > > > > > (Sun14ReflectionProvider.java:97) > > > > > at > > > > > com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newI > > > > > nstance > > > > > (Sun14ReflectionProvider.java:76) > > > > > at > > > > > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. > > > > > instantiateNewInstance > > > > > (AbstractReflectionConverter.java:308) > > > > > at > > > > > com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. > > > > > unmarshal > > > > > (AbstractReflectionConverter.java:161) > > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert > > > > > (TreeUnmarshaller.java:82) > > > > > at > > > > > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert > > > > > (AbstractReferenceUnmarshaller.java:63) > > > > > at > > > > > com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > > (TreeUnmarshaller.java:76) > > > > > at > > > > > com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > > (TreeUnmarshaller.java:60) > > > > > at > > > > > com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter > > > > > .readItem > > > > > (AbstractCollectionConverter.java:71) > > > > > at > > > > > com.thoughtworks.xstream.converters.collections.CollectionConverter.populat > > > > > eCollection > > > > > (CollectionConverter.java:68) > > > > > at > > > > > com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarsh > > > > > al > > > > > (CollectionConverter.java:61) > > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.convert > > > > > (TreeUnmarshaller.java:82) > > > > > at > > > > > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert > > > > > (AbstractReferenceUnmarshaller.java:63) > > > > > at > > > > > com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > > (TreeUnmarshaller.java:76) > > > > > at > > > > > com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother > > > > > (TreeUnmarshaller.java:60) > > > > > at com.thoughtworks.xstream.core.TreeUnmarshaller.start > > > > > (TreeUnmarshaller.java:137) > > > > > at > > > > > com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal > > > > > (AbstractTreeMarshallingStrategy.java:33) > > > > > at > > > > > com.thoughtworks.xstream.XStream.unmarshal(XStream.java:965) > > > > > at > > > > > com.thoughtworks.xstream.XStream.unmarshal(XStream.java:950) > > > > > at com.thoughtworks.xstream.XStream.fromXML(XStream.java:884) > > > > > at com.thoughtworks.xstream.XStream.fromXML(XStream.java:875) > > > > > > On 3 Aug., 11:36, dflorey <[email protected]> wrote: > > > > > > > Is the jar file applied in the jira issue the one containing your > > > > > > patch? I still get reflection errors on app engine using it. > > > > > > > On 3 Aug., > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
