You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Full Name (JIRA)" <ji...@apache.org> on 2007/03/30 09:41:25 UTC

[jira] Created: (AXIS2-2441) BindException during Load Test with Axis Stubs

BindException during Load Test with Axis Stubs
----------------------------------------------

                 Key: AXIS2-2441
                 URL: https://issues.apache.org/jira/browse/AXIS2-2441
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: nightly
         Environment: Windows XP, local/remote Tomcat Testserver without Axis
            Reporter: Full Name
            Priority: Critical


During multithreaded load tests with generated ADB Stubs the following exceptions occur after a number of successful calls. Even after shutting down and restarting the JVM proccess, the failure occurs immediately. After a period of (ca. 1 minute), the tests are running again (maybe the OS is releasing blocked ports).
The issue may be caused by HttpClient and Socket-handling, but in the end Axis is crashing.

	... 7 more
Caused by: java.net.BindException: Address already in use: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
	at java.net.Socket.connect(Socket.java:461)
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:551)
...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2441) BindException during Load Test with Axis Stubs

Posted by "Full Name (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485740 ] 

Full Name commented on AXIS2-2441:
----------------------------------

Stub at Windows crashes due to Socket Waiting time in Windows OS. Roland Weber of HttpClient team was so kind to list helpful links. Adding two registry parameters solved the problem finally.

(Could be added to FAQ.)

Please see:
http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200703.mbox/browser:

"And here's another workaround you might try:
http://publib.boulder.ibm.com/infocenter/cicsts/v2r2/index.jsp?topic=/com.ibm.cicstg600.doc/ccllal0264.htm

I found it via
http://forum.java.sun.com/thread.jspa?threadID=5044757&tstart=45

cheers,
  Roland"

> BindException during Load Test with Axis Stubs
> ----------------------------------------------
>
>                 Key: AXIS2-2441
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2441
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: Windows XP, local/remote Tomcat Testserver without Axis
>            Reporter: Full Name
>            Priority: Critical
>
> During multithreaded load tests with generated ADB Stubs the following exceptions occur after a number of successful calls. Even after shutting down and restarting the JVM proccess, the failure occurs immediately. After a period of (ca. 1 minute), the tests are running again (maybe the OS is releasing blocked ports).
> The issue may be caused by HttpClient and Socket-handling, but in the end Axis is crashing.
> 	... 7 more
> Caused by: java.net.BindException: Address already in use: connect
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> 	at java.net.Socket.connect(Socket.java:461)
> 	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
> 	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
> 	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> 	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:551)
> ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2441) BindException during Load Test with Axis Stubs

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501509 ] 

Deepal Jayasinghe commented on AXIS2-2441:
------------------------------------------

I have fixed the issue in the trunk , please chcek with that and see whether you still get the exception.

Thanks
Deepal

> BindException during Load Test with Axis Stubs
> ----------------------------------------------
>
>                 Key: AXIS2-2441
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2441
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: Windows XP, local/remote Tomcat Testserver without Axis
>            Reporter: Full Name
>            Priority: Critical
>
> During multithreaded load tests with generated ADB Stubs the following exceptions occur after a number of successful calls. Even after shutting down and restarting the JVM proccess, the failure occurs immediately. After a period of (ca. 1 minute), the tests are running again (maybe the OS is releasing blocked ports).
> The issue may be caused by HttpClient and Socket-handling, but in the end Axis is crashing.
> 	... 7 more
> Caused by: java.net.BindException: Address already in use: connect
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> 	at java.net.Socket.connect(Socket.java:461)
> 	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
> 	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
> 	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> 	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:551)
> ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2441) BindException during Load Test with Axis Stubs

Posted by "Full Name (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485444 ] 

Full Name commented on AXIS2-2441:
----------------------------------

The suggested solution of Michele does not fix the problem:

"I guess the reason is explained here http://wso2.org/library/165
Something like this should solve the problem

ConfigurationContext configurationContext = ConfigurationContextFactory
                    .createConfigurationContextFromFileSystem(null,
null);

HttpClient httpClient = new HttpClient(
     new MultiThreadedHttpConnectionManager());


configurationContext.setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
                Boolean.TRUE);
configurationContext
      .setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient);


Michele"

> BindException during Load Test with Axis Stubs
> ----------------------------------------------
>
>                 Key: AXIS2-2441
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2441
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: Windows XP, local/remote Tomcat Testserver without Axis
>            Reporter: Full Name
>            Priority: Critical
>
> During multithreaded load tests with generated ADB Stubs the following exceptions occur after a number of successful calls. Even after shutting down and restarting the JVM proccess, the failure occurs immediately. After a period of (ca. 1 minute), the tests are running again (maybe the OS is releasing blocked ports).
> The issue may be caused by HttpClient and Socket-handling, but in the end Axis is crashing.
> 	... 7 more
> Caused by: java.net.BindException: Address already in use: connect
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> 	at java.net.Socket.connect(Socket.java:461)
> 	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
> 	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
> 	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> 	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:551)
> ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2441) BindException during Load Test with Axis Stubs

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-2441.
--------------------------------------

    Resolution: Fixed

fixed in the trunk

> BindException during Load Test with Axis Stubs
> ----------------------------------------------
>
>                 Key: AXIS2-2441
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2441
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: Windows XP, local/remote Tomcat Testserver without Axis
>            Reporter: Full Name
>            Priority: Critical
>
> During multithreaded load tests with generated ADB Stubs the following exceptions occur after a number of successful calls. Even after shutting down and restarting the JVM proccess, the failure occurs immediately. After a period of (ca. 1 minute), the tests are running again (maybe the OS is releasing blocked ports).
> The issue may be caused by HttpClient and Socket-handling, but in the end Axis is crashing.
> 	... 7 more
> Caused by: java.net.BindException: Address already in use: connect
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> 	at java.net.Socket.connect(Socket.java:461)
> 	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
> 	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
> 	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> 	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:551)
> ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org