[jira] [Comment Edited] (QPID-5794) example clients (spout.rb, map_sender.rb) are reporting errors

2014-05-30 Thread Darryl L. Pierce (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-5794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14013651#comment-14013651
 ] 

Darryl L. Pierce edited comment on QPID-5794 at 5/30/14 1:59 PM:
-

This seems to be two missed problems. In the case of the Connection class 
constructor it was missing the 0.22 C++ code with the 0.26 Ruby code. So that 
is not a bug.

The regex case seems to be a real bug, an incompatibility between Ruby 1.8.7 
and Ruby 2.0 where, with the latter version, things run well but not with the 
former. Using RVM and Ruby 1.8.7 I can rebuild Qpid and recreate the problem:

{quote}
^_^ [J:0/1040] mcpierce@mcpierce-laptop:ruby (master) $ ruby  -I lib 
examples/spout.rb my-queue;{create:always}
examples/spout.rb:112: invalid regular expression; there's no previous pattern, 
to which '{' would define cardinality at 2: /^{(.*)}$/
examples/spout.rb:114: invalid regular expression; there's no previous pattern, 
to which '{' would define cardinality at 1: /{.*}/
{quote}


was (Author: mcpierce):
This seems to be two missed problems. In the case of the Connection class 
constructor it was missing the 0.22 C++ code with the 0.26 Ruby code. So that 
is not a bug.

The regex case seems to be a real bug, an incompatibility between Ruby 1.8.7 
and Ruby 2.0 where, with the latter version, things run well but not with the 
former. Using RVM and Ruby 1.8.7 I can rebuild Qpid and recreate the problem:

{quote}
  ^_^ [J:0/1040] mcpierce@mcpierce-laptop:ruby (master) $ ruby  -I lib 
examples/spout.rb my-queue;{create:always}
  examples/spout.rb:112: invalid regular expression; there's no previous 
pattern, to which '{' would define cardinality at 2: /^{(.*)}$/
  examples/spout.rb:114: invalid regular expression; there's no previous 
pattern, to which '{' would define cardinality at 1: /{.*}/
{quote}

 example clients (spout.rb, map_sender.rb) are reporting errors
 --

 Key: QPID-5794
 URL: https://issues.apache.org/jira/browse/QPID-5794
 Project: Qpid
  Issue Type: Bug
  Components: Ruby Client
Affects Versions: 0.26
Reporter: Petr Matousek
Priority: Minor

 # cat /etc/redhat-release 
 Red Hat Enterprise Linux Server release 6.5 (Santiago)
 # rpm -q qpid-cpp-server
 qpid-cpp-server-0.22-41.el6.x86_64
 # gem list qpid_messaging
 \*\*\* LOCAL GEMS \*\*\*
 qpid_messaging (0.26.1)
 # ruby ./spout.rb
 ./spout.rb:112: invalid regular expression; there's no previous pattern, to 
 which '{' would define cardinality at 2: /^{(.*)}$/
 ./spout.rb:114: invalid regular expression; there's no previous pattern, to 
 which '{' would define cardinality at 1: /{.*}/
 # ruby ./map_sender.rb
 ./../lib/qpid_messaging/connection.rb:71:in `initialize': Wrong arguments for 
 overloaded method 'Connection.new'. (ArgumentError)
 Possible C/C++ prototypes are:
 Connection.new(qpid::messaging::ConnectionImpl *impl)
 Connection.new(qpid::messaging::Connection const )
 Connection.new()
 Connection.new(std::string const url, qpid::types::Variant::Map const 
 options)
 Connection.new(std::string const url)
 Connection.new(std::string const url, std::string const options)
   from ./../lib/qpid_messaging/connection.rb:71:in `new'
   from ./../lib/qpid_messaging/connection.rb:71:in `initialize'
   from ./map_sender.rb:28:in `new'
   from ./map_sender.rb:28
 other example clients are working well.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Comment Edited] (QPID-5794) example clients (spout.rb, map_sender.rb) are reporting errors

2014-05-30 Thread Darryl L. Pierce (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-5794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14013651#comment-14013651
 ] 

Darryl L. Pierce edited comment on QPID-5794 at 5/30/14 1:59 PM:
-

This seems to be two missed problems. In the case of the Connection class 
constructor it was missing the 0.22 C++ code with the 0.26 Ruby code. So that 
is not a bug.

The regex case seems to be a real bug, an incompatibility between Ruby 1.8.7 
and Ruby 2.0 where, with the latter version, things run well but not with the 
former. Using RVM and Ruby 1.8.7 I can rebuild Qpid and recreate the problem:

{quote}
  ^_^ [J:0/1040] mcpierce@mcpierce-laptop:ruby (master) $ ruby  -I lib 
examples/spout.rb my-queue;{create:always}
  examples/spout.rb:112: invalid regular expression; there's no previous 
pattern, to which '{' would define cardinality at 2: /^{(.*)}$/
  examples/spout.rb:114: invalid regular expression; there's no previous 
pattern, to which '{' would define cardinality at 1: /{.*}/
{quote}


was (Author: mcpierce):
This seems to be two missed problems. In the case of the Connection class 
constructor it was missing the 0.22 C++ code with the 0.26 Ruby code. So that 
is not a bug.

The regex case seems to be a real bug, an incompatibility between Ruby 1.8.7 
and Ruby 2.0 where, with the latter version, things run well but not with the 
former. Using RVM and Ruby 1.8.7 I can rebuild Qpid and recreate the problem:

