Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 19470 invoked from network); 23 Jun 2005 10:36:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jun 2005 10:36:18 -0000 Received: (qmail 16483 invoked by uid 500); 23 Jun 2005 10:36:17 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 16463 invoked by uid 500); 23 Jun 2005 10:36:17 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 16450 invoked by uid 99); 23 Jun 2005 10:36:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2005 03:36:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [196.35.77.56] (HELO mfw1.busgateway.is.co.za) (196.35.77.56) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2005 03:36:17 -0700 Received: from BG-SMTP01.he.businessgateway.co.za (Not Verified[196.35.61.109]) by mfw1.busgateway.is.co.za with NetIQ MailMarshal (v5.5.6.7) id ; Thu, 23 Jun 2005 12:40:30 +0200 Received: from meindert ([165.146.129.48]) by BG-SMTP01.he.businessgateway.co.za with Microsoft SMTPSVC(6.0.3790.211); Thu, 23 Jun 2005 12:34:41 +0200 From: "Meindert" To: Subject: No operations allowed after connection closed. Date: Thu, 23 Jun 2005 12:35:49 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C577F0.19571140" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcV3wmRPzRmOkyYjSt6kDOdrMUcZdAAHLiTw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: X-OriginalArrivalTime: 23 Jun 2005 10:34:42.0302 (UTC) FILETIME=[2A6B61E0:01C577DF] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C577F0.19571140 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit How can I force a reconnect after a session has been timed out _____ I was hoping anybody could help me here, it is probably a stupid thing but I can't seem to find the answer.. My application is based on the jpetshop. Anyway, I have on my main page a paginated list (employeeList) that must be fetched every time the page is loaded. I set it to null in the reset method of the bean public void reset() { pageDirection = null; employeeList = null; } And I call the service layer to do the (simple) query, when I go to index.shtml public String index() { setEmployeeList(dailyBulletinService.getOutStaff()); return "success"; } My problem is that the page loads with an error "after a while" (I assume after the session times out) Pressing F5 in the browser will clear this error. What am I doing wrong or how do I get ride of it? I'm using mysql, tomcat on a linux machine. The error is: java.sql.SQLException: Communication link failure: java.io.EOFException, underlying cause: null Caused by: java.sql.SQLException: No operations allowed after connection closed. Connection was closed due to the following exception: ** BEGIN NESTED EXCEPTION ** java.sql.SQLException MESSAGE: Communication link failure: java.io.EOFException, underlying cause: null ** BEGIN NESTED EXCEPTION ** java.io.EOFException Please help Meindert ------=_NextPart_000_000B_01C577F0.19571140 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

How can I force a reconnect after = a session has been timed out


I was hoping anybody could help me here, it is probably a stupid thing but I can’t seem to find the answer..

My application is based on the jpetshop.

 

Anyway, I have on my main page a paginated list (employeeList) that must be = fetched every time the page is loaded.

I set it to null in the reset method of the bean

 

public void reset() = {

    pageDirection = =3D null;

    employeeList =3D = null;

  = }

 

And I call the service layer to do the (simple) query, when I go to = index.shtml

 

public String index() = {

    setEmployeeList(dailyBulletinService.getOutStaff());

    return "success";

  = }

 

My problem is that the page loads with an error “after a while” = (I assume after the session times out)

Pressing F5 in the browser will clear this error.

What am I doing wrong or how do I get ride of = it?

I’m using mysql, tomcat on a linux machine.

 

The error is:

java.sql.SQLException: =
Communication link failure: java.io.EOFException, underlying cause: =
null
Caused by: =
java.sql.SQLException: No operations allowed after connection =
closed.
 
Connection was closed due =
to the following exception:
 
** BEGIN NESTED EXCEPTION =
** 
 
java.sql.SQLException
MESSAGE: Communication link =
failure: java.io.EOFException, underlying cause: =
null
 
** BEGIN NESTED EXCEPTION =
** 
 
java.io.EOFException
 

 

Please help

  Meindert

------=_NextPart_000_000B_01C577F0.19571140--