IBM Worklight 6.0 - Socket Exception connection reset

时间秒杀一切 提交于 2020-01-01 05:15:10

问题


I am working on a worklight project, in it I am consuming web services that are hosted on SharePoint server using a Worklight Adapter.

Some times I am getting a Socket Exception and the adapter fails to call the web service.
This happening randomly.

From the development server log:

[ERROR   ] FWLSE0099E: An error occurred while invoking procedure.

Http request failed: java.net.SocketException: Connection reset
FWLSE0101E: Caused by:  [project TestApp]java.net.SocketException: Connection reset
com.worklight.common.log.filters.ErrorFilter 

回答1:


According to the exception, the root cause is that the connection was reset. There are several reasons why this could happen, one being network packets being lost or similar lower level connectivity issues; another possible reason could be that SharePoint is timing out the socket to free resources.

The best way to troubleshoot this kind of problems IMO is by sniffing into the network connection using tools like WireShark or Fiddler

Please have a look at the top-voted answer and comments to this question for more insights into the problem.




回答2:


We have seen this same issue when connecting to an HTTP server in front of IBM Commerce. The solution so far for us has been to put the Worklight server and IIS HTTP server on two different subnets. We are investigating why this the case. Not sure if 100% related to what you are seeing but figured I would answer here.



来源:https://stackoverflow.com/questions/18628339/ibm-worklight-6-0-socket-exception-connection-reset

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!