Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 52216 invoked from network); 27 Sep 2010 12:33:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Sep 2010 12:33:01 -0000 Received: (qmail 847 invoked by uid 500); 27 Sep 2010 12:33:01 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 721 invoked by uid 500); 27 Sep 2010 12:32:58 -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 614 invoked by uid 99); 27 Sep 2010 12:32:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 12:32:57 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 12:32:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8RCWWl5001992 for ; Mon, 27 Sep 2010 12:32:33 GMT Message-ID: <16017634.419881285590752845.JavaMail.jira@thor> Date: Mon, 27 Sep 2010 08:32:32 -0400 (EDT) From: "Willem Jiang (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-3007) WSDLServiceFactory should throw exception if the service factory cannot build the service with a wrong port name In-Reply-To: <29404065.418571285581152902.JavaMail.jira@thor> 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-3007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang resolved CXF-3007. ------------------------------- Resolution: Fixed Applied the patch into chunk and 2.2.x-fixing branch. > WSDLServiceFactory should throw exception if the service factory cannot build the service with a wrong port name > ---------------------------------------------------------------------------------------------------------------- > > Key: CXF-3007 > URL: https://issues.apache.org/jira/browse/CXF-3007 > Project: CXF > Issue Type: Improvement > Affects Versions: 2.2.10 > Reporter: Willem Jiang > Assignee: Willem Jiang > Fix For: 2.3, 2.2.11 > > > When the user specify a wrong port name to build the service module from WSDLServiceFactory, we just get an empty services list from WSDLServiceBuilder. > And user will get other exception like this > {code} > Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at java.util.ArrayList.RangeCheck(ArrayList.java:547) > at java.util.ArrayList.get(ArrayList.java:322) > at org.apache.cxf.service.ServiceImpl.getName(ServiceImpl.java:67) > at org.apache.cxf.jaxb.JAXBDataBinding.getNamespaceToUse(JAXBDataBinding.java:432) > at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:318) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:394) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:490) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:240) > at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:99) > at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105) > at org.apache.camel.component.cxf.CxfConsumer.(CxfConsumer.java:247) > at org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:126) > at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:61) > at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:75) > at org.apache.camel.impl.RouteService.warmUp(RouteService.java:118) > at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1689) > at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1615) > at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1414) > at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1309) > at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1208) > at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164) > at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) > at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) > at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1186) > at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203) > at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101) > ... 12 more > {code} > The WSDLServiceFactory should check the services list and some more meaningful exception. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.