[ https://issues.apache.org/jira/browse/QPID-4857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660674#comment-13660674 ]
Darryl L. Pierce edited comment on QPID-4857 at 5/17/13 12:26 PM: ------------------------------------------------------------------ The underlying cause in both reject and also in release is that the Perl qpid::messaging::Message object is being passed to the underlying C++ code rather than the C++ implementation wrapped in the Perl code. was (Author: mcpierce): The underlying cause in both reject and also in acknowledge is that the Perl qpid::messaging::Message object is being passed to the underlying C++ code rather than the C++ implementation wrapped in the Perl code. > Perl TypeError on message release/reject > ----------------------------------------- > > Key: QPID-4857 > URL: https://issues.apache.org/jira/browse/QPID-4857 > Project: Qpid > Issue Type: Bug > Components: Perl Client > Reporter: Darryl L. Pierce > Assignee: Darryl L. Pierce > > When user tries to release/reject the acquired message, following error > occurs: > TypeError in method 'Session_release', argument 2 of type > 'qpid::messaging::Message &' > Version-Release number of selected component (if applicable): > perl-qpid-0.22-4 > How reproducible: > 100% > Steps to Reproduce: > 1. see additional info > > Actual results: > Unable to release/reject message > Expected results: > Acquired message may be released/rejected > Additional info: > Reproducer: > 1. release message > #!/usr/bin/env perl > use qpid; > my $message = new qpid::messaging::Message(); > my $address = "q;{create:sender,delete:receiver}"; > my $connection = new qpid::messaging::Connection("127.0.0.1"); > $connection->open(); > my $session = $connection->create_session(); > my $sender = $session->create_sender($address); > my $receiver = $session->create_receiver($address); > $sender->send($message); > eval { $message = $receiver->fetch(0); }; > $session->release($message); > $session->reject($message); > $receiver->close(); > $session->close(); > $connection->close(); > 2. reject message > same as above with following modification: > - $session->release($message); > + $session->reject($message); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org