Project

General

Profile

Actions

Bug #2081

closed

Impossible de créer une publication avec un rôle Redacteur

Added by Anonymous over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Start date:
06/07/2011
Due date:
% Done:

100%

Estimated time:
Navigateur:
Tous
Votre version de Silverpeas:
5.6
Système d'exploitation:
Votre base de données:
Toutes
Livraison en TEST:
Livraison en PROD:

Description

Scénario de l'anomalie:

1) Se connecter avec un compte utilisateur avec le rôle Redacteur sur une GED TT
2) Demander la création d'une publication
3) Valider la demande
Résultat obtenu : Erreur Java

java.sql.SQLException: You cannot commit during a managed transaction

Résultat souhaité: Créer la publication


Related issues

Related to GED - Bug #2154: Un rédacteur ne peut pas créer de publicationClosed06/30/2011

Actions
Related to GED - Support #2146: Erreur à la création d'une publication pour un rédacteurClosedEmmanuel Hugonnet06/29/2011

Actions
Is duplicate of GED - Bug #2054: Pas de notification envoyée sur création de publicationClosedNicolas Eysseric06/01/2011

Actions
Actions #1

Updated by Nicolas Eysseric over 10 years ago

  • Status changed from New to Feedback

Merci de fournir les traces complètes de l'erreur.

Actions #2

Updated by Anonymous over 10 years ago

Les traces complètes ci-dessous :

org.springframework.orm.hibernate3.HibernateSystemException: JDBC commit failed; nested exception is org.hibernate.TransactionException: JDBC commit failed
    at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:679)
    at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:102)
    at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:471)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy484.getUserSettings(Unknown Source)
    at com.stratelia.silverpeas.notificationManager.NotificationSender.notifyUser(NotificationSender.java:130)
    at com.stratelia.silverpeas.notificationManager.NotificationSender.notifyUser(NotificationSender.java:87)
    at com.stratelia.webactiv.kmelia.control.ejb.KmeliaBmEJB.notifyUsers(KmeliaBmEJB.java:601)
    at com.stratelia.webactiv.kmelia.control.ejb.KmeliaBmEJB.sendValidationAlert(KmeliaBmEJB.java:3681)
    at com.stratelia.webactiv.kmelia.control.ejb.KmeliaBmEJB.createTodosForPublication(KmeliaBmEJB.java:3593)
    at com.stratelia.webactiv.kmelia.control.ejb.KmeliaBmEJB.createPublicationIntoTopic(KmeliaBmEJB.java:1428)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:233)
    at ...
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.hibernate.TransactionException: JDBC commit failed
    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:157)
    at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:76)
    at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:467)
    ... 84 more
Caused by: java.sql.SQLException: You cannot commit during a managed transaction!
    at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:661)
    at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:496)
    at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:166)
    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:142)
    ... 86 more

Actions #3

Updated by Nicolas Eysseric over 10 years ago

Non reproductible sur la version de développement en cours.
La correction #2054 permet de corriger le problème...

Actions #4

Updated by Emmanuel Hugonnet over 10 years ago

  • Status changed from Feedback to Closed
Actions #5

Updated by Emmanuel Hugonnet over 10 years ago

  • % Done changed from 0 to 100
Actions #6

Updated by Emmanuel Hugonnet over 10 years ago

  • Target version set to Version 5.6.1
Actions

Also available in: Atom PDF