Re: [appengine-java] Re: Xstream patched
I've a patched version working for the last two years on my demo app http://ph-jdo.appspot.com/ The multiple patches (that worked for me) hanging off of http://jira.codehaus.org/browse/XSTR-566 are not good enough for the XStream team. They'll get round to fixing the issue soon I hear. It may mean a change in constructors for XStream. Meanwhile, one of you that's able to, could fork XStream to Github (git-svn checkout) and play with permutations there until it works for you. The trick while debugging it is to wrap everything with try/catch and stream to sys-out or a logger, if not the page itself as you go through trial and error. It was a journey of discovery a couple of years ago, and has to be done on the production GAE stack, as the SDK does not (did not?) have the same permissions. - Paul On Thu, Feb 3, 2011 at 12:14 PM, Jonny wrote: > Thanks, > > If I use the DomDriver in the XStream constructor I still get the > error about using restricted classes (Reflection) when in the GAE > context. When I run my unit tests with the same patched .jar - > everything is OK. > > Am I missing something? > > On Jan 26, 4:58 pm, Charms Styler wrote: > > yes we do... try this outhttp:// > guice-maven.googlecode.com/svn/trunk/com/thoughtworks/xstream/... > > -- > 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 > google-appengine-java@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Xstream patched
Thanks, If I use the DomDriver in the XStream constructor I still get the error about using restricted classes (Reflection) when in the GAE context. When I run my unit tests with the same patched .jar - everything is OK. Am I missing something? On Jan 26, 4:58 pm, Charms Styler wrote: > yes we do... try this > outhttp://guice-maven.googlecode.com/svn/trunk/com/thoughtworks/xstream/... -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Xstream patched
I have downloaded it and tested and it doesn't work in GAE context. I have tried PureJavaReflection in the constructor but still I get errors RE reflection. Are you using a specific configuration/set-up too? Thanks. On Jan 27, 2:38 pm, Charms Styler wrote: > Wel I have been using it on my apps too, I suggest your post your source. -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Xstream patched
Wich source..? I only call : XStream xstream = new XStream(new DomDriver()); InputStream input = new FileInputStream("WEB-INF/myFile.xml"); And the class serialize are standard... What does the patch improve into the source of xstream? Many thanks On 27 jan, 15:38, Charms Styler wrote: > Wel I have been using it on my apps too, I suggest your post your source. -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Xstream patched
Wel I have been using it on my apps too, I suggest your post your source. -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Xstream patched
Thanks. However, I've tryed with your .jar but I still have the save problem. Here is the error : java.lang.NoClassDefFoundError: sun.reflect.ReflectionFactory is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.apphosting.runtime.security.shared.stub.sun.reflect.ReflectionFactory.(ReflectionFactory.java) at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getLazyRefectionFactory(Sun14ReflectionProvider.java:105) at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getMungedConstructor(Sun14ReflectionProvider.java:97) at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:313) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162) 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:893) -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Xstream patched
yes we do... try this out http://guice-maven.googlecode.com/svn/trunk/com/thoughtworks/xstream/xstream/xstream-1.3.2-SNAPSHOT-GAE/ -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Xstream patched
Nobody has such jar file? -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.