Expand my Community achievements bar.

unable to load endpoint data

Avatar

Level 1
Hi All,

I am trying to retrieve data from a JavaObject using endpoint
URL in RemoteObject RPC component. But I am getting an error
message like



[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Security.Error error Error #2048: Security
sandbox violation:
http://localhost:9090/test/endpointtest/endpointtest.swf
cannot load data from
http://remoteservername:8080/test/messagebroker/amf.
url: '
http://remoteservername:8080/test/messagebroker/amf'"



configuration setting files

remoting-config.xml

------------------------------

<default-channels>

<channel ref="my-amf"/>

</default-channels>



<destination id="elabs-Destination">

<properties>

<source>*</source>

</properties>

</destination>





services-config.xml

---------------------------

............

<channels>

<channel-definition id="my-amf"
class="mx.messaging.channels.AMFChannel">

<endpoint url="
http://remoteservername:8080/test/messagebroker/amf"
class="flex.messaging.endpoints.AMFEndpoint"/>

</channel-definition>

</channels>

.....



mxml code goes here

..........................

<mx:RemoteObject id="remoteObject"
destination="elabs-Destination"

endpoint="
http://remoteservername:8080/test/messagebroker/amf"

showBusyCursor="true">

<mx:method name="sendRecieve">

<mx:arguments>

<value1>{csID}</value1>

<value2>{str}</value2>

</mx:arguments>

</mx:method>

</mx:RemoteObject>



Whenever I try to invoke remoteObject.sendRecieve(); I am
getting security error message.



this is an urgent requirement. Please help me out.



Thanks in advance.

Surendra.



4 Replies

Avatar

Level 3
It seems your object is in a different domain from where your
app is running you need to write a crossdomain.xml to avoid flash
player throwing this error.

Avatar

Level 1
Thanks for the quick reply. I have already placed a
crossdomain.xml file in remote server where the object is. even
though still getting the error.

Avatar

Level 3
How does your crossdomain.xml looks like? which flash player
version do you have?

Avatar

Level 1
Hi Please Help me to fix the problem. I am also getting the
same problem when I am accessing the remote server.

Please help me to fix the problem.



Thanks in advance...