|
Ok, sorry I didn’t look very well. The answer is in the back of the manual: SimpleDataSource Property Name: Pool.PingQuery The ping query will be run against the database to test the connection From: Meindert
[mailto: I have replaced my JDBC driver but am
still having the same problem. Looked a bit around on google and got the
following tip: >We solved this same problem by doing essentially what
Mark advises Will play around with this, but thought this could be some
handy info for users with the same problem Meindert ------------------------------------ I have
also seen this same error using a thin client. The first quesy throws a
exception about closed connection then creates a new connection and carries on.
I am using the same version of mysql but connector 3.1.6.. When i use the same
client same queries against our hsqldb db we never get the problem. I
have been working on the hsqldb side for a while and assumed it was an
error in my code which i would fix later. i have a newer version
of mysql 4.1.12 which is our new base line so i will try it out on this
database and let you know.. But it sounds like a bug in the driver? Steve..
-----Original
Message----- mysql-connector-java-3.0.16-ga-bin.jar
mysql-4.1.9
To
reproduce I open the website on the index page and then close the
The error
comes from the connection pool, I find this in my Catalina.out
DEBUG
[http-80-Processor25] - Returned connection 12839271 to pool. (This
DEBUG
[http-80-Processor24] - Checked out connection 12839271 from pool.
DEBUG
[http-80-Processor24] - {conn-100045} Connection DEBUG
[http-80-Processor24] - A bad connection (12839271) attempted to
The query
fails and the index page comes up and prints the exception trace.
Pressing
F5 reloads the page and fetches a new connection that succeeds.
The
connection is used for:
Is this
enough info?
MEINDERT
HOVING Developer,
Pastel Payroll
Direct:
+27 (21)
680 9015 +27 (21)
680 9000 Fax:
+27 (21)
680 9090 www.pastel.co.za
9 out of
10 accountants recommend PASTEL Accounting
-----Original
Message-----
Meindert,
Please
provide more information. I can't really tell what is happening in your
situation. If you Servlet Session is timing out it should have not
affect on the database connection. My notion is that it is something
else. Please provide the database and driver with versions that you
are using and a more specific description of what the application
is doing when you experience this error.
Thanks
On
6/23/05, Meindert < >
>
>
> > 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
>
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
>
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
> null
>
> **
BEGIN NESTED EXCEPTION ** >
>
java.io.EOFException >
>
> >
> >
Please help > >
Meindert |
Title: RE: No operations allowed after connection closed.
- RE: No operations allowed after connectio... Meindert
- Re: No operations allowed after conn... Clinton Begin
- Re: No operations allowed after ... Sven Boden
- Re: No operations allowed af... Clinton Begin
- No operations allowed after connecti... Oak McIlwain
- Re: No operations allowed after ... Daniel Henrique Ferreira e Silva
- Re: No operations allowed af... Oak McIlwain
- Re: No operations allowe... Daniel Henrique Ferreira e Silva
- Re: No operations allowe... Sven Boden
- Re: No operations a... Michael Campbell
- Re: No operations allowed after ... Clinton Begin
