Skip to content

amqp_test.php errors #21

@GoogleCodeExporter

Description

@GoogleCodeExporter
I am running rabbitmq-server_2.2.0-1_all.deb on Ubuntu Server Lucid 64 bit and 
get the following error when running amqp_test.php

Creating connection
< [hex]:
0000  41 4D 51 50 01 01 09 01                            AMQP....

waiting for 10,10
waiting for a new frame
PHP Warning:  feof() expects parameter 1 to be resource, object given in 
/usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc on line 302
PHP Warning:  fread() expects parameter 1 to be resource, object given in 
/usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc on line 303
Caught exception: Error reading data. Recevived 0 instead of expected 1 bytes
Trace:
#0 /usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc(348): 
AMQPReader->rawread(1)
#1 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(494): AMQPReader->read_octet()
#2 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(514): 
AMQPConnection->wait_frame()
#3 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(166): 
AMQPConnection->wait_channel(0)
#4 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(251): 
AbstractChannel->next_frame()
#5 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(350): 
AbstractChannel->wait(Array)
#6 /usr/src/rabbit/php-amqplib-read-only/amqp_test.php(21): 
AMQPConnection->__construct('localhost', 5672, 'guest', '123456')
#7 {main}< [hex]:
0000  01 00 00 00 00 00 0B 00  0A 00 3C 00 00 00 00 00   ........ ..<.....
0010  00 00 CE                                           ..Î

< 10,60: Connection.close
waiting for 10,61
waiting for a new frame
PHP Warning:  feof() expects parameter 1 to be resource, object given in 
/usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc on line 302
PHP Warning:  fread() expects parameter 1 to be resource, object given in 
/usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc on line 303
PHP Fatal error:  Exception thrown without a stack frame in Unknown on line 0

Original issue reported on code.google.com by probe...@gmail.com on 28 Jan 2011 at 12:12

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions