ERROR: The serialization policy file 'xxx.gwt.rpc' was not found; did you forget to include it in this deployment?

840 views
Skip to first unread message

Magnus

unread,
Dec 27, 2017, 4:29:55 AM12/27/17
to GWT Users
Hello,

I am reorganizing some maven GWT projects, i. e. moving common code out of app projects into libraries and so on. Until now, I have moved only classes from the shared directory. I did not touch the server-side code yet.

However, I am actually getting this error when I select "Debug As -> GWT Development mode with Jetty" in eclipse:

2017-12-27 10:13:04.813:INFO:/:qtp1139566718-80: EventServlet: ERROR: The serialization policy file '/apl/639E49884D8207D25E3A7CFF4491F8C9.gwt.rpc' was not found; did you forget to include it in this deployment?

(see the complete output below)

There are several servlets defined in the web.xml, but only for this one (EventServlet) the error is shown. I have not touched the servlets and the web.xml. I have also cleaned and rebuild the project.
How can I solve this?

Thanks
Magnus



Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, /home/warker/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT, -logLevel, INFO, -style, OBFUSCATED, msm.app.bcs.Application]
Super Dev Mode starting up
   workDir: /tmp/gwt-codeserver-4155472912936236704.tmp
2017-12-27 10:12:47.520:INFO::main: Logging initialized @12837ms
   Loading Java files in msm.app.bcs.Application.
   Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
   Module setup completed in 16947 ms
2017-12-27 10:12:57.711:INFO:oejs.Server:main: jetty-9.2.14.v20151106
2017-12-27 10:12:57.853:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@4b8c6dbc{/,null,AVAILABLE}
2017-12-27 10:12:57.987:INFO:oejs.ServerConnector:main: Started ServerConnector@49b6177a{HTTP/1.1}{127.0.0.1:9876}
2017-12-27 10:12:57.987:INFO:oejs.Server:main: Started @23305ms

The code server is ready at http://127.0.0.1:9876/
Code server started in 17.90 s ms
2017-12-27 10:12:58.446:INFO:oejs.Server:main: jetty-9.2.14.v20151106
Starting Jetty on port 8888
   [WARN] ServletContainerInitializers: detected. Class hierarchy: empty
2017-12-27 10:13:01.961:INFO:oejsh.ContextHandler:main: Started c.g.g.d.s.j.WebAppContextWithReload@2a1076b5{/,file:/home/warker/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT/,AVAILABLE}{/home/warker/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT}
2017-12-27 10:13:01.965:INFO:oejs.ServerConnector:main: Started ServerConnector@9443150{HTTP/1.1}{127.0.0.1:8888}
2017-12-27 10:13:01.968:INFO:oejs.Server:main: Started @27285ms
UpdateService: startup
2017-12-27 10:13:04.813:INFO:/:qtp1139566718-80: EventServlet: ERROR: The serialization policy file '/apl/639E49884D8207D25E3A7CFF4491F8C9.gwt.rpc' was not found; did you forget to include it in this deployment?
2017-12-27 10:13:04.814:INFO:/:qtp1139566718-80: EventServlet: WARNING: Failed to get the SerializationPolicy '639E49884D8207D25E3A7CFF4491F8C9' for module 'http://127.0.0.1:8888/apl/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result.
[WARN] Server class 'junit.framework.AssertionFailedError' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/warker/.m2/repository/junit/junit/4.11/junit-4.11.jar' to the web app classpath for this session
DBS CONSTRUCTION

Magnus

unread,
Dec 27, 2017, 7:25:19 PM12/27/17
to GWT Users
Hello,

here are some additional findings:

  • The error message only appears when launching the project within eclipse. I don't see any errors when launching the project with "mvn gwt:devmode".

  • The CodeServer runs with different parameters when started from within eclipse and when started from commandline

    • eclipse:
      Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, /home/wagner/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT, -logLevel, INFO, -style, OBFUSCATED, msm.app.bcs.Application]

    • commandline: mvn gwt:devmode
      Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -workDir, /home/wagner/dvl/prj/msm/msm-app-bcs/target/gwt/devmode/work, -launcherDir, /home/wagner/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT, -logLevel, INFO, -style, OBFUSCATED, msm.app.bcs.Application]     

The launcherDir and worDir parameters show signifant differences, but I cannot tell if that is related to the error message.

This problem may be specific to my environment. I don't expect a straight solution, but I would appreciate any hints.
What can I check, where should I look at. Where to go from here?

Thanks
Magnus



Reply all
Reply to author
Forward
0 new messages