Home > Flash Platform, Zend_Amf > Zend Amf NetConnection bug resolved w/ Amf3

Zend Amf NetConnection bug resolved w/ Amf3

October 22nd, 2008

If you are testing out Zend Amf and were getting call bad version errors w/ complex amf3 data types check out the latest Zend Framework 1.7 preview release. You really just need to update Zend_Amf_Server in order to get the patch.

Here is the bug tracker if your still having issues.

amf3 typed objects sent to server via NetConnection fail

Flash Platform, Zend_Amf

  1. October 22nd, 2008 at 15:35 | #1

    I think this is what you’re getting at, but just to be crystal clear: to get this patch, you’d have to checkout the latest version of Zend_Amf from standard/trunk in SVN. Great work, Wade!

    ,Wil

  2. Kim
    December 26th, 2008 at 16:02 | #2

    Hi Wade,

    I’m still getting a NetConnection.Call.BadVersion when sending more than one custom class instance using the NetConnection class.
    It seems that the remote method only gets a single argument, as PHP is throwing a warning, saying something like:

    “Missing argument 2 for..”

    Everything works great when using RemoteObject, hitting the exact same method with the exact same parameters..!?

    Cheers and keep up the great work,
    Kim

  3. March 21st, 2009 at 13:02 | #3

    This is still not working for me… I can’t send more than a parameter to a php function. I’ve downloaded the latest version and I still get the same problem.

  4. May 27th, 2009 at 08:43 | #4

    Hi Wade,

    I’m working with the version 1.8 of ZF and when I’m trying to send a request to the server, I get this error in my faultHandler method :

    faultCode:Client.Error.MessageSend faultString:’Send failed’ faultDetail:’Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: ‘http://host/php-flex/current/server.php’

    Did you already get this error? If yea, how did you fix it?

    Thank you very much.

  5. Surt
    July 2nd, 2009 at 11:29 | #5

    @Joris
    Same here, when i try to make my amf server from a controller i get this error, i just can make it work with old plain php and includes for the libraries.

  6. July 28th, 2009 at 13:03 | #6

    @Joris ; @Surt

    I am now getting this same error using ZF 1.8 Flash Player / on Flex does anyone know the cause? The endpoint is there??

  7. Whippersnapper
    December 21st, 2009 at 12:35 | #7

    One reason for the NetConnection.Call.BadVersion error is PHP files that are encoded in other than ANSI. For example UTF-8 will NOT work. Propably because Zend_AMF is encoded in ANSI.

    So if you can connect to the gateway file but the response’s content-type isn’t application/x-amf, then check the encoding of your PHP files.

  8. January 5th, 2010 at 10:36 | #8

    Hi ,
    thank you very much

    I wase more then 10 hr to resolve this bug .

    nice post.

  9. bruno
    January 28th, 2010 at 05:31 | #9

    hello,
    same error, how can I fixe ANSI encodage for php return
    thank a lot

  10. March 10th, 2010 at 19:10 | #10

    Can you help me…

    i get this error

    —————————————–
    Send failed
    Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: ‘http://zend.subrasoft.com.ar/Zend-Test-debug/gateway.php’
    —————————————–

    But the seques looks fine…
    Here are the headers of this request…
    See you somting wrong… (maybe encoding…)

    ——————————————-
    http://zend.subrasoft.com.ar/Zend-Test-debug/gateway.php
    POST /Zend-Test-debug/gateway.php HTTP/1.1
    Host: zend.subrasoft.com.ar
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; es-AR; rv:1.9.2) Gecko/20100115 Firefox/3.6
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: es-ar,es;q=0.8,en-us;q=0.5,en;q=0.3
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Referer: http://zend.subrasoft.com.ar/Zend-Test-debug/main.swf
    Content-type: application/x-amf
    Content-length: 244

    HTTP/1.1 200 OK
    Server: nginx
    Date: Thu, 11 Mar 2010 00:04:31 GMT
    Content-Type: text/html
    X-Powered-By: PHP/5.2.11
    Transfer-Encoding: chunked
    Connection: Keep-Alive
    Content-Encoding: gzip
    —————————————–

  11. Boris
    March 31st, 2010 at 14:11 | #11

    Hi,

    I have same problem but my story is different. I was using FLEX, Apache 2.2, PHP and ZEND framework all installed separatelly. Everything was OK. I have unistalled ZendFramework, PHP and Apache and installed Zend server containing all three together. when I try to access my PHP page with AMF end point from browser directly it works. Trying to access it from FLEX I get NetConnection.Call.BadVersion error. I did not changed nothing nor location. Still accessing localhost/test.php file.

    Any ideas where problem can be?

    Thank you

  1. No trackbacks yet.