Tomcat连接池:java.sql.SQLRecoverableException:无法从套接字读取更多数据

时间:2015-01-29 06:12:24

标签: java oracle tomcat

我的spring web应用程序托管在生产机器上的tomcat 7中,连接池配置如下所示在tomcat的conf / context.xml文件中:

资源名称=" jdbc / myapp" AUTH ="集装箱"类型=" javax.sql.DataSource中" driverClassName =" oracle.jdbc.OracleDriver" url =" jdbc:oracle:thin:JIWAN / JIWAN @(DESCRIPTION =(FAILOVER = ON)(LOADBALANCE = OFF)(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP) (HOST = db-1)(PORT = xxxx))(ADDRESS =(PROTOCOL = TCP)(HOST = db-2)(PORT = xxxx)))(CONNECT_DATA =(SERVICE_NAME = myprod)))" 用户名="几碗"密码=" jiwan1" maxActive =" 100"了maxidle =" 10" MAXWAIT =" -1" testOnBorrow ="真" validationInterval =" 30000" validationQuery ="从双"中选择1 jdbcInterceptors =" org.apache.tomcat.jdbc.pool.interceptor.ConnectionState"

我可以使用用户" sam@yahoo.com"登录应用程序。问题是当我们尝试从不同的机器同时使用same@yahoo.com登录应用程序时,我们开始收到以下错误。但是,以前它工作得很好,并且我们的系统要求是同一个用户可以一次从不同的机器登录:

请帮助我找出这个问题的根本原因,以便我能纠正这个问题:

错误

java.sql.SQLRecoverableException: No more data to read from socket
    at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1200) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1155) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:279) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:861) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493) ~[ojdbc6-11.2.0.jar:11.2.0.1.0]

0 个答案:

没有答案