{"action":"created","issue":{"url":"https://api.github.com/repos/simplicityitself/grails-gwt/issues/62","labels_url":"https://api.github.com/repos/simplicityitself/grails-gwt/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/simplicityitself/grails-gwt/issues/62/comments","events_url":"https://api.github.com/repos/simplicityitself/grails-gwt/issues/62/events","html_url":"https://github.com/simplicityitself/grails-gwt/issues/62","id":65915003,"number":62,"title":"Serialization problems: RPC support for normal Java RPC","user":{"login":"oniseijin","id":80143,"avatar_url":"https://avatars.githubusercontent.com/u/80143?v=3","gravatar_id":"","url":"https://api.github.com/users/oniseijin","html_url":"https://github.com/oniseijin","followers_url":"https://api.github.com/users/oniseijin/followers","following_url":"https://api.github.com/users/oniseijin/following{/other_user}","gists_url":"https://api.github.com/users/oniseijin/gists{/gist_id}","starred_url":"https://api.github.com/users/oniseijin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oniseijin/subscriptions","organizations_url":"https://api.github.com/users/oniseijin/orgs","repos_url":"https://api.github.com/users/oniseijin/repos","events_url":"https://api.github.com/users/oniseijin/events{/privacy}","received_events_url":"https://api.github.com/users/oniseijin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T12:25:16Z","updated_at":"2015-04-03T00:08:35Z","closed_at":null,"body":"\r\n\r\nNot sure if this is a grails problem, a plugin problem, or a problem in my head, but for the life of me I cannot get RPC working with Java RPC and GWT in grails. \r\n\r\nCaused by SerializationException: Type 'com.sencha.gxt.data.shared.loader.PagingLoadConfigBean' [This is seralizable though, and working in their example]\r\n\r\nThis happens with 1.0.3 (earlier) and the 2.0-SNAPSHOT that @donbeave made. This makes me wonder if it's possible (and what magic was presumably done to get it working as a Grails Service). The base project is the GXT 3.1.1 Explorer.  \r\n\r\n1. In the generated war, I get an error that the RPC is not found: ERROR: The serialization policy file '/static/js/gwt/explorer/954B65F9DE429170F90997B93C81F349.gwt.rpc' was not found; did you forget to include it in this deployment ->  it then gives a warning before the error: Failed to get the SerializationPolicy '954B65F9DE429170F90997B93C81F349' for module 'http://localhost:8181/static/js/gwt/explorer/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result. ->and then the above seralizable error comes\r\n1.1: Going directly to that url, the rpc file is found at http://localhost:8181/static/js/gwt/explorer/954B65F9DE429170F90997B93C81F349.gwt.rpc\r\n1. In code server mode, the .rpc files are not generated, which may not be an issue, but the same serialization issue happens \r\n\r\nTo me, it looks like something in the resources plugin gets in the way of finding the url.\r\n\r\nAfter a week, need some input to see what could be interfering. Refreshing caches does not work.\r\n\r\n![rpc](https://cloud.githubusercontent.com/assets/80143/6963885/deb14e74-d97e-11e4-8854-f48ed95e439b.png)\r\n"},"comment":{"url":"https://api.github.com/repos/simplicityitself/grails-gwt/issues/comments/89087584","html_url":"https://github.com/simplicityitself/grails-gwt/issues/62#issuecomment-89087584","issue_url":"https://api.github.com/repos/simplicityitself/grails-gwt/issues/62","id":89087584,"user":{"login":"oniseijin","id":80143,"avatar_url":"https://avatars.githubusercontent.com/u/80143?v=3","gravatar_id":"","url":"https://api.github.com/users/oniseijin","html_url":"https://github.com/oniseijin","followers_url":"https://api.github.com/users/oniseijin/followers","following_url":"https://api.github.com/users/oniseijin/following{/other_user}","gists_url":"https://api.github.com/users/oniseijin/gists{/gist_id}","starred_url":"https://api.github.com/users/oniseijin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oniseijin/subscriptions","organizations_url":"https://api.github.com/users/oniseijin/orgs","repos_url":"https://api.github.com/users/oniseijin/repos","events_url":"https://api.github.com/users/oniseijin/events{/privacy}","received_events_url":"https://api.github.com/users/oniseijin/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T00:08:35Z","updated_at":"2015-04-03T00:08:35Z","body":"Figured it out: in GWT: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/server/rpc/RemoteServiceServlet.java?r=5045\r\n\r\nthe file is opened with InputStream is = getServletContext().getResourceAsStream(\r\n          serializationPolicyFilePath);\r\n\r\nThe path on the server would be /js/gwt/explorer/954B65F9DE429170F90997B93C81F349.gwt.rpc, for it to work seamlessly, but the path passed in from the server side has /static in front of it, so definetly conflicts with resources plugin. Would need to either not use the resources plugin, or provide some custom implementation of RemoteServicesServlet, or something else in the chain. \r\n \r\n"}}