I am trying to connect to the WSO2 identity server entitlement service through Java code using Jmeter Java Request sampler. Whenever I run my test plan (which has only a java request sampler pointing to my test class) I get the following error:
014/01/25 17:27:21 ERROR - com.medi.sample.webapp.client.EntitlementServiceClient: org.apache.axis2.AxisFault: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
2014/01/25 17:27:21 INFO - org.apache.axis2.deployment.ModuleDeployer: Deploying module: addressing-1.6.1-wso2v4 - file:/Users/narimanammar/NetBeansProjects/apache-jmeter-2.10/lib/ext/axis2-1.6.1-wso2v4.jar
2014/01/25 17:27:21 INFO - org.apache.commons.httpclient.HttpMethodDirector: I/O exception (org.apache.axis2.AxisFault) caught when processing request: Connection closed by remote host
2014/01/25 17:27:21 INFO - org.apache.commons.httpclient.HttpMethodDirector: Retrying request
2014/01/25 17:27:21 INFO - org.apache.commons.httpclient.HttpMethodDirector: I/O exception (org.apache.axis2.AxisFault) caught when processing request: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
2014/01/25 17:27:21 INFO - org.apache.commons.httpclient.HttpMethodDirector: Retrying request
2014/01/25 17:27:21 INFO - org.apache.commons.httpclient.HttpMethodDirector: I/O exception (org.apache.axis2.AxisFault) caught when processing request: Connection closed by remote host
2014/01/25 17:27:21 INFO - org.apache.commons.httpclient.HttpMethodDirector: Retrying request
2014/01/25 17:27:21 INFO - org.apache.axis2.transport.http.HTTPSender: Unable to sendViaPost to url[https://localhost:9444/services/EntitlementService] org.apache.axis2.AxisFault: Connection closed by remote host
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:449)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:276)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.wso2.carbon.identity.entitlement.stub.EntitlementServiceStub.getDecision(EntitlementServiceStub.java:206)
Invalid argument
error message – Dmitri T