1
votes

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)
1
It's nothing with JMeter, check your Java code logic as it looks like that you're trying to feed to server something, it's unable to parse as per Invalid argument error messageDmitri T
Thanks Dmitri, you may be right. I actually parse a request that is coming from a CSV file then I am investigation it further in the code. However, still this does not justify the Axis fault exception. Right?!nammar

1 Answers

0
votes

Did you see any error in the WSO2 IS console (or wso2carbon.log file which can be found at /repository/logs directory)? I guess you are calling entitlement service via web application? If you want to directory do some load test on entitlement service you can use this details. Entitlement service is a just a web service (secured with Basic auth). you can use any web service client to invoke this service.