java.sql.SQLException:JZ006:捕获的IOException:java.net.SocketTimeoutException:使用getCause()读取超时,以查看错误链

问题描述 投票:0回答:1

我们正在使用用Java编写的第三方工具掩盖Sybase数据库。屏蔽Sybase数据库表时,我间歇性地遇到错误。如果我只是重新执行该批处理,它可以正常工作,因此真的很难复制。

2020-01-09 04:41:55.657 Thread:Table Name - Error executing select statement for update 
2020-01-09 04:41:55.657 Error Executing Batch 
java.sql.SQLException: JZ006: Caught IOException: java.net.SocketTimeoutException: Read timed 
out use getCause() to see the error chain
at com.sybase.jdbc4.jdbc.ErrorMessage.raiseError(ErrorMessage.java:829)
at com.sybase.jdbc4.jdbc.ErrorMessage.raiseErrorCheckDead(ErrorMessage.java:1141)
at com.sybase.jdbc4.tds.Tds.handleIOE(Tds.java:5186)
at com.sybase.jdbc4.tds.Tds.handleIOE(Tds.java:5131)
at com.sybase.jdbc4.tds.Tds.nextResult(Tds.java:2921)
at com.sybase.jdbc4.tds.TdsCursor.fetch(TdsCursor.java:422)
at com.sybase.jdbc4.tds.TdsCursor.fetch(TdsCursor.java:351)
at com.sybase.jdbc4.jdbc.SybCursorResultSet.next(SybCursorResultSet.java:187)
at com.grid_tools.products.datamasker.SQLUpdate.batchPreparedMasking(SQLUpdate.java:2706)
at com.grid_tools.products.datamasker.SQLUpdate.run(SQLUpdate.java:5717)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at com.sybase.jdbc4.timedio.RawDbio.reallyRead(RawDbio.java:322)
at com.sybase.jdbc4.timedio.Dbio.doRead(Dbio.java:253)
at com.sybase.jdbc4.timedio.InStreamMgr.readIfOwner(InStreamMgr.java:583)
at com.sybase.jdbc4.timedio.InStreamMgr.doRead(InStreamMgr.java:319)
at com.sybase.jdbc4.tds.TdsProtocolContext.getChunk(TdsProtocolContext.java:622)
at com.sybase.jdbc4.tds.PduInputFormatter.readPacket(PduInputFormatter.java:239)
at com.sybase.jdbc4.tds.PduInputFormatter.read(PduInputFormatter.java:72)
at com.sybase.jdbc4.tds.TdsInputStream.read(TdsInputStream.java:91)
at com.sybase.jdbc4.tds.TdsInputStream.readUnsignedByte(TdsInputStream.java:124)
at com.sybase.jdbc4.tds.Tds.nextResult(Tds.java:2879)
WHERE "row_id" = ? 
java jdbc sybase
1个回答
0
投票

这是由于您的网络问题。可能您的互联网在那儿无法使用。

© www.soinside.com 2019 - 2024. All rights reserved.