I'm working on a json-rpc backend for qooxdoo and I'm testing some basic
plumbing with the 'echo' service.  Everything seems fine until the point at
which the test qx app should receive the response (async, cross-domain) in
the handler I created.  Here's the stuff from Application.js:

    main : function()
    {
      // Call super class
      this.base(arguments);

      // Enable logging in debug variant
      if (qx.core.Variant.isSet("qx.debug", "on"))
      {
        // support native logging capabilities, e.g. Firebug for Firefox
        qx.log.appender.Native;
        // support additional cross-browser console. Press F7 to toggle
visibility
        qx.log.appender.Console;
      }

      /*
     
-------------------------------------------------------------------------
        Below is your actual application code...
     
-------------------------------------------------------------------------
      */

      // Create a button
      var button1 = new qx.ui.form.Button("First Button",
"qxlisp_test/test.png");

      // Document is the application root
      var doc = this.getRoot();
                        
      // Add button to document at fixed coordinates
      doc.add(button1, {left: 100, top: 50});

      var handler = function(result, exc) {
        if (exc == null) {
            alert("Result of async call: " + result);            
        } else {
            alert("Exception during async call: " + exc);
        }
      };            
        
            button1.addListener("execute", function(e) {
                var rpc = new qx.io.remote.Rpc("http://obi-wan:4242/qxrpc";,
"QxLisp");
                rpc.setCrossDomain(true);
                rpc.callAsync(handler, "echo", "Test");         
            });

    }   

The backend receives the request, formats the json-rpc response, and httpfox
shows that the following is received as a text/html response:

{"result":"Test","error":null,"id":2}

Yet, my handler is never fired, and a timeout error occurs.  The console in
firebug reports an error that just says "invalid label" with no further
information.  I don't know how to get a backtrace with a breakpoint because
I don't know where this is occurring.
-- 
View this message in context: 
http://www.nabble.com/%22invalid-label%22-error-on-rpc-response-tp21284690p21284690.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to