Welcome, Guest. Please login or register.
Did you miss your activation email?
02/08/12, 08:07
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Flash Remoting with AMF (Moderators: Flash-db, Musicman, Jorge Solis, papachan, nothingGrinder)
| | |-+  Flash CS 4 - amfphp 1.9 beta2 - Error #2173
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Flash CS 4 - amfphp 1.9 beta2 - Error #2173  (Read 7170 times)
Novick
Server what's that
*
Posts: 15


View Profile Email
« on: 03/11/09, 07:19 »

Hi!
Please help in my problem! Thanks!
I create class Array in IDE Flash CS 4, and send it cross class NetConnection to amfphp 1.9:
Code:
var gateway:String="http://localhost/amfphp/gateway.php";
var myresp:Responder=new Responder(myresp_onResult,myresp_onFault);
var connection:NetConnection=new NetConnection;
connection.connect(gateway);
var myar:Array=new Array(1, 2, 3);
connection.call("myservice.getData", myresp, myar);
function myresp_onResult(result:Object):void {
}
function myresp_onFault(fault:Object):void {
}
I take trace of this run-time error:
ArgumentError: Error #2173: It is not succeeded to read an object in a stream. In a class flex.messaging.io.ArrayCollection
an interface is not realized flash.utils.Iexternalizable,
but as his pseudonym a class is used with support of external connections.
« Last Edit: 03/11/09, 07:29 by Novick » Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #1 on: 03/11/09, 14:23 »

I use often amfphp but never receives this error. I guess parenthesis are optional, but try with:

var connection:NetConnection=new NetConnection();

Jorge
Logged

Novick
Server what's that
*
Posts: 15


View Profile Email
« Reply #2 on: 03/13/09, 01:45 »

Did not help Sad
That characteristically, an error appears only at transmissions of Array. For class ByteArray, String, Number, Boolean - all be well.
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« Reply #3 on: 03/13/09, 02:35 »

did you use charles, or any other trafic debuging tool?
Logged

happy flashing
Cool
Ronald
Novick
Server what's that
*
Posts: 15


View Profile Email
« Reply #4 on: 03/13/09, 06:31 »

No, only IDE Flash CS 4 (AS 3.0, ObjectEncoding.AMF3) - amfphp 1.9 beta2 on localhost (Win XP SP3, WampServer 2.0 - my educational system)
Now I decide a problem so:
I will transform an Array in a String and send to the server.
With difficultly component Arrays did not work while.
« Last Edit: 03/13/09, 07:36 by Novick » Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« Reply #5 on: 03/13/09, 07:21 »

I beleive, the problem is somewhere in the data stream.
After it is allways good to know how the traffic moves Wink

Look into the traffic - use charles for debuging
Logged

happy flashing
Cool
Ronald
Novick
Server what's that
*
Posts: 15


View Profile Email
« Reply #6 on: 03/23/09, 02:16 »

News from error:
It takes place, when amfphp return type Object.
Exemple:
Code:
<?php
function getData($flashArray){
  return 
mysql_query("SELECT * FROM myTable");
}
?>
Can anybody to me help from specialists?  Huh
« Last Edit: 03/23/09, 02:19 by Novick » Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #7 on: 03/23/09, 05:33 »

Mysql recordset are one of the oldest elements amfphp deal with ... check trough another server, or try resintalling to the last version of amphp

Jorge
Logged

Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« Reply #8 on: 03/23/09, 09:04 »

did you run this with phpMyAdmin?
did you check charles for details?
Logged

happy flashing
Cool
Ronald
Novick
Server what's that
*
Posts: 15


View Profile Email
« Reply #9 on: 03/25/09, 07:26 »

did you run this with phpMyAdmin?
did you check charles for details?
No! I search answer, but no new question!
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« Reply #10 on: 03/25/09, 08:01 »

it is allways wise to run sql commands, not delivering the expected results, against phpMyAdmin, to make sure they are not the reason.

And further - if you dont receive the expected result from a remote client, it makes sense checking the communication.

copy the query command into the SQL-Window in your phpMyAdmin, so you know that this is running, and execute the programm while charles is running, to make sure the data communication is as expected.

If you receive errors, or things look different, you get away from guesswork towards well based debugging.
Logged

happy flashing
Cool
Ronald
DonaldCox
Server what's that
*
Posts: 1


View Profile
« Reply #11 on: 04/01/09, 07:08 »

... only IDE Flash CS 4 (AS 3.0, ObjectEncoding.AMF3) ...

Sending arrays back from the 1.9 AMFPHP beta has a few documented issues, most notably that it doesn't work reliably with AMF3 Objectencoding.
Using AMF0 should fix your problem.

However AMF3 is neccessary for many other transfers, such as handling ByteArrays. You can set different encodings for different calls of course, not sure if that would have a downside though.
Logged
Novick
Server what's that
*
Posts: 15


View Profile Email
« Reply #12 on: 04/01/09, 07:19 »

Thanks!
It's true - in AMF0 this truble I not meeting.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!