Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 96973 invoked from network); 17 Mar 2010 03:35:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 03:35:44 -0000 Received: (qmail 14719 invoked by uid 500); 17 Mar 2010 03:35:41 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 14378 invoked by uid 500); 17 Mar 2010 03:35:40 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 14369 invoked by uid 99); 17 Mar 2010 03:35:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 03:35:39 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.207.171.113] (HELO server.dankulp.com) (66.207.171.113) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 03:35:32 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id 7D6272079AC7; Tue, 16 Mar 2010 23:35:10 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.2.1-gr2 (2007-05-02) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter.BjNIAMByvP Received: from dilbert.localnet (c-24-91-141-225.hsd1.ma.comcast.net [24.91.141.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id D64F72078498; Tue, 16 Mar 2010 23:35:08 -0400 (EDT) From: Daniel Kulp To: users@cxf.apache.org Subject: Re: getUnwrappedOperation returns null Date: Tue, 16 Mar 2010 23:35:36 -0400 User-Agent: KMail/1.13.1 (Linux/2.6.33-gentoo; KDE/4.4.1; x86_64; ; ) Cc: Enrico Boldrini References: <4B9F6017.8050304@imaa.cnr.it> <4B9F9DF0.4000701@imaa.cnr.it> <4B9FA4B1.2090809@imaa.cnr.it> In-Reply-To: <4B9FA4B1.2090809@imaa.cnr.it> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201003162335.37054.dkulp@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-3.5 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.1-gr2 On Tuesday 16 March 2010 11:33:05 am Enrico Boldrini wrote: > Dear Dan, > > I'm attaching a test project with a JUnit test which fails on the error. > Hoping this will help, kind regards. I've added a better error message for this case, but the problem is with the WSDL. The "close" method is not unwrappable according to the wsdl, but the interface you are using has it unwrapped. That's the NPE while it tries to find an unwrapped form. The issue is: the xs:anyType isn't allowed for a wrapper. It PROBABLY should be tns:closeResponse, but I'm not 100% sure. Dan > > Enrico > > Enrico Boldrini wrote: > > Dear Dan, > > > > for the quick response. Unfortunately it doesn't work either with > > 2.2.7-SNAPSHOT. Stack trace: > > > > Exception in thread "main" java.lang.NullPointerException > > > > at > > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeCla > > ssInfo(ReflectionServiceFactoryBean.java:754) > > > > at > > > > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperat > > ion(JaxWsServiceFactoryBean.java:222) > > > > at > > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSD > > LOperations(ReflectionServiceFactoryBean.java:674) > > > > at > > > > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperat > > ions(JaxWsServiceFactoryBean.java:258) > > > > at > > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceF > > romWSDL(ReflectionServiceFactoryBean.java:424) > > > > at > > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeSer > > viceModel(ReflectionServiceFactoryBean.java:528) > > > > at > > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflec > > tionServiceFactoryBean.java:278) > > > > at > > > > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceF > > actoryBean.java:178) > > > > at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:411) > > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:296) > > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:291) > > at javax.xml.ws.Service.getPort(Service.java:161) > > > > Kind regards, > > > > Enrico > > > > Daniel Kulp wrote: > >> Can you try the 2.2.7-SNAPSHOTs? I fixed a very similar bug a > >> couple weeks ago that had a very similar stack trace and symptom. > >> Thus, this may already be fixed. > >> > >> Dan > >> > >> On Tuesday 16 March 2010 6:40:23 am Enrico Boldrini wrote: > >>> Dear all, > >>> > >>> I've got a null pointer exception instantiating a CXF client to connect > >>> to my CXF service and using in both cases version 2.2.6. This is the > >>> stacktrace: > >>> > >>> java.lang.NullPointerException > >>> > >>> at > >>> > >>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeC > >>> lass > >>> > >>> Info(ReflectionServiceFactoryBean.java:721) at > >>> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOper > >>> atio > >>> > >>> n(JaxWsServiceFactoryBean.java:222) at > >>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeW > >>> SDLO > >>> > >>> perations(ReflectionServiceFactoryBean.java:674) at > >>> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOper > >>> atio > >>> > >>> ns(JaxWsServiceFactoryBean.java:258) at > >>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServic > >>> eFro > >>> > >>> mWSDL(ReflectionServiceFactoryBean.java:424) at > >>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeS > >>> ervi > >>> > >>> ceModel(ReflectionServiceFactoryBean.java:528) at > >>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Refl > >>> ecti > >>> > >>> onServiceFactoryBean.java:278) at > >>> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServic > >>> eFac > >>> > >>> toryBean.java:178) at > >>> org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:411) at > >>> org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:296) at > >>> org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:291) at > >>> javax.xml.ws.Service.getPort(Service.java:161) > >>> > >>> It seems to happen because o = o.getUnwrappedOperation(); in method > >>> initializeClassInfo returns null. > >>> > >>> The problem disappear if using JAXWS-RI for the client, while > >>> continuing > >>> to use CXF for the service. > >>> > >>> Let me know if further information is needed, thanks > >>> > >>> Enrico -- Daniel Kulp dkulp@apache.org http://dankulp.com/blog