Channel.Security.Error error Error #2048 url: 'http://localhost:8080/blazeds/messagebroker/amf'

1,120 views
Skip to first unread message

Shyam

unread,
Sep 22, 2009, 12:38:23 AM9/22/09
to Flex India Community
Hi All,
I have deployed my flex swf in a tomcat server.I tried accesing the
application in a remote client and i got the following message:

Channel.Security.Error error Error #2048 url: 'http://localhost:8080/
blazeds/messagebroker/amf'

The application runs locally in the server where i have deployed the
swf of my application.

I did some search on the net and came across the following link :

http://talsma.tv/post.cfm/flash-9-0-124-and-webservice-over-https-channel-security-error

which says that there is an an issue with Flash version 9.0.124 and
this is the version i am using.I have deployed the crossdomain .xml
file in my tomcat web server as suggested, but i
am still facing the issue.

I also read the documentation at

http://labs.adobe.com/wiki/index.php/Flex:Accessing_Data

which says:
When you need to access data from a Flex application, you have three
choices:

1.Add a crossdomain.xml file to the server with the data.
2.Upload your SWF file to the same server as the data service.
3.Create a proxy on your server that calls the data service, and put
your SWF file on the same server as the proxy.

I have tried both 1 and 2 but the issue persists.

I also came across a discussion on Flex india community regarding this
issue.

http://groups.google.com/group/flex_india/browse_thread/thread/3d85dc52ae1f10c0

Can somebody who has faced this issue and solved it please guide me?
Do i have to change the version of my flash player?

Expecting your suggestions.

Thanks and Regards

Shyam


rishi narang

unread,
Sep 22, 2009, 1:25:17 AM9/22/09
to flex_...@googlegroups.com
can you send the crossdomain.xml file that u r using? and location of the same in webserver..

ShyamSundar Ashok

unread,
Sep 22, 2009, 2:01:17 AM9/22/09
to flex_...@googlegroups.com, rishina...@gmail.com
Hi,
 
the contents of the crossdomain.xml is as follows:
 
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy> 
 <!--This domain can accept the SOAPAction header from a SWF file from www.example.com -->  
<allow-http-request-headers-from domain="*" headers="SOAPAction"/>
</cross-domain-policy>
 
I am not sure if this is correct.I have tried giving the IP address of the server instead of  ' *' .
I have deployed this file under the webapps\ROOT folder of Apache Tomcat
 

manish sankhe

unread,
Sep 22, 2009, 3:20:52 AM9/22/09
to flex_...@googlegroups.com
In serverconfig.xml specify the path of your server instead of 'http://localhost:8080/
blazeds" where you are deploying it.

ShyamSundar Ashok

unread,
Sep 22, 2009, 8:38:59 AM9/22/09
to rishi narang, flex_...@googlegroups.com, sankhe...@gmail.com
Hi,
   Managed to solve the issue before i could try out your following suggestion.I deleted my existing flex project (from flex ide and not from disk) and created an new project.I then imported the contents of the previous project into the new  project and built the swf. I deployed the swf in the server and it is now accessible in the remote clients.My guess is that the properties of the previous project could have got corrupted.
Thank u for ur suggestion.
 
Shyam

 
On 9/22/09, rishi narang <rishina...@gmail.com> wrote:
open the proxy-config.xml of ur blaze ds server, and make change to "DefaultHTTP" destination like this


 <destination id="DefaultHTTP">
    <properties>
        <dynamic-url>
            *
        </dynamic-url>
    </properties>
    </destination>


i hope this will work, make sure u still have the same crossdomain.xml



On Tue, Sep 22, 2009 at 12:45 PM, ShyamSundar Ashok <ashok.sh...@gmail.com> wrote:
In
SERVICES-CONFIG.xml
----------------------------------
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://server-ip:8080/blazeds/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
            </properties>
        </channel-definition>

 
On 9/22/09, rishi narang <rishina...@gmail.com> wrote:
yes, proxy server denies ur request, by the way what is ur endpoint of remote object?


On Tue, Sep 22, 2009 at 12:18 PM, ShyamSundar Ashok <ashok.sh...@gmail.com> wrote:
Have deployed the crossdomain.xml and also cleared the cache before running the application again. but i am stiil getting the error..
My network uses a proxy server for http access could this be a reason for this issue?


On 9/22/09, rishi narang <rishina...@gmail.com> wrote:
change ur file to look like this and let me know

<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

Rishi



On Tue, Sep 22, 2009 at 11:31 AM, ShyamSundar Ashok <ashok.sh...@gmail.com> wrote:

Utkarsh kaushal

unread,
Sep 22, 2009, 5:19:08 PM9/22/09
to flex_...@googlegroups.com
I faced same problem but followed route 3 of routing request thru proxy.
What is the error you are encountering thry crossdomain, if you do not have any security issues placing crossdomail file will be easier.
 
- kay kay

Reply all
Reply to author
Forward
0 new messages