Hi David, For your last remark:
*Another one is that you seem to want to use java introspection to dynamically load classes in GWT, which is not supported (Class.forName). * I think it's not a pb because this part is executed on the server side and all Java in this case is available. Thanks for your help Antonio Le mer. 13 oct. 2021 à 12:03, David Nouls <[email protected]> a écrit : > > I see multiple problems with your code. The most important being that you > are ignoring the fact that an rpc call is asynchronous. So the load method > will ralways return null because the request has not been executed when the > method returns. > > Another problem is the fact that the async is returning List<Object>, > which would mean gwt needs to generate serializers for all object types in > you application at compile time. > > Another one is that you seem to want to use java introspection to > dynamically load classes in GWT, which is not supported (Class.forName). > On 13 Oct 2021, 09:58 +0200, Guillen Antonio <[email protected]>, > wrote: > > HI all, > > I am not comfortable with client-server and RPC and HTTPServlet operation > at all. > I get the following message after my request: > > > > > > > > > > > > > > > > > > > > > > > > > *200 - POST /spotgwt/spotData (127.0.0.1) 496 bytes Request headers > Host: 127.0.0.1:8887 <http://127.0.0.1:8887> User-Agent: > Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 > Firefox/92.0 Accept: */* Accept-Language: > fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate > Content-Type: text/x-gwt-rpc; charset=utf-8 X-GWT-Permutation: > A082E84D087467DED16699006D694A7B X-GWT-Module-Base: > http://127.0.0.1:8887/spotgwt/ <http://127.0.0.1:8887/spotgwt/> > Content-Length: 228 Origin: http://127.0.0.1:8887 > <http://127.0.0.1:8887> DNT: 1 Connection: keep-alive > Referer: http://127.0.0.1:8887/SpotGWT.html > <http://127.0.0.1:8887/SpotGWT.html> Sec-Fetch-Dest: empty > Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin Response headers > Date: Wed, 13 Oct 2021 07:40:08 GMT Content-Encoding: gzip > Content-Length: 496 Content-Type: application/json; charset=utf-8 > Content-Disposition: attachment* > > Can you tell me what this means. Because at first glance I understand that > my request is successful, and the content of the response is in a zip and > that the length of the zip is 496 bytes in json format. Attachment ????? > > The problem is that my RPC call tells me that it has failed in the > following piece of code: > > > <image.png> > I look forward to your reply. > Thanks a lot for your help > Antonio > > -- > You received this message because you are subscribed to the Google Groups > "GWT Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit/CAKULUq_jF_Z96s43u_Gm7Z6omqU6H7fQ8758DmTX8yavu1mBMg%40mail.gmail.com > <https://groups.google.com/d/msgid/google-web-toolkit/CAKULUq_jF_Z96s43u_Gm7Z6omqU6H7fQ8758DmTX8yavu1mBMg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to the Google Groups > "GWT Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit/48970e18-bc80-4df0-b8d7-84adde1c63cb%40Spark > <https://groups.google.com/d/msgid/google-web-toolkit/48970e18-bc80-4df0-b8d7-84adde1c63cb%40Spark?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKULUq9StShWVmmRKvDqccgoqE670BNcSHfdkz-5b5EmTuxNpw%40mail.gmail.com.
