[Building Sakai] Problem when replying to a forum thread

DAVID ROLDAN MARTINEZ darolmar at upvnet.upv.es
Wed Sep 29 02:05:30 PDT 2010


If this fixes the bug, please, provide a patch at a JIRA.

Thanks.

De: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] En nombre de Miguel Carro Pellicer
Enviado el: miércoles, 29 de septiembre de 2010 10:16
Para: Sam Ottenhoff
CC: sakai-dev at collab.sakaiproject.org
Asunto: Re: [Building Sakai] Problem when replying to a forum thread

Hi Sam.

The problem dissapears commenting the line number 1082, located in messageforums-component-impl\src\java\org\sakaiproject\component\app\messageforums\MessageForumsMessageManagerImpl.java

this.saveMessage(m, false);

Maybe a problem when messages are saved recursively.

With this change, it works and i can reply and edit any message.

¿Can you test it? ¿any implication with this change? I don't know if this ridiculous change is a good solution for this Jira.

Regards, Miguel.


El 28/09/2010 15:50, Sam Ottenhoff escribió:
This is a known bug in MSGCNTR 2.7.0, 2.7.1, and trunk:

  http://jira.sakaiproject.org/browse/MSGCNTR-363

It seems clear that the forums code is not flushing all commits after replies causing the StaleObjectState.

--Sam

On 9/28/2010 6:24 AM, Joaquín Marqués Alós wrote:
Hi everyone,

I have a problem when responding to a thread in the forums for a second time. The first time you hit "Reply to thread" function properly, the problem is when you come back to give a "reply to thread" when he takes the warning "An error has occurred while posting a thread."

In the log I get this error:

ERROR http-8080-5 org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session
org.hibernate.StaleObjectStateException: Row WAS updated or deleted by another transaction (or unsaved-value mapping WAS incorrect): [org.sakaiproject.component.app.messageforums.dao.hibernate.MessageImpl # 8]

I searched the error on the Jira and I found a patch that is supposed to solve the problem but still happens the same, namely the patch is the "MSGCNTR-359.patch."

My version is 2.7.0 Sakai.

Does anyone know why this might be?

Thanks in advance.

A greeting.



_______________________________________________

sakai-dev mailing list

sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>

http://collab.sakaiproject.org/mailman/listinfo/sakai-dev



TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"





_______________________________________________

sakai-dev mailing list

sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>

http://collab.sakaiproject.org/mailman/listinfo/sakai-dev



TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"

--
[cid:image001.jpg at 01CB5FC6.3A5A9790]<http://www.samoo.es/>
 <http://www.samoo.es/>
Miguel Carro Pellicer
Technical Manager - Director técnico
miguel.carro at samoo.es<mailto:miguel.carro at samoo.es>
+34 - 96 393 74 33 ext. 32
www.samoo.es<http://www.samoo.es>

Este  correo  y  sus archivos asociados son privados y confidenciales y va dirigido  exclusivamente  a su destinatario. Si recibe este correo sin ser el  destinatario del mismo, le rogamos proceda a su eliminación y lo ponga en  conocimiento del emisor. La difusión por cualquier medio del contenido de  este  correo podría ser sancionada conforme a lo previsto en las leyes españolas, Ley Orgánica 15/1999 de Protección de Datos de Carácter Personal.  No  se autoriza la utilización con fines comerciales o para su incorporación a ficheros automatizados de las direcciones del emisor o del destinatario."

This mail and its attached files are confidential and are only and exclusively intended to their addressee. In case you may receive this mail not being its addressee, we beg you to let us know the error by reply and to proceed to destroy it. The circulation by any mean of this mail could be penalised in accordance with the Spanish legislation. Is not allowed the use of both, the transmitter and the addressee's, address with a commercial aim, or in order to be incorporated to automated data process or to any kind of files.

P Antes de imprimir este correo electrónico piense bien si es necesario hacerlo. El medioambiente es cosa de todos.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100929/b20151f1/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3022 bytes
Desc: image001.jpg
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100929/b20151f1/attachment.jpg 


More information about the sakai-dev mailing list