Monday, February 7, 2011

java.io.IOException: Read channel closed

I am involved in an integration project for billing system, and my side provides APIs for authentication and provisioning, they work pretty well in my JMeter test script. However, caller side complain their code gets "java.io.IOException: Read channel closed" error.

Here is the stack trace:
com.sun.jersey.api.client.ClientHandlerException: java.io.IOException: Read channel closed
 at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:128)
 at com.sun.jersey.api.client.Client.handle(Client.java:457)
 at com.sun.jersey.api.client.WebResource.handle(WebResource.java:557)
 at com.sun.jersey.api.client.WebResource.access$300(WebResource.java:69)
 at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:491)


 Basically, it is a connection related issue. After they change to http from https for REST/SOAP call endpoint, the issue was gone.

For the error, it is possible the SSL is not enabled, or the hostname of the cert does not match the
hostname of the server. (Weblogic has an option to ignore hostname verification, not sure what is the option in tomcat) -Dweblogic.security.SSL.ignoreHostnameVerification=true

No comments:

Post a Comment