See comments below.
-David
> Can you please post the full stack trace?
Here it is:
Exception in thread "main" org.apache.axis2.AxisFault: Address already in
use: connect
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:377)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:310)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:202)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:446)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
at com.ws.service.MyServiceStub.performService(MyServiceStub.java:300)
at com.ws.client.MyClient.main(MyClient.java:88)
Caused by: java.net.BindException: Address already in use: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:558)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
... 8 more
> > message, the problem does not appear to manifest itself for every
> > message
> > sent. Are these piling up resulting in the AxisFault?
> Yes, probably.
Incidentally, I saw another issue posted suggesting that Axis isn't sending
finalize to the Stub until the system performs a garbage collection.
However, this is not the case, as I just tried adding a public method to the
Stub which sends itself the finalize() method, but this did not resolve the
TIME_WAIT connection issue.
> It looks like providing a custom configuration context is a bit messy ;)
> Can you log a JIRA (with as many info as you can) please?
> See also https://issues.apache.org/jira/browse/AXIS2-2581. It looks a
> bit different (see the cause) but has the same effect.
Done (AXIS2-2593).
> It depends on several things such as service type (long or short?, i/
> o or cpu bound?, etc), the server you're using, wether the client and
> the server are on the same sub-net or they are spread across the
> Internet, etc.
For now, let's assume a very short I/O bound web service spread across the
Internet. What is the best performance you have ever seen (even if client
and server were running on a single box)?
--
View this message in context:
http://www.nabble.com/BindException-in-axis-client-tf3632035.html#a10188378
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]