Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 99718 invoked from network); 21 Mar 2006 10:46:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Mar 2006 10:46:51 -0000 Received: (qmail 39776 invoked by uid 500); 21 Mar 2006 10:46:49 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 39556 invoked by uid 500); 21 Mar 2006 10:46:48 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 39544 invoked by uid 99); 21 Mar 2006 10:46:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 02:46:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of adrian.dick@uk.ibm.com designates 195.212.29.134 as permitted sender) Received: from [195.212.29.134] (HELO mtagate1.uk.ibm.com) (195.212.29.134) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 02:46:46 -0800 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate1.uk.ibm.com (8.12.10/8.12.10) with ESMTP id k2LAkPnk042126 for ; Tue, 21 Mar 2006 10:46:25 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k2LAkmgG222728 for ; Tue, 21 Mar 2006 10:46:48 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11/8.13.3) with ESMTP id k2LAkOsc030761 for ; Tue, 21 Mar 2006 10:46:25 GMT Received: from d06ml062.portsmouth.uk.ibm.com (d06ml062.portsmouth.uk.ibm.com [9.149.38.82]) by d06av02.portsmouth.uk.ibm.com (8.12.11/8.12.11) with ESMTP id k2LAkO34030750 for ; Tue, 21 Mar 2006 10:46:24 GMT In-Reply-To: <441F96D0.4090407@unicontrols.cz> Subject: Re: Errors running wsdl2ws To: "Apache AXIS C User List" X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 Message-ID: From: Adrian Dick Date: Tue, 21 Mar 2006 10:46:29 +0000 X-MIMETrack: Serialize by Router on D06ML062/06/M/IBM(Release 6.53HF247 | January 6, 2005) at 21/03/2006 10:46:50 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Thanks for pointing out the mistake within the endpoint used by the sample, we shall update this immediately. I have to admit surprise at the particular error you're seeing from the fault, and we shall investage why this is occuring. Regards, Adrian _______________________________________ Adrian Dick (adrian.dick@uk.ibm.com) Petr Cvachoucek wrote on 21/03/2006 06:01:52: > Yes we had the same problem, may be this is also your case. It is not > related to linux, its a problem on all platforms. > > The calculator sample tried to set endpoint to > http://localhost/axis/calculator, but the service name is Calculator. > The server responded with soap fault (requested service not registered > at the server), which was correctly parsed by a client, but then the > client throws incorrect exception, so the user gets misleading error > 'Cannot deserialize the requested element.'. > > So first try to run calculator sample with correct endpoint, > try for ex: ./calculator div 100 5 http://localhost/axis/Calculator > > If it will work, you should by hand modify the client stub source code > to throw the correct exception, so the user gets correct error > description if there is a soap fault. > > Petr > > Lei Tang wrote: > > I installed Sun JDK and now I can generate the C++ skeleton and stub > > code. But after I built the Calculator sample and deployed it, I got > > the following error when running the client app: > > terminate called after throwing an instance of > > 'axiscpp::SoapFaultException' > > what(): Cannot deserialize the requested element > > Aborted > > > > Does anybody else have the similar problem with Axis c++ 1.6b on the > > linux (Fedora Core 4)? Any help would be appreciated! > > > > Thanks, > > > > Lei > > > > -----Original Message----- > > From: Samisa Abeysinghe [mailto:samisa.abeysinghe@gmail.com] > > Sent: Friday, March 17, 2006 9:35 PM > > To: Apache AXIS C User List > > Subject: Re: Errors running wsdl2ws > > > > Seems like you are using gcj. > > I suggest you use JDK from Sun, or try to compile the whole WSDL2WS Java > > tool, including the required jars from Axis Java using gcj. > > > > I have never been able to use gcj with Axis successfully :-( > > > > Samisa... > > > > Lei Tang wrote: > > > >> I installed latest Axis C++ 1.6b on linux (Fedora 4). When I used > >> wsdl2ws to generat the C++ code for the sample calculator.wsdl file > >> with following command > >> > >> */java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws > >> /usr/local/axiscpp_deploy/wsdls/calcul > >> ator.wsdl -lc++ -sserver -o/tests/ltang/calculator//* > >> > >> I got the following errors: > >> > >> */java.lang.NullPointerException > >> at gnu.xml.dom.ls.ReaderInputStream.close() > > (/usr/lib/libgcj.so.6.0.0) > >> at gnu.xml.aelfred2.XmlParser.doParse(java.lang.String, > >> java.lang.String, jav > >> a.io.Reader, java.io.InputStream, java.lang.String) > >> (/usr/lib/libgcj.so.6.0.0) > >> at gnu.xml.aelfred2.SAXDriver.parse(org.xml.sax.InputSource) > >> (/usr/lib/libgcj > >> .so.6.0.0) > >> at gnu.xml.aelfred2.XmlReader.parse(org.xml.sax.InputSource) > >> (/usr/lib/libgcj > >> .so.6.0.0) > >> at gnu.xml.dom.ls.DomLSParser.doParse(org.w3c.dom.ls.LSInput) > >> (/usr/lib/libgc > >> j.so.6.0.0) > >> at gnu.xml.dom.ls.DomLSParser.parse(org.w3c.dom.ls.LSInput) > >> (/usr/lib/libgcj. > >> so.6.0.0) > >> at gnu.xml.dom.DomDocumentBuilder.parse(org.xml.sax.InputSource) > >> (/usr/lib/li > >> bgcj.so.6.0.0) > >> at > >> org.apache.axis.utils.XMLUtils.newDocument(org.xml.sax.InputSource) > >> (Unkno wn Source) > >> at org.apache.axis.utils.XMLUtils.newDocument(java.lang.String, > >> java.lang.Str > >> ing, java.lang.String) (Unknown Source) > >> at > >> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(java.lang.String > >> , ja va.lang.String, java.lang.String) (Unknown Source) > >> at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run() (Unknown > > Source) > >> at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0) > >> org.apache.axis.wsdl.wsdl2ws.WrapperFault: > > java.lang.NullPointerException > >> at > >> > > org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.WSDL2Ws(org.apache.axis.wsdl.wsdl2w > > s. > >> CLArgParser) (Unknown Source) > >> at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(java.lang.String[]) > >> (Unknown Sou > >> rce) > >> at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0) > >> at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) Caused > > > >> by: java.lang.NullPointerException > >> at gnu.xml.dom.ls.ReaderInputStream.close() > > (/usr/lib/libgcj.so.6.0.0) > >> at gnu.xml.aelfred2.XmlParser.doParse(java.lang.String, > >> java.lang.String, jav > >> a.io.Reader, java.io.InputStream, java.lang.String) > >> (/usr/lib/libgcj.so.6.0.0) > >> at gnu.xml.aelfred2.SAXDriver.parse(org.xml.sax.InputSource) > >> (/usr/lib/libgcj > >> .so.6.0.0) > >> at gnu.xml.aelfred2.XmlReader.parse(org.xml.sax.InputSource) > >> (/usr/lib/libgcj > >> .so.6.0.0) > >> at gnu.xml.dom.ls.DomLSParser.doParse(org.w3c.dom.ls.LSInput) > >> (/usr/lib/libgc > >> j.so.6.0.0) > >> at gnu.xml.dom.ls.DomLSParser.parse(org.w3c.dom.ls.LSInput) > >> (/usr/lib/libgcj. > >> so.6.0.0) > >> at gnu.xml.dom.DomDocumentBuilder.parse(org.xml.sax.InputSource) > >> (/usr/lib/li > >> bgcj.so.6.0.0) > >> at > >> org.apache.axis.utils.XMLUtils.newDocument(org.xml.sax.InputSource) > >> (Unkno wn Source) > >> at org.apache.axis.utils.XMLUtils.newDocument(java.lang.String, > >> java.lang.Str > >> ing, java.lang.String) (Unknown Source) > >> at > >> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(java.lang.String > >> , ja va.lang.String, java.lang.String) (Unknown Source) > >> at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run() (Unknown > > Source) > >> at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)/* > >> *//* > >> */Code generation failed. Please see errors above./* > >> > >> > >> I set my my classpath as following: > >> > >> */declare -x > >> CLASSPATH="/usr/local/axiscpp_home/lib/axisjava/wsdl4j.jar:/usr/local > >> > > /axiscpp_home/lib/axisjava/saaj.jar:/usr/local/axiscpp_home/lib/axisjava > > /jaxrpc. > >> jar:/usr/local/axiscpp_home/lib/axisjava/commons-logging.jar:/usr/loca > >> l/axiscpp_ > >> home/lib/axisjava/commons-discovery.jar:/usr/local/axiscpp_home/lib/ax > >> isjava/axi > >> s.jar:/usr/local/axiscpp_deploy/lib/wsdl2ws.jar:"/* > >> > >> Could anybody please help me figure out what was wrong? > >> > >> Thanks, > >> > >> Lei > > > > > > > >