Hi folks,
I am having the following exception in Spring after upgrading to cxf 2.6.0 from
2.5.2:
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'transactionServiceRestPort.proxyFactory': Error
setting property values; nested exception is
org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value of type 'java.util.LinkedHashMap' to required
type 'java.util.Map' for property 'headers'; nested exception is
java.lang.ClassCastException: java.util.ArrayList cannot be cast to
java.lang.String
Code snippet:
<jaxrs:client id="transactionServiceRestPort"
address="http://localhost:9090/services/TransactionRestService"
serviceClass="com.kitd.services.transaction.api.TransactionService"
inheritHeaders="true">
<jaxrs:headers>
<entry key="Content-Type" value="application/xml"/>
<entry key="Accept" value="application/xml"/>
</jaxrs:headers>
</jaxrs:client>
What is wrong with headers?
This e-mail and any attachments are confidential and intended solely for the
addressee and may also be privileged or exempt from disclosure under applicable
law. If you are not the addressee, or have received this e-mail in error,
please notify the sender immediately, delete it from your system and do not
copy, disclose or otherwise act upon any part of this e-mail or its
attachments. Internet communications are not guaranteed to be secure or
virus-free. KIT digital Inc. and its affiliates do not accept responsibility
for any loss arising from unauthorised access to, or interference with, any
Internet communications by any third party, or from the transmission of any
viruses.