Note that there are some explanatory texts on larger screens.

plurals
  1. POgwt-syncproxy can't connect to the address
    text
    copied!<p>i'm writing a java project in GWT in eclipse of a car rental agency . I need to trade info between 2 agencies(server), like the lists of the cars available for rent , and i got suggested to use the <i>gwt-syncproxy</i> . Description from the site:</p> <blockquote> <p>GWT SyncProxy provides synchronous RPC between Java client and RemoteService servlet. By using SyncProxy, we can invoke the GWT RemoteService methods from pure Java (no JSNI) code.</p> </blockquote> <p>I've followed the official guide(also the only one on the net) <a href="https://code.google.com/p/gwt-syncproxy/" rel="nofollow">https://code.google.com/p/gwt-syncproxy/</a> but it doesn't work: a message in the browser says: <i></p> <p>Plugin failed to connect to Development Mode server at 127.0.0.1:9997 Follow the underlying troubleshooting instructions</i></p> <p>(the address i've specified in java client code) <b>project.java</b></p> <pre><code> //create new proxy instance for the service interface: private static GreetingService rpcService = SyncProxy.newProxyInstance(GreetingService.class, "http://127.0.0.1:9997", "greet"); //invoke the RPC method: String result = rpcService.greetServer("SyncProxy"); </code></pre> <p>This is <strong>GreetingService.java</strong>:</p> <pre><code> @RemoteServiceRelativePath("greet") public interface GreetingService extends RemoteService { String greetServer(String name); } </code></pre> <p>and the service implementation <strong>GreetingServiceImpl.java</strong>:</p> <pre><code> public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { public String greetServer(String name) { return "Hello, " + name; } } </code></pre> <p>What am i doing wrong? Is there a better way to get to do RPC in lan between different servers? (i got no error in the log file and eclipse console)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload