我正在尝试使用Jmeter Java Request sampler通过Java代码连接到WSO2身份服务器授权服务。每当我运行我的测试计划(它只有一个指向我的测试类的java请求采样器)时,我会收到以下错误:
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)
答案 0 :(得分:0)
您是否在WSO2 IS控制台(或者可以在/ repository / logs目录中找到wso2carbon.log文件)中看到任何错误?我想你是通过网络应用程序调用授权服务?如果您希望目录对授权服务执行一些负载测试,则可以使用this详细信息。授权服务只是一个Web服务(使用Basic auth保护)。您可以使用任何Web服务客户端来调用此服务。