'That's another solution, yes. I think that NPE in your version of CXF is actually caused by the fact no provider has been found for List<Order>...'

True. That NPE is gone, however, not that original problem that getOrder(Order o) is invoked when getOrder() should be.

I will check out the next release and check again there.

Thanks again,
/philipp

On Jul 2, 2008, at 4:29 PM, Sergey Beryozkin wrote:

Hi Philipp


Sergey,

sorry, I was not aware that this has already been discussed before. I think I am unable to check out the latest trunk for the time being, but I will check the next release for your fix (and see if the NPE goes away). As for the List<Order> ... yes, I have already figured out that JAXB does not work this way, and changed my implementation to return an 'OrderList', which is a simple JavaBean wrapper for a List<Order> (similar to the one example you have online).

That's another solution, yes. I think that NPE in your version of CXF is actually caused by the fact no
provider has been found for List<Order>...

However, let me gratulate you guys for the JAX-RS implementation in CXF :) So far, I had a very enjoyable time working with it. I think this could finally be what makes RESTful services the real deal in enterprise computing.

Many thanks. I think the credits should actually go to the people behind JAX-RS. Be aware though that the current CXF JAX-RS is far from the ideal state yet (even after the latest update) compared to good implementations like Jersey, so don't be surprized if you hit few more NPEs :-) As for the RESTful services and enterprise computing I hope CXF can be a pretty good platform to play with due to its top-class JAX-WS support and now due its capability to support JAX-RS services too - there could be some interesting combinations there ('mix and match' of JAX-WS and JAX-RS - I'm of opinion that both paradigms can live well together, etc...).

Cheers, Sergey


all the best,
philipp



----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to