Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 6557 invoked from network); 18 Aug 2006 09:35:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 09:35:29 -0000 Received: (qmail 81897 invoked by uid 500); 18 Aug 2006 09:35:19 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 81878 invoked by uid 500); 18 Aug 2006 09:35:19 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 81867 invoked by uid 99); 18 Aug 2006 09:35:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 02:35:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of Michele.Mazzucco@ncl.ac.uk designates 128.240.234.66 as permitted sender) Received: from [128.240.234.66] (HELO cheviot4.ncl.ac.uk) (128.240.234.66) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 02:35:17 -0700 Received: from [10.8.150.50] (socksgw1.ncl.ac.uk [128.240.229.5]) by cheviot4.ncl.ac.uk (8.13.6/8.13.1) with ESMTP id k7I9Ys9s005920 for ; Fri, 18 Aug 2006 10:34:54 +0100 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: <44E47DE4.5010405@ncl.ac.uk> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Michele Mazzucco Subject: Re: [Axis2] multiple ServiceClients problem Date: Fri, 18 Aug 2006 10:34:56 +0100 To: axis-user@ws.apache.org X-Mailer: Apple Mail (2.752.2) Received-SPF: pass (cheviot4.ncl.ac.uk: 128.240.229.5 is authenticated by a trusted mechanism) X-Newcastle-MailScanner-Information: Please contact Postmaster@newcastle.ac.uk for more information X-Newcastle-MailScanner: Found to be clean X-Newcastle-MailScanner-MCPCheck: MCP-Clean, MCP-Checker (score=0, required 1) X-Newcastle-MailScanner-From: michele.mazzucco@ncl.ac.uk X-NCL-Spam-Status: No X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Bin, no, I think my problem is different: org.apache.axis2.transport.http.SimpleHTTPServer.start (SimpleHTTPServer.java:184) ERROR [pool-1-thread-1] - java.net.BindException: Address already in use [java] ERROR Sender:run Failed send #0 [java] ncl.qosp.test.functional.client.Sender.run(Sender.java: 141) ERROR [pool-1-thread-1] - Failed send #0 [java] ERROR Sender:logException ERROR!: [java] ncl.qosp.test.functional.client.Sender.logException (Sender.java:171) ERROR [pool-1-thread-1] - ERROR!: [java] ERROR Sender:logException org.apache.axis2.AxisFault: Address already in use; nested exception is: [java] java.net.BindException: Address already in use [java] at org.apache.axis2.transport.http.SimpleHTTPServer.start (SimpleHTTPServer.java:185) [java] at org.apache.axis2.engine.ListenerManager.addListener (ListenerManager.java:178) [java] at org.apache.axis2.description.ClientUtils.inferInTransport (ClientUtils.java:102) [java] at org.apache.axis2.description.OutInAxisOperationClient.execute (OutInAxisOperation.java:248) [java] at org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking (ServiceClient.java:582) [java] at org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking (ServiceClient.java:555) [java] at ncl.qosp.test.functional.client.Sender.run (Sender.java:134) [java] at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:650) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:675) [java] at java.lang.Thread.run(Thread.java:613) [java] Caused by: java.net.BindException: Address already in use [java] at java.net.PlainSocketImpl.socketBind(Native Method) [java] at java.net.PlainSocketImpl.bind (PlainSocketImpl.java:359) [java] at java.net.ServerSocket.bind(ServerSocket.java:319) [java] at java.net.ServerSocket.(ServerSocket.java:185) [java] at java.net.ServerSocket.(ServerSocket.java:97) [java] at org.apache.axis2.transport.http.server.DefaultConnectionListener.( DefaultConnectionListener.java:64) [java] at org.apache.axis2.transport.http.server.HttpFactory.newRequestConnectionL istener(HttpFactory.java:199) [java] at org.apache.axis2.transport.http.server.SimpleHttpServer.init (SimpleHttpServer.java:80) [java] at org.apache.axis2.transport.http.SimpleHTTPServer.start (SimpleHTTPServer.java:181) [java] ... 9 more Regards, Michele On 17 Aug 2006, at 18:10, Bin Zhou wrote: > Michele Mazzucco ncl.ac.uk> writes: > >> >> Hi all, >> >> I have to spare some threads, and each of them creates a new >> ServiceClient object in order to send messages. Now the problem is >> that >> they fail, since they try to use the same port (I guess). Is there >> any >> possibility to specify which port should they use? >> >> Thanks, >> Michele >> > > > > Hi Michele, > > I met the same problem too. I also try to use another thread to create > ServiceClient for sending message. The exceptions seems like the > following > (sorry for the long list). > > Is that similar to yours? > > wishes, > Bin > > ------------------------------------------------------- > org.apache.axis2.AxisFault: null; nested exception is: > java.lang.NullPointerException > at org.apache.axis2.description.OutInAxisOperationClient.execute > (OutInAxisOperation.java:287) > at org.apache.axis2.client.ServiceClient.sendReceive > (ServiceClient.java:457) > at org.apache.axis2.client.ServiceClient.sendReceive > (ServiceClient.java:399) > at aop.core.Agent.processMails(Agent.java:140) > at aop.core.Agent.run(Agent.java:116) > Caused by: java.lang.Exception: org.apache.axis2.AxisFault: null; > nested > exception is: > java.lang.NullPointerException > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) > at > org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLo > gic > (RawXMLINOutMessageReceiver.java:126) > at > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive > (AbstractInOutSyncMessageReceiver.java:37) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequ > est > (HTTPTransportUtils.java:284) > at org.apache.axis2.transport.http.AxisServlet.doPost > (AxisServlet.java:136) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (ApplicationFilterChain.java:237) > at org.apache.catalina.core.ApplicationFilterChain.doFilter > (ApplicationFilterChain.java:157) > at org.apache.catalina.core.StandardWrapperValve.invoke > (StandardWrapperValve.java:214) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardContextValve.invokeInternal > (StandardContextValve.java:198) > at org.apache.catalina.core.StandardContextValve.invoke > (StandardContextValve.java:152) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardHostValve.invoke > (StandardHostValve.java:137) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.valves.ErrorReportValve.invoke > (ErrorReportValve.java:117) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:102) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.StandardEngineValve.invoke > (StandardEngineValve.java:109) > at org.apache.catalina.core.StandardValveContext.invokeNext > (StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke > (StandardPipeline.java:520) > at org.apache.catalina.core.ContainerBase.invoke > (ContainerBase.java:929) > at org.apache.coyote.tomcat5.CoyoteAdapter.service > (CoyoteAdapter.java:160) > at org.apache.coyote.http11.Http11Processor.process > (Http11Processor.java:799) > at > org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.processConnecti > on(Http11Protocol.java:705) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt > (PoolTcpEndpoint.java:577) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run > (ThreadPool.java:683) > at java.lang.Thread.run(Thread.java:534) > Caused by: java.lang.NullPointerException > at > org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLo > gic > (RawXMLINOutMessageReceiver.java:107) > ... 30 more > > -------------------------------------------------------------- > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org