You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by criedluv <Ke...@issinc.com> on 2014/12/15 22:00:39 UTC

Rest client returning ClientException, cause: #3732

My rest client is throwing the above exception upon invoking a method on a
CXF Web service method. I cant tell if execution reaches the rest method or
not. Error text: "Method pkg.methodName() is not a valid resource method". 

My model entry for the method is:

        <operation name="methodName()" verb="GET" path="/abc"
                consumes="application/xml" produces="application/xml">
            
            
            
             
        </operation> 

I'm using the following:

CXF: 2.7.12 
Spring: 3.2.5.RELEASE 
JAXWS/JAXRS 
Servlet.xml: includes jaxws and jaxrs definitions with a reference to a
jaxrs model definition file.

I can invoke another method from the same REST interface/implementation just
fine. I can invoke the same method via SOAP.

thanks! 



--
View this message in context: http://cxf.547215.n5.nabble.com/Rest-client-returning-ClientException-cause-3732-tp5752388.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Rest client returning ClientException, cause: #3732

Posted by criedluv <Ke...@issinc.com>.
thank you Sergey... I fat fingered the "()"'s in my post; but not in the
code. So not sure why I'm getting this behavior.

I'll put together a test case.  


Sergey Beryozkin wrote
> I did realize it was fictitious :-). I could only think of the actual 
> parentheses "()" affecting it.
> Please provide a test case or simply download the CXF source code and 
> debug the invocation...
> 
> Sergey






--
View this message in context: http://cxf.547215.n5.nabble.com/Rest-client-returning-ClientException-cause-3732-tp5752388p5752755.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Rest client returning ClientException, cause: #3732

Posted by Sergey Beryozkin <sb...@gmail.com>.
I did realize it was fictitious :-). I could only think of the actual 
parentheses "()" affecting it.
Please provide a test case or simply download the CXF source code and 
debug the invocation...

Sergey
On 16/12/14 15:12, Kevin Schnake wrote:
> Sergey,
>
> My model didn't get posted intact. It is below. methodName is fictitious. Is there more info on error: 3732? Thx!
>
>          <operation name="methodName()" verb="GET" path="/abc"
>                  consumes="application/xml" produces="application/xml">
>              <param name="dateAbc" type="QUERY"/>
>              <param name="filter" type="QUERY"/>
>              <param name="sortDetails" type="QUERY"/>
>              <param name="paging" type="QUERY"/>
>          </operation>
>
>
> -----Original Message-----
> From: Sergey Beryozkin [mailto:sberyozkin@gmail.com]
> Sent: Monday, December 15, 2014 2:24 PM
> To: users@cxf.apache.org
> Subject: Re: Rest client returning ClientException, cause: #3732
>
> Should it be "methodName" ?
> On 15/12/14 21:03, criedluv wrote:
>>
>> Here is the model entry:
>>
>>          <operation name="methodName()" verb="GET" path="/abc"
>>                   consumes="application/xml"
>> produces="application/xml">
>>
>>
>>
>>
>>           </operation>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://cxf.547215.n5.nabble.com/Rest-client-returning-ClientException-
>> cause-3732-tp5752388p5752389.html Sent from the cxf-user mailing list
>> archive at Nabble.com.
>>
>
>


RE: Rest client returning ClientException, cause: #3732

Posted by Kevin Schnake <ke...@issinc.com>.
Sergey,

My model didn't get posted intact. It is below. methodName is fictitious. Is there more info on error: 3732? Thx!

        <operation name="methodName()" verb="GET" path="/abc"
                consumes="application/xml" produces="application/xml">
            <param name="dateAbc" type="QUERY"/>
            <param name="filter" type="QUERY"/>
            <param name="sortDetails" type="QUERY"/>
            <param name="paging" type="QUERY"/> 
        </operation>


-----Original Message-----
From: Sergey Beryozkin [mailto:sberyozkin@gmail.com] 
Sent: Monday, December 15, 2014 2:24 PM
To: users@cxf.apache.org
Subject: Re: Rest client returning ClientException, cause: #3732

Should it be "methodName" ?
On 15/12/14 21:03, criedluv wrote:
>
> Here is the model entry:
>
>         <operation name="methodName()" verb="GET" path="/abc"
>                  consumes="application/xml" 
> produces="application/xml">
>
>
>
>
>          </operation>
>
>
>
>
>
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Rest-client-returning-ClientException-
> cause-3732-tp5752388p5752389.html Sent from the cxf-user mailing list 
> archive at Nabble.com.
>



Re: Rest client returning ClientException, cause: #3732

Posted by Sergey Beryozkin <sb...@gmail.com>.
Should it be "methodName" ?
On 15/12/14 21:03, criedluv wrote:
>
> Here is the model entry:
>
>         <operation name="methodName()" verb="GET" path="/abc"
>                  consumes="application/xml" produces="application/xml">
>
>
>
>
>          </operation>
>
>
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Rest-client-returning-ClientException-cause-3732-tp5752388p5752389.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



Re: Rest client returning ClientException, cause: #3732

Posted by criedluv <Ke...@issinc.com>.
       
Here is the model entry:

       <operation name="methodName()" verb="GET" path="/abc"
                consumes="application/xml" produces="application/xml">
            
            
            
             
        </operation>

 



--
View this message in context: http://cxf.547215.n5.nabble.com/Rest-client-returning-ClientException-cause-3732-tp5752388p5752389.html
Sent from the cxf-user mailing list archive at Nabble.com.