[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1145) "javax.persistence.TransactionRequiredException: no transaction is in progress" thrown during flush of a transient entity in a @Transactional POJO

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Jan 28 10:24:21 EST 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-1145?page=all ]

Pete Muir closed JBSEAM-1145.
-----------------------------

    Fix Version/s:     (was: 2.1.0.GA)
       Resolution: Out of Date

> "javax.persistence.TransactionRequiredException: no transaction is in progress" thrown during flush of a transient entity in a @Transactional POJO
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-1145
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1145
>             Project: JBoss Seam
>          Issue Type: Bug
>    Affects Versions: 1.2.1.GA
>         Environment: Tomcat + Microcontainer (has also been tried on Tomcat + JOTM, Tomcat + Atomikos, Tomcat + JBoss Transactions, all with the same result)
> Seam-managed Tx and PC, long-running conversations with manual flush
>            Reporter: Alex Savitsky
>         Attachments: components.xml, faces-config.xml, User.java, UserBean.java, users.xhtml, web.xml
>
>
> When persisting a transient entity during manual flush, an exception "javax.persistence.TransactionRequiredException: no transaction is in progress" is thrown, unless getEntityManager().joinTransaction() is executed prior to flush() - despite declaring the POJO as @Transactional and using Seam-managed transactions and persistence contexts.
> When persisting a managed entity, however, no exceptions are thrown and update completes normally.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list