google app engine - Marshal (or Convert) a Object instance to Map in GAE (Java) -


i have code worked gae unit test, when run in gae app environment throwing reflection error:

public map<string,object> createmapfrom(object instance){     map<string,object> result = org.boon.maps.tomap(instance);     return result; } 

error:

caused by: java.lang.noclassdeffounderror: not initialize class org.boon.core.reflection.reflection 

question is, available way marshal object instance map in gae environment?

as per official docs:

an application allowed full, unrestricted, reflective access own classes.

it may query private members, call method java.lang.reflect.accessibleobject.setaccessible(), , read/set private members.

an application can reflect on jre , api classes, such java.lang.string , javax.servlet.http.httpservletrequest. however, can access public members of these classes, not protected or private.

an application cannot reflect against other classes not belonging itself, , can not use setaccessible() method circumvent these restrictions.

my best guess boon tapping forbidden reflection feature in gae. quick search turned out post, people on project acknowledge issue , looking solution.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -