0 Replies Latest reply on Dec 7, 2015 7:37 AM by jimmy.pannier

    websocket js error on close + shadow service

    jimmy.pannier

      When i stop my server i got an error. see attached image.

       

      Moreover, i'm unable to get shadow service working.

       

      ************************************************

      @Remote

      public interface IWelcomeService {

      public String sayHello(String name);

      }

       

      ************************************************

       

      @org.jboss.errai.bus.server.annotations.ShadowService

      public class ShadowService implements IWelcomeService {

       

        @Override

        public String sayHello(String name) {

          return "hello offline";

        }

      }

       

      ************************************************


      @Inject

        Caller<IWelcomeService> remoteService;

       

      newOrderButton.addClickHandler(new ClickHandler() {

       

       

        @Override

        public void onClick(ClickEvent event) {

        remoteService.call(new RemoteCallback<String>() {

       

       

        @Override

        public void callback(String response) {

        Window.alert(response);

        }

        }).sayHello("Jimmy");  ----> it does nothing !

       

       

        navigation.goTo(NewOrderPage.class);

        }

        });