Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 86950 invoked from network); 14 Oct 2006 02:50:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2006 02:50:24 -0000 Received: (qmail 85964 invoked by uid 500); 14 Oct 2006 02:50:02 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 85914 invoked by uid 500); 14 Oct 2006 02:50:02 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 85885 invoked by uid 99); 14 Oct 2006 02:50:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 19:50:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 19:49:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B429A71431E for ; Fri, 13 Oct 2006 19:49:12 -0700 (PDT) Message-ID: <10097009.1160794152735.JavaMail.jira@brutus> Date: Fri, 13 Oct 2006 19:49:12 -0700 (PDT) From: "Deepal Jayasinghe (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-849) NullPointerException in OutInAxisOperationClient In-Reply-To: <29655735.1151309429761.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-849?page=comments#action_12442169 ] Deepal Jayasinghe commented on AXIS2-849: ----------------------------------------- [[ Old comment, sent by email on Tue, 04 Jul 2006 10:16:52 +0530 ]] fixed in current SVN , as I can see you are trying to invoke the service using two channel, but in the case of sendRobust better not to use that. -- Thanks, Deepal ................................................................ ~Future is Open~ > NullPointerException in OutInAxisOperationClient > ------------------------------------------------- > > Key: AXIS2-849 > URL: http://issues.apache.org/jira/browse/AXIS2-849 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: client-api > Affects Versions: 1.0 > Environment: Windows XP SP2, Java J2SE 1.5.0_03, Axis 2 SNAPSHOT Jun 08, 2006 > Reporter: Michele Mazzucco > Assigned To: Deepal Jayasinghe > > I'm trying to send a message from a web service A to a web service B, but I get this exception: > ERROR > ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler > - java.lang.NullPointerException > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:260) > at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:350) > at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:330) > at > ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler.client(WeightedAvgRespTimeServiceHandler.java:609) > at > ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler.send(WeightedAvgRespTimeServiceHandler.java:560) > at > ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler.addResource(WeightedAvgRespTimeServiceHandler.java:333) > at > ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeScheduler.requireResources(WeightedAvgRespTimeScheduler.java:296) > at > ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeServiceHandler.setOptimalValue(WeightedAvgRespTimeServiceHandler.java:284) > at > ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeScheduler$ReminderTask.reallocateResources(WeightedAvgRespTimeScheduler.java:549) > at > ncl.qosp.controller.scheduler.weighted.WeightedAvgRespTimeScheduler$ReminderTask.run(WeightedAvgRespTimeScheduler.java:519) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > The chunk of code generating the above exception is: > EndpointReference targetEPR = new EndpointReference(target); > Options options = new Options(); > options.setTo(targetEPR); > options.setAction("urn:echo"); > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > options.setUseSeparateListener(true); > ServiceClient sender = new ServiceClient(); > sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); > sender.setOptions(options); > > try { > sender.sendRobust(r.request); > } catch (Exception e) { > StringWriter sw = new StringWriter(); > PrintWriter pw = new PrintWriter(sw); > e.printStackTrace(pw); > log.error(sw.getBuffer().toString()); > pw.close(); > } > Please note that this code works if a sendReceiveNonBlocking() call is > used instead of sendRobust(). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org