13 Replies Latest reply on Apr 24, 2015 11:24 PM by Jorge Morales

    Service operations on a Java interface must have exactly one parameter.

    Los Morales Newbie

      Hi,

       

      I'm currently getting this error when deploying my SY app onto EAP 6.1:  java.lang.RuntimeException: Service operations on a Java interface must have exactly one parameter.

       

      My program compiled just fine.  I have a composite reference that tries to invoke an external REST service passing in two parameters:  looks something like this:

       

      @Path("/")

      public interface InvokeExternalRestReference {

       

          @GET

          @Path("/Authenticate?credentials={\"LoginName\":\"{username}\",\"Password\":\"{password}\"}")

                String authenticate(@PathParam("username") String username, @PathParam("password") String password);

      }

       

       

      This is really the only place where I see this error would occur.  Is something wrong with the above code, or does SY can not invoke REST services with more than one parameter?  I'm using SY 1.0.0 (alpha1).

       

      TIA