Skip Menu |

This queue is for tickets about the MQSeries CPAN distribution.

Report information
The Basics
Id: 12298
Status: resolved
Worked: 15 min
Priority: 0/
Queue: MQSeries

People
Owner: Hildo.Biersma [...] gmail.com
Requestors: robert.fish [...] i-tcs.com
Cc:
AdminCc:

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



Subject: Trigger program throws error
Hi, I'm trying to write a trigger program. I use the code shown in the CPAN Description for MQSeries::Message::Trigger (using my qname and qmgrname). I issue the runmqtrm for my qmgr and it looks ok. I then trigger the trigger and get the following message. Waiting for a trigger message """ /var/mqm/triggers/soaktrig.pl 'TMC 2SOAK.TEST SOAK.TEST.PROCESS /var/mqm/triggers/soaktrig.pl mqs001s.queue.manager ' Can't use an undefined value as a HASH reference at /usr/lib/perl5/site_perl/5.8.0/s390-linux-thread-multi/MQSeries/Message/Trigger.pm line 23. Compilation failed in require at /var/mqm/triggers/soaktrig.pl line 2. BEGIN failed--compilation aborted at /var/mqm/triggers/soaktrig.pl line 2. End of application trigger """" Where did I go wrong? Platform is SUSE Linux on zSeries.
The compilation error indicates that the MQSeries/Command/PCF/ResponseParameters.pl file wasn't required correctly or may contain invalid data. Can you (using email, not RT) send me a copy of your MQSeries/Command/PCF/ResponseParameters.pl file? Please put this in a ZIP or tar archive, as my work email does not accept atatchements ending on .pl...
Okay, think I found it... can you add the following code to your program, before the 'use MQSeries::Message::Trigger' line: BEGIN { require "MQSeries/Command/PCF/ResponseValues.pl"; } The MQSeries::Message::Trigger module is including the wrong module; this has been masked in my own programs becuase I include other modules that do, in turn, include the actual module required. If you can confirm this work-around is okay, I'll close this bug. I'll put the real fix in the next MQSeries release (once MQV6 is out).
This will be fixed in 1.24