Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-12 Thread Nirmal Fernando
Hi Ignasi, Sorry for the late reply! On Thu, Jan 2, 2014 at 2:54 AM, Ignasi Barrera ignasi.barr...@gmail.comwrote: You can replace the @RequestFilters annotation by: @Consumes(*/*) That will translate to the Accept header being set, and can also be overridden in the methods that could need

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Andrew Phillips
I've still no luck with the original issue :( While debugging I've found that JavaUrlHttpCommandExecutorService.convert's connection.setRequestProperty(HOST, host); doesn't seem to set Host header correctly. Any help is highly appreciated. When you say not correctly do you mean not at all, or

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Nirmal Fernando
Hi Andrew and Ignasi, Thanks for your thoughts. As Andrew said, I think the much safer approach would be to handle this at the vcloud level. So, I've implemented a request filter for VCloudVersionsAsyncClient and it works fine. I hope this way is ok? On Wed, Jan 1, 2014 at 9:09 PM, Ignasi

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Andrew Phillips
Thanks for your thoughts. As Andrew said, I think the much safer approach would be to handle this at the vcloud level. So, I've implemented a request filter for VCloudVersionsAsyncClient and it works fine. That sounds cool! Any chance you could submit this as a pull request, or at least share

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Nirmal Fernando
Hi Ignasi, Sorry, I'm not the jaxrs expert, can you please point to a sample where I can set a header using @Consumes? This is how the class looks like now and my fix was to add the filter. /** * Establishes a context with a VCloud endpoint. * p/ * * @see a href=

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Ignasi Barrera
You can replace the @RequestFilters annotation by: @Consumes(*/*) That will translate to the Accept header being set, and can also be overridden in the methods that could need so. There is no prerequisite to implement the ComputeService :) I'm not familiar with vcloud, but I can help explaining

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Nirmal Fernando
Hi Ignasi, On Thu, Jan 2, 2014 at 2:54 AM, Ignasi Barrera ignasi.barr...@gmail.comwrote: You can replace the @RequestFilters annotation by: @Consumes(*/*) That will translate to the Accept header being set, and can also be overridden in the methods that could need so. Sorry if this question