Hi Paul

Fantastic :-), I got scared a bit that I introduced some bug at the very
last moment - thanks for making things working again 

cheers, Sergey


Paul Wilton wrote:
> 
> Hi Sergey
> I must have done something stupid - I can't seem to replicate the issue
> myself now - so don't spend any time on it.
> If it re-occurs, I will try and nail it down.
> 
> Thanks
> Paul
> 
> -----Original Message-----
> From: Sergey Beryozkin [mailto:[email protected]] 
> Sent: 05 August 2009 09:51
> To: [email protected]
> Subject: RE: 2.2.3 - WebClient.create(baseAddress,List<Providers>)
> throwing WebApplicationException
> 
> 
> Hi Paul
> 
> I'm in the process of setting up the remote access so sorry for the
> delay,
> I'll try to test later on this evening and reply tomorrow... I'm not
> aware
> at the moment of anything that could've broken it but I'll try to get to
> the
> bottom of it asap.
> 
> thanks, Sergey   
> 
> Paul Wilton wrote:
>> 
>> I have tried the same code against CXF 2.2.2 and do not get the error,
>> so am more convinced this is a 2.2.3 bug that got introduced quite
> late
>> on in the 2.2.3 dev cycle.
>> 
>> Sergey - what do you think ?
>> 
>> Regards
>> Paul
>> 
>> -----Original Message-----
>> From: Paul Wilton [mailto:[email protected]] 
>> Sent: 04 August 2009 14:30
>> To: [email protected]
>> Cc: [email protected]
>> Subject: RE: 2.2.3 - WebClient.create(baseAddress,List<Providers>)
>> throwing WebApplicationException
>> 
>> Hi
>> Have done further analysis - now I have the source of the 2.2.3
> release 
>> The WebClient create method eventually calls 
>> CXFBusImpl.getExtension(extensionType)
>> 
>> On line 73 of CXFBusImpl,
>>
> finder.findExtension(org.apache.cxf.transport.DestinationFactoryManager)
>> Throws the error:
>> Error creating bean with name
>> 'org.apache.cxf.transport.DestinationFactoryManager' defined in class
>> path resource [META-INF/cxf/cxf.xml]: 
>> Cannot create inner bean
>> 'org.apache.cxf.configuration.spring.SpringBeanMap#51064e' of type
>> [org.apache.cxf.configuration.spring.SpringBeanMap] 
>> while setting bean property 'mapProvider'
>> 
>> any clues?
>> 
>> cheers
>> Paul
>> 
>> -----Original Message-----
>> From: Paul Wilton [mailto:[email protected]] 
>> Sent: 04 August 2009 12:44
>> To: [email protected]
>> Cc: [email protected]
>> Subject: 2.2.3 - WebClient.create(baseAddress,List<Providers>)
> throwing
>> WebApplicationException
>> 
>> Hi
>> I have been using the 2.2.3-SNAPSHOT release for a while now.
>> I have wired a jaxrs WebClient in Spring(2.5.6) with the create
> method,
>> passing a base address and a JSONProvider as follows:
>> 
>>     <bean id="myJsonProvider"
>> class="org.apache.cxf.jaxrs.provider.JSONProvider" >
>>         <property name="supportUnwrapped" value="true" />
>>         <property name="wrapperName" value="nodeName" />
>>     </bean>
>> 
>>     <util:list id="webClientProviders">
>>         <ref bean="myJsonProvider"/>
>>     </util:list>
>> 
>>     <bean id="myWebClient"
> class="org.apache.cxf.jaxrs.client.WebClient"
>> factory-method="create">
>>         <constructor-arg type="java.lang.String"
>> value="http://some.base.url.that.responds/"; />
>>         <constructor-arg ref="webClientProviders" />
>>     </bean>
>> 
>> When the Spring app context loads, the WebClient throws the following
>> exception
>> Caused by: javax.ws.rs.WebApplicationException
>>      at
>>
> org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRS
>> ClientFactoryBean.java:113)
>>      at
>> org.apache.cxf.jaxrs.client.WebClient.create(WebClient.java:110)
>>      at
>> org.apache.cxf.jaxrs.client.WebClient.create(WebClient.java:97)
>> 
>> This code has been working okay for me until just a couple of days
> ago.
>> I am not aware of anything in my code base that could have caused this
>> (though not ruling it out :)
>> Has anything changed in the CXF 2.2.3 snapshot code that might cause
>> this?
>> Any other ideas?
>> 
>> Thanks
>> Paul 
>> This e-mail (and any attachments) is confidential and may contain
>> personal views which are not the views of the BBC unless specifically
>> stated. If you have received it in error, please delete it from your
>> system. Do not use, copy or disclose the information in any way nor
> act
>> in reliance on it and notify the sender immediately.
>>  
>> Please note that the BBC monitors e-mails sent or received. Further
>> communication will signify your consent to this
>> 
>> This e-mail has been sent by one of the following wholly-owned
>> subsidiaries of the BBC:
>>  
>> BBC Worldwide Limited, Registration Number: 1420028 England,
> Registered
>> Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
>> BBC World News Limited, Registration Number: 04514407 England,
>> Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
>> BBC World Distribution Limited, Registration Number: 04514408,
>> Registered Address: BBC Media Centre, 201 Wood Lane, London, W12 7TQ
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/2.2.3---WebClient.create%28baseAddress%2CList%3CPr
> oviders%3E%29-throwing-WebApplicationException-tp24806929p24823145.html
> Sent from the cxf-user mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/2.2.3---WebClient.create%28baseAddress%2CList%3CProviders%3E%29-throwing-WebApplicationException-tp24806929p24825955.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to