Return-Path: Delivered-To: apmail-ws-soap-user-archive@www.apache.org Received: (qmail 32585 invoked from network); 27 Sep 2004 17:52:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Sep 2004 17:52:59 -0000 Received: (qmail 31090 invoked by uid 500); 27 Sep 2004 17:52:47 -0000 Delivered-To: apmail-ws-soap-user-archive@ws.apache.org Received: (qmail 31000 invoked by uid 500); 27 Sep 2004 17:52:46 -0000 Mailing-List: contact soap-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: soap-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list soap-user@ws.apache.org Received: (qmail 30884 invoked by uid 99); 27 Sep 2004 17:52:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [149.8.64.10] (HELO mclmx.mail.saic.com) (149.8.64.10) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 27 Sep 2004 10:52:44 -0700 Received: from mcl-its-ieg01.mail.saic.com by mclmx.mail.saic.com for soap-user@ws.apache.org; Mon, 27 Sep 2004 13:52:35 -0400 Received: from mcl-its-exbh01.mail.saic.com ([149.8.64.11]) by mcl-its-ieg01.mail.saic.com (SAVSMTP 3.1.6.45) with SMTP id M2004092713523503131 for ; Mon, 27 Sep 2004 13:52:35 -0400 Received: by mcl-its-exbh01.mail.saic.com with Internet Mail Service (5.5.2657.72) id ; Mon, 27 Sep 2004 13:52:35 -0400 Message-Id: <807844B752F0D511855100B0D0EA23AE0165F3B3@US-Hampton.mail.saic.com> From: "Hubble, Christopher" To: "'soap-user@ws.apache.org'" Subject: RE: SOAP NPE Error Date: Mon, 27 Sep 2004 13:46:54 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Actually, all I'm doing is calling my method. And it appears not to be a problem with the SOAP message itself. I'm converting an existing servlet over to SOAP, and had appended the info in the web.xml file to the web.xml file in axis. When I removed the newly appended info, the NPE went away. Any suggestions for converting an existing servlet over to WSDL and SOAP? Chris -----Original Message----- From: Scott Nichol [mailto:snicholnews@scottnichol.com] Sent: Monday, September 27, 2004 1:49 PM To: soap-user@ws.apache.org Subject: Re: SOAP NPE Error >From your description, I take it that your service method looks like void addClientToMCUConnection(int spaceID, String ClientIP, String mcuIP) {} My guess is that your client is doing something like if (resp.generatedFault()) { Fault fault = resp.getFault (); ... } else { Parameter ret = resp.getReturnValue(); ... } I believe that for a method returning void, the variable ret above will be null. As such, if you try to "do something" with it, i.e. dereference it, you will get an NPE. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Hubble, Christopher" To: Sent: Monday, September 27, 2004 1:31 PM Subject: SOAP NPE Error > I'm using a wsdl to set up my web service. However, whenever I try and run > any methods from the client, I get a NPE returned. The method on the server > is the default empty stub. This is the soap message that I'm sending. > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > soapenv:encodingStyle="http://schemas.xml.soap.org/soap/encoding/" > xmlns:nsl="urn:com.saic.dcts.nci.websvc"> > 42 > 10.0.0.1 > 10.0.0.2 > > > > > TIA for any help. > > Chris > >