tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xavier Escandell <xescand...@ibit.org>
Subject Re: Broken pipe error
Date Fri, 23 Feb 2001 13:39:23 GMT
The protocol seems to be correct. The thin driver is quite old (classes111.zip)
but it match up with the database.
Could this driver be in charge of closing connexions?

Xavier.

Randy Layman wrote:

>         This seems really strange.  What it sounds like to me it the JDBC
> connects one and gets a "Connection reset by peer" error.  Then the second
> (anre presumably more) connections are successful.  If this is the case I
> would check that your drivers and database match up (in other words, not
> using an old dirver with a new database or vice versa - this may not be
> applicable to the Oracle thin drivers, I don't know) and also check that you
> are using the correct protocol.  It really shounds like a problem for you,
> your DBA, and Oracle, though.
>
>         Randy
>
> -----Original Message-----
> From: Xavier Escandell [mailto:xescandell@ibit.org]
> Sent: Friday, February 23, 2001 6:34 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Broken pipe error
>
> Thanks for the anwser, but:
> - The servlet is not garbage collected. When I check it in the mornig, after
> all
> night of inactivity, the servlet is active.
> - Yesterday, I included a connection pooling class. Thus, the servlet
> re-starts
> the connection.But I get a "connection reset by peer" error, when trying
> first
> access. The second access works fine.
>
> Any idea?
>
> Regards,
> Xavier
>
> Randy Layman wrote:
>
> >         The answer is no - Tomcat knows nothing about your socket
> > connections and therefore can't close them.  A couple of things come to
> mind
> > - first the Oracle drivers might be releasing the connection, check their
> > documentation about this.  Also, what is the behavior if your servlet is
> > garbage collected?  Could it be that your servlet is being garbage
> collected
> > and therefore you are somehow half-way closing the connection?
> >
> >         Randy
> >
> > -----Original Message-----
> > From: Xavier Escandell [mailto:xescandell@ibit.org]
> > Sent: Thursday, February 22, 2001 8:01 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Broken pipe error
> >
> > Hi:
> > I get "broken pipe error" when trying to re-execute a servlet after
> > several hours of innactivity. Then I must re-start Tomcat to get all
> > running again.
> > The servlet is connected to a database using oracle thin driver, these
> > connection is still active.
> > So my question is:
> > It is possible that the socket between Tomcat and database is being
> > closed by Tomcat?
> > If the answer is yes, how can I configure these timeout.
> >
> > Regards.
> > Xavier Escandell.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, email: tomcat-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, email: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org

--
Xavier Escandell Ballester
Consultor Junior

Java Center   http://www.javacenter.org
FundaciĆ³ IBIT http://www.ibit.org



Mime
View raw message