Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 17599 invoked from network); 18 Sep 2009 20:33:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Sep 2009 20:33:45 -0000 Received: (qmail 15761 invoked by uid 500); 18 Sep 2009 20:33:45 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 15730 invoked by uid 500); 18 Sep 2009 20:33:45 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 15720 invoked by uid 99); 18 Sep 2009 20:33:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 20:33:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 20:33:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 09188234C044 for ; Fri, 18 Sep 2009 13:33:16 -0700 (PDT) Message-ID: <1777613668.1253305996022.JavaMail.jira@brutus> Date: Fri, 18 Sep 2009 13:33:16 -0700 (PDT) From: "Benson Margulies (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2438) NPE creating dynamic client In-Reply-To: <916846364.1253030997459.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2438?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D127573= 97#action_12757397 ]=20 Benson Margulies commented on CXF-2438: --------------------------------------- The WSDL has a part named Body that has neither an element nor a type. The first fix is to emit the following: org.apache.cxf.wsdl11.WSDLRuntimeException: Part Body defined with no eleme= nt and no type. > NPE creating dynamic client > --------------------------- > > Key: CXF-2438 > URL: https://issues.apache.org/jira/browse/CXF-2438 > Project: CXF > Issue Type: Bug > Affects Versions: 2.3 > Environment: Ubuntu Linux 9.04=20 > java version "1.6.0_16" > Java(TM) SE Runtime Environment (build 1.6.0_16-b01) > Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) > Reporter: Walter Mour=C3=A3o > Priority: Blocker > Attachments: wsdl.xml > > > The following code generates the NPE: > DynamicClientFactory dcf =3D DynamicClientFactory.newInstance= (); > Client client =3D dcf.createClient(new URL("http://hidroweb.a= na.gov.br/fcthservices/FCTH.asmx?WSDL"),new QName("http://www.ana.gov.br","= FCTHService"), new QName("http://www.ana.gov.br","FCTHServiceSoap")); --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.