db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Rana" <r...@solis.jp>
Subject connection reset
Date Wed, 26 Nov 2003 01:51:27 GMT
Hi,

	Has anyone experience "communication link failure" exception? We
are getting a lot of these. My torque.properties is also given below.

ANY help on how to resolve this will be highly appreciated.

Regards,
Amit.

org.apache.torque.TorqueException: Communication link failure:
java.io.IOException, underlying cause: Unexpected end of input stream
** BEGIN NESTED EXCEPTION **
java.io.IOException
MESSAGE: Unexpected end of input stream
STACKTRACE:
java.io.IOException: Unexpected end of input stream
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1405)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1775)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1020)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1109)
        at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1070)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:2027)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:1996)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:1977)
        at com.mysql.jdbc.Connection.setAutoCommit(Connection.java:654)
        at
org.apache.commons.dbcp.cpdsadapter.ConnectionImpl.setAutoCommit(Connect
ionImpl.java:370)
        at
org.apache.commons.dbcp.datasources.SharedPoolDataSource.setupDefaults(S
haredPoolDataSource.java:258)
        at
org.apache.commons.dbcp.datasources.InstanceKeyDataSource.getConnection(
InstanceKeyDataSource.java:704)
        at
org.apache.commons.dbcp.datasources.InstanceKeyDataSource.getConnection(
InstanceKeyDataSource.java:665)
        at
org.apache.torque.TorqueInstance.getConnection(TorqueInstance.java:743)
        at org.apache.torque.Torque.getConnection(Torque.java:306)
        at
org.apache.torque.util.Transaction.beginOptional(Transaction.java:118)
        at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1365)



Torque.properties
----------------
torque.applicationRoot = .
torque.defaults.pool.logInterval = 1
torque.defaults.pool.connectionWaitTimeout = 10
torque.defaults.pool.defaultMaxConnections = 80
torque.defaults.pool.maxExpiryTime = 3600
torque.defaults.connection.driver = com.mysql.jdbc.Driver
torque.idbroker.cleverquantity=true
torque.manager.useCache = true

torque.database.default= myDB
torque.database.myDB.adapter=mysql

torque.defaults.connection.url = jdbc:mysql://192.168.1.1:3306/
myDB?useUnicode=true&characterEncoding=EUC-JP

torque.defaults.connection.user = user
torque.defaults.connection.password =pass

torque.dsfactory.myDB.factory=org.apache.torque.dsfactory.SharedPoolData
SourceFactory
torque.dsfactory.myDB.pool.defaultMaxActive=20
torque.dsfactory.myDB.pool.testOnBorrow=true
torque.dsfactory.myDB.pool.validationQuery=SELECT 1
torque.dsfactory.myDB.connection.driver = com.mysql.jdbc.Driver
torque.dsfactory.myDB.connection.url =
jdbc:mysql://192.168.1.1:3306/myDB?useUnicode=true&characterEncoding=EUC
-JP
torque.dsfactory.myDB.connection.user =user
torque.dsfactory.myDB.connection.password =pass


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message