31760 Queue not opened for inquiries
Cause
This error occurs if an attempt is made to inquire on information about a queue that was opened by using the openQueue method of the JadeMessagingFactory class with the options parameter containing the option Usage=Put or other value that does not allow inquiries to be made about messages in the queue; for example, attempting to execute the countQueuedMessages method raises this exception.
Action
Correct your code.