You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2010/09/27 11:52:32 UTC
[jira] Created: (CXF-3007) WSDLServiceFactory should throw
exception if the service factory cannot build the service with a wrong port
name
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
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.<init>(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.
[jira] Resolved: (CXF-3007) WSDLServiceFactory should throw
exception if the service factory cannot build the service with a wrong port
name
Posted by "Willem Jiang (JIRA)" <ji...@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.<init>(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.
[jira] Assigned: (CXF-3007) WSDLServiceFactory should throw
exception if the service factory cannot build the service with a wrong port
name
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CXF-3007:
---------------------------------
Assignee: Willem Jiang
> 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.<init>(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.