You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Darryl L. Pierce (JIRA)" <ji...@apache.org> on 2013/05/17 14:25:15 UTC

[jira] [Created] (QPID-4857) Perl TypeError on message release/reject

Darryl L. Pierce created QPID-4857:
--------------------------------------

             Summary: 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-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org