Hello Christie,

could you provide a reproductible sample test case (eclipse project)?

Best regards,
Thierry Boileau


I am also having the same issue.  My setup has Restlet 2.1 RC1 J2SE edition
> on the backend and using Restlet 2.1 RC1 GWT on the frontend.  Parameter
> objects gets passed to the backend OK, but the onSuccess of
> Result<SomeClass> on the GTW side is always null.
>
>
> ......
>
>
> OnClick method of the GWT frontend
>
>
> public void
> onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent event) {
>          if (dynamicFormLogin.validate()) {
>
>            AccountOrmRep repCredential = new AccountOrmRep();
>
>  
> repCredential.setEmail(dynamicFormLogin.getValueAsString(AccountOrmRep.EMAIL));
>
>  
> repCredential.setPassword(dynamicFormLogin.getValueAsString(AccountOrmRep.PASSWORD));
>
>            Client.login(repCredential, new Result<AccountOrmRep>() {
>
>              @Override
>              public void onFailure(Throwable caught)
>              {
>                txtLoginError.setValue("Login Error");
>
>              }
>
>              @Override
>              public void onSuccess(AccountOrmRep accnt)
>              {
>
>                // accnt is alway null, but it should not be null.
>                m_actMain.onLogin(accnt);
>
>              }
>
>            });
>
>          }
>        }
>      });
>
>
>
> public class Client
> {
> public static void login(AccountOrmRep cred, Result<AccountOrmRep>
> callback)
>  {
>    LoginResource res = GWT.create(LoginResource.class);
>
>    ClientResource cr = res.getClientResource();
>
>    cr.setReference("/api/login");
>
>    res.update(cred, callback);
>  }
> }
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2851326
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2853813

Reply via email to