Re: [Dev] javax.net.ssl.SSLException: java.net.SocketException: Invalid argument

2015-03-11 Thread Prasanna Dangalla
Hi Thushara,

I think it's the java version.

Use JDK 1.7.0_65 or a newer java version and check.

Thanks

On Wed, Mar 11, 2015 at 1:34 PM, Thushara Ranawaka 
wrote:

> Hi,
>
> While running GReg integration tests(tests-metadata, tests-lifecycle) I'm
> having $subject exception and fail the tests completely. In my
> investigation I noticed that after test process ends still the greg server
> is up and running. Looks like the issue occurs due to this behaviour but I
> could find the root-cause. Can some on help me on this.
>
> Note: Im using Mac OSX, java 1.7_07
>
> INFO
>  
> [org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
> - Shutting down server..
> INFO  [org.wso2.carbon.integration.common.utils.ClientConnectionUtil] -
> Successfully connected to the server on port 9443
> 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
> INFO  [org.apache.commons.httpclient.HttpMethodDirector] - Retrying request
> 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
> INFO  [org.apache.commons.httpclient.HttpMethodDirector] - Retrying request
> 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
> INFO  [org.apache.commons.httpclient.HttpMethodDirector] - Retrying request
> INFO  [org.apache.axis2.transport.http.HTTPSender] - Unable to sendViaPost
> to url[https://localhost:9443/services/ServerAdmin]
> org.apache.axis2.AxisFault: Connection has been shutdown:
> javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
> 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:630)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.wso2.carbon.server.admin.stub.ServerAdminStub.shutdown(ServerAdminStub.java:712)
> at
> org.wso2.carbon.integration.common.admin.client.ServerAdminClient.shutdown(ServerAdminClient.java:61)
> at
> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager.serverShutdown(CarbonServerManager.java:199)
> at
> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager$1.run(CarbonServerManager.java:130)
> Caused by: com.ctc.wstx.exc.WstxIOException: Connection has been shutdown:
> javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
> at
> com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1692)
> at com.ctc.wstx.sw.BaseStreamWriter.close(BaseStreamWriter.java:288)
> at
> org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)
> at
> org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188)
> at
> org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197)
> at
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
> ... 20 more
> Caused by: javax.net.ssl.SSLException: Connection has been shutdown:
> javax.net.ssl.SSLException: java.net.SocketE

[Dev] javax.net.ssl.SSLException: java.net.SocketException: Invalid argument

2015-03-11 Thread Thushara Ranawaka
Hi,

While running GReg integration tests(tests-metadata, tests-lifecycle) I'm
having $subject exception and fail the tests completely. In my
investigation I noticed that after test process ends still the greg server
is up and running. Looks like the issue occurs due to this behaviour but I
could find the root-cause. Can some on help me on this.

Note: Im using Mac OSX, java 1.7_07

INFO
 
[org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
- Shutting down server..
INFO  [org.wso2.carbon.integration.common.utils.ClientConnectionUtil] -
Successfully connected to the server on port 9443
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
INFO  [org.apache.commons.httpclient.HttpMethodDirector] - Retrying request
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
INFO  [org.apache.commons.httpclient.HttpMethodDirector] - Retrying request
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
INFO  [org.apache.commons.httpclient.HttpMethodDirector] - Retrying request
INFO  [org.apache.axis2.transport.http.HTTPSender] - Unable to sendViaPost
to url[https://localhost:9443/services/ServerAdmin]
org.apache.axis2.AxisFault: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
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:630)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.wso2.carbon.server.admin.stub.ServerAdminStub.shutdown(ServerAdminStub.java:712)
at
org.wso2.carbon.integration.common.admin.client.ServerAdminClient.shutdown(ServerAdminClient.java:61)
at
org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager.serverShutdown(CarbonServerManager.java:199)
at
org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager$1.run(CarbonServerManager.java:130)
Caused by: com.ctc.wstx.exc.WstxIOException: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
at
com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1692)
at com.ctc.wstx.sw.BaseStreamWriter.close(BaseStreamWriter.java:288)
at
org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)
at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188)
at
org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197)
at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
... 20 more
Caused by: javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1492)
at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1504)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:70)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(Buff