Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 329981337B83 for ; Thu, 31 Mar 2011 04:16:44 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 97761-03 for ; Thu, 31 Mar 2011 07:16:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 9D6781337B93 for ; Thu, 31 Mar 2011 04:16:33 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q5Bo3-0001Q6-MB for pgsql-jdbc@postgresql.org; Wed, 30 Mar 2011 23:56:35 -0700 Date: Wed, 30 Mar 2011 23:56:35 -0700 (PDT) From: BozhkoKA To: pgsql-jdbc@postgresql.org Message-ID: <1301554595679-4272825.post@n5.nabble.com> Subject: Cannot open connection while insert much data. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201103/160 X-Sequence-Number: 21715 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-tp4272825p4272825.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.