RP/MessageQ 5.0 - pams_cancel_timer() fails with PAMS__RESRCFAIL - CR020835 (Doc ID 766181.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle MessageQ / MessageQ /
Information in this document applies to any platform

Goal

DESCRIPTION:

pams_cancel_timer() will fail with a PAMS__RESRCFAIL error if
there are already multiple timers that have already expired
for same queue.

Example:


int main(int argc, char* argv[])
{
        int32 retour;
        q_address my_primary_queue;

        attachMQ(&my_primary_queue);

        printf("set timers ...\n");
        setTimerMQ(2000);
        setTimerMQ(2001);

printf("Wait a bit, then hit return...");
scanf("%c",&retour);

        printf("set/clear timers ...\n");
        setTimerMQ(2002);
        clearTimerMQ(2002);

exit();
}

The 'clearTimerMQ' returns the failure.

This worked correctly in V40A.  Is broke on all Unix/NT platforms for V50.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms