GWT RPC call not working after apply CSP and change GWT version 2.8.2

2024-03-27 Thread paparao rambuddi
i have applied below CSP policy and changed my GWT version to 2.8.2 after that i am getting below error for PRC call ( to read Database and populate the data in UI and save data to DB) and button click ( front validations , read data from DB ..etc). Error Details : java.lang.Exception:

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-26 Thread Vassilis Virvilis
Wrong thread. Sorry. Please ignore. On Wed, 26 Jul 2023, 20:26 Vassilis Virvilis, wrote: > Super sourcing is a hackish but very powerful tool. > I have used it to override some gwt widgets in order to expose or change > some private methods. > > Is this feature so difficult to be implemented? I

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-26 Thread Vassilis Virvilis
Super sourcing is a hackish but very powerful tool. I have used it to override some gwt widgets in order to expose or change some private methods. Is this feature so difficult to be implemented? I mean at that point J2CL looked like a cool upgrade when Google was standing behind GWT. But since it

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-26 Thread 'RobW' via GWT Users
As noted in the post - we didn't get around to trying Domino REST. By the time we discovered it, we'd already made the decision to stick with GWT-RPC and move on to other work. It's possible we'd revisit that, but we'd probably want to see some worked examples of how to transition from GWT-RPC

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-25 Thread Michael Conrad
Did y'all test DominoKit? It is actively maintained and has a REST module. I'm curious if you did test it what shortcomings you may have run into. On Tuesday, July 25, 2023 at 9:23:53 AM UTC-4 RobW wrote: > We got to a similar point. Looked in depth at moving the GWT front end to > a REST API

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-25 Thread 'RobW' via GWT Users
We got to a similar point. Looked in depth at moving the GWT front end to a REST API - but found two big drawbacks: 1. none of the frameworks we could find had async callback handling similar to GWT-RPC, with common interface classes client server side AND support JAX-RS

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-24 Thread Ralph Fiergolla
That is, as long as I stay within GWT there is no need to change (and loose type checking and convenience). I will happily stay with GWT RPC then! R Jens schrieb am Mo. 24. Juli 2023 um 18:24: > > I think I asked the question before: as a long-term GWT-RPC user, what > would be the benefit of

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-24 Thread Jens
I think I asked the question before: as a long-term GWT-RPC user, what would be the benefit of moving to some other RPC protocol/mechanism? Depends on your situation of course. If you want to use your existing backend with other clients written in other languages then GWT-RPC is a bad fit.

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-21 Thread Paul Robinson
>> We have one deployment of a GWT app where there is a Fortiweb firewall >> that blocks every GWT RPC call because it recognizes every call as a Java >> Method Injection attack. This seems to be caused by the presence of the >> pattern "java.lang." in the messages from the c

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-21 Thread Ralph Fiergolla
; > We have one deployment of a GWT app where there is a Fortiweb firewall > that blocks every GWT RPC call because it recognizes every call as a Java > Method Injection attack. This seems to be caused by the presence of the > pattern "java.lang." in the messages from the clie

Re: GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-21 Thread Thomas Broyer
On Friday, July 21, 2023 at 11:38:59 AM UTC+2 petr...@o3enterprise.com wrote: We have one deployment of a GWT app where there is a Fortiweb firewall that blocks every GWT RPC call because it recognizes every call as a Java Method Injection attack. This seems to be caused by the presence

GWT RPC call recognized as a Java Method Injection by Fortiweb

2023-07-21 Thread Giacomo Petronio
We have one deployment of a GWT app where there is a Fortiweb firewall that blocks every GWT RPC call because it recognizes every call as a Java Method Injection attack. This seems to be caused by the presence of the pattern "java.lang." in the messages from the client to the s

Re: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to 'com.google.gwt.user.clien

2020-03-25 Thread José Reis
Try using jdk, jre directly 1.8. Some of my issues disapeared after I switch from java13 to java8. On Monday, March 23, 2020 at 2:05:43 PM UTC-3, Ashi Dev wrote: > > Exception while dispatching incoming RPC call > com.google.gwt.user.client.rpc.SerializationExcept

Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to 'com.google.gwt.user.client.rp

2020-03-23 Thread 'Ashi Dev' via GWT Users
Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type

Logout then login error (Exception while dispatching incoming RPC call: javax.servlet.ServletException: Content-Type was '(null)'. Expected 'text/x-gwt-rpc'.)

2015-02-18 Thread gwtWorker
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/GlobalSolution]] (http--0.0.0.0-8080-6) Exception while dispatching incoming RPC call: javax.servlet.ServletException: Content-Type was '(null)'. Expected 'text/x-gwt-rpc'. at com.google.gwt.user.server.rpc.RPCServletUtils.checkContentTypeIgnoreCase

Re: Logout then login error (Exception while dispatching incoming RPC call: javax.servlet.ServletException: Content-Type was '(null)'. Expected 'text/x-gwt-rpc'.)

2015-02-18 Thread Jens
The exception itself is pretty clear: GWT-RPC checks if a GWT-RPC request has the HTTP header Content-Type: text/x-gwt-rpc. If GWT can not find that header or the header has no value then it throws the above exception. So in your setup something is messing up that HTTP header. So I guess you

Re: Exception while dispatching incoming RPC call

2014-04-24 Thread Davide Micheletti
it locally to tomcat 7 on my development machine. But it fails on my production server with the following error, ... SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server. rpc.RPC.encodeResponseForFailure(RPC.java:389

Re: Exception while dispatching incoming RPC call

2014-04-24 Thread Charles Nelson
// Throwable cause = e.getCause(); responsePayload = encodeResponseForFailure(serviceMethod, cause, serializationPolicy); } return responsePayload; } /** * Returns a string that encodes the results of an RPC call. Private overload * that takes a flag signaling

Re: Exception while dispatching incoming RPC call

2014-04-24 Thread Jens
The error I'm getting seems to suggest that there may be an issue with the serialization policy file. But if that is true then why doesn't it fail on my local machine? You should see a log entry saying that the serialization policy file could not be loaded. That log entry only appears

Re: Exception while dispatching incoming RPC call

2014-04-24 Thread Charles Nelson
I've tried manually setting the service URL with setServiceEntryPoint(URL), ensuring the ServletContext.getResource() call and overriding the RemoteServiceServlet.doGetSerializationPolicy() methods but my app still fails on my hosting company's server. And they aren't providing access to the

Re: Exception while dispatching incoming RPC call

2014-04-24 Thread Michael Joyner
On 04/24/2014 01:44 PM, Charles Nelson wrote: I've tried manually setting the service URL with setServiceEntryPoint(URL), ensuring the ServletContext.getResource() call and overriding the RemoteServiceServlet.doGetSerializationPolicy() methods but my app still fails on my hosting company's

Exception while dispatching incoming RPC call

2014-04-23 Thread Charles Nelson
I have an app that works perfectly in my development environment of eclipse/jetty. It also work fine when I deploy it locally to tomcat 7 on my development machine. But it fails on my production server with the following error, ... SEVERE: Exception while dispatching incoming RPC call

Re: Making an RPC call after a JSNI callback

2014-02-13 Thread RyanZA
You definitely don't want to be sending raw audio over the web to your server - it's huge. What you want to do is take that raw audio, convert it to an ogg or similar using something like https://github.com/muaz-khan/WebRTC-Experiment/tree/master/ffmpeg Then you'd take the ogg output and upload

Re: Making an RPC call after a JSNI callback

2014-02-13 Thread Steve
There's an exportWAV within Recorder.js which returns a blob (see below) which I could hold in a JavaScriptObject, would that be sufficient? however i still don't know how to send this object to the server and then allow other clients to retrieve the blob and play it. Are you suggesting that I

Re: Making an RPC call after a JSNI callback

2014-02-13 Thread Thomas Broyer
On Thursday, February 13, 2014 2:54:03 PM UTC+1, Steve wrote: There's an exportWAV within Recorder.js which returns a blob (see below) which I could hold in a JavaScriptObject, would that be sufficient? however i still don't know how to send this object to the server and then allow other

Making an RPC call after a JSNI callback

2014-02-12 Thread Steve
method storeAudioCallback to call a Java method StoreAudio which will pass the buffers object to the service by making an RPC call: public void StoreAudio(MyJSObject mjo) { AsyncCallbackVoid callback = new AsyncCallbackVoid() { public void onSuccess(Void result) { // do some UI stuff to show

Re: Making an RPC call after a JSNI callback

2014-02-12 Thread Thomas Broyer
the callback method storeAudioCallback to call a Java method StoreAudio which will pass the buffers object to the service by making an RPC call: public void StoreAudio(MyJSObject mjo) { AsyncCallbackVoid callback = new AsyncCallbackVoid() { public void onSuccess(Void result) { // do some UI stuff

Re: Making an RPC call after a JSNI callback

2014-02-12 Thread Steve
to the server? the MyJSObject class is my own class which extends JavaScriptObject and implements IsSerializable. When i manually call StoreAudio by creating an instance of MyJSObject just to test if the call is happening, it seems to work and the RPC call is made however its only when i'm making

Re: Making an RPC call after a JSNI callback

2014-02-12 Thread Steve
Would using a JSONObject to send the buffers to the server help? e.g. JSONObject jsonValue = new JSONObject(myJSObject); and then using the following to convert the JSON object back? JavaScriptObject jsObject = jsonValue.getJavaScriptObject(); -- You received this message because you are

Re: sending email in GWT project through RPC call

2013-12-28 Thread chrischris
html mail in GWT project through RPC call . the RPC method is invoked successfully, but when the code gets to the following line: Transport transport = mailSession.getTransport(smtp); I get javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp i have

Re: sending email in GWT project through RPC call

2013-12-28 Thread chrischris
a écrit : Hi, I am trying to send html mail in GWT project through RPC call . the RPC method is invoked successfully, but when the code gets to the following line: Transport transport = mailSession.getTransport(smtp); I get javax.mail.NoSuchProviderException: Unable to locate provider

Re: What is the simplest way to show “loading indicator” during an RPC call in GWTP?

2013-11-29 Thread Mike Dee
that the user can not click any things while data has not finished downloading yet. So here is what I am thinking. I want to show a DialogBox right before I make the RPC call hide it when the call finishes. Look at the below code: public class CustPresenter extends

What is the simplest way to show “loading indicator” during an RPC call in GWTP?

2013-11-28 Thread sportrider
I've successfully used the Scheduler. scheduleDeferred() method to show progress indicators. Launching such a thing shouldn't be done directly by the thread which is handling an event ie. Your code which is called once the page has loaded and which fires off the async RPC request. Note that I

What is the simplest way to show “loading indicator” during an RPC call in GWTP?

2013-10-26 Thread Tom
has not finished downloading yet. So here is what I am thinking. I want to show a DialogBox right before I make the RPC call hide it when the call finishes. Look at the below code: public class CustPresenter extends PresenterCustPresenter.MyView, CustPresenter.MyProxy { private

Re: What is the simplest way to show “loading indicator” during an RPC call in GWTP?

2013-10-26 Thread Tom
); } /** the failure method needed to be overwritte */ protected abstract void onCustomFailure(Throwable caught); /** overwritte to do something with result */ protected abstract void onCustomSuccess(T result); } To make RPC Call, simple use this: private

Re: GWT : exception when running incoming RPC call on EclipseLink

2013-08-28 Thread Thomas Broyer
on this exception : SEVERE: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void it.myProject.client.service.EmployeeService.createEmployee()' threw an unexpected exception

GWT : exception when running incoming RPC call on EclipseLink

2013-08-27 Thread luca ardizzoni
I'm writing a project with Eclipse using EclipseLink ,hsqldb and GWT . When I try a do a RPC I always get stuck on this exception : SEVERE: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method

Re: GWT : exception when running incoming RPC call on EclipseLink

2013-08-27 Thread Jens
Disable Google AppEngine in your project settings. If you plan to deploy your app on AppEngine then you can not use EclipseLink as JPA provider, only DataNucleus. In that case leave AppEngine enabled and check AppEngine documentation on how to use JPA with it. -- J. -- You received this

suggest box with rpc call - question

2013-08-26 Thread fedex
Hi everyone, I am placing an suggestbox on the front interface whhere upon typing any value or letter corresponding list matching to that letter needs to appear. I am using keydownhandler event to obtain this.As you can see the below code I am making an RPC call to obtain the list of data from

Re: only RPC call completes rest of my code should execute - how should I do it - very urgent please

2013-07-30 Thread Thad Humphries
. I am doing an RPC call to send the user selected values from the interface to the server. And on the server side I am storing these values in the http session variable. And I am retrieving these values in the servlet class which has a funtionality to write a data to csv file. Because

rpc call - static methods is not working

2013-07-29 Thread fedex
Hi everyone, I am trying to define a static method in the service interface to make an rpc call. But it doesn't allow me to do so. here I am pasting my code Client class public void sendDomesticData(String product,String dma,String yrmnths,String dist,String metrics) { String url

Re: rpc call - static methods is not working

2013-07-29 Thread fedex
sorry correction , at the end I mean the senddomesticdata method On Monday, July 29, 2013 2:17:17 PM UTC-5, fedex wrote: Hi everyone, I am trying to define a static method in the service interface to make an rpc call. But it doesn't allow me to do so. here I am pasting my code Client

Re: rpc call - static methods is not working

2013-07-29 Thread Jens
I tried changing all the senddomestic values to static but it won't allow me to do so? why? Because RemoteServiceServlet needs to invoke your service methods somehow and the implementation expects instance methods. But this shouldn't prevent you from assigning the method data to static

only RPC call completes rest of my code should execute - how should I do it

2013-07-29 Thread fedex
I am storing the values in the session by making an rpc call. So, to get the values of this first the rpc call has to omplete and there by i can get the sored values and write my own condition. I can I acheive this? What condition can I have to make sure that first RPC call completes

only RPC call completes rest of my code should execute - how should I do it - very urgent please

2013-07-29 Thread fedex
Hi everyone, I have an interface where the user selects the values and upon clicking the download button the selected values runs in the sql query and the obtained data is written to csv file. I am doing an RPC call to send the user selected values from the interface to the server

best way to attempt multiple times same RPC call

2013-07-17 Thread Bhumika Thaker
Hi, What is best way to attempt multiple time same RPC call? while RPC Call is getting failed. just example: In any case if RPC get fail due to network connection, it will catch in `onFailure(Throwable caught)`. Now here it should recall same rpc call again check network failure

Re: best way to attempt multiple times same RPC call

2013-07-17 Thread Bhumika Thaker
Some couple of thoughts like call same rpc call in onFailure but here request become different.but I want same request have a three request and it is not good approach and I don't know if any good solution for it. On Wednesday, 17 July 2013 15:27:15 UTC+5:30, Bhumika Thaker wrote: Hi, What

Re: best way to attempt multiple times same RPC call

2013-07-17 Thread Jens
You could transparently handle this for all your requests of a given GWT-RPC interface by using a custom RpcRequestBuilder. This custom RpcRequestBuilder would make 3 request attempts and if all 3 fail, calls the onFailure() method. MyRemoteServiceAsync service =

GWT-RPC call is throwing JavaScriptException for huge number of records

2013-06-07 Thread suga
Hi, My GWT-RPC call is working fine for some number records (around 600). But the same RPC call is throwing JavaScript Error for huge number of records. My server side call is returning/transferring ArrayofObject(MapItem[]) which contains around 20 attributes to client side. Error

Re: RPC call with android

2013-06-04 Thread Preethum Prithviraj
In the event anyone else still needs it, I just put out a 0.4 release for the SyncProxy system, which includes a separate Android library. It can always use more work, but I've got enough testing on it that for now, I believe it's stable for integration into the majority of projects needing

java.lang.RuntimeException: Unexpected failure when returning from an RPC call.

2013-05-01 Thread Mohammad Al-Quraian
I'm having this sudden and strange issue, when my RPC call tries to return the value, this exception is thrown: java.lang.RuntimeException: Unexpected failure It happens at this code of the GWT library: /** * Creates a new instance of {@code klass}. The class must have a no-arg

Re: java.lang.RuntimeException: Unexpected failure when returning from an RPC call.

2013-05-01 Thread Jens
The stack trace should tell you whats wrong. Looking at the code I would guess you have a class (that goes through RPC) without any default constructor. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group

Re: java.lang.RuntimeException: Unexpected failure when returning from an RPC call.

2013-05-01 Thread Mohammad Al Quraian
There's no stacktrace, it just calls the onFailure function on the client side, and prints: SEVERE: java.lang.RuntimeException: Unexpected failure When I break on the exception, the last relavent thing that I can see is the FieldSerializer of my class model. The weird thing is that I didn't

Re: java.lang.RuntimeException: Unexpected failure when returning from an RPC call.

2013-05-01 Thread Mohammad Al-Quraian
I figured out the issue, it was an assertion error mistake in my code. Sorry about the inconvenience. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

Detecting client connection closed with RPC call

2013-03-21 Thread Thomas Lefort
How could I detect a client connection has closed in my RPC server code? As far as I understand from the code, the RPC code (the one in the server side RPC method) will never see any of the exceptions thrown when sending the data, eg IOException... I would typically need this for long polls or

Re: Saving results from GWT-RPC call on client

2013-03-20 Thread Xi
/deserialization timing, ...), I would be very pleased to exchange with you. Hope this helps. Best regards. Xi Le mercredi 10 octobre 2012 07:13:20 UTC+2, JeanV a écrit : I was wondering if there's anyway to save the returned results from an RPC call to an HTML5 enabled browser

Re: Saving results from GWT-RPC call on client

2013-03-19 Thread JeanV
for other kinds of objects. Hope this helps. Regards, M On Wednesday, October 10, 2012 7:13:20 AM UTC+2, JeanV wrote: I was wondering if there's anyway to save the returned results from an RPC call to an HTML5 enabled browser. Basically the only way I have found would

Re: Saving results from GWT-RPC call on client

2013-03-19 Thread alucard
on objects in my project and might not be the case for other kinds of objects. Hope this helps. Regards, M On Wednesday, October 10, 2012 7:13:20 AM UTC+2, JeanV wrote: I was wondering if there's anyway to save the returned results from an RPC call to an HTML5 enabled browser

Re: Saving results from GWT-RPC call on client

2013-03-19 Thread monkeyboy
the returned results from an RPC call to an HTML5 enabled browser. Basically the only way I have found would be to convert the results into strings and use LocalStorage to save them to the browser. I guess my question then would be how can IsSerializable java objects be converted to a string

Re: RPC call in Activity onStop()

2013-03-05 Thread yves
Hi, Finally I didn't succeed to make an RPC call from the overridden AbstractActivity.onStop(). Actually the GWT doc says about onStop() : Called when the Activity's widget has been removed from view. I guess that all the RPC mechanisms is already destroyed because the server never get called

Re: RPC call in Activity onStop()

2013-03-05 Thread Milan Cvejic
Hey Yves, maybe you can hook and listen on PlaceChangeEvent. That event actually calls onStop(). So if that event is fired than you can execute your RPC call. Best, Milan On Tue, Mar 5, 2013 at 8:10 PM, yves yves.ko...@gmail.com wrote: Hi, Finally I didn't succeed to make an RPC call from

Re: RPC call in Activity onStop()

2013-03-05 Thread yves
The use case is when one is closing the browser or the tab or when navigating to another url, thus really quitting the GWT application, not just changing Place. I found that apparently in this case the ActivityManager.onPlaceChange(PlaceChangeEvent event) seems to be never called. And then

Re: RPC call with android

2013-03-03 Thread Preethum Prithviraj
I'd been needing something like this for a GAE based project I'm working on. Using the code from the gwt-syncproxy project, I created an Android library and I've got got a dev mode working mock up of an android client using GWT-RPC to the server and using the native android account system to

Re: RPC call in Activity onStop()

2013-02-21 Thread yves
Sorry for my late reaction. Indeed I don't need the callback, I just need to send a terminates message to the server to release some temporary work data. As it didn't worked, I removed this part of the code, so I can't give right now an example. But the fact is that the server didn't received

Re: RPC call in Activity onStop()

2013-02-21 Thread yves
Actually it is a subclass of AbstractActivity and onStop() is overridden. The fact the widget is being destroyed (? I am not sure of what really happens at this moment) could be the source of the problem because I have a lot of things to do during the onStop() call and something might go wrong

Re: RPC call in Activity onStop()

2013-02-21 Thread Milan Cvejic
Try to send request in mayStop method. It may work as widget is still not destroyed nor deatached. On Thursday, February 21, 2013 10:14:37 PM UTC+1, yves wrote: Actually it is a subclass of AbstractActivity and onStop() is overridden. The fact the widget is being destroyed (? I am not sure of

Re: RPC call in Activity onStop()

2013-02-19 Thread yves
Not any suggestion ? Thanks Yves Le dimanche 17 février 2013 23:47:12 UTC+1, yves a écrit : Hi, After a search on the net I didn't find an answer to this problem : I need to make an RPC call from the onStop() function in order to inform the server that the application is closing

Re: RPC call in Activity onStop()

2013-02-19 Thread Jens
I don't see why it should not work. You can do an RPC request in Activity.onStop() but you have to be aware of the fact that the activity will continue to stop while the request is pending. So your request's callback should not do anything that depends on the activity state or its view (which

Re: RPC call in Activity onStop()

2013-02-19 Thread K vfdsdfbsdb
hi. do you use onStop of Activiti interface? if you use it, it is call when it's wiget is clised. 2013/02/18 7:47 yves yves.ko...@gmail.com: Hi, After a search on the net I didn't find an answer to this problem : I need to make an RPC call from the onStop() function in order to inform

RPC call in Activity onStop()

2013-02-17 Thread yves
Hi, After a search on the net I didn't find an answer to this problem : I need to make an RPC call from the onStop() function in order to inform the server that the application is closing. Apprently this doesn't work : the server never gets RPC-called from onStop(). (I checked that onStop

Re: RPC call with android

2013-02-17 Thread Chii
I m expecting that both RequestFactory and gwt-rpc has less overhead than vanilla json (at least, in terms of bandwidth - not sure about cpu requirement differences between them), but if it turns out that neither works on android, then it would suck to have to switch to json. On Friday,

how to preload the result of an RPC call on the initial loading page

2013-01-07 Thread Chii
I have an gwt app that needs some initial data during load. I'd like to minimize the http calls the app makes, and this initial data is user specific, but doesn't change very much per user (imagine user preferences). I want to preload the result of the call onto the page (but i don't want a

Re: how to preload the result of an RPC call on the initial loading page

2013-01-07 Thread Thomas Broyer
On Monday, January 7, 2013 3:07:36 PM UTC+1, Chii wrote: I have an gwt app that needs some initial data during load. I'd like to minimize the http calls the app makes, and this initial data is user specific, but doesn't change very much per user (imagine user preferences). I want to

Re: using autobeans in a gwt-rpc call

2012-12-23 Thread RyanZA
Really great option if you have the flexibility to use it - use RESTful services - https://www.google.co.za/search?q=RESTful On the server side you can use Jersey(JAX-RS) to make REST services that can use POJOs to automatically map to JSON/XML - http://jersey.java.net/ and

Re: using autobeans in a gwt-rpc call

2012-12-23 Thread Cenk Oguz
Sounds interesting, RestyGwt means moving away from gwt-rpc and making the services accessible from non-gwt clients as I understand. Will look into it, thx! On Sun, Dec 23, 2012 at 3:26 PM, RyanZA rya...@gmail.com wrote: Really great option if you have the flexibility to use it - use RESTful

Re: using autobeans in a gwt-rpc call

2012-12-22 Thread Cenk Oguz
Ok i see. Still my pojos are so light weight it seems easier to go with gwt-rpc an regular pojos for now. On Fri, Dec 21, 2012 at 4:57 PM, Thomas Broyer t.bro...@gmail.com wrote: On Friday, December 21, 2012 1:17:08 PM UTC+1, Cenk Oguz wrote: Requestfactory is more for CRUD style

Re: using autobeans in a gwt-rpc call

2012-12-21 Thread Cenk Oguz
Requestfactory is more for CRUD style operations. Don't think it makes sense in our app as most operations are rpc in nature. Will probably go with using regular POJOs in this case. Thx! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Re: using autobeans in a gwt-rpc call

2012-12-21 Thread Xi
gwt-rpc call needs concrete class type to do the serialization. So the generated autobean proxy won' t be serialized. If you do want to send your autobean object to server side, you need to use com.google.gwt.http.client.RequestBuilder (client side) to send the encoded string to server side

Re: using autobeans in a gwt-rpc call

2012-12-21 Thread Thomas Broyer
On Friday, December 21, 2012 1:17:08 PM UTC+1, Cenk Oguz wrote: Requestfactory is more for CRUD style operations. That just plain wrong. The early drafts of RF were indeed CRUD-oriented, but the released versions never were, particularly with ValueProxy-s added in 2.1.1 (something like a

using autobeans in a gwt-rpc call

2012-12-20 Thread Cenk Oguz
I have a small application where I am using autobeans extensively both on server and gwt side. I have an issue though with gwt-rpc calls, autobeans are apparently not serializable which causes gwt to fail with: com.google.gwt.user.client.rpc.SerializationException: Type '$Proxy85' was not

Re: using autobeans in a gwt-rpc call

2012-12-20 Thread Goktug Gokdogan
If using gwt-rpc is not a necessity for your project, take a look at RequestFactoryhttps://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactorywhich works with AutoBeans. If you 'really' want to use GWT-RPC then you can define a 'holder' object and a

Re: GWT RPC CALL QUESTION

2012-11-25 Thread xxJohnnyxx
Thanks, solved my problem!! On Friday, November 23, 2012 2:45:53 PM UTC+1, xxJohnnyxx wrote: Hello, I tried to follow the RPC tutorial, but with my own class and project. So when it comes to the configuration of the xml file I get stuck. At the moment it looks like this: ?xml

Re: GWT RPC CALL QUESTION

2012-11-23 Thread Alberto Mancini
Hi, is'nt just the url-pattern capitalized ? url-patterndataTrader/DataTrader/url-pattern ^ WARNUNG: No file found for: /datatrader/DataTrader ^^^ Ciao, Alberto. On Fri, Nov 23, 2012 at 2:45 PM, xxJohnnyxx

Re: RPC call from server to client

2012-11-03 Thread Sebastian Rothbucher
by far and large, you'd have to poll (asynchronously) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/auWmyRAUf5AJ. To post to this group, send

Re: RPC call from server to client

2012-10-26 Thread Mike Dee
I wonder how this is done in Google Docs? The approach may be a bit of overkill for a chat client though. Multiple users can edit a word processing document or spreadsheet simultaneously. I've seen talks about how this is done conceptually. It involved the command pattern and there was a way

Re: RPC call from server to client

2012-10-26 Thread Thomas Broyer
On Friday, October 26, 2012 8:12:03 PM UTC+2, Mike Dee wrote: I wonder how this is done in Google Docs? The approach may be a bit of overkill for a chat client though. Multiple users can edit a word processing document or spreadsheet simultaneously. I've seen talks about how this is done

Re: RPC call from server to client

2012-10-25 Thread Magnus
Hello, could please someone point me to the right direction? I believe I have all jars now and a complete example. But it does not work yet. Maybe I have to declare a servlet or something like this? (I did not use any poms, just created an empty GWT project and added the jars + example code.)

Re: RPC call from server to client

2012-10-25 Thread Jens
I would check the example's xml files in WEB-INF and META-INF directory to see if any servlet paths are incorrect for your deployment. Maybe you have just deployed it differently than the example expects (different webapp context root for example). Also, just to test the example, can't you

Re: RPC call from server to client

2012-10-25 Thread Michael Hirsch
On Oct 18, 2012 10:56 AM, Magnus alpineblas...@googlemail.com wrote: Hi, I took a look at most of the libraries, but there is no one that can make my happy, because none of them seems to be lightweight. Atmosphere requires Maven. If I go to Maven someday, I would like to do this on the basis

Re: RPC call from server to client

2012-10-20 Thread Magnus
Hi, I arrived at the following state by trial and error: included jars: atmosphere-gwt-client-1.0.2.jar atmosphere-gwt-common-1.0.2.jar atmosphere-gwt-server-1.0.2.jar atmosphere-runtime-1.0.2.jar example project:

Re: RPC call from server to client

2012-10-19 Thread Magnus
Hi Andrea! Am Donnerstag, 18. Oktober 2012 21:33:53 UTC+2 schrieb Andrea Boscolo: Anyway I'd give atmosphere a try. Ok, but where can I get the right jar file? Just googeling around and choosing some jar, e. g. this one?

Re: RPC call from server to client

2012-10-19 Thread Magnus
Hello, I found some jar somewhere, but I don't know if it's ok. I found that there are many different aptmosphere jars. There is even a special GWT version: http://code.google.com/p/atmosphere-gwt-comet/ This is hard to understand for me: Why a special GWT version? There also seem to be

Re: RPC call from server to client

2012-10-19 Thread Jens
Take a look at: https://github.com/Atmosphere/atmosphere https://github.com/Atmosphere/atmosphere/wiki *https://github.com/Atmosphere/atmosphere/wiki/Getting-started-with-GWT* For downloading latest binary version: http://search.maven.org/#search%7Cga%7C1%7Corg.atmosphere There are also

Re: RPC call from server to client

2012-10-19 Thread Magnus
Hi Jens! Am Freitag, 19. Oktober 2012 19:25:09 UTC+2 schrieb Jens: For downloading latest binary version: http://search.maven.org/#search%7Cga%7C1%7Corg.atmosphere Which one (which ArtifactId)? The one with the ArtifactId atmosphere-gwt only has a pom file, which I cannot handle...

Re: RPC call from server to client

2012-10-19 Thread Magnus
Hi, I fetched the jars atmosphere-gwt-server and atmosphere-gwt-client, but I still have unresolved dependencies with the example atmosphere-gwt-chat: - AtmosphereGwtHandler (cannot be resolved, indirectly referenced by required class file) - Broadcaster - logger Magnus --

Re: RPC call from server to client

2012-10-18 Thread Magnus
Hi, I took a look at most of the libraries, but there is no one that can make my happy, because none of them seems to be lightweight. Atmosphere requires Maven. If I go to Maven someday, I would like to do this on the basis of a free decision, but not as a dependency for the library I am

Re: RPC call from server to client

2012-10-18 Thread Andrea Boscolo
The problem is that websocket (as any other HTML5 spec) has chages a bit in the last two years making some useful libraries outdated and not definitely working. On Thursday, October 18, 2012 6:56:19 PM UTC+2, Magnus wrote: Hi, I took a look at most of the libraries, but there is no one that

RPC call from server to client

2012-10-17 Thread Magnus
Hello, I realized a simple chat within my chess application: When the user posts something, the posting is sent to the server and the chat view on the client side is updated. But when another user posts something, the user's view is not updated automatically. I wonder how to realize an

Re: RPC call from server to client

2012-10-17 Thread Mark Donszelmann
Try atmosphere Regards Mark Sent from my iPhone On 17 Oct 2012, at 13:31, Magnus alpineblas...@googlemail.com wrote: Hello, I realized a simple chat within my chess application: When the user posts something, the posting is sent to the server and the chat view on the client side is

Re: RPC call from server to client

2012-10-17 Thread Stefan Ollinger
Hello Magnus, you can use WebSockets and Comet. http://en.wikipedia.org/wiki/Comet_%28programming%29 http://de.wikipedia.org/wiki/WebSocket That way you can send messages from the server to the client. So if someone sends a new chat message to the server, you can broadcast it to the

  1   2   3   4   5   >