IE cache and NetConnection.Call.Failed: HTTP: Status 200

View: New views
4 Messages — Rating Filter:   Alert me  

IE cache and NetConnection.Call.Failed: HTTP: Status 200

by coulix :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys,

I stumbled upon this nasty error where time to time i would get a:

ERRRORRR [FaultEvent fault=[RPC Fault faultString="error"
faultCode="Channel.Call.Failed"
faultDetail="NetConnection.Call.Failed: HTTP: Status 200"]
messageId="F7C2D1D0-BDCE-6067-4404-9CB9576D1282" type="fault"
bubbles=false cancelable=true eventPhase=2]

For no reasons.

The strange thing is that it was not happening until i started Pushing
some data : Bytearray and long String.
This post http://jake.cfwebtools.com/2009/02/26/flex-channelconnectfailed-error-netconnectioncallfailed-http-status-200/
gives the solutionas :

"add the following line to your services-config.xml file in the
“channel-definition” tags."
<add-no-cache-headers>false</add-no-cache-headers>

<channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>

Since we dont have such xml with pyamf to configure Channels, how
would we solve this ?
So far i use in flex

======
channel = new AMFChannel( "pyamf-channel",
"http://localhost:8000/amf/gateway/" );
channels = new ChannelSet();
channels.addChannel( channel );
// this is the service id
remoteObject = new RemoteObject( "edoservice" );
remoteObject.channelSet = channels;

======

Any help is welcome,






--
o/
_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users

Re: IE cache and NetConnection.Call.Failed: HTTP: Status 200

by coulix :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some news,

I tried to set it programmaticly with

        public var chanConf:XML =
              <channel id="pyamf-channel" type="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://localhost:8000/amf/gateway/"
type="flex.messaging.endpoints.AmfEndpoint"/>
                        <properties>
                                <add-no-cache-headers>false</add-no-cache-headers>
                </properties>
              </channel>

    channel = new AMFChannel( "pyamf-channel",
"http://localhost:8000/amf/gateway/" );
    channel.applySettings(chanConf);

Still no success,
I think i am going to take the REST aproach for pushing data.

Greg

On Mon, Jun 1, 2009 at 10:03 AM, Gregory Tappero <coulix@...> wrote:

> Hi guys,
>
> I stumbled upon this nasty error where time to time i would get a:
>
> ERRRORRR [FaultEvent fault=[RPC Fault faultString="error"
> faultCode="Channel.Call.Failed"
> faultDetail="NetConnection.Call.Failed: HTTP: Status 200"]
> messageId="F7C2D1D0-BDCE-6067-4404-9CB9576D1282" type="fault"
> bubbles=false cancelable=true eventPhase=2]
>
> For no reasons.
>
> The strange thing is that it was not happening until i started Pushing
> some data : Bytearray and long String.
> This post http://jake.cfwebtools.com/2009/02/26/flex-channelconnectfailed-error-netconnectioncallfailed-http-status-200/
> gives the solutionas :
>
> "add the following line to your services-config.xml file in the
> “channel-definition” tags."
> <add-no-cache-headers>false</add-no-cache-headers>
>
> <channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
> <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/"
> class="flex.messaging.endpoints.AMFEndpoint"/>
> <properties>
> <add-no-cache-headers>false</add-no-cache-headers>
> <polling-enabled>false</polling-enabled>
> <serialization>
> <instantiate-types>false</instantiate-types>
> </serialization>
> </properties>
> </channel-definition>
>
> Since we dont have such xml with pyamf to configure Channels, how
> would we solve this ?
> So far i use in flex
>
> ======
> channel = new AMFChannel( "pyamf-channel",
> "http://localhost:8000/amf/gateway/" );
> channels = new ChannelSet();
> channels.addChannel( channel );
> // this is the service id
> remoteObject = new RemoteObject( "edoservice" );
> remoteObject.channelSet = channels;
>
> ======
>
> Any help is welcome,
>
>
>
>
>
>
> --
> o/
>



--
o/
_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users

Re: Re: IE cache and NetConnection.Call.Failed: HTTP: Status 200

by lists-144 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Gregory,

this looks like a bug in PyAMF, it's probably not supporting that special add-no-cache-headers property. Could you open a ticket and attach your test program?

Thanks,

Thijs

On 2 Jun 2009, at 09:08, Gregory Tappero wrote:

Some news,

I tried to set it programmaticly with

       public var chanConf:XML =
     <channel id="pyamf-channel" type="mx.messaging.channels.AMFChannel">
       <endpoint uri="http://localhost:8000/amf/gateway/"
type="flex.messaging.endpoints.AmfEndpoint"/>
<properties>
       <add-no-cache-headers>false</add-no-cache-headers>
       </properties>
     </channel>

   channel = new AMFChannel( "pyamf-channel",
"http://localhost:8000/amf/gateway/" );
   channel.applySettings(chanConf);

