Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9213DD8D5 for ; Mon, 17 Sep 2012 16:51:09 +0000 (UTC) Received: (qmail 79359 invoked by uid 500); 17 Sep 2012 16:51:09 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 79284 invoked by uid 500); 17 Sep 2012 16:51:08 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 79078 invoked by uid 99); 17 Sep 2012 16:51:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 16:51:08 +0000 Date: Tue, 18 Sep 2012 03:51:08 +1100 (NCT) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Message-ID: <162662216.88426.1347900668619.JavaMail.jiratomcat@arcas> In-Reply-To: <865297137.75060.1342692454923.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (OPENJPA-2234) EntityManager instance creation needs TX activity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457144#comment-13457144 ] Rick Curtis commented on OPENJPA-2234: -------------------------------------- > that apparently the EntityManagerFactory bootstrap code tries to access a TransactionManager which effectively can't be in place at that time as usually the Txmanager works with the EntityManagerFactory in turn. I don't follow your comment? The exception occurs at EntityManager creation, not EntityManagerFactory. > EntityManager instance creation needs TX activity > ------------------------------------------------- > > Key: OPENJPA-2234 > URL: https://issues.apache.org/jira/browse/OPENJPA-2234 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.0.1 > Environment: - JDK 1.5 > - Spring 3.1.1.RELEASE > - Spring Data JPA 1.1 GA (issue confirmed on version 1.0.3) > - Atomikos 3.7.0 > - OpenJPA 2.0.1 > - DB2 9.7 > Reporter: Erik Kis > > While working with Spring Data, we came across a potential bug in OpenJPA. > The bug was provoked by a query lookup module in Spring Data JPA, but it has its roots in AbstractBrokerFactory class, which seems to require transaction existence in order to create EntityManager (which is contrary to JPA spec). > I have already been in touch with Spring Data JPA author (where I filed a bug against Spring Data JPA) who actually pointed me to file a bug here. > I have extensively documented my findings on this thread (http://stackoverflow.com/questions/10688040/spring-data-jpa-fails-to-invoke-jtatransactionmanager), so I'll rather post the link, instead of repeating the whole thing here. > All that being said, I am not entirely sure what actually happened and am no authority whatsoever on JPA spec. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira