geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Ljuba" <lju...@gmail.com>
Subject Re: @GeneratedValue(strategy = GenerationType.TABLE... : org.apache.openjpa.persistence.PersistenceException: The Transaction Synchronization Registry can not suspend the current transaction
Date Thu, 04 Dec 2008 15:10:45 GMT
It works now but there could be problem with transactions.

I made change in persistence.xml:
from
<jta-data-source>xxx</jta-data-source>
to
<non-jta-data-source>xxx</non-jta-data-source>


Could be this problem? After all there is transaction, but maybe there are
not distributed transactions needed for other services. Here is log

04 Dec 2008 15:18:09,296  INFO [pool-4-thread-6] (Transaction.java:70) - TX
Required: Started transaction
org.apache.geronimo.transaction.manager.TransactionImpl@11bddeb
04 Dec 2008 15:18:09,312 DEBUG [pool-4-thread-6]
(net.xxx.persistenceTest.probnaTabela.ProbnaTabela1Home.java:66) -
persisting ProbnaTabela1 instance
04 Dec 2008 15:18:09,406 DEBUG [pool-4-thread-6]
(net.xxx.persistenceTest.probnaTabela.ProbnaTabela1Home.java:66) - persist
successful
04 Dec 2008 15:18:09,406  INFO [pool-4-thread-6] (Transaction.java:70) - TX
Required: Committing transaction
org.apache.geronimo.transaction.manager.TransactionImpl@11bddeb
83531  xxx  TRACE  [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
18496393> executing prepstmnt 16150401
SELECT COUNTERVALUE
    FROM xxx.xxx.counters WITH (UPDLOCK)
    WHERE COUNTERNAME = ?
[params=(String) CUSTOMER_NO]
83531  xxx  TRACE  [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
18496393> [0 ms] spent
83531  xxx  TRACE  [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
18496393> executing prepstmnt 12455974
UPDATE xxx.xxx.counters
    SET COUNTERVALUE = ?
    WHERE COUNTERNAME = ? AND COUNTERVALUE = ?
[params=(long) 8673337, (String) CUSTOMER_NO, (long) 8673287]
83546  xxx  TRACE  [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
18496393> [15 ms] spent
83546  xxx  TRACE  [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
4865623> executing prepstmnt 26306486
INSERT INTO xxx.xxx.ProbnaTabela1 (id_1, ime)
    VALUES (?, ?)
[params=(int) 8673287, (String) D]
83546  xxx  TRACE  [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
4865623> [0 ms] spent

Mime
View raw message