From: BozhkoKA <BozhkoKA@tower.ru>
To: pgsql-jdbc@postgresql.org
Subject: Cannot open connection while insert much data.
Date: Wed, 30 Mar 2011 23:56:35 -0700 (PDT)
Message-ID: <1301554595679-4272825.post@n5.nabble.com> (raw)
My application is using JBOSS 5.1.0.GA, hibernate for connection to
PostgreSQL 9.0 database. Application inserts into database rows regularly.
But when it attempts insert row with 11Mb (11511828 bytes) size body (into
text-datatype column), the following error appiared:
19:02:54,989 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
19:02:54,989 ERROR [JDBCExceptionReporter] Transaction is not active:
tx=TransactionImple < ac, BasicAction: -3f57a87f:ed11:4d933f5e:99 status:
ActionStatus.
ABORTED >; - nested throwable: (javax.resource.ResourceException:
Transaction is not active: tx=TransactionImple < ac, BasicAction:
-3f57a87f:ed11:4d933f5e:9
9 status: ActionStatus.ABORTED >)
19:02:55,142 ERROR [TxPolicy] javax.ejb.EJBTransactionRolledbackException:
Cannot open connection
19:02:55,142 ERROR [ServiceBean]
javax.ejb.EJBTransactionRolledbackException: Cannot open connection
19:02:55,223 INFO [DBFacade] *** EntityManager.getFlushMode() = AUTO
19:02:55,225 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
19:02:55,225 ERROR [JDBCExceptionReporter] Transaction is not active:
tx=TransactionImple < ac, BasicAction: -3f57a87f:ed11:4d933f5e:99 status:
ActionStatus.
ABORTED >; - nested throwable: (javax.resource.ResourceException:
Transaction is not active: tx=TransactionImple < ac, BasicAction:
-3f57a87f:ed11:4d933f5e:9
9 status: ActionStatus.ABORTED >)
19:02:55,226 INFO [DefaultLoadEventListener] Error performing load command
org.hibernate.exception.GenericJDBCException: Cannot open connection
at
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
at
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
at
org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
at
org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
at
org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)
at org.hibernate.loader.Loader.doQuery(Loader.java:696)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1881)
.............
Database some parameters are:
effective_cache_size = 512MB
work_mem = 64MB
shared_buffers = 256MB
max_prepared_transactions = 200
Can anybody help me?
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Cannot-open-connection-while-insert-much-data-tp4272825p4272...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: BozhkoKA@tower.ru
Subject: Re: Cannot open connection while insert much data.
In-Reply-To: <1301554595679-4272825.post@n5.nabble.com>
References: <1301554595679-4272825.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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