You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by "Jesse W. Hathaway" <jw...@chappy.com> on 2009/04/23 21:51:20 UTC

QPID M4 & Trunk Ruby Bindings

I am brand new to AMQP as well as QPID

When attempting to use the Ruby bindings with
the example code I get the same error message from M4
as well as from the trunk.

/home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:139:in
  `start': Qpid::Timeout (Qpid::Timeout)
  from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
  from /home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:137:in `start'
  from examples/hello-world.rb:32

I am running the default server configuration.

I tried increasing the log level on the server, but
no log messages are generated when running the hello-world.rb 
sample app. The server is up and running as I can telnet to
5672 and receive a response.

I assume there is some fundamental problem with my setup,
any help is appreciated.

-- 
Jesse W. Hathaway
Senior Systems Administrator
Chapdelaine & Co.
(w) 312-704-2000
(c) 917-418-8423

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: QPID M4 & Trunk Ruby Bindings

Posted by "Jesse W. Hathaway" <jw...@chappy.com>.
> Jesse W. Hathaway wrote:
>>> Jesse W. Hathaway wrote:
>>>> I am brand new to AMQP as well as QPID
>>>>
>>>> When attempting to use the Ruby bindings with
>>>> the example code I get the same error message from M4
>>>> as well as from the trunk.
>>>>
>>>> /home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:139:in
>>>>   `start': Qpid::Timeout (Qpid::Timeout)
>>>>   from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>>>   from /home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:137:in `start'
>>>>   from examples/hello-world.rb:32
>>>>
>>>> I am running the default server configuration.
>>>>   
>>> Are you using the Java server or the C++ server?
>>
>> The Java server, I haven't made any changes to the default configuration other
>> than increasing the logging.
>
> The hello-world example for the ruby client requires AMQP 0-10. You  
> would need to use qpidd (i.e. the c++ broker) to run that.

Is there any documentation on what would need to be changed to get the
hello-world example running against the Java Broker with the 0-8 spec?

>>> If you run qpid-tool, can you connect to the server? Can you run the  
>>> example programs from other languages?
>>
>> qpid-tool just hangs, but never timeouts, if I telnet to 5672 and enter
>> some characters the server does respond with `AMQP`
>>
>> example programs from other languages seem to result in the same type of
>> errors either timing out or just hanging.
>
> The other examples also require 0-10 (with the exception of the JMS  
> example which is independent of version) as does qpid-tool. Again, these  
> will work only with qpidd.

Thanks for clearing this up, that explains why nothing was working for
me


-- 
Jesse W. Hathaway
Senior Systems Administrator
Chapdelaine & Co.
(w) 312-704-2000
(c) 917-418-8423

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: QPID M4 & Trunk Ruby Bindings

Posted by Gordon Sim <gs...@redhat.com>.
Jesse W. Hathaway wrote:
>> Jesse W. Hathaway wrote:
>>> I am brand new to AMQP as well as QPID
>>>
>>> When attempting to use the Ruby bindings with
>>> the example code I get the same error message from M4
>>> as well as from the trunk.
>>>
>>> /home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:139:in
>>>   `start': Qpid::Timeout (Qpid::Timeout)
>>>   from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>>   from /home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:137:in `start'
>>>   from examples/hello-world.rb:32
>>>
>>> I am running the default server configuration.
>>>   
>> Are you using the Java server or the C++ server?
> 
> The Java server, I haven't made any changes to the default configuration other
> than increasing the logging.

The hello-world example for the ruby client requires AMQP 0-10. You 
would need to use qpidd (i.e. the c++ broker) to run that.

>> If you run qpid-tool, can you connect to the server? Can you run the  
>> example programs from other languages?
> 
> qpid-tool just hangs, but never timeouts, if I telnet to 5672 and enter
> some characters the server does respond with `AMQP`
> 
> example programs from other languages seem to result in the same type of
> errors either timing out or just hanging.

The other examples also require 0-10 (with the exception of the JMS 
example which is independent of version) as does qpid-tool. Again, these 
will work only with qpidd.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: QPID M4 & Trunk Ruby Bindings

