Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xstream on Google app engine

I know there is a problem with xstream on Google app engine because of the security reasons. I observed few patches are applied to make it work on gae for xstream. Can any one have the version of jar or is there any alternative way to make xml to java other than JAXP in Gae ?

like image 835
infant Avatar asked Dec 31 '10 07:12

infant


1 Answers

Because of GAE's restrictions, you'll have to:

  • change its default reflection provider to PureJavaReflectionProvider
  • Omit some of the object converters which are automatically registered when an instance of XStream is created, most notably the AWT and Swing class converters, and the DynamicProxy converter.

I've posted an implementation built on top of XStream that makes it compatible with GAE. No patching is required. The link to the implementation is here: http://www.wappworks.com/2011/11/11/using-xstream-with-google-app-engine/

like image 86
Chris Khoo Avatar answered Oct 05 '22 09:10

Chris Khoo