Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Sergey Beryozkin
Hi The log shows that a method accepting a single parameter is invoked, while the one you typed accepts 3 parameters. Looks like you may have 2 methods which prove to be equal JAX-RS method candidates. Cheers, Sergey On 12/01/16 20:09, Jim Talbut wrote: Hi, In a JAX-RS application running

Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Sergey Beryozkin
Hi On 13/01/16 13:05, Jim Talbut wrote: Gaah You're right. Thank you. I haven't touched this code for a long while and didn't realise I had overloaded that method (I've now renamed the methods to help me out next time). I'm surprised that a request with an Accept of this:

Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Sergey Beryozkin
On 13/01/16 13:53, Sergey Beryozkin wrote: Hi On 13/01/16 13:05, Jim Talbut wrote: Gaah You're right. Thank you. I haven't touched this code for a long while and didn't realise I had overloaded that method (I've now renamed the methods to help me out next time). I'm surprised that a

Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Jim Talbut
Gaah You're right. Thank you. I haven't touched this code for a long while and didn't realise I had overloaded that method (I've now renamed the methods to help me out next time). I'm surprised that a request with an Accept of this: application/json, text/plain, */* Preferred

Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Jim Talbut
No q, no text/html, this is coming from AngularJS using its default Accept header. Jim On 13/01/2016 13:57, Sergey Beryozkin wrote: On 13/01/16 13:53, Sergey Beryozkin wrote: Hi On 13/01/16 13:05, Jim Talbut wrote: Gaah You're right. Thank you. I haven't touched this code for a long

Re: Where is my JAX-RS Invoke going?

2016-01-13 Thread Sergey Beryozkin
Indeed, I reproduced it, but it looks like to be correct S(*/*, text/html) = text/html;q=1;qs=1;d=0 S(application/json, application/json) = application/json;q=1;qs=1;d=0 (Section 3.7.2, 3.b) both methods are equal candidates so the 1st method (or whichever method from these two gets on top)

Where is my JAX-RS Invoke going?

2016-01-12 Thread Jim Talbut
Hi, In a JAX-RS application running in tomcat 8 using CXF 3.1.4 with the logs turned up to DEBUG I'm seeing this: 15:59:52.116 [http-apr-172.28.9.212-8080-exec-31] DEBUG o.a.cxf.phase.PhaseInterceptorChain - Invoking handleMessage on interceptor