Hi
On 14/02/14 16:53, huangyong wrote:
Hi Cheers,

I can use the custom jsonp parameter for inteceptor, but I found another
issue.

When I retrun the List object in response, and it will show some error
message in browser:
"No message body writer has been found for response class ArrayList"

But I use the 2.6.9, it works. Can you help me fix this problem?

I thought you said it was only a problem in 2.7.8 but was Ok again in 2.7.9 ? One thing I also recall is that starting from 2.7.8 & 2.7.9 the response content-type calculation has changed, you may be having

Accept: application/javascript

and in 2.6.9 it was working due the calculation being done too late, I don;t recall the details now, but in 2.7.8+ you have the response content-type calculated much earlier, so you probably have it set to application/javascript which JSONProvider does not understand, so basically, you probably will configure to support application/javascript via its 'producesTypes' property, I think I did something similar to fix JSONP tests in CXF 2.7.8,

Cheers. Sergey

Jack



--
View this message in context: 
http://cxf.547215.n5.nabble.com/JSONP-is-not-works-tp5739858p5740000.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to