gwt-rpc

How to handle session expired exception in Spring MVC-Spring Security app for GWT RPC calls

僤鯓⒐⒋嵵緔 提交于 2019-12-04 11:50:19
I have Spring MVC application where security is handled by Spring Security. UI is built using GWT which gets the data from server using RPC approach. I need to handle on UI the situation when session is expired: For example RPC AsyncCallback can get SessionExpiredException type of exception and popup the window with message like "You session is expired, please click the refresh link" or something. Did someone deal with such problem? Thanks. I suppose that for processing of incoming GWT call you use some Spring MVC controller or some servlet. It can have following logic try{ // decode payload

How can I keep GWT from trying to include every serializable class when I use ArrayList

﹥>﹥吖頭↗ 提交于 2019-12-04 11:04:40
问题 I have an RPC service in GWT that needs to return a List. The List can be filled with various types of objects, all of which are serializable and all of are referenced elsewhere in my service so they should be available to GWT RPC. However, unless I put on a generic type parameter (e.g. ArrayList<String> ), GWT gives me the warning: Return type: java.util.ArrayList java.util.ArrayList Verifying instantiability java.util.ArrayList [WARN] Checking all subtypes of Object which qualify for

GWT RPC - Does it do enough to protect against CSRF?

流过昼夜 提交于 2019-12-04 10:33:37
问题 UPDATE : GWT 2.3 introduces a better mechanism to fight XSRF attacks. See http://code.google.com/webtoolkit/doc/latest/DevGuideSecurityRpcXsrf.html GWT's RPC mechanism does the following things on every HTTP Request - Sets two custom request headers - X-GWT-Permutation and X-GWT-Module-Base Sets the content-type as text/x-gwt-rpc; charset=utf-8 The HTTP request is always a POST, and on server side GET methods throw an exception (method not supported). Also, if these headers are not set or

GWT-RPC and the infamous sporadic “StatusCodeException: 0” exception revisited

青春壹個敷衍的年華 提交于 2019-12-04 04:25:14
My problem is the infamous "StatusCodeException: 0" problem happening when using GWT 2.6.1 when accessing page via subdomain https://sub.site.com/ . Now, this happens quite sporadically for one customer using IE11 and I can't reproduce this from several distinct computers using IE11, IE10, IE9 or IE8 (not to talk about Chrome or Firefox). Accessing exactly the same webapp from https://site.com/ seems to work fine for that customer. This obviously lead me to conclusion that I'm having problem with Same Origin Policy . What is strange though is that my webapp is designed in the way that no cross

GWT - occasional com.google.gwt.user.client.rpc.SerializationException

痞子三分冷 提交于 2019-12-03 17:57:41
问题 we are haunted by occasional occurences of exceptions such as: com.google.gwt.user.client.rpc.SerializationException: Type 'xxx' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: instance = xxx at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:610) at com.google.gwt.user.client.rpc.impl

Getting com.google.gwt.user.client.rpc.StatusCodeException: 0 in GWT

▼魔方 西西 提交于 2019-12-03 12:32:31
I sometimes/often get this Exception in GWT but don't know why: SEVERE: com.google.gwt.user.client.rpc.StatusCodeException: 0 java.lang.RuntimeException: com.google.gwt.user.client.rpc.StatusCodeException: 0 at Unknown.java_lang_RuntimeException_RuntimeException__Ljava_lang_Throwable_2V(Unknown Source) at Unknown.de_ctech24_simplynews_web_client_util_SimpleCallback_$onFailure__Lde_ctech24_simplynews_web_client_util_SimpleCallback_2Ljava_lang_Throwable_2V(Unknown Source) at Unknown.com_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_$onResponseReceived__Lcom_google_gwt_user_client_rpc

Is GWT's RPC different from AJAX?

此生再无相见时 提交于 2019-12-03 06:57:17
How is GWT (Google Web Toolkit)'s RPC (Remote Procedure Call)'s for Asynchronous operations from browser/javascript to server is DIFFERENT or SIMILAR when compared to the AJAX calls ? If they are different, could someone help me understand how they are different ? I also heard that this RPC implementation does not works with all Server containers. For example, the GWT project did not work in Apache Tomcat. Moreover, is this RPC a an custom implementation of Google , or is it a standard implementation ? 1) GWT RPC uses AJAX to allow Data transfer for GWT applications. 2) GWT RPC abstracts out

GWT RPC - Does it do enough to protect against CSRF?

独自空忆成欢 提交于 2019-12-03 06:17:59
UPDATE : GWT 2.3 introduces a better mechanism to fight XSRF attacks. See http://code.google.com/webtoolkit/doc/latest/DevGuideSecurityRpcXsrf.html GWT's RPC mechanism does the following things on every HTTP Request - Sets two custom request headers - X-GWT-Permutation and X-GWT-Module-Base Sets the content-type as text/x-gwt-rpc; charset=utf-8 The HTTP request is always a POST, and on server side GET methods throw an exception (method not supported). Also, if these headers are not set or have the wrong value, the server fails processing with an exception "possibly CSRF?" or something to that

How can I keep GWT from trying to include every serializable class when I use ArrayList

☆樱花仙子☆ 提交于 2019-12-03 06:03:32
I have an RPC service in GWT that needs to return a List. The List can be filled with various types of objects, all of which are serializable and all of are referenced elsewhere in my service so they should be available to GWT RPC. However, unless I put on a generic type parameter (e.g. ArrayList<String> ), GWT gives me the warning: Return type: java.util.ArrayList java.util.ArrayList Verifying instantiability java.util.ArrayList [WARN] Checking all subtypes of Object which qualify for serialization` Adding '465' new generated units Essentially, I just want a way to declare List or ArrayList

GWT and Google Cloud Endpoints

假装没事ソ 提交于 2019-12-03 02:11:32
问题 A few days ago I've started developing a Backend for Mobile Applications using Google App Engine and Google Cloud Endpoints. This tutorial shows how the endpoints are getting generated automatically, as well as the client library for Android. So we have our Entity: @Entity public class Person implements IsSerializable{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; private String name; //... } And the endpoint for this class: @Api(name = "personendpoint") public