Posted by "Jesse W. Hathaway" <jw...@chappy.com>.
> Jesse W. Hathaway wrote:
>> I am brand new to AMQP as well as QPID
>>
>> When attempting to use the Ruby bindings with
>> the example code I get the same error message from M4
>> as well as from the trunk.
>>
>> /home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:139:in
>>   `start': Qpid::Timeout (Qpid::Timeout)
>>   from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>   from /home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:137:in `start'
>>   from examples/hello-world.rb:32
>>
>> I am running the default server configuration.
>>   
>
> Are you using the Java server or the C++ server?

The Java server, I haven't made any changes to the default configuration other
than increasing the logging.

> If you run qpid-tool, can you connect to the server? Can you run the  
> example programs from other languages?

qpid-tool just hangs, but never timeouts, if I telnet to 5672 and enter
some characters the server does respond with `AMQP`

example programs from other languages seem to result in the same type of
errors either timing out or just hanging.

I would suspect that the server was not working at all, but with the tmm1-amqp
ruby library I do get connected even though a bunch of errors are thrown on 
the client side as well as in the server log, as I posted earlier

Is there something else I need to configure on the server other than
running ./qpid-server?

Here is the server startup output:

2009-04-24 09:34:08,015 WARN  [main] management.AMQUserManagementMBean (AMQUserManagementMBean.java:387) - Access rights contains user 'admin' but there is no authentication data for that user
2009-04-24 09:34:08,018 WARN  [main] management.AMQUserManagementMBean (AMQUserManagementMBean.java:387) - Access rights contains user 'user' but there is no authentication data for that user
2009-04-24 09:34:08,065 INFO  [main] store.MemoryMessageStore (MemoryMessageStore.java:68) - Using capacity 50000 for hash tables
2009-04-24 09:34:08,117 WARN  [main] access.ACLManager (ACLManager.java:52) - No ACL Plugin specified. Using default ACL Plugin 'AllowAll' for VirtualHost:'localhost'
2009-04-24 09:34:08,123 INFO  [main] store.MemoryMessageStore (MemoryMessageStore.java:68) - Using capacity 50000 for hash tables
2009-04-24 09:34:08,152 WARN  [main] access.ACLManager (ACLManager.java:52) - No ACL Plugin specified. Using default ACL Plugin 'AllowAll' for VirtualHost:'development'
2009-04-24 09:34:08,156 INFO  [main] store.MemoryMessageStore (MemoryMessageStore.java:68) - Using capacity 50000 for hash tables
2009-04-24 09:34:08,169 WARN  [main] access.ACLManager (ACLManager.java:52) - No ACL Plugin specified. Using default ACL Plugin 'AllowAll' for VirtualHost:'test'
2009-04-24 09:34:08,174 INFO  [main] server.Main (Main.java:274) - Starting Qpid Broker M4 build: exported
2009-04-24 09:34:08,378 WARN  [main] transport.ConnectorConfiguration (ConnectorConfiguration.java:114) - Using Mina IO Processing
2009-04-24 09:34:08,492 INFO  [main] server.Main (Main.java:434) - Qpid.AMQP listening on non-SSL address 0.0.0.0/0.0.0.0:5672
2009-04-24 09:34:08,522 INFO  [main] server.Main (Main.java:456) - Qpid Broker Ready :M4 build: exported

thanks,

-- 
Jesse W. Hathaway
Senior Systems Administrator
Chapdelaine & Co.
(w) 312-704-2000
(c) 917-418-8423

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: QPID M4 & Trunk Ruby Bindings

Posted by Jonathan Robie <jo...@redhat.com>.
Jesse W. Hathaway wrote:
> I am brand new to AMQP as well as QPID
>
> When attempting to use the Ruby bindings with
> the example code I get the same error message from M4
> as well as from the trunk.
>
> /home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:139:in
>   `start': Qpid::Timeout (Qpid::Timeout)
>   from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>   from /home/jwh/tmp/qpid-svn/trunk/qpid/ruby/lib/qpid/connection.rb:137:in `start'
>   from examples/hello-world.rb:32
>
> I am running the default server configuration.
>   

Are you using the Java server or the C++ server?

If you run qpid-tool, can you connect to the server? Can you run the 
example programs from other languages?

Jonathan

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org