Product Information > JADE Error Messages and System Messages > 31700 through 31899 - Messaging Framework Errors > 31748 - Message not initialized for get

31748   Message not initialized for get

This error occurs if you attempt to get (that is, retrieve) a message from a message queue and the message queue has not been initialized for that operation. In the following example, an attempt is made to retrieve a message using the getMessage method of the JadeGenericQueue class but the queue has been opened with the Usage=Put option.

myQueue := fcty.openQueue("JadeMQ://localnode/TestQ",                                                         "Access=Public;Usage=Put");
msg := myQueue.createMessage(true);
myQueue.getMessage(msg, null);

Action

Correct your code.