axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dong Liu <edong...@gmail.com>
Subject Re: [Axis2] The listener port for dual transport channel
Date Sat, 14 Jan 2006 20:00:03 GMT
I suspect that. Here is what I get when I start the tcpmon to listen 6060

java -cp %axis2classpath% userguide.clients.EchoNonBlockingDualClient
> - Deploying module : addressing
> - java.net.BindException: Address already in use: JVM_Bind
> org.apache.axis2.AxisFault: Address already in use: JVM_Bind; nested
> exception is:
>         java.net.BindException: Address already in use: JVM_Bind
>         at org.apache.axis2.transport.http.SimpleHTTPServer.start(
> SimpleHTTPServer.java:220)
>         at org.apache.axis2.client.ListenerManager.makeSureStarted(
> ListenerManager.java:73)
>         at org.apache.axis2.description.ClientUtils.inferInTransport(
> ClientUtils.java:74)
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(
> OutInAxisOperation.java:232)
>         at org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking(
> ServiceClient.java:421)
>         at org.apache.axis2.client.ServiceClient.sendReceiveNonblocking(
> ServiceClient.java:402)
>         at userguide.clients.EchoNonBlockingDualClient.main(
> EchoNonBlockingDualClient.java:74)
> Caused by: java.net.BindException: Address already in use: JVM_Bind
>         at java.net.PlainSocketImpl.socketBind(Native Method)
>         at java.net.PlainSocketImpl.bind(Unknown Source)
>         at java.net.ServerSocket.bind(Unknown Source)
>         at java.net.ServerSocket.<init>(Unknown Source)
>         at java.net.ServerSocket.<init>(Unknown Source)
>         at
> org.apache.axis2.transport.http.server.SimplePlainSocketFactory.createServerSocket
> (SimplePlainSocketFactory.java:45)
>         at org.apache.axis2.transport.http.server.SimpleHttpServer.<init>(
> SimpleHttpServer.java:121)
>         at org.apache.axis2.transport.http.server.SimpleHttpServer.<init>(
> SimpleHttpServer.java:84)
>         at org.apache.axis2.transport.http.SimpleHTTPServer.start(
> SimpleHTTPServer.java:216)
>         ... 6 more
>

The same for

> java -cp %axis2classpath% userguide.clients.EchoBlockingDualClient
>




On 1/14/06, Ajith Ranabahu <ajith.ranabahu@gmail.com> wrote:
>
> Hi,
> We actually have such a mechanism (to get the next port if the specified
> port is bound already). is it not functioning ?
>
> On 1/14/06, Dong Liu < edongliu@gmail.com> wrote:
> >
> > Editing axis2.xml is a way to solve that in some static situations. In
> > cases that the listened ports of the server are very dynamic, we need to
> > consider that what if the predefined port, say 6060, is reserved at the very
> > moment of message transport. To make sure the message will be delivered, the
> > send should try other port(s). The logic could be
> > first try to connect using 6060
> > if not successful, try 6060+1, and continue
> >
> > Cheers,
> >
> > Don
> >
> > On 1/13/06, Davanum Srinivas < davanum@gmail.com> wrote:
> > >
> > > edit axis2.xml
> > >
> > > On 1/13/06, Dong Liu < edongliu@gmail.com> wrote:
> > > > Hi, folks,
> > > >
> > > > I guess 6060 is currently the default listen port for the callback
> > > when
> > > > using dual transport channel (options.setUseSeparateListener(true)).
> > > > However, exceptions would appear when 6060 has been listened by
> > > other
> > > > application already. In such case, how to change the port to listen?
> > > Can we
> > > > have other *robust* mechanism to determine the listening port?
> > > >
> > > > Cheers,
> > > >
> > > > Don
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Davanum Srinivas : http://wso2.com/blogs/
> > >
> >
> >
>
>
> --
> Ajith Ranabahu

Mime
View raw message