pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedCannot open connection while insert much data.
2+ messages / 2 participants
[nested] [flat]
* Cannot open connection while insert much data.
@ 2011-03-31 06:56 BozhkoKA <BozhkoKA@tower.ru>
0 siblings, 1 reply; 2+ messages in thread
From: BozhkoKA @ 2011-03-31 06:56 UTC (permalink / raw)
To: pgsql-jdbc
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Cannot open connection while insert much data.
@ 2011-03-31 22:24 Oliver Jowett <oliver@opencloud.com>
parent: BozhkoKA <BozhkoKA@tower.ru>
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Jowett @ 2011-03-31 22:24 UTC (permalink / raw)
To: BozhkoKA <BozhkoKA@tower.ru>; +Cc: pgsql-jdbc
On 31 March 2011 19:56, BozhkoKA <BozhkoKA@tower.ru> wrote:
> 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:
Hard to help you here as none of the logging you provided actually
comes from the JDBC driver. If you can convince JBoss to report an
actual driver exception, we can look at that.
Oliver
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-03-31 22:24 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31 06:56 Cannot open connection while insert much data. BozhkoKA <BozhkoKA@tower.ru>
2011-03-31 22:24 ` Oliver Jowett <oliver@opencloud.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