Groups | Blog | Home
all groups > macromedia flash flash remoting > february 2005 >

macromedia flash flash remoting : NetConnection.Call.Failed only on first session



Call Me Mad
2/20/2005 7:38:14 AM
C3|Concrete3
2/22/2005 5:07:00 PM
C3|Concrete3
2/28/2005 12:51:39 PM
Status (object #2) .....code: 'NetConnection.Call.Failed' .....description:
'HTTP: Status 404' .....details:
'http://www.itchlive.com/flashservices/gateway;jsessionid=a4301fd8430b$1E$3F$3'
......level: 'error'
Mark0015
3/21/2005 3:15:37 PM
Has anyone had any progress with this? I am having the same issue after we
upgraded to MX7 as well. It seems like the flashplayer and CFMX7 do not support
session state. If I run the my flash applications in the 'test movie' mode of
flash MX with the NetConnection Debugger open, it will work fine. It is when I
try to run the application outside of the Flash MX application (using the flash
player) that I experience the problem.
Mark0015
3/22/2005 1:39:59 PM
Well since I haven't had any luck fixing this from the server-side, I am going
to start working on a fix from the application side. I think I can correct the
behavior by modifying the netservices.as script so that the
AppendToGatewayUrl() funciton will ingore any calls that include jsessionid.
Not the way I would like to fix this, but I have to move forward with something.
carwebdev
3/23/2005 12:00:00 AM
I am having the same problem, and am thinking of reverting back to CFMX 6.1.

Mark0015
3/23/2005 12:00:00 AM
I started a similair thread in the Coldfusion forum here:
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=3&th
readid=978824&enterthread=y In that thread a Macromedia Server Development
person said he had notified some people there to look into it. I also have
came up with a workaround on the application side for in the mean time. I have
tested a modification to the netservices.as file within the include folder of
Flash MX that seems to work. Here is the modfied function: // This function
gets called whenever a AppendToGatewayUrl header is received from the server.
//******************************************************************************
************************************** // Modifed on 3/22/05 to ingnore
';jsessionid=*' to fix problem after upgrade to CFMX7
//******************************************************************************
**************************************
NetConnection.prototype.AppendToGatewayUrl = function(urlSuffix) { if
(urlSuffix.indexOf(';jsessionid=') > -1) { //this.__urlSuffix = urlSuffix; if
(this.__originalUrl == null) { this.__originalUrl = this.uri; } var u =
this.__originalUrl; } else { this.__urlSuffix = urlSuffix; if
(this.__originalUrl == null) { this.__originalUrl = this.uri; } var u =
this.__originalUrl + urlSuffix; } this.connect(u); } Obviously I would much
prefer to fix this from the server-side, but this lets my application work for
the time being.
AddThis Social Bookmark Button