Hi all
I am learning GWT
i am tryin RPC
previously with one AsyncInterface my Project was working fine but today, after some changes and adding async classcall is not executed. The exception is "This application is out of date, please click the refresh button on your browser." all other async calls are executed.
previously with one AsyncInterface my Project was working fine but today, after some changes and adding async classcall is not executed. The exception is "This application is out of date, please click the refresh button on your browser." all other async calls are executed.
My GWT Project was working fine but today, after some changes and adding new fetures one
async call is not executed. The exception is "This application is out
of date, please click the refresh button on your browser." all other
async calls are executed.
async call is not executed. The exception is "This application is out
of date, please click the refresh button on your browser." all other
async calls are executed.
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)
Client :
public void onClick(ClickEvent event) {
fService.getRepositories(repocallback);
}
});
fService.getRepositories(repocallback);
}
});
Interface
@RemoteServiceRelativePath("init")
public interface FInterface extends RemoteService{
FCollection getRepositories();
}
public interface FInterface extends RemoteService{
FCollection getRepositories();
}
AsyncInterface
public interface FInterfaceAsync {
void getRepositories(AsyncCallback<FCollection> repositoryCallback);
}
Service
void getRepositories(AsyncCallback<FCollection> repositoryCallback);
}
Service
public class FService implements FInterfaceAsync {
FInterfaceAsync service =(FInterfaceAsync)GWT.create(FInterface.class);
ServiceDefTarget endpoint = (ServiceDefTarget) service;
public FService(){
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + "init");
}
}
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() {
}
}
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>
Somebody help me to fix this problem.
Thanks
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment