Archived

This forum has been archived. Please start a new discussion on GitHub.

PHP and Glacier2 Problem

Hello!

I am trying to test a simple example of PHP client .

but when I try to connect the simple example (using a web browser) with the server through Glacier2, I obtain the following error.

Ice_UnknownLocalException Object
(
[unknown] => TcpTransceiver.cpp:223: Ice::ConnectionLostException:
connection lost: recv() returned zero
[message:protected] =>
[string:private] =>
[code:protected] => 0
[file:protected] => C:\Inetpub\wwwroot\sample.php
[line:protected] => 34
[trace:private] => Array
(
[0] => Array
(
[file] => C:\Inetpub\wwwroot\hello.php
[line] => 34
[function] => ice_checkedCast
[class] => Ice_ObjectPrx
[type] => ->
[args] => Array
(
[0] => ::Glacier2::Router
)

)

)

)

Meanwhile the server produces a error message as follows:

[ 12/25/07 22:48:18.078 Glacier2: rejecting request. no session is associated with the connection. identity: Glacier2/router ]

why and how can i connect it with the server through the Glacier2.

Thanks and Happy New Years for you!

Comments

  • benoit
    benoit Rennes, France
    Hi,

    It's quite unusual for PHP clients to access Ice servers through a Glacier2 router. Typically, the PHP client is deployed on a web server which is secured by a firewall and has direct access to the back-end Ice servers.

    In any case, it looks like your PHP client doesn't establish a session with the Glacier2 router. You need to create a session with the Glacier2 router to get access to the Ice servers. You also need to ensure that the connection between the PHP client and Glacier2 doesn't get closed (see here for more information).

    Cheers,
    Benoit.
  • i get it,thank you!