Revision: 4185
          http://vexi.svn.sourceforge.net/vexi/?rev=4185&view=rev
Author:   mkpg2
Date:     2011-07-11 01:46:12 +0000 (Mon, 11 Jul 2011)

Log Message:
-----------
Fix. Throw a clearer exception when attempting to serialise objects which 
cannot be iterated over.

Modified Paths:
--------------
    trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/XMLRPC.jpp

Modified: trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/XMLRPC.jpp
===================================================================
--- trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/XMLRPC.jpp       
2011-07-11 01:43:39 UTC (rev 4184)
+++ trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/XMLRPC.jpp       
2011-07-11 01:46:12 UTC (rev 4185)
@@ -328,7 +328,12 @@
             tracker.put(o, JSU.T);
             JS j = (JS)o;
             sb.append("                <value><struct>\n");
-            Enumeration e = j.keys().iterator();
+            Enumeration e = null;
+            try{
+                e = j.keys().iterator();
+            }catch(JSExn ee){
+                throw new JSExn("Cannot serialise: "+JSU.toString(j));
+            }
             while (e.hasNext()) {
                 Object key = e.next();
                 sb.append("                <member><name>" + key + 
"</name>\n");


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to