Hi,

Am 08.08.2007 um 17:37 schrieb vbZ:

> I found the bug at class net.sf.qooxdoo.rpc.RemoteCallUtils, method  
> toJava(Object obj, Class targetType), line 136.
>
> There isn;t check to null of desc variable. All works fine, if I  
> add the test;
>
>            --- added                if (desc != null) {
>            --- line 137                  
> PropertyUtils.setSimpleProperty(bean, name,
>                                 toJava(jsonObject.get(name),  
> desc.getPropertyType()));
>           --- added                  }
>
> Could You fix it, please?
>
>
> Here is the JS object which I'm sending trough RPC call:
>
> qx.Class.define("vbz.Result",
[snip]

Ah, OK, you're sending qooxdoo objects to the server. I never tried  
sending anything but plain JavaScript objects (and I don't know  
anyone who did either), but of course that use case makes sense.  
Thanks for pointing it out!

The problem is fixed in trunk and branches legacy_0_7_x and  
legacy_0_6_x. I've slightly modified your solution to also check for  
read-only properties.

Regards,

   Andreas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to