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 10:55:25 UTC
[jira] Commented: (AXIS2-2441) BindException during Load Test with
Axis Stubs
[ 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