Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 5058 invoked from network); 17 Jun 2009 17:36:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jun 2009 17:36:28 -0000 Received: (qmail 83759 invoked by uid 500); 17 Jun 2009 17:36:39 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 83744 invoked by uid 500); 17 Jun 2009 17:36:39 -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 83734 invoked by uid 99); 17 Jun 2009 17:36:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2009 17:36:39 +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; Wed, 17 Jun 2009 17:36:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6C30C29A0013 for ; Wed, 17 Jun 2009 10:36:07 -0700 (PDT) Message-ID: <153382596.1245260167442.JavaMail.jira@brutus> Date: Wed, 17 Jun 2009 10:36:07 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2295) NullPointerException creating service proxy In-Reply-To: <436301999.1245236048112.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720777#action_12720777 ] Daniel Kulp commented on CXF-2295: ---------------------------------- The broker.wsdl is invalid. Its also not the version that Servicemix ships. Have you done some search/replace things on it? The imports do not specify the correct namespace. They should be: > NullPointerException creating service proxy > ------------------------------------------- > > Key: CXF-2295 > URL: https://issues.apache.org/jira/browse/CXF-2295 > Project: CXF > Issue Type: Bug > Affects Versions: 2.1.3, 2.2 > Reporter: Anne Diefenbach > Attachments: broker.wsdl, TestCase.zip, wsnbroker.wsdl > > > Upon service proxy creation, at > org.oasis_open.docs.wsn.brw_2.NotificationBroker port = ss.getCxfBinding(); > I receive the following exception: > org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL > INFO: Creating Service {http://servicemix.org/wsnotification}NotificationBroker from WSDL: file:resources/broker.wsdl > Exception in thread "main" java.lang.NullPointerException > at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:573) > at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:557) > at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:328) > at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:184) > at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:129) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:328) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:436) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:194) > at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164) > at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100) > at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52) > at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102) > at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115) > at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:434) > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:312) > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:299) > at javax.xml.ws.Service.getPort(Service.java:40) > at org.servicemix.wsnotification.NotificationBroker.getCxfBinding(NotificationBroker.java:63) > at org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server.main(NotificationConsumer_NotificationConsumerPort_Server.java:135) > The issue appears to be caused because the WSDL relies on an imported WSDL to define the input messages. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.