Flex4 Zend AMF error - NetConnection.Call.Failed: HTTP
Hi,
I'm working with FLEX 4 (developing in flash builder 4 plugins for eclipse) and PHP Zend Framework v 1.9.
When I run the application from the flash builder the AMF comunication work fine, but when I try to run directly from URL in a browser I got the following error:
Send failed
Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost/Project-debug/gateway.php'
I think that I get this error since I have update my flash builder plugin.... previos version of my .swf project didn't give my this issue.
Somebody can help me? I don't realy have any idea how to solve this problem.
P.S.
I don't have services-config.xml file in my project cause the amf zend samples that I followed don't say to create it, somebody knows why flex 4 doesn't need it?
Thanks
The MessageBroker servlet is not installed properly. The context-root of the two Tomcat LC DS installs must be different. Test hitting the context-root Flex_App on both machines (http://hostIP:8080/Flex_App). If the context-root is valid you will hit the index.html page of the valid context-root which looks like this...
Welcome to Adobe LiveCycle Data Services ES2 Version 3!
This is an empty LiveCycle Data Services ES application that serves as a template for creating your custom application.
Visit the product page for documentation and further information.
Steve
Similar Messages
-
I get the following error when trying to connect to my BlazeDS Java server from Flex application. Flex application is on localhost:80, blazeDS on tomcat localhost:8080. Please help!
createUser();faultHandler():(mx.messaging.messages::ErrorMessage)#0
body = (Object)#1
clientId = (null)
correlationId = "9FFDEBE8-EAD0-F3D9-8E9B-E3D7D7F5AE79"
destination = ""
extendedData = (null)
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: 'http://77.93.202.150:8080/QuizDS/messagebroker/amf'"
faultString = "Send failed"
headers = (Object)#2
messageId = "98F54E19-7B0D-DCB9-4B86-E3D7D84E484F"
rootCause = (mx.messaging.events::ChannelFaultEvent)#3
bubbles = false
cancelable = false
channel = (mx.messaging.channels::AMFChannel)#4
authenticated = false
channelSets = (Array)#5
connected = false
connectTimeout = -1
enableSmallMessages = true
endpoint = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
failoverURIs = (Array)#6
id = (null)
mpiEnabled = false
netConnection = (flash.net::NetConnection)#7
client = (mx.messaging.channels::AMFChannel)#4
connected = false
maxPeerConnections = 8
objectEncoding = 3
proxyType = "none"
uri = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
piggybackingEnabled = false
polling = false
pollingEnabled = true
pollingInterval = 3000
protocol = "http"
reconnecting = false
recordMessageSizes = false
recordMessageTimes = false
requestTimeout = -1
uri = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
url = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
useSmallMessages = false
channelId = (null)
connected = false
currentTarget = (mx.messaging.channels::AMFChannel)#4
eventPhase = 2
faultCode = "Channel.Connect.Failed"
faultDetail = "NetConnection.Call.Failed: HTTP: Status 500: url: 'http://77.93.202.150:8080/QuizDS/messagebroker/amf'"
faultString = "error"
reconnecting = false
rejected = false
rootCause = (Object)#8
code = "NetConnection.Call.Failed"
description = "HTTP: Status 500"
details = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
level = "error"
target = (mx.messaging.channels::AMFChannel)#4
type = "channelFault"
timestamp = 0
timeToLive = 0halodev:
I made a CF/Flex site based on the Flexstore sample app,
using a database instead of XML as the data source; in case you
want to see it:
http://www.timos.com/dg/flex/DilemmaGames.html
At first I had troubles similar to what you describe;
initially, part of the problem was that my hosting company had not
yet upgraded to CF 7.02. One other thing I had to correct: when you
upload to your server, upload the entire ‘bin’ (or
whatever your output folder is) minus the debug SWF.
If it would help with other issues, contact me and I will be
glad to make my project code available to you. Good luck.
Carlos
[email protected] -
I have been scripting a simple database connection to check login credentials and am comming accross these errors:
Channel.Call.Failed
NetConnection.Call.Failed:
HTTP: Status 500
Any PHP code I run that is not connecting to MYSQL runs fine. But if I try to connect to the database thats what I get.
Here is my mxml:
<s:RemoteObject id="LogInService"
source="Novus.NovusUser.getLogIn"
destination="AMFPHP"
fault="faultHandler(event)"
showBusyCursor="true">
<s:method name="getLogIn" result="onResult(event)" fault="faultHandler(event)"/>
</s:RemoteObject>
Which calls this actionscript:
private function btn(event:Event):void
switch(event.target.id)
case "LogInSubmit":
LogInService.getLogIn(UserName.text, PW.text)
break;
private function onResult(result:ResultEvent):void
Alert.show("Result " + result.token.result);
if(result.token.result == true)
currentState = "Main";
else
Alert.show(String(result.token.result));
private function faultHandler(fault:FaultEvent):void
CursorManager.removeBusyCursor();
var errorMessage:String = "code:\n" + fault.fault.faultCode + "\n\nMessage:\n" + fault.fault.faultString + "\n\nDetail:\n" + fault.fault.faultDetail;
Alert.show(errorMessage);
and calls this PHP:
If I comment out the database connection it returns a false value to me just fine but with it there it throws an error
<?php
class GetLogIn
private $_db;
public function getLogIn($U, $P)
//Connect To Database
$hostname='127.0.0.1';
$username='root';
$password='*********'; //not realy ***** blocked it out
$dbname='mydatabase';
try
mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.');
mysql_select_db($dbname);
$sql = "Select * FROM empusr WHERE UserName = '$U' and Password = '$P'";
mysql_close();
if ($sql)
return true;
else
return false;
catch
return 'Unable to connect to database! Please try again later.';
?>
I have a crossdomain.xml but I am unsure if I have it placed right.
I also have a services.conf but am unsure if that also needs to be altered to adjust for MySQL.
Any help would be appreciated.Found the problum
The connection string had to be placed in the public _constructor function of the class.
<?php
class EmployeeService
public function __construct()
$hostname='127.0.0.1';
$username='root';
$password='*********';
$dbname='myDatabase';
mysql_connect($hostname,$username, $password);
mysql_select_db($dbname);
public function logIn($N, $P)
$query = "SELECT * FROM EmpUsr WHERE UserName = '$N' AND Password = '$P'";
$result = mysql_query($query);
if ($result)
return true;
else
return false;
?> -
Hi PI gurus,
Need some suggestions on one issue below -
Scenario - proxy (SAP) to SOAP (Web based system)
In the RWB Communication Channel Monitirong we are receiving the below error
" Error SOAP: call failed: java.io.IOException: Read timed out; HTTP 200 OK"
the request from XI system is going to target system and printing the lables (as per the functionality) with no issues but the comminication channel is giving the above error and this is causing the repeated sending the same request to target sytem and the data is printing repeateadly. This issues is occuring in Quality environment.
Strangley the same Interface with the same connectivity details is working fine in Development environment. But not working in Quality environment. Checked the firewalls settings on both in XI and Target system side and confirmed that everything is fine.
Below are the Logs both from Quality and developement are as follows
Quality ( Failure Case)
17.03.2011 07:19:59 Success SOAP: request message entering the adapter with user J2EE_GUEST
17.03.2011 07:25:03 Error SOAP: call failed: java.io.IOException: Read timed out; HTTP 200 OK
Development (Success ful)
17.03.2011 07:27:55 Success SOAP: request message entering the adapter with user J2EE_GUEST
17.03.2011 07:27:58 Success SOAP: completed the processing
When we checked with basis team on user id J2EE_GUEST, they confirmed that they are same in Development and Quality.
I repeat,, that the same target url and everthing is same in XI Configuration
Thanks in Advance. Points would be rewared for the best solution.
Thanks,
JitenderHI Jitender,
If your scenariois working in DEV and if it is not working in QAS.Could you please check if both the systems are at same patch levels..
Please refer below notes :1551161,817894,952402.
Cheers!!!
Naveen. -
Hi,
I am new to Zend Framework, i have created an application in Flex and PHP with Zend Framework.
When i uploaded it on the server, following error is displayed:
Send failed
Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://www.mydomain.com/app/gateway.php'
How can i find more details about this error, so that i can sovle the issue?
Best Regards,
Alok JainI have resolved previous error, path to zend Framework was incorrect
Now i am facing a new error:
"Channel disconnected before an acknowledgement was received"
Any Help Please.
Best Regards,
Alok Jain -
Cisco Show and Share Error: NetConnection.Connect.Failed
Hi
I installed Cisco DMM 5.2.0.25 and also CVP. I can able to view videos from the browser of certain PCs . But if i open the same link from another Laptop or PC( which are in same network and domain), I cant able to view the video. It shows an error "NetConnection.Connect.Failed". Am opening through Mozilla Firefox.
Prasanth AbrahamHi Prasanth,
This looks to be an error of the flash plugin. Could you check if affected PCs have a supported version of Flash or of the Browser, as documented at:
http://www.cisco.com/en/US/prod/collateral/video/ps9339/ps6681/data_sheet_c78-565776_ps6682_Products_Data_Sheet.html
Mozilla Firefox 3.5.3 / 3.6.3
Adobe Flash v.10 recommended
Regards,
Marco -
Hi,
I have a Workstation client, which has 3 main tuxedo calls
1) tpbegin(0,0)
2) tpcall(SvcName, (char *)sendbf, 0,(char **)&rcvbf, &rcvlen, TPNOTRAN);
3) tpabort(0)
Here when i do a tpcall to a service with TPNOTRAN option, the specified service is called and it performs the desired operation. But since i am calling tpabort after tpcall, the whole transaction should roll back. But this is not happening.
I changed the tpcall option to others like TPNOCHANGE, TPNOTIME etc. On this change i am getting an error on TPCALL saying "TPETRAN - error starting transaction". When i check my ULOG on server side i get the following error message - WSNAT_CAT:1042: ERROR: tpcall() call failed, tperrno = 14.
Whats should i do to stop this error?
Any help appreciated.
Thanks
PrashanthWhen tpcall() is invoked with the TPNOTRAN flag, the call is made outside of
any transaction that may be in effect, and this call is not affected by the
rollback of that transaction. Therefore, it is proper behavior for the
effects of the tpcall(..., TPNOTRAN) to persist even after the tpabort().
Your second problem with WSNAT_CAT:1042 means that the WSH encountered an
error while starting the transaction on behalf of the workstation client.
There are many possible causes, but the most likely cause is that the WSL is
in a group that is not associated with a TMS server. Please look at your
TUXCONFIG file and verify that there is a TMSNAME parameter specified in the
*GROUPS section for the group that the WSL is in. Also verify that the TMS
servers for this group have been booted.
<Prashanth Dattatri> wrote in message news:[email protected]..
Hi,
I have a Workstation client, which has 3 main tuxedo calls
1) tpbegin(0,0)
2) tpcall(SvcName, (char *)sendbf, 0,(char **)&rcvbf, &rcvlen, TPNOTRAN);
3) tpabort(0)
Here when i do a tpcall to a service with TPNOTRAN option, the specified
service is called and it performs the desired operation. But since i am
calling tpabort after tpcall, the whole transaction should roll back. But
this is not happening.
I changed the tpcall option to others like TPNOCHANGE, TPNOTIME etc. On
this change i am getting an error on TPCALL saying "TPETRAN - error
starting transaction". When i check my ULOG on server side i get the
following error message - WSNAT_CAT:1042: ERROR: tpcall() call failed,
tperrno = 14.
Whats should i do to stop this error?
Any help appreciated.
Thanks
Prashanth -
I have built an AIR app using ColdFusion 8.01 as the backend. I am getting this error occasionally on Remote Object calls. My suspicion is that the Channel being used by the RemoteObject is timing out. I'm not bothering to configure the Channel separately, I'm just going with the default that is part of the RemoteObject.
I'm using Cairngorm, with a ServiceLocator and my thought is that I could separately define my channel from the RemoteObject declaration and listen for timeout events on the Channel and refresh the Channel if it times out.
I'd be really interested in anyone's feedback on this issue.
JeffHi,
Can you please try tracing the FaultEvent.fault.rootCause
object and see if there is any error message. Usually exceptions
thrown from the server is available in this rootCause object.
Hope this helps. -
hi al,
right now i am workin on webdynpro abap interactive forms. i am new to this topic and followed steps as like in sap technical.com . i am using zci layout for layout type. i got following error when processing.pls help me out of this error.thanks in advance
The following error text was processed in the system RET : WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server
The error occurred on the application server sapretail_RET_01 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: RAISE of program CX_WD_GENERAL=================CP
Method: CREATE_PDF_XSD of program CL_WD_ADOBE_SERVICES==========CP
Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
regards
vinothhi thomas,
Thanks for ur reply.but seen that component WDR_TEST_ADOBE, i have did every thing now getting error
The following error text was processed in the system ID2 : WebDynpro Exception:
The error occurred on the application server TCSID2_ID2_00 and in the work process 1 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: RAISE of program CX_WD_GENERAL=================CP
Method: CREATE_PDF_XSD of program CL_WD_ADOBE_SERVICES==========CP
Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
PLS HELP ME OUT.
regards,
vinoth.
Edited by: SAP_TECHY04 on Jul 22, 2009 9:09 AM -
I reset my iPhone 5 and the LTE Network showed but when I tried to make a call, it switched to 3G then just to bell and the call will not go thru. Can't receive calls either
Hi Turtlesquirt,
Welcome to the Support Communities! The article below will help you troubleshoot the issue you are having with making and receiving calls on your iPhone:
iPhone: Troubleshooting issues making or receiving calls
http://support.apple.com/kb/TS3406
I hope this information helps ....
- Judy -
NetConnection.Call.Failed with IE8
I believe the bug has been logged: http://bugs.adobe.com/jira/browse/SDK-21005
But does anyone know of a workaround or fix? I've tried caching changes to the HTML and to the services-config file and nothing has worked.
Flash remoting basically does not work at all with IE 8 per my tests...Russell, it sounds like you might have already tried this, but this helped me out. Now it works better (most of the time)...
http://jake.cfwebtools.com/2009/02/26/flex-channelconnectfailed-error-netconnectioncallfai led-http-status-200/
Let me know if that helps... -
hey all
this is my first app to access remote data, and i am trying to build both clieant and server side
i am working on a flashbuilder 4.6 and php simple system.
I use the php data wizard to build my php code/services and develop locally on a wamp server, configuring the local mysql db with phpmyadmin. the wizard itself enables the zend framework needed
locally, all looks fine
i am trying out deployment to my real, linux based remote server, and for the first step I uploaded my php services to the remote server
i used this guide by Mihai Corlan and when testing my app i get an Alert with
Send failed
Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 501: url: 'http://(my domain + file structure to..)gateway.php'
so i guess even before i get to see if i changed the amf_config.ini and gateway.php itself and the services properly for deployment i am unable to connect to the gateway, correct?
http 501 is something about html headers? i dont know any html, any php, any sql just as3 and mxml
can anyone help?I do get "Zend Amf Endpoint" - as well - the app works perfectly when testing on my desktop as iphone4 simulation and on android, just not on my 4s device.
as a side note, i can even browse to the gateway.php that I have set up via safari on the device. That makes me think that theres just some dumb http entitlement or "allow" setting for ios that I'm not finding. -
Random Net connection call failed errors
Hi All,
I've built a Flex application which is calling coldfusion CFC through remote objects in order to retrieve data.
2 days ago, I've updated the server with coldfusion 9 and my issue is that I have sometime those kind of error messages :
[RPC Fault faultString="error" faultCode="Channel.Call.Failed" faultDetail="NetConnection.Call.Failed: HTTP: Failed"]
[RPC Fault faultString="error" faultCode="Channel.Call.Failed" faultDetail="NetConnection.Call.Failed: HTTP: Status 503"]
[RPC Fault faultString="error" faultCode="Channel.Call.Failed" faultDetail="NetConnection.Call.Failed: HTTP: Status 500"]
[RPC Fault faultString="error" faultCode="Channel.Call.Failed" faultDetail="NetConnection.Call.Failed: HTTP: Status 504"]
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://servername/flex2gateway/'"]
It was also happening on Coldfusion 8 and even on one other sever with another application.
(but same logic Flex -> remote Objects -> CFC -> sql2005).
When we were still running CF8 I added this <add-no-cache-headers>false</add-no-cache-headers> to the service-config.xml file but with no success.
I do not know if it's related to this but I also sometimes have this error message :
[RPC Fault faultString="Channel disconnected" faultCode="Client.Error.DeliveryInDoubt" faultDetail="Channel disconnected before an acknowledgement was received"]
Most if time the application is running fine, but I want to avoid this errors.
For example yesterday I recieved +- 50 times the NetConnection.Call.Failed error and 20 times Channel disconnected error.
Do not hesitate to ask if I need to post CF9 settings summary or something else.
Thank you for your help.
AubryThat's a pity, but thanks for the reply.
Dik -
Error While calling remote object
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/Remote/messagebroker/amf'"]
This is the error I am getting when I am trying to call a method in java
This is java code
package demo;
public class Hello
public String sayHello()
System.out.println("1st Method is calledddddddd");
return "Hello World!";
public String sayHelloWithParam(String str){
System.out.println("2nd Method is calledddddddd");
return "You have typed "+str;
This is my mxml code
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
public function sayHello(event:ResultEvent):void{
label1.text=event.result.toString();
public function sayHelloWithParameter(event:ResultEvent):void{
label1.text=event.result.toString();
]]>
</mx:Script>
<mx:RemoteObject id="hello" destination="helloworldclass" fault="mx.controls.Alert.show(event.fault.toString())">
<mx:method name="sayHello" result="sayHello(event)"/>
<mx:method name="sayHelloWithParam" result="sayHelloWithParameter(event)"/>
</mx:RemoteObject>
<mx:Label x="55" y="51" text="Label" id="label1"/>
<mx:Button x="253" y="49" label="Button1" click="hello.sayHello()"/>
<mx:TextInput x="55" y="106" id="t1"/>
<mx:Button x="253" y="106" label="Button2" click="hello.sayHelloWithParam.send();"/>
</mx:Application>
When I click the button I am getting that error..
Please help me in solving thisYour server code must be faulty. If things work well you should see a blank screen when you point your browser to the amf endpoint.
An Apache message like "The requested resource (/bpm-backend/whatever) is not available." indicates that something in your server app is not working properly or not mapped right. -
Channel Connection Failed HTTP 405
I've got the -services-config.xml set up and pointed to
complie in Flex, but I'm getting these errors:
Send failed - then I hit "OK"
Channel.Connect.Failed error NetConnection.Call.Failed: HTTP:
Status 405: url: '
http://mySite.com/flex2gateway/'
I've read several posts and created a new channel that does
not point to the "localhost:port" and channel-definition id. It
looks something like this:
<endpoint uri="
http://mySite.com/flex2gateway/"
class="flex.messaging.endpoints.AMFEndpoint"/>
I'm using Flex 3, so I don't know if there is any issues with
it. Any suggestions would be greatly appreciated!Found the problem. In case anyone else runs into this issue:
On your Server you need Coldfusion version 7.0.2 at the
minimum. When you goto the URL of
http://x.x.x.x/flex2gateway
in a web browser you should get a white blank page. Also make sure
that you have a tab within the CF Administrator under Data &
Services called Flex Intergration. I have had these same issues and
found that my Production Server did not have the Flex Intergration
so I had to Uninstall CF7 and ReInstall 7.0.2 to get the Flex
Intergration.
Maybe you are looking for
-
Badi ME_GUI_PO_CUST and ME_PROCESS_PO_CUST
Dear All, I am implementing a customer subscreen in the PO header. I have created the screen, implemented both Badi's int following way. Somehow, the customer data is not getting saved. It is not being passed into the Badi's, am not sur what I have m
-
Upgrading from 3GS to 4S tomorrow. iOS5 a necessity on my 3GS first?
I'm upgrading to a 4S tomorrow. My 3GS is currently backed up, but not with iO S5. Can I restore from backup with the 4S successfully without making a backup of my 3GS with iO S 5?
-
I have an older iMac (3.06 GHz Intel Core i3). I currently have 3 external firewire 400 drives daisy-chained to it. I use a 800 to 400 adapter on the back of the iMac to convert from 800 down for my drives. I was just looking at OWC and considering a
-
Hi All, Is there a possiblility of accessing data in Louts Notes(Mail server) from SAP server.. If so plz let me know how to go abt it. regards, sharath.
-
Hi! I wanted to get access to creative cloud with a student discount but I cannot find my school on the list (Community College of Allegheny County, 15223). Why is it so?