Package com.google.gwt.user.client.rpc

Examples of com.google.gwt.user.client.rpc.ServiceDefTarget$NoServiceEntryPointSpecifiedException


        }
      } catch (NullPointerException e) {
        locale = null;
      }
      service = (GeomajasServiceAsync) GWT.create(GeomajasService.class);
      ServiceDefTarget endpoint = (ServiceDefTarget) service;
      String moduleRelativeURL = GWT.getModuleBaseURL() + "geomajasService";
      endpoint.setServiceEntryPoint(moduleRelativeURL);
    }
  }
View Full Code Here


    locale = LocaleInfo.getCurrentLocale().getLocaleName();
    if ("default".equals(locale)) {
      locale = null;
    }
    service = (GeomajasServiceAsync) GWT.create(GeomajasService.class);
    ServiceDefTarget endpoint = (ServiceDefTarget) service;
    String moduleRelativeURL = GWT.getModuleBaseURL() + "geomajasService";
    endpoint.setServiceEntryPoint(moduleRelativeURL);
    setUseLazyLoading(true);
    setShowError(true);
  }
View Full Code Here

    // Add it to the root panel.
    RootPanel.get().add(panel);

    final SldGwtServiceAsync service = GWT.create(SldGwtService.class);
    ServiceDefTarget endpoint = (ServiceDefTarget) service;
    endpoint.setServiceEntryPoint(GWT.getHostPageBaseURL() + "d/sld");
    service.findAll(new AsyncCallback<List<String>>() {

      public void onSuccess(List<String> result) {
        GWT.log("got " + result.size() + " SLDs");
        for (String name : result) {
View Full Code Here

      callback.onFailure(new Exception("An error has occured."));
    } else if (rpcMode) {
      // Create the service if needed
      if (dataService == null) {
        dataService = GWT.create(DataSourceService.class);
        ServiceDefTarget endpoint = (ServiceDefTarget) dataService;
        String moduleRelativeURL = GWT.getModuleBaseURL() + "datasource";
        endpoint.setServiceEntryPoint(moduleRelativeURL);
      }

      // Send RPC request for data
      dataService.requestRows(request,
          new AsyncCallback<SerializableResponse<Serializable>>() {
View Full Code Here

     */
    protected void initServices() {

        schoolService = (GWTSchoolServiceAsync) GWT
                .create(GWTSchoolService.class);
        ServiceDefTarget endpoint = (ServiceDefTarget) schoolService;

        String pre = Interactive.getRelativeURL("service/");

        endpoint.setServiceEntryPoint(pre + "schoolService");

        userService = (GWTUserServiceAsync) GWT
                .create(GWTUserService.class);
        ServiceDefTarget endpointUser = (ServiceDefTarget) userService;
        endpointUser.setServiceEntryPoint(pre + "userService");

        if (schoolService == null || userService == null) {
            Log.error("Service was null.");
        }

View Full Code Here

  public RemoteLogHandler() {
    this((RemoteLoggingServiceAsync) GWT.create(RemoteLoggingService.class));
  }

  public RemoteLogHandler(RemoteLoggingServiceAsync service) {
    ServiceDefTarget target = (ServiceDefTarget) service;
    target.setServiceEntryPoint(GWT.getModuleBaseURL() + "logging");
    this.service = service;

    this.callback = new DefaultCallback();
  }
View Full Code Here

  private RuntimeException failure;
  private RemoteLoggerServiceAsync service;

  public RemoteLogger() {
    service = (RemoteLoggerServiceAsync) GWT.create(RemoteLoggerService.class);
    final ServiceDefTarget target = (ServiceDefTarget) service;
    target.setServiceEntryPoint(GWT.getModuleBaseURL() + "gwt-log");

    callback = new AsyncCallback() {
      public void onFailure(Throwable ex) {
        if (failure == null) {
          failure = new RuntimeException(
              "Remote logging will be suspended due to communication failure with "
                  + GWT.getTypeName(service) + " at " + target.getServiceEntryPoint(), ex);
        }
      }

      public void onSuccess(Object result) {
      }
View Full Code Here

  private static void _getService() {
    String moduleRelativeURL = GWT.getModuleBaseURL() + "orrService";
    Orr.log("ORR: Getting " + moduleRelativeURL + " ...");
    service = (OrrServiceAsync) GWT.create(OrrService.class);
    ServiceDefTarget endpoint = (ServiceDefTarget) service;
    endpoint.setServiceEntryPoint(moduleRelativeURL);
    Orr.log("ORR:    orrService " + service);
  }
View Full Code Here

   * GreetingService and verify the response.
   */
  public void testGreetingService() {
    // Create the service that we will test.
    GreetingServiceAsync greetingService = GWT.create(GreetingService.class);
    ServiceDefTarget target = (ServiceDefTarget) greetingService;
    target.setServiceEntryPoint(GWT.getModuleBaseURL() + "XBRLMiner/greet");

    // Since RPC calls are asynchronous, we will need to wait for a response
    // after this test method returns. This line tells the test runner to wait
    // up to 10 seconds before timing out.
    delayTestFinish(10000);
View Full Code Here

  public RemoteLoggerImpl() {
    if (!GWT.isClient()) {
      throw new UnsupportedOperationException();
    }
    service = (RemoteLoggerServiceAsync) GWT.create(RemoteLoggerService.class);
    final ServiceDefTarget target = (ServiceDefTarget) service;
    String serviceEntryPointUrl = config.serviceEntryPointUrl();
    if (serviceEntryPointUrl != null) {
      target.setServiceEntryPoint(serviceEntryPointUrl);
    }

    callback = new AsyncCallback<ArrayList<LogRecord>>() {

      public void onFailure(Throwable ex) {
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.rpc.ServiceDefTarget$NoServiceEntryPointSpecifiedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.