1 Reply Latest reply on Sep 7, 2013 3:42 PM by Christian Sadilek

    Bug in Errai? Not sending String parameter (jax-rs)

    xybrek Newbie

      Here is my code for the Errai RPC which I think have a bug:

       

       

          service.call(new RemoteCallback<MyModel>() {

           @Override

           public void callback(MyModel model) {

         

           }

           }, new ErrorCallback() {

         

           @Override

           public boolean error(Message message, Throwable throwable) {

           Window.alert("Error");

           return false;

           }

           }).getMyModelByHash("ja");

       

       

      The implementation class is annotated with `@SessionScoped` and the method looks like this:

       

       

          @Override

          @GET

          @Consumes("text/plain")

          @Produces("application/json")

          public MyModel getMyModelByHash(String hash) {

           LOG.info("Fetching item with hash=" + hash);

           return null;

          }

       

       

      The log only shows this `Fetching item with hash=`

       

       

      So I think this is a bug in Errai that it can't send String parameter?