Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caught exception: Error reading data. #14

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 3 comments
Open

Caught exception: Error reading data. #14

GoogleCodeExporter opened this issue Mar 28, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. test with "php amqp_test.php"

What is the expected output? What do you see instead?
Creating connection
< [hex]:
0000  41 4D 51 50 01 01 09 01                            AMQP....

waiting for 10,10
waiting for a new frame
Caught exception: Error reading data. Recevived 1 instead of expected
1342243072 bytes
Trace:
#0 /home/emanus/testing/php-amqplib-read-only/amqp_wire.inc(286):
AMQPReader->rawread('1342243072')
#1 /home/emanus/testing/php-amqplib-read-only/amqp.inc(496):
AMQPReader->read('1342243072')
#2 /home/emanus/testing/php-amqplib-read-only/amqp.inc(513):
AMQPConnection->wait_frame()
#3 /home/emanus/testing/php-amqplib-read-only/amqp.inc(166):
AMQPConnection->wait_channel(0)
#4 /home/emanus/testing/php-amqplib-read-only/amqp.inc(250):
AbstractChannel->next_frame()
#5 /home/emanus/testing/php-amqplib-read-only/amqp.inc(349):
AbstractChannel->wait(Array)
#6 /home/emanus/testing/php-amqplib-read-only/amqp_test.php(21):
AMQPConnection->__construct('localhost', 5672, 'guest', 'guest')
#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

Fatal error: Exception thrown without a stack frame in Unknown on line 0


What version of the product are you using? On what operating system?

library Revision: 25 - Linux 2.6.26-2-amd64 with PHP 5.2.6-1

Please provide any additional information below.

i have tried 64bit.path and performance.path but without result

Original issue reported on code.google.com by carbeman on 28 Jan 2010 at 3:12

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Lyolik please review these bugs.

Original comment by [email protected] on 21 Mar 2010 at 9:17

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Any news with this issue?

OS: Scientific Linux 6.2 (RHEL)
uname -a: 2.6.32-220.4.1.el6.i686
RabbitMQ: 2.6.1
PHP: 5.3.3

My steps:

git clone git://github.com/videlalvaro/php-amqplib.git
make
make test

There were 2 errors:

1) PhpAmqpLib\Tests\Functional\FileTransferTest::testSendFile
Exception: Error reading data. Recevived 1 instead of expected 1342243072 bytes

2) PhpAmqpLib\Tests\Functional\PublishConsumeTest::testPublishConsume
Exception: Error reading data. Recevived 1 instead of expected 1342243072 bytes

FAILURES!
Tests: 29, Assertions: 345, Errors: 2.
PHP Fatal error:  Exception thrown without a stack frame in Unknown on line 0
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
PHP   3. PHPUnit_TextUI_Command->run() 
/usr/share/pear/PHPUnit/TextUI/Command.php:125
make: *** [test] Error 2

Original comment by [email protected] on 18 Feb 2012 at 4:57

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant