Solved

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

Posted on 2011-02-17
3
1,324 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

786 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