pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
XA transaction -- Linux v Windows
3+ messages / 2 participants
[nested] [flat]

* XA transaction -- Linux v Windows
@ 2014-07-30 20:42  Dennis Gesker <dennis@gesker.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Dennis Gesker @ 2014-07-30 20:42 UTC (permalink / raw)
  To: pgsql-jdbc

Hello List:

I have an application running in Glassfish using the 9.3-1102 JDBC 41
driver against pgsql 9.3. The install on Linux (Ubuntu) is installed using
the default configuration. Everything runs smoothly.

I installed pgsql 9.3 on my Windows 8.1 workstation (again default install)
but I get errors similar to:

Warning:   JTS5031: Exception [java.lang.RuntimeException:
org.postgresql.xa.PGXAException: Error preparing transaction] on Resource
[prepare] operation.
Warning:   JTS5068: Unexpected error occurred in rollback
org.postgresql.xa.PGXAException: Error rolling back prepared transaction
    at org.postgresql.xa.PGXAConnection.rollback(PGXAConnection.java:418)
[snip]
Caused by: org.postgresql.util.PSQLException: ERROR: prepared transaction
with identifier
"4871251_BgAAAEfR84hkcmdXb3Jrc3RhdGlvbixzZXJ2ZXIsUDEwMA==_ZHJnV29ya3N0YXRpb24sc2VydmVyLFAxMDAsAQ=="
does not exist
[snip]

Are there any configuration changes required on the Windows version or with
the driver to allow XA transactions?

Thanks,
Dennis

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: XA transaction -- Linux v Windows
@ 2014-07-30 20:52  John R Pierce <pierce@hogranch.com>
  parent: Dennis Gesker <dennis@gesker.com>
  0 siblings, 1 reply; 3+ messages in thread

From: John R Pierce @ 2014-07-30 20:52 UTC (permalink / raw)
  To: pgsql-jdbc

On 7/30/2014 1:42 PM, Dennis Gesker wrote:
> I have an application running in Glassfish using the 9.3-1102 JDBC 41 
> driver against pgsql 9.3. The install on Linux (Ubuntu) is installed 
> using the default configuration. Everything runs smoothly.
>
> I installed pgsql 9.3 on my Windows 8.1 workstation (again default 
> install) but I get errors similar to:
> ...
> Caused by: org.postgresql.util.PSQLException: ERROR: prepared 
> transaction with identifier 
> "4871251_BgAAAEfR84hkcmdXb3Jrc3RhdGlvbixzZXJ2ZXIsUDEwMA==_ZHJnV29ya3N0YXRpb24sc2VydmVyLFAxMDAsAQ==" 
> does not exist
> [snip]

what is max_prepared_transactions on both servers?

test=# show max_prepared_transactions ;
  max_prepared_transactions
---------------------------
  0
(1 row)


I believe 0 disables server-side prepared transactions.

-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: XA transaction -- Linux v Windows
@ 2014-07-30 21:15  Dennis Gesker <dennis@gesker.com>
  parent: John R Pierce <pierce@hogranch.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Dennis Gesker @ 2014-07-30 21:15 UTC (permalink / raw)
  To: John R Pierce <pierce@hogranch.com>; +Cc: pgsql-jdbc

Item was commented out on both servers. Set to a big number in the conf
file on my Windows machine an now its running fine.

Thanks for the help!!

Dennis


On Wed, Jul 30, 2014 at 2:52 PM, John R Pierce <pierce@hogranch.com> wrote:

> On 7/30/2014 1:42 PM, Dennis Gesker wrote:
>
>> I have an application running in Glassfish using the 9.3-1102 JDBC 41
>> driver against pgsql 9.3. The install on Linux (Ubuntu) is installed using
>> the default configuration. Everything runs smoothly.
>>
>> I installed pgsql 9.3 on my Windows 8.1 workstation (again default
>> install) but I get errors similar to:
>> ...
>>
>> Caused by: org.postgresql.util.PSQLException: ERROR: prepared
>> transaction with identifier "4871251_BgAAAEfR84hkcmdXb3Jrc3RhdGlvbi
>> xzZXJ2ZXIsUDEwMA==_ZHJnV29ya3N0YXRpb24sc2VydmVyLFAxMDAsAQ==" does not
>> exist
>> [snip]
>>
>
> what is max_prepared_transactions on both servers?
>
> test=# show max_prepared_transactions ;
>  max_prepared_transactions
> ---------------------------
>  0
> (1 row)
>
>
> I believe 0 disables server-side prepared transactions.
>
> --
> john r pierce                                      37N 122W
> somewhere on the middle of the left coast
>
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>



-- 
Dennis Roman Gesker <http://gesker.wordpress.com;
MBA, MS-MIS <http://katz.pitt.edu;
[image: dennis@gesker.com] <dennis@gesker.com>[image: Follow @Gesker on
Twitter] <https://twitter.com/gesker;[image: Follow on Facebook]
<https://www.facebook.com/gesker;[image: Follow me on LinkedIn]
<http://www.linkedin.com/in/gesker;

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2014-07-30 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-07-30 20:42 XA transaction -- Linux v Windows Dennis Gesker <dennis@gesker.com>
2014-07-30 20:52 ` John R Pierce <pierce@hogranch.com>
2014-07-30 21:15   ` Dennis Gesker <dennis@gesker.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox