gwt-hosted-mode

GWT + Spring hosted mode not working

▼魔方 西西 提交于 2019-12-11 01:29:36
问题 I have a following problem, probably somebody can help me? I had an Spring MVC application, quite basic one, with a few simple jsp pages. Also I had an Spring Security integrated with it. Now I need to add some GWT widget to one page. No problem so far, I've added <div> to the page, added GWT module, all all needed GWT logic. When I compile GWT and then deploy application to tomcat - everything works perfectly, I open app, login into it, open my page and see GWT UI components. Now I want to

What is the GWT byte-cache file?

随声附和 提交于 2019-12-08 19:07:02
问题 As a background, today, my GWT hosted mode runs just mysteriously slowed down to the extent that it is virtually not working. Whenever I pause the application the relevant threads (the main thread, the code server, etc.) are waiting on some file I/O native method. After scratching my head for a while I tried to clean up my hard disk a bit. Then I just discovered in my user's Temp folder a 4 gigabyte file named gwt7155307955598297091byte-cache . I wonder what this file may be good for, and

How to automatically append gwt.codesvr to page URL

限于喜欢 提交于 2019-12-07 16:06:56
问题 When running a GWT application in hosted mode one usually needs to add the location of the code server in a query string parameter, for example instead of index.html one may need to open index.html?gwt.codesvr=127.0.0.1:9997 . The problem is that gwt.codesvr is not usually included in hyperlinks, so it has to be added manually. Adding it to all links in your application does not seem a good idea as it will interfere with the final GWT-compiled version. Another option is for index.html to

How to automatically append gwt.codesvr to page URL

丶灬走出姿态 提交于 2019-12-06 03:09:20
When running a GWT application in hosted mode one usually needs to add the location of the code server in a query string parameter, for example instead of index.html one may need to open index.html?gwt.codesvr=127.0.0.1:9997 . The problem is that gwt.codesvr is not usually included in hyperlinks, so it has to be added manually. Adding it to all links in your application does not seem a good idea as it will interfere with the final GWT-compiled version. Another option is for index.html to introspect itself by JavaScript and append a default gwt.codesvr to window.location , but this should be

gwt serialization policy hosted mode out of sync

旧城冷巷雨未停 提交于 2019-11-30 20:04:08
When running my GWT application (gwt 2.0.4) in hosted mode, calling RPC methods running on remote Tomcat, I get GWT serialization exception: INFO: GwtRpcEventSrvc: ERROR: The serialization policy file '/84EC7BA65AF8175BAA99B47877FDE163.gwt.rpc' was not found; did you forget to include it in this deployment? SEVERE: GwtRpcEventSrvc: WARNING: Failed to get the SerializationPolicy '84EC7BA65AF8175BAA99B47877FDE163' for module 'http://host:19980/MYAPP/'; a legacy, 1.3.3 compatible, serialization policy will be used. Youmay experience SerializationExceptions as a result. SEVERE: Exception while

Something other than an int was returned from JSNI method

风格不统一 提交于 2019-11-30 06:45:28
I am running a GWT application in hosted mode. Sporadically I get a strange HostedModeException complaining about the type of the JS value returned from JSNI. Sometimes it is during deserialization: com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader::readInt()': JS value of type boolean, expected int at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144) at com.google.gwt.dev.shell

gwt serialization policy hosted mode out of sync

℡╲_俬逩灬. 提交于 2019-11-30 04:03:41
问题 When running my GWT application (gwt 2.0.4) in hosted mode, calling RPC methods running on remote Tomcat, I get GWT serialization exception: INFO: GwtRpcEventSrvc: ERROR: The serialization policy file '/84EC7BA65AF8175BAA99B47877FDE163.gwt.rpc' was not found; did you forget to include it in this deployment? SEVERE: GwtRpcEventSrvc: WARNING: Failed to get the SerializationPolicy '84EC7BA65AF8175BAA99B47877FDE163' for module 'http://host:19980/MYAPP/'; a legacy, 1.3.3 compatible, serialization

Something other than an int was returned from JSNI method

戏子无情 提交于 2019-11-29 06:10:42
问题 I am running a GWT application in hosted mode. Sporadically I get a strange HostedModeException complaining about the type of the JS value returned from JSNI. Sometimes it is during deserialization: com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader::readInt()': JS value of type boolean, expected int at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266