passionlessDrone
asked on
Oracle Connectivity Madness
Hello friends -
Tomcat 5 / Hibernate 3.1 / c3p0 .9 application that includes a process that has been working for about a year now that started failing (as far as I know), Friday. Essentially JDBC connections to the database won't initialize, instead I get the "No More Data To Read From Socket' message. Here's a snipet from the log files:
************************** ********** ********** ********** ********** *********
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.dbaccess.DBErr or.throwSq lException (DBError.j ava:187)
at oracle.jdbc.dbaccess.DBErr or.throwSq lException (DBError.j ava:229)
at oracle.jdbc.dbaccess.DBErr or.check_e rror(DBErr or.java:98 2)
at oracle.jdbc.ttc7.MAREngine .unmarshal UB1(MAREng ine.java:7 46)
at oracle.jdbc.ttc7.MAREngine .unmarshal SB1(MAREng ine.java:7 05)
at oracle.jdbc.ttc7.TTIdty.re ceive(TTId ty.java:25 7)
at oracle.jdbc.ttc7.TTC7Proto col.logon( TTC7Protoc ol.java:24 1)
at oracle.jdbc.driver.OracleC onnection. <init>(Ora cleConnect ion.java:3 61)
at oracle.jdbc.driver.OracleD river.getC onnectionI nstance(Or acleDriver .java:485)
at oracle.jdbc.driver.OracleD river.conn ect(Oracle Driver.jav a:337)
at com.mchange.v2.c3p0.Driver ManagerDat aSource.ge tConnectio n(DriverMa nagerDataS ource.java :134)
at com.mchange.v2.c3p0.Wrappe rConnectio nPoolDataS ource.getP ooledConne ction(Wrap perConnect ionPoolDat aSource.ja va:182)
at com.mchange.v2.c3p0.Wrappe rConnectio nPoolDataS ource.getP ooledConne ction(Wrap perConnect ionPoolDat aSource.ja va:171)
at com.mchange.v2.c3p0.impl.C 3P0PooledC onnectionP ool$1Poole dConnectio nResourceP oolManager .acquireRe source(C3P 0PooledCon nectionPoo l.java:137 )
at com.mchange.v2.resourcepoo l.BasicRes ourcePool. doAcquire( BasicResou rcePool.ja va:1014)
at com.mchange.v2.resourcepoo l.BasicRes ourcePool. access$800 (BasicReso urcePool.j ava:32)
at com.mchange.v2.resourcepoo l.BasicRes ourcePool$ AcquireTas k.run(Basi cResourceP ool.java:1 810)
at com.mchange.v2.async.Threa dPoolAsync hronousRun ner$PoolTh read.run(T hreadPoolA synchronou sRunner.ja va:547)
************************** ********** ********** ********** ********** **********
I'm pretty sure that this doesn't have to do with my c3p0 configuration; I get the same bubble up error ("no more data to read from socket") if I comment out all c3p0 components from my .cfg.xml file (slightly different trace underneath as it just tries to use Hibernate's default connection pooling component). I also get the error at direct jdbc connection time.
The database group insists that nothing has changed on their end. The network group insists that nothing has changed on their end. I am struggling. Can anyone provide any assistance? It has occurred to me that policy level changes / overly aggressive anti virus routines could be involved, but I don't have any thoughts on how to discern if that is the case.
Any insight is very much appreciated.
brian
Tomcat 5 / Hibernate 3.1 / c3p0 .9 application that includes a process that has been working for about a year now that started failing (as far as I know), Friday. Essentially JDBC connections to the database won't initialize, instead I get the "No More Data To Read From Socket' message. Here's a snipet from the log files:
**************************
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.dbaccess.DBErr
at oracle.jdbc.dbaccess.DBErr
at oracle.jdbc.dbaccess.DBErr
at oracle.jdbc.ttc7.MAREngine
at oracle.jdbc.ttc7.MAREngine
at oracle.jdbc.ttc7.TTIdty.re
at oracle.jdbc.ttc7.TTC7Proto
at oracle.jdbc.driver.OracleC
at oracle.jdbc.driver.OracleD
at oracle.jdbc.driver.OracleD
at com.mchange.v2.c3p0.Driver
at com.mchange.v2.c3p0.Wrappe
at com.mchange.v2.c3p0.Wrappe
at com.mchange.v2.c3p0.impl.C
at com.mchange.v2.resourcepoo
at com.mchange.v2.resourcepoo
at com.mchange.v2.resourcepoo
at com.mchange.v2.async.Threa
**************************
I'm pretty sure that this doesn't have to do with my c3p0 configuration; I get the same bubble up error ("no more data to read from socket") if I comment out all c3p0 components from my .cfg.xml file (slightly different trace underneath as it just tries to use Hibernate's default connection pooling component). I also get the error at direct jdbc connection time.
The database group insists that nothing has changed on their end. The network group insists that nothing has changed on their end. I am struggling. Can anyone provide any assistance? It has occurred to me that policy level changes / overly aggressive anti virus routines could be involved, but I don't have any thoughts on how to discern if that is the case.
Any insight is very much appreciated.
brian
Could be just arbitrary and temporary network problems
Does it happen all the time or intermittently?
Did you change any things recently in your configuration (not quite ckear from your mention)?
That's waht they write (you probably saw this):
This error most likely occurs in applications that use a database connections pool. When the application checked out a connection that has been timed out or has been staled, and used it to connect to the database, this error occurs.
in
http://www.websina.com/bugzero/errors/oracle-SQLException.html
Did you change any things recently in your configuration (not quite ckear from your mention)?
That's waht they write (you probably saw this):
This error most likely occurs in applications that use a database connections pool. When the application checked out a connection that has been timed out or has been staled, and used it to connect to the database, this error occurs.
in
http://www.websina.com/bugzero/errors/oracle-SQLException.html
Whenever I experienced such diagnostic it was always either on the datadbase or on network level.
But it was usually intermittent (unless they have a total failure, and the error eventually became more explicit,
like Oracle not available). But I'm not using connection pools.
But it was usually intermittent (unless they have a total failure, and the error eventually became more explicit,
like Oracle not available). But I'm not using connection pools.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, when they update Oracle to a newer version some of my programs stop working and I need
to change the driver. The good thing is that with Oracle they are backward compatible 100%
so the new drivers work with my code and also work with old databases if necessary without any problems.
to change the driver. The good thing is that with Oracle they are backward compatible 100%
so the new drivers work with my code and also work with old databases if necessary without any problems.
ASKER
Figured it out. Thanks for the help.