I am just trying to get to the bottom of this error. Has anyone encountered it before? The JMS is configured to be non - persistent - the messages are only transferred if the memory starts to get scarce.
But it seems like there is a bug somewhere - in jboss version 4.0.0 where it is trying to insert a duplicate primary key. But I cannot find it. 08:13:49: ln6p2034app: IOIEditor: ERR: IOIBrokerBean::sendMessage() - JMS Exception caught sending message : org.jboss.mq.SpyJMSException: Could not store message: 16641774 msg=369111 hard NOT_STORED NON_PERSISTENT queue=TOPIC.jms.topic.IOITopic.ioiEditorAppLogin1123805403413.-2147483648 priority=9 lateClone=false hashCode=22079513; - nested throwable: (java.sql.SQLException: Unique constraint violation: in statement [INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?)] Since I cant find anywhere that does select max(messageid) from the database i presume that the message id and its incrementation is all done in memory. protected long nextMessageId() { if (parameters.lateClone) return nextSharedMessageId(); synchronized (nextMessageIdLock) { return nextMessageIdCounter++; } } protected void updateNextMessageId(SpyMessage message) { if (parameters.lateClone) { updateSharedNextMessageId(message); return; } synchronized (nextMessageIdLock) { nextMessageIdCounter = Math.max(nextMessageIdCounter, message.header.messageId+1); } } Maybe it has been fixed in a later version of jboss? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899535#3899535 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899535 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user