Solved

adobe flex 3.0 | NetConnection.Call.Failed: HTTP: Failed: url: "https://xxx/amf/"

Posted on 2011-02-17
3
1,318 Views
Last Modified: 2013-11-11
1) We are getting this exception sporadically in our application. NetConnection.Call.Failed: HTTP: Failed: url: "https://xxx/amf/" What could be the reason for this exception??
 
2) I have defined the endpoint while compiling the swf as:
 
"https://xxx/amf/" - secure
 
and
 
defined in the services-config file in server side as:
 
<channel-definition id="xxx" class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://xxx/amf/" class="flex.messaging.endpoints.AMFEndpoint"/> --> non secure url          
</channel-definition>
 
Is there any possibility the amf calls from client will make it to the server??
0
Comment
Question by:rhkh
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
ChristoferDutz earned 500 total points
ID: 34925135
When using HTTPS you should use the SecureAMFChannel and SecureAMFEndpoint
Here's an adjusted version we are using:
<channel-definition id="xxx" class="mx.messaging.channels.SecureAMFChannel">
            <endpoint url="https://xxx/amf/" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
</channel-definition>

Open in new window


If you want to use http and https you have to define 2 urls:
http://xxx/amf/
https://xxx/amfsec/
0
 

Author Comment

by:rhkh
ID: 34926338
My second question was answered.

Please answer the following question.

1) We are getting this exception sporadically in our application. NetConnection.Call.Failed: HTTP: Failed: url: "https://xxx/amf/"

What could be the reasons for this exception??

0
 
LVL 20

Assisted Solution

by:ChristoferDutz
ChristoferDutz earned 500 total points
ID: 34926375
Well I assume that the client wasn't able to connect to the server. The reason for this can be pretty much everything. Problems with the network connection, problems with the server. If you are using Streaming Connections you simply might be running out of Threads on the Server.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now