^_^ [J:0/1040] mcpierce@mcpierce-laptop:ruby (master) $ ruby  -I lib 
examples/spout.rb my-queue;{create:always}
examples/spout.rb:112: invalid regular expression; there's no previous pattern, 
to which '{' would define cardinality at 2: /^{(.*)}$/
examples/spout.rb:114: invalid regular expression; there's no previous pattern, 
to which '{' would define cardinality at 1: /{.*}/


 example clients (spout.rb, map_sender.rb) are reporting errors
 --

 Key: QPID-5794
 URL: https://issues.apache.org/jira/browse/QPID-5794
 Project: Qpid
  Issue Type: Bug
  Components: Ruby Client
Affects Versions: 0.26
Reporter: Petr Matousek
Priority: Minor

 # cat /etc/redhat-release 
 Red Hat Enterprise Linux Server release 6.5 (Santiago)
 # rpm -q qpid-cpp-server
 qpid-cpp-server-0.22-41.el6.x86_64
 # gem list qpid_messaging
 \*\*\* LOCAL GEMS \*\*\*
 qpid_messaging (0.26.1)
 # ruby ./spout.rb
 ./spout.rb:112: invalid regular expression; there's no previous pattern, to 
 which '{' would define cardinality at 2: /^{(.*)}$/
 ./spout.rb:114: invalid regular expression; there's no previous pattern, to 
 which '{' would define cardinality at 1: /{.*}/
 # ruby ./map_sender.rb
 ./../lib/qpid_messaging/connection.rb:71:in `initialize': Wrong arguments for 
 overloaded method 'Connection.new'. (ArgumentError)
 Possible C/C++ prototypes are:
 Connection.new(qpid::messaging::ConnectionImpl *impl)
 Connection.new(qpid::messaging::Connection const )
 Connection.new()
 Connection.new(std::string const url, qpid::types::Variant::Map const 
 options)
 Connection.new(std::string const url)
 Connection.new(std::string const url, std::string const options)
   from ./../lib/qpid_messaging/connection.rb:71:in `new'
   from ./../lib/qpid_messaging/connection.rb:71:in `initialize'
   from ./map_sender.rb:28:in `new'
   from ./map_sender.rb:28
 other example clients are working well.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Comment Edited] (QPID-5794) example clients (spout.rb, map_sender.rb) are reporting errors

2014-05-30 Thread Darryl L. Pierce (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-5794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14013651#comment-14013651
 ] 

Darryl L. Pierce edited comment on QPID-5794 at 5/30/14 2:03 PM:
-

This seems to be two missed problems. In the case of the Connection class 
constructor it was missing the 0.22 C++ code with the 0.26 Ruby code. So that 
is not a bug.

The regex case seems to be a real bug, an incompatibility between Ruby 1.8.7 
and Ruby 2.0 where, with the latter version, things run well but not with the 
former. Using RVM and Ruby 1.8.7 I can rebuild Qpid and recreate the problem:

{noformat}
^_^ [J:0/1040] mcpierce@mcpierce-laptop:ruby (master) $ ruby  -I lib 
examples/spout.rb my-queue;{create:always}
examples/spout.rb:112: invalid regular expression; there's no previous pattern, 
to which '{' would define cardinality at 2: /^{(.*)}$/
examples/spout.rb:114: invalid regular expression; there's no previous pattern, 
to which '{' would define cardinality at 1: /{.*}/
{noformat}


was (Author: mcpierce):
This seems to be two missed problems. In the case of the Connection class 
constructor it was missing the 0.22 C++ code with the 0.26 Ruby code. So that 
is not a bug.

The regex case seems to be a real bug, an incompatibility between Ruby 1.8.7 
and Ruby 2.0 where, with the latter version, things run well but not with the 
former. Using RVM and Ruby 1.8.7 I can rebuild Qpid and recreate the problem:

{quote}
^_^ [J:0/1040] mcpierce@mcpierce-laptop:ruby (master) $ ruby  -I lib 
examples/spout.rb my-queue;{create:always}
examples/spout.rb:112: invalid regular expression; there's no previous pattern, 
to which '{' would define cardinality at 2: /^{(.*)}$/
examples/spout.rb:114: invalid regular expression; there's no previous pattern, 
to which '{' would define cardinality at 1: /{.*}/
{quote}

 example clients (spout.rb, map_sender.rb) are reporting errors
 --

 Key: QPID-5794
 URL: https://issues.apache.org/jira/browse/QPID-5794
 Project: Qpid
  Issue Type: Bug
  Components: Ruby Client
Affects Versions: 0.26
Reporter: Petr Matousek
Priority: Minor

 # cat /etc/redhat-release 
 Red Hat Enterprise Linux Server release 6.5 (Santiago)
 # rpm -q qpid-cpp-server
 qpid-cpp-server-0.22-41.el6.x86_64
 # gem list qpid_messaging
 \*\*\* LOCAL GEMS \*\*\*
 qpid_messaging (0.26.1)
 # ruby ./spout.rb
 ./spout.rb:112: invalid regular expression; there's no previous pattern, to 
 which '{' would define cardinality at 2: /^{(.*)}$/
 ./spout.rb:114: invalid regular expression; there's no previous pattern, to 
 which '{' would define cardinality at 1: /{.*}/
 # ruby ./map_sender.rb
 ./../lib/qpid_messaging/connection.rb:71:in `initialize': Wrong arguments for 
 overloaded method 'Connection.new'. (ArgumentError)
 Possible C/C++ prototypes are:
 Connection.new(qpid::messaging::ConnectionImpl *impl)
 Connection.new(qpid::messaging::Connection const )
 Connection.new()
 Connection.new(std::string const url, qpid::types::Variant::Map const 
 options)
 Connection.new(std::string const url)
 Connection.new(std::string const url, std::string const options)
   from ./../lib/qpid_messaging/connection.rb:71:in `new'
   from ./../lib/qpid_messaging/connection.rb:71:in `initialize'
   from ./map_sender.rb:28:in `new'
   from ./map_sender.rb:28
 other example clients are working well.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org