1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    5
    Vote Rating
    0
    marcoaaguiar is on a distinguished road

      0  

    Default Uncaught Exception on try to call a method

    Uncaught Exception on try to call a method


    Hi,
    I'm new in Ext.Direct, so i was trying some examples to learn about it.

    First of all I made a server-side using Python with the first code in this blog post and tested with the second part.
    http://crabeater.blogspot.com/2009/1...in-python.html

    Then i went to the JS side. I used this codes:

    Code:
    provider = new Ext.direct.RemotingProvider({
    	"url": "localhost:7999", 
    	"namespace": "Remote", 
    	"type": "remoting", 
    	"id": "TestUtils", 
    	"actions": {
    			"TestUtils": [
    				{"name": "today", "len": 1}, 
    				{"name": "upper", "len": 1}
    			]
    	}
    });
    
    Ext.Direct.addProvider(provider);
    and later

    Code:
    alert(provider.isConnected());
    Remote.TestUtils.upper({word:'foo'}, function (result, response){ alert(result.toSource); alert(response.toSource());})
    the first alert returns true, what is a good signal, but before the second alert appears an error happens:

    uncaught exception: [Exception... "Component returned failure code: 0x805e000a [nsIXMLHttpRequest.open]" nsresult: "0x805e000a (<unknown>)" location: "JS frame :: http://127.0.0.1:8000/ContWEB/resour...xt/ext-base.js :: i :: line 7" data: no]

    Does anyone could help me?

    I've tried in FF and Chrome, both occured the same error.
    I'm not using AdBlock Plus.
    What am I missing?

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    5
    Vote Rating
    0
    marcoaaguiar is on a distinguished road

      0  

    Default


    Now i've changed to "url": "http://localhost:7999/".
    Now the server is receiving the request, but it's coming as a OPTIONS.

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Location
    Spain
    Posts
    10
    Vote Rating
    -1
    tenBoxelulley is an unknown quantity at this point

      0  

    Default Uncaught Exception on try to call a method

    Uncaught Exception on try to call a method


    Hi, Ive been trying to call some indicators using method but cant seem to get it to work. Any idea?

    Code:

Similar Threads

  1. Replies: 5
    Last Post: 29 Sep 2014, 1:02 AM
  2. Uncaught TypeError: Cannot call method 'setValue' of undefined
    By kortovos in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 9 Nov 2010, 1:10 AM
  3. Uncaught TypeError: Cannot call method 'indexOf' of undefined
    By cwebb in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 9 Sep 2010, 6:59 PM
  4. uncaught exception: Permission denied to call method XMLHttpRequest.open
    By blackperl in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 26 Feb 2009, 6:16 AM
  5. uncaught exception: Permission denied to call method XMLHttpRequest.open
    By lalit_ce in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Jan 2009, 2:05 AM

Thread Participants: 1