Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 24825 invoked from network); 12 Feb 2009 07:59:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 07:59:38 -0000 Received: (qmail 63662 invoked by uid 500); 12 Feb 2009 07:59:37 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 63634 invoked by uid 500); 12 Feb 2009 07:59:37 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 63623 invoked by uid 99); 12 Feb 2009 07:59:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 23:59:37 -0800 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [141.113.102.113] (HELO mail-out.emea.daimler.com) (141.113.102.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 07:59:29 +0000 X-AuditID: 351f14e7-ac1bdbb000001054-fa-4993d6cc7ab8 Date: Thu, 12 Feb 2009 09:00:21 +0100 From: it-media.kopp@daimler.com Subject: IO exception: Connection Reset on Websphere AS 6.1 To: users@openjpa.apache.org Message-id: MIME-version: 1.0 Content-type: multipart/alternative; boundary="=_alternative 002BDB4CC125755B_=" Encrypted: No X-Disclaimed: 16107 X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 002BDB4CC125755B_= Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hello everybody, I'm having some problems configuring openJPA inside the Websphere=20 Application Server 6.1. I'm optaining a EntityManager manually from the=20 EnitityManagerFactory, though it seems that after some time, the=20 connection is lost and I get the following exception when trying to access = data: openjpa-1.0.3-SNAPSHOT-r420667:649224 nonfatal general error>=20 org.apache.openjpa.persistence.PersistenceException: Io exception:=20 Connection reset {prepstmnt 465836996 SELECT ....]} [code=3D17002,=20 state=3D08006] at=20 org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.jav= a:3951) at=20 org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97) at=20 org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83) at=20 org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59) at=20 org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider.handleCheckedExce= ption(SelectResultObjectProvider.java:155) at=20 org.apache.openjpa.lib.rop.EagerResultList.(EagerResultList.java:40) at org.apache.openjpa.kernel.QueryImpl.toResult(QueryImpl.java:1223) at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:990) at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:842) at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:773) at=20 org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:525) at=20 org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:237) at=20 org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:277) My questions here are: 1. Is there a way to check ahead whether a connection is still valid and=20 existing? 2. Is there anything that can be configured to let JPA automatically check = for valid connections? 3. What would be the best way to reactivate a reset connection? Thank you very much, Heiko If you are not the intended addressee, please inform us immediately that yo= u have received this e-mail in error, and delete it. We thank you for your = cooperation. = --=_alternative 002BDB4CC125755B_=--