qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-1789) [ruby] `pre_encode': undefined method `symbol_keys!' for Qpid::Proton::Types:Module (NoMethodError)
Date Tue, 10 Apr 2018 21:18:00 GMT

    [ https://issues.apache.org/jira/browse/PROTON-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16433009#comment-16433009
] 

ASF subversion and git services commented on PROTON-1789:
---------------------------------------------------------

Commit 06e931f6ee4d0631e68131b21e6f84d83ba8b913 in qpid-proton's branch refs/heads/go1 from
[~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=06e931f ]

PROTON-1789: [ruby] Remove incorrect type-adjustments for maps

Removed incorrect code to force the key type of application-properties and
annotation maps to SYMBOL. For now the user is required to use the correct
types. We may add correct validation or conversion code in future.


> [ruby] `pre_encode': undefined method `symbol_keys!' for Qpid::Proton::Types:Module (NoMethodError)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PROTON-1789
>                 URL: https://issues.apache.org/jira/browse/PROTON-1789
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: ruby-binding
>    Affects Versions: proton-c-0.22.0
>         Environment: $ ruby --version
> ruby 2.5.0p0 (2017-12-25) [x86_64-linux]
> commit f1100fea2b67538b277d2f4c60f795de1320c6a3 (upstream/master)
> Author: Alan Conway <aconway@redhat.com>
> Date:   Wed Mar 7 23:48:25 2018 -0500
>     NO-JIRA: [ruby] extra URI tests, better exception message.
>            Reporter: Jiri Daněk
>            Assignee: Alan Conway
>            Priority: Major
>             Fix For: proton-c-0.22.0
>
>
> When sending a message with message properties set, the following exception is thrown
> {noformat}
> % ruby bin/cli-proton-ruby-sender --msg-property=key1~10.5 :(
> Traceback (most% ruby bin/cli-proton-ruby-sender --msg-property=key1~10.5 :(
> Traceback (most recent call last):
> 15: from bin/cli-proton-ruby-sender:21:in `<main>'
> 14: from bin/cli-proton-ruby-sender:21:in `new'
> 13: from /home/jdanek/Work/repos/cli-proton-ruby/lib/sender_client.rb:52:in `initialize'
> 12: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/container.rb:263:in
`run'
> 11: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:196:in
`process'
> 10: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:180:in
`dispatch'
> 9: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:78:in
`each_event'
> 8: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:185:in
`block in dispatch'
> 7: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/event.rb:94:in
`dispatch'
> 6: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:131:in
`on_link_flow'
> 5: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:27:in
`delegate'
> 4: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/adapter.rb:74:in
`forward'
> 3: from /home/jdanek/Work/repos/cli-proton-ruby/lib/handlers/sender_handler.rb:165:in
`on_sendable'
> 2: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/sender.rb:76:in
`send'
> 1: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/message.rb:60:in
`encode'
> /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/message.rb:77:in `pre_encode':
undefined method `symbol_keys!' for Qpid::Proton::Types:Module (NoMethodError)
>  recent call last):
> 15: from bin/cli-proton-ruby-sender:21:in `<main>'
> 14: from bin/cli-proton-ruby-sender:21:in `new'
> 13: from /home/jdanek/Work/repos/cli-proton-ruby/lib/sender_client.rb:52:in `initialize'
> 12: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/container.rb:263:in
`run'
> 11: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:196:in
`process'
> 10: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:180:in
`dispatch'
> 9: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:78:in
`each_event'
> 8: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:185:in
`block in dispatch'
> 7: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/event.rb:94:in
`dispatch'
> 6: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:131:in
`on_link_flow'
> 5: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:27:in
`delegate'
> 4: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/adapter.rb:74:in
`forward'
> 3: from /home/jdanek/Work/repos/cli-proton-ruby/lib/handlers/sender_handler.rb:165:in
`on_sendable'
> 2: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/sender.rb:76:in
`send'
> 1: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/message.rb:60:in
`encode'
> /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/message.rb:77:in `pre_encode':
undefined method `symbol_keys!' for Qpid::Proton::Types:Module (NoMethodError)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message