mio GWT progetto stava lavorando bene, ma oggi, dopo alcune modifiche e l'aggiunta di nuove fetures una chiamata asincrona non viene eseguita. L'eccezione è "Questa applicazione è fuori di data, fare clic sul pulsante Aggiorna sul browser." tutte le altre chiamate asincrone vengono eseguite.IncompatibleRemoteServiceException: Questa applicazione non è aggiornata, fare clic sul pulsante di aggiornamento del browser
An IncompatibleRemoteServiceException was thrown while processing this call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. (Blocked attempt to access interface 'com.client.FInterface', which is not implemented by 'com.server.FServiceImpl'; this is either misconfiguration or a hack attempt)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:252)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:206)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
Cliente:
public void onClick(ClickEvent event) {
fService.getRepositories(repocallback);
}
});
interfaccia
@RemoteServiceRelativePath("init")
public interface FInterface extends RemoteService{
FCollection getRepositories();
}
AsyncInterface
public interface FInterfaceAsync {
void getRepositories(AsyncCallback<FCollection> repositoryCallback);
}
Servizio
public class FService implements FInterfaceAsync {
FInterfaceAsync service =(FInterfaceAsync)GWT.create(FInterface.class);
ServiceDefTarget endpoint = (ServiceDefTarget) service;
public FService(){
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + "init");
}
}
Server
public class FServiceImpl extends RemoteServiceServlet implements FInterface {
public FilnetFolderCollection getRepositories() {
}
}
XML:
<servlet>
<servlet-name>FServlet</servlet-name>
<servlet-class>com.server.FServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FServlet</servlet-name>
<url-pattern>/FServiceImpl</url-pattern>
</servlet-mapping>
Qualcuno mi aiuti a risolvere questo problema.
@Hibrand Bouwkamp http://stackoverflow.com/a/9531020/1046176 – NewCodeLearner