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

31747   Message not initialized for put

Cause

This error occurs if you attempt to put (that is, send) a message to a message queue and the message queue has not been initialized for that operation.

In the following example, an attempt is made to send a message using the putMessage method of the JadeGenericQueue class but the queue has been opened with the Usage=Get option.

myQueue := fcty.openQueue("JadeMQ://localnode/TestQ",                                                         "Access=Public;Usage=Get");
msg := myQueue.createMessage(true);
msg.appendString("Hello World");
myQueue.putMessage(msg, null);

Action

Correct your code.