You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jervis Liu (JIRA)" <ji...@apache.org> on 2007/11/29 04:44:43 UTC

[jira] Created: (CXF-1240) JAX-RS demo not working with return type String

JAX-RS demo not working with return type String
-----------------------------------------------

                 Key: CXF-1240
                 URL: https://issues.apache.org/jira/browse/CXF-1240
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: Jervis Liu
            Assignee: Jervis Liu


JAX-RS demo does not work when a resouce method returns String, See below:

   @javax.ws.rs.HttpMethod("GET")
   @javax.ws.rs.UriTemplate("{section}/{id}")
   public String findBySectionAndId(@javax.ws.rs.UriParam("section")
   String section, @javax.ws.rs.UriParam("id")
   String id) {
       return "Hello World - section is " + section + ", id is " + id + "\n";
   }

FWIW I had to change type of the "Id" parameter from an int to a String not to throw a IllegalArgumentException


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CXF-1240) JAX-RS demo not working with return type String

Posted by "Jervis Liu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jervis Liu closed CXF-1240.
---------------------------


> JAX-RS demo not working with return type String
> -----------------------------------------------
>
>                 Key: CXF-1240
>                 URL: https://issues.apache.org/jira/browse/CXF-1240
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Jervis Liu
>            Assignee: Jervis Liu
>             Fix For: 2.1
>
>
> JAX-RS demo does not work when a resouce method returns String, See below:
>    @javax.ws.rs.HttpMethod("GET")
>    @javax.ws.rs.UriTemplate("{section}/{id}")
>    public String findBySectionAndId(@javax.ws.rs.UriParam("section")
>    String section, @javax.ws.rs.UriParam("id")
>    String id) {
>        return "Hello World - section is " + section + ", id is " + id + "\n";
>    }
> FWIW I had to change type of the "Id" parameter from an int to a String not to throw a IllegalArgumentException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1240) JAX-RS demo not working with return type String

Posted by "Jervis Liu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jervis Liu resolved CXF-1240.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.1

> JAX-RS demo not working with return type String
> -----------------------------------------------
>
>                 Key: CXF-1240
>                 URL: https://issues.apache.org/jira/browse/CXF-1240
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Jervis Liu
>            Assignee: Jervis Liu
>             Fix For: 2.1
>
>
> JAX-RS demo does not work when a resouce method returns String, See below:
>    @javax.ws.rs.HttpMethod("GET")
>    @javax.ws.rs.UriTemplate("{section}/{id}")
>    public String findBySectionAndId(@javax.ws.rs.UriParam("section")
>    String section, @javax.ws.rs.UriParam("id")
>    String id) {
>        return "Hello World - section is " + section + ", id is " + id + "\n";
>    }
> FWIW I had to change type of the "Id" parameter from an int to a String not to throw a IllegalArgumentException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.