How to resolve IncompatibleRemoteServiceException in GWT?

I created a new GWT project through the Eclipse plugin and am just trying to call this function on the server side. I deleted the initial “welcome” function that was generated by the generated code and replaced it with another function “QueryResponse search (QueryRequest query)). But then I get this error when the client calls this function. It seems to me, although the generated function is“ welcome "generated somewhere inside the GWT SDK. Help!

Starting Jetty on port 8888
[WARN] greetServlet: 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. ( Could not locate requested method 'greetServer(com.myproject.shared.QueryRequest)' in interface 'com.myproject.client.GreetingService' )
    at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:310)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:206)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

EDIT: , . , . , , ​​. , onmodule - . . , . - , - , . , . .

+2
3

, , WEB-INF\, .

, C:\Users...\AppData\Local\Temp, GWT.

+5

, , : , , , . , JS . , , . : . chrome crtl-f5 f5 firefox ctrl-R.

0

I initialized the GWT project using Maven ( https://gwt-maven-plugin.imtqy.com/gwt-maven-plugin/ ). After restoring the Maven project, the problem disappeared. There were apparently some outdated files causing conflicts.

0
source

All Articles