Still no success,
I think i am going to take the REST aproach for pushing data.

Greg

On Mon, Jun 1, 2009 at 10:03 AM, Gregory Tappero <coulix@...> wrote:
Hi guys,

I stumbled upon this nasty error where time to time i would get a:

ERRRORRR [FaultEvent fault=[RPC Fault faultString="error"
faultCode="Channel.Call.Failed"
faultDetail="NetConnection.Call.Failed: HTTP: Status 200"]
messageId="F7C2D1D0-BDCE-6067-4404-9CB9576D1282" type="fault"
bubbles=false cancelable=true eventPhase=2]

For no reasons.

The strange thing is that it was not happening until i started Pushing
some data : Bytearray and long String.
This post http://jake.cfwebtools.com/2009/02/26/flex-channelconnectfailed-error-netconnectioncallfailed-http-status-200/
gives the solutionas :

"add the following line to your services-config.xml file in the
“channel-definition” tags."
<add-no-cache-headers>false</add-no-cache-headers>

<channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>

Since we dont have such xml with pyamf to configure Channels, how
would we solve this ?
So far i use in flex

======
channel = new AMFChannel( "pyamf-channel",
"http://localhost:8000/amf/gateway/" );
channels = new ChannelSet();
channels.addChannel( channel );
// this is the service id
remoteObject = new RemoteObject( "edoservice" );
remoteObject.channelSet = channels;

======

Any help is welcome,






--
o/




--
o/
_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users



_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users

PGP.sig (201 bytes) Download Attachment

Re: Re: IE cache and NetConnection.Call.Failed: HTTP: Status 200

by Nick Joyce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is quite a compelling case to add support in PyAMF for the  
channel config ..

To solve this issue right now I would suggest subclassing the gateway  
class and forcing the correct http headers when producing the response.

Cheers,

Nick

On 2 Jun 2009, at 09:08, Gregory Tappero wrote:

> Some news,
>
> I tried to set it programmaticly with
>
>        public var chanConf:XML =
>      <channel id="pyamf-channel"  
> type="mx.messaging.channels.AMFChannel">
>        <endpoint uri="http://localhost:8000/amf/gateway/"
> type="flex.messaging.endpoints.AmfEndpoint"/>
> <properties>
>        <add-no-cache-headers>false</add-no-cache-headers>
>        </properties>
>      </channel>
>
>    channel = new AMFChannel( "pyamf-channel",
> "http://localhost:8000/amf/gateway/" );
>    channel.applySettings(chanConf);
>
> Still no success,
> I think i am going to take the REST aproach for pushing data.
>
> Greg
>
> On Mon, Jun 1, 2009 at 10:03 AM, Gregory Tappero <coulix@...>  
> wrote:
>> Hi guys,
>>
>> I stumbled upon this nasty error where time to time i would get a:
>>
>> ERRRORRR [FaultEvent fault=[RPC Fault faultString="error"
>> faultCode="Channel.Call.Failed"
>> faultDetail="NetConnection.Call.Failed: HTTP: Status 200"]
>> messageId="F7C2D1D0-BDCE-6067-4404-9CB9576D1282" type="fault"
>> bubbles=false cancelable=true eventPhase=2]
>>
>> For no reasons.
>>
>> The strange thing is that it was not happening until i started  
>> Pushing
>> some data : Bytearray and long String.
>> This post http://jake.cfwebtools.com/2009/02/26/flex-channelconnectfailed-error-netconnectioncallfailed-http-status-200/
>> gives the solutionas :
>>
>> "add the following line to your services-config.xml file in the
>> “channel-definition” tags."
>> <add-no-cache-headers>false</add-no-cache-headers>
>>
>> <channel-definition id="my-cfamf"  
>> class="mx.messaging.channels.AMFChannel">
>> <endpoint uri="http://{server.name}:{server.port}{context.root}/
>> flex2gateway/"
>> class="flex.messaging.endpoints.AMFEndpoint"/>
>> <properties>
>> <add-no-cache-headers>false</add-no-cache-headers>
>> <polling-enabled>false</polling-enabled>
>> <serialization>
>> <instantiate-types>false</instantiate-types>
>> </serialization>
>> </properties>
>> </channel-definition>
>>
>> Since we dont have such xml with pyamf to configure Channels, how
>> would we solve this ?
>> So far i use in flex
>>
>> ======
>> channel = new AMFChannel( "pyamf-channel",
>> "http://localhost:8000/amf/gateway/" );
>> channels = new ChannelSet();
>> channels.addChannel( channel );
>> // this is the service id
>> remoteObject = new RemoteObject( "edoservice" );
>> remoteObject.channelSet = channels;
>>
>> ======
>>
>> Any help is welcome,
>>
>>
>>
>>
>>
>>
>> --
>> o/
>>
>
>
>
> --
> o/
> _______________________________________________
> PyAMF users mailing list - users@...
> http://lists.pyamf.org/mailman/listinfo/users

_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users