开发者

What values do the walkback array in the SocketException contain?

开发者 https://www.devze.com 2022-12-28 14:23 出处:网络
Recently I have debugging into a problem where a connection to a database server from the application server get reset. I am pretty sure there is no reset being called from e开发者_如何学Cither end. B

Recently I have debugging into a problem where a connection to a database server from the application server get reset. I am pretty sure there is no reset being called from e开发者_如何学Cither end. But while I was debugging into the problem, while inspecting the SocketException, I found the walkback variable.

arg0 SocketException (id=11532)

cause SocketException (id=11532)

detailMessage "Connection reset"

stackTrace null

walkback long[50] (id=11618)

What do the values in this variable represent?

UPDATE

The issue was a firewall killing long running idle connections.


I would imagine it greatly depends on the database to which you are connecting. If the JDBC driver for the driver came with API docs you might look there. Also I have seen cases where Exceptions with codes like that are Error codes from the DB system (though I usually see them in SQLExceptions, not SocketException). Again I would check the documentation for the DBMS you are connecting to for a list of error codes, it may have a more useful description then your stacktrace. Finally if possible you might say which DB you are connecting to as someone with expertise related to that specific DB might have run into a similar problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号