oyvindkinsey / easyXDM

A javascript library providing cross-browser, cross-site messaging/method invocation.

Home Page:http://easyxdm.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught Error: url is undefined or empty

joao-fidalgo opened this issue · comments

commented

Any ideas about this?

Snippet - Consumer (10.0.70.75)

<script type="text/javascript" src="easyxdm/easyxdm.debug.js"></script>
<script type="text/javascript" src="easyxdm/json2.js"></script>
<script type="text/javascript">
easyXDM.DomHelper.requiresJSON("easyxdm/json2.js");

var remote = new easyXDM.Rpc({
    local: "http://10.0.70.75/easyxdm/name.html",
        remote: "http://provider/x.asp?xy=10274&xyz=ABC&primeirachamada=1",
        container: "myframe",
},{
     remote: {
             setAddress: {}
     }
});
</script>

Snippet - Provider

<script type="text/javascript" src="Js/easyxdm/easyxdm.debug.js"></script>
<script type="text/javascript" src="Js/easyxdm/json2.js"></script>
<script type="text/javascript">

easyXDM.DomHelper.requiresJSON("easyxdm/json2.js");

var remote = new easyXDM.Rpc({
    local: "http://provider/Js/easyxdm/name.html",
    swf: "Js/easyxdm/easyxdm.swf"
},{
    local: {
        setAddress: function(console.log("It works!")) {}
    }
});
</script>

Logs - Consumer (10.0.70.75)

10.0.70.75 - 12:04:47.953: easyXDM present on 'http://10.0.70.75/ easyxdm.debug.js:914
10.0.70.75 - 12:04:47.959: native JSON found easyxdm.debug.js:914
10.0.70.75 - 12:04:47.960: easyXDM.Rpc: constructor easyxdm.debug.js:914
10.0.70.75 - 12:04:47.960: {Private}: preparing transport stack easyxdm.debug.js:914
10.0.70.75 - 12:04:47.960: {Private}: resolved url 'http://provider/x.asp?xy=10274&xyz=ABC&primeirachamada=1' easyxdm.debug.js:914
10.0.70.75 - 12:04:47.961: {Private}: selecting protocol: 1 easyxdm.debug.js:914
10.0.70.75 - 12:04:47.961: easyXDM.stack.PostMessageTransport: constructor easyxdm.debug.js:914
10.0.70.75 - 12:04:47.961: easyXDM.stack.QueueBehavior: constructor easyxdm.debug.js:914
10.0.70.75 - 12:04:47.962: easyXDM.stack.RpcBehavior: init easyxdm.debug.js:914
10.0.70.75 - 12:04:47.962: easyXDM.stack.RpcBehavior: creating stubs easyxdm.debug.js:914
10.0.70.75 - 12:04:47.962: easyXDM.stack.RpcBehavior: creating method setAddress easyxdm.debug.js:914
10.0.70.75 - 12:04:47.963: {Private}: firing dom_onReady easyxdm.debug.js:959
10.0.70.75 - 12:04:47.963: ... deferred messages ... easyxdm.debug.js:959
10.0.70.75 - 12:04:47.963: easyXDM.Rpc: constructor easyxdm.debug.js:959
10.0.70.75 - 12:04:47.963: {Private}: preparing transport stack easyxdm.debug.js:959
10.0.70.75 - 12:04:47.963: {Private}: resolved url 'http://provider/x.asp?xy=10274&xyz=ABC&primeirachamada=1' easyxdm.debug.js:959
10.0.70.75 - 12:04:47.964: {Private}: selecting protocol: 1 easyxdm.debug.js:959
10.0.70.75 - 12:04:47.964: easyXDM.stack.PostMessageTransport: constructor easyxdm.debug.js:959
10.0.70.75 - 12:04:47.964: easyXDM.stack.QueueBehavior: constructor easyxdm.debug.js:959
10.0.70.75 - 12:04:47.964: easyXDM.stack.RpcBehavior: init easyxdm.debug.js:959
10.0.70.75 - 12:04:47.964: easyXDM.stack.RpcBehavior: creating stubs easyxdm.debug.js:959
10.0.70.75 - 12:04:47.964: easyXDM.stack.RpcBehavior: creating method setAddress easyxdm.debug.js:959
10.0.70.75 - 12:04:47.964: ... end of deferred messages ... easyxdm.debug.js:959
10.0.70.75 - 12:04:47.964: easyXDM.stack.PostMessageTransport: init easyxdm.debug.js:959
10.0.70.75 - 12:04:47.965: {Private}: adding listener message easyxdm.debug.js:959
10.0.70.75 - 12:04:47.965: {Private}: creating frame: http://provider/x.asp?xy=10274&xyz=ABC&primeirachamada=1&xdm_e=http%3A%2F%2F10.0.70.75%3A8888&xdm_c=default5978&xdm_p=1 easyxdm.debug.js:959
10.0.70.75 - 12:04:47.966: {Private}: HAS_NAME_PROPERTY_BUG: false easyxdm.debug.js:959
provider - 12:04:49.714: easyXDM present on 'http://provider/x.asp?xy=10274&xyz=ABC&primeirachamada=1&xdm_e=http%3A%2F%2F10.0.70.75%3A8888&xdm_c=default5978&xdm_p=1 easyxdm.debug.js:914
provider - 12:04:49.728: native JSON found easyxdm.debug.js:914
provider - 12:04:49.729: easyXDM.Rpc: constructor easyxdm.debug.js:914
provider - 12:04:49.729: {Private}: preparing transport stack easyxdm.debug.js:914
provider - 12:04:49.730: {Private}: using parameters from query easyxdm.debug.js:914
provider - 12:04:49.730: easyXDM.stack.PostMessageTransport: constructor easyxdm.debug.js:914
provider - 12:04:49.730: easyXDM.stack.QueueBehavior: constructor easyxdm.debug.js:914
provider - 12:04:49.731: easyXDM.stack.RpcBehavior: init easyxdm.debug.js:914

Unsafe JavaScript attempt to access frame with URL http://10.0.70.75/ from frame with URL http://provider/x.asp?xy=10274&xyz=ABC&primeirachamada=1&xdm_e=http%3A%2F%2F10.0.70.75%3A8888&xdm_c=default5978&xdm_p=1. Domains, protocols and ports must match.
Utils.js:1217

provider - 12:04:49.765:{Private}: firing dom_onReady easyxdm.debug.js:959
provider - 12:04:49.765:... deferred messages ... easyxdm.debug.js:959
provider - 12:04:49.766:easyXDM.Rpc: constructor easyxdm.debug.js:959
provider - 12:04:49.766:{Private}: preparing transport stack easyxdm.debug.js:959
provider - 12:04:49.766:{Private}: using parameters from query easyxdm.debug.js:959
provider - 12:04:49.766:easyXDM.stack.PostMessageTransport: constructor easyxdm.debug.js:959
provider - 12:04:49.766:easyXDM.stack.QueueBehavior: constructor easyxdm.debug.js:959
provider - 12:04:49.766:easyXDM.stack.RpcBehavior: init easyxdm.debug.js:959
provider - 12:04:49.767:... end of deferred messages ... easyxdm.debug.js:959
provider - 12:04:49.767:easyXDM.stack.PostMessageTransport: init easyxdm.debug.js:959
provider - 12:04:49.767:{Private}: adding listener message easyxdm.debug.js:959
10.0.70.75 - 12:04:49.768:easyXDM.stack.PostMessageTransport: firing onReady easyxdm.debug.js:959
10.0.70.75 - 12:04:49.769:{Private}: removing listener message easyxdm.debug.js:959
10.0.70.75 - 12:04:49.769:{Private}: adding listener message easyxdm.debug.js:959
provider - 12:04:49.769:easyXDM.stack.QueueBehavior: removing myself from the stack easyxdm.debug.js:959
10.0.70.75 - 12:04:49.771:easyXDM.stack.QueueBehavior: removing myself from the stack easyxdm.debug.js:959

Unsafe JavaScript attempt to access frame with URL http://10.0.70.75/ from frame with URL http://provider/x.asp?xy=10274&xyz=ABC&primeirachamada=1&xdm_e=http%3A%2F%2F10.0.70.75%3A8888&xdm_c=default5978&xdm_p=1. Domains, protocols and ports must match.

Logs - Provider

provider - 12:14:57.260: easyXDM present on 'http://provider/x.asp?xy=10274&xyz=ABC&primeirachamada=1 easyxdm.debug.js:914
provider - 12:14:57.267: native JSON found easyxdm.debug.js:914
provider - 12:14:57.267: easyXDM.Rpc: constructor easyxdm.debug.js:914
provider - 12:14:57.267: {Private}: preparing transport stack easyxdm.debug.js:914
Uncaught Error: url is undefined or empty easyxdm.debug.js:308
resolveUrl easyxdm.debug.js:308
prepareTransportStack easyxdm.debug.js:582
easyXDM.Rpc easyxdm.debug.js:1414
(anonymous function) x.asp:475
provider - 12:14:57.286:{Private}: firing dom_onReady easyxdm.debug.js:959
provider - 12:14:57.286:... deferred messages ... easyxdm.debug.js:959
provider - 12:14:57.287:easyXDM.Rpc: constructor easyxdm.debug.js:959
provider - 12:14:57.287:{Private}: preparing transport stack easyxdm.debug.js:959
provider - 12:14:57.287:... end of deferred messages ...

commented

After some debugging, it seems the error is thrown by the function resolveUrl()... not solved tho, i have no idea how i'll fix this atm.