Skip Menu |
 

This queue is for tickets about the MQSeries CPAN distribution.

Report information
The Basics
Id: 112315
Status: rejected
Priority: 0/
Queue: MQSeries

People
Owner: w.phillip.moore [...] gmail.com
Requestors: mikhail.rasol [...] credit-suisse.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: MQSeries 1.34 suspected bug
Date: Tue, 23 Feb 2016 18:57:24 +0000
To: "bug-MQSeries [...] rt.cpan.org" <bug-MQSeries [...] rt.cpan.org>
From: "Rasol, Mikhail " <mikhail.rasol [...] credit-suisse.com>
Hello, While trying to run my code: $::replyq = MQSeries::Queue->new ( QueueManager => $::qmgr, ClientConn => { 'ChannelName' => $::qmgrname . '_SVRCONN', 'TransportType' => 'TCP', # Default 'ConnectionName' => "$ConName($ConPort)", 'MaxMsgLength' => 16 * 1024 * 1024, }, Queue => $::replyqname, Mode => 'output', ) || die "Unable to open $::replyqname\n"; I was getting the following error: I received the following error: The following parameter was passed in the call to MQSeries::Queue::new but was not listed in the validation options: ClientConn at /home/psods/externalperl/Params-Validate-1.00/lib/Params/ValidatePP.pm line 650 Params::Validate::__ANON__('The following parameter was passed in the call to MQSeries::Q...') called at /home/psods/externalperl/Params-Validate-1.00/lib/Params/ValidatePP.pm line 304 Params::Validate::validate('ARRAY(0x12998ee0)', 'HASH(0x13132310)') called at /home/psods/externalperl/MQSeries-1.34/blib/lib/MQSeries/Queue.pm line 34 MQSeries::Queue::new('undef', 'QueueManager', 'undef', 'ClientConn', 'HASH(0x119db2a0)', 'Queue', 'FBOC_OPSIT_PBS_PSDW_P', 'Mode', 'output', ...) called at /home/psods/bin/testConnection_LN.pl line 130 I reviewed MQSeries/Queue.pm and discovered that ClientConn is not being passed to validate routine, although it is a valid parameter: My %args = validate(@_, { 'Carp' => 0, 'QueueManager' => 0, 'Queue' => 0, 'ObjDesc' => 0, 'DynamicQName' => 0, 'Options' => 0, 'Mode' => 0, 'CompCode' => 0, 'Reason' => 0, 'PutConvert' => 0, 'GetConvert' => 0, 'CloseOptions' => 0, 'RetrySleep' => 0, 'RetryCount' => 0, 'RetryReasons' => 0, 'AutoOpen' => 0, 'DisableAutoResize' => 0, 'SelectionString' => 0, }), Thank you and regards, Mikhail A Rasol CREDIT SUISSE Information Technology | PS IT Reporting, KFCB 6 One Madison Avenue | 10010 New York | United States Phone mikhail.rasol@credit-suisse.com<mailto:mikhail.rasol@credit-suisse.com> | www.credit-suisse.com<http://www.credit-suisse.com> =============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ===============================================================================
Download (untitled) / with headers
text/html 15.8k

Message body is not shown because it is too large.

Subject: RE: [rt.cpan.org #112315] AutoReply: MQSeries 1.34 suspected bug
Date: Tue, 23 Feb 2016 19:49:50 +0000
To: "bug-MQSeries [...] rt.cpan.org" <bug-MQSeries [...] rt.cpan.org>
From: "Rasol, Mikhail " <mikhail.rasol [...] credit-suisse.com>
Download (untitled) / with headers
text/plain 4.4k
Really did not mean to make my Name/email address public. Would be great if you can remove that from the ticket. Regards. Show quoted text
-----Original Message----- From: Bugs in MQSeries via RT [mailto:bug-MQSeries@rt.cpan.org] Sent: Tuesday, February 23, 2016 1:59 PM To: Rasol, Mikhail (KFCI 421) Subject: [rt.cpan.org #112315] AutoReply: MQSeries 1.34 suspected bug Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "MQSeries 1.34 suspected bug", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #112315]. Your ticket is accessible on the web at: https://rt.cpan.org/Ticket/Display.html?id=112315 Please include the string: [rt.cpan.org #112315] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-MQSeries@rt.cpan.org ------------------------------------------------------------------------- Hello, While trying to run my code: $::replyq = MQSeries::Queue->new ( QueueManager => $::qmgr, ClientConn => { 'ChannelName' => $::qmgrname . '_SVRCONN', 'TransportType' => 'TCP', # Default 'ConnectionName' => "$ConName($ConPort)", 'MaxMsgLength' => 16 * 1024 * 1024, }, Queue => $::replyqname, Mode => 'output', ) || die "Unable to open $::replyqname\n"; I was getting the following error: I received the following error: The following parameter was passed in the call to MQSeries::Queue::new but was not listed in the validation options: ClientConn at /home/psods/externalperl/Params-Validate-1.00/lib/Params/ValidatePP.pm line 650 Params::Validate::__ANON__('The following parameter was passed in the call to MQSeries::Q...') called at /home/psods/externalperl/Params-Validate-1.00/lib/Params/ValidatePP.pm line 304 Params::Validate::validate('ARRAY(0x12998ee0)', 'HASH(0x13132310)') called at /home/psods/externalperl/MQSeries-1.34/blib/lib/MQSeries/Queue.pm line 34 MQSeries::Queue::new('undef', 'QueueManager', 'undef', 'ClientConn', 'HASH(0x119db2a0)', 'Queue', 'FBOC_OPSIT_PBS_PSDW_P', 'Mode', 'output', ...) called at /home/psods/bin/testConnection_LN.pl line 130 I reviewed MQSeries/Queue.pm and discovered that ClientConn is not being passed to validate routine, although it is a valid parameter: My %args = validate(@_, { 'Carp' => 0, 'QueueManager' => 0, 'Queue' => 0, 'ObjDesc' => 0, 'DynamicQName' => 0, 'Options' => 0, 'Mode' => 0, 'CompCode' => 0, 'Reason' => 0, 'PutConvert' => 0, 'GetConvert' => 0, 'CloseOptions' => 0, 'RetrySleep' => 0, 'RetryCount' => 0, 'RetryReasons' => 0, 'AutoOpen' => 0, 'DisableAutoResize' => 0, 'SelectionString' => 0, }), Thank you and regards, Mikhail A Rasol CREDIT SUISSE Information Technology | PS IT Reporting, KFCB 6 One Madison Avenue | 10010 New York | United States Phone mikhail.rasol@credit-suisse.com<mailto:mikhail.rasol@credit-suisse.com> | www.credit-suisse.com<http://www.credit-suisse.com> =============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html =============================================================================== =============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ===============================================================================
Download (untitled) / with headers
text/plain 554b
Actually, the error is correct -- the ClientConn argument is only valid for the MQSeries::QueueManager object, since that information is only specified when calling MQCONN or MQCONNX (which is what the MQSeries::QueueManager class is just a wrapper for, really). You don't need to specify that information when creating an MQSeries::Queue object. Also, note that there should be a new release of the CPAN distribution in the next few weeks, as I've taken over ownership of it again. Hopefully, you'll get much more timely feedback for future issues.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.