Re: GWT RPC AsyncCallBack is always failing persistently.
Oh! I'm sorry for the misunderstanding of which xml file to edit. I'm using GWT 2.5.1 thus I've to edit the web xml file instead. However i have placed the stuff which is copied from the website and I assumed it is placed in between the portion but it still does generate some errors. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Blocked attempt to access interface 'com.mycompany.project.client.Connection', which is not implemented by 'com.mycompany.project.server.MySQLConnection'; this is either misconfiguration or a hack attempt ) This was generated when I place "/com.mycompany.project.Alternate/MySQLConnection" as my url mapping com.google.gwt.user.client.rpc.StatusCodeException: 404 Error 404 NOT_FOUND HTTP ERROR: 404NOT_FOUND RequestURI=/com.mycompany.project.Alternate/MySQLConnectionhttp://jetty.mortbay.org/";>Powered by Jetty:// while this was generated by changing the url-pattern to "/com.mycompany.project.AlternateConnection" On Friday, November 1, 2013 1:01:34 AM UTC+8, Jens wrote: > > GWT tries to send its request to > /com.mycompany.project.Alternate/MySQLConnection > but your servlet isn't deployed at that location. > > Check your servlet configuration in your web.xml file. > > Maybe you should also read: > http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideImplementingServices > > -- J. > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC AsyncCallBack is always failing persistently.
> > > > > > path="/MySQLConnection"/> > You don't need that tag anymore if you use GWT 1.6 or above. If you use an earlier version of GWT then you can probably stop reading now as I have no clue how things work for these versions (I started with GWT 2.0). I read the website you have given me, I tried to copy and paste the website > you have given me and edit accordingly but the results is the module would > not load, hence i re-edited with a new line > > url-pattern="com.mycompany.project.client.Connection"> > > > but the module would not load either, it gives Line 6: Unexpected element > 'servlet-mapping'. > What you have copied from the website has to be put into the web.xml file and not into your *.gwt.xml GWT module. i would like to ask also, for the url pattern, does it link it to my > interface which is the Synchonous interface? > The url pattern describes the url under which your servlet should be accessible. This url pattern can be anything as long as your GWT app and your server use the same url. In your case you have configured your service using String moduleRelativeURL = GWT.getModuleBaseURL() + "MySQLConnection"; target.setServiceEntryPoint(moduleRelativeURL); which means that GWT will now make requests to "/com.mycompany.project. Alternate/MySQLConnection" and thus the url pattern should be the same. By the way, if you annotate your synchronous service interface with @RemoteServiceRelativePath("MySQLConnection") you can remove the above two lines as GWT will then set the same service entry point automatically. -- J. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC AsyncCallBack is always failing persistently.
As for i read the website for URL-pattern it is based of If i have a "module" what does "module"meant by? -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC AsyncCallBack is always failing persistently.
This was my previous xml file in the system. I read the website you have given me, I tried to copy and paste the website you have given me and edit accordingly but the results is the module would not load, hence i re-edited with a new line but the module would not load either, it gives Line 6: Unexpected element 'servlet-mapping'. i would like to ask also, for the url pattern, does it link it to my interface which is the Synchonous interface? On Friday, November 1, 2013 1:01:34 AM UTC+8, Jens wrote: > > GWT tries to send its request to > /com.mycompany.project.Alternate/MySQLConnection > but your servlet isn't deployed at that location. > > Check your servlet configuration in your web.xml file. > > Maybe you should also read: > http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideImplementingServices > > -- J. > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC AsyncCallBack is always failing persistently.
GWT tries to send its request to /com.mycompany.project.Alternate/MySQLConnection but your servlet isn't deployed at that location. Check your servlet configuration in your web.xml file. Maybe you should also read: http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html#DevGuideImplementingServices -- J. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC AsyncCallBack is always failing persistently.
I got this error message on the consolue but i totally do not understand what is it talking about > > > Error 404 NOT_FOUND > > > > HTTP ERROR: 404NOT_FOUND > > RequestURI=/com.mycompany.project.Alternate/MySQLConnection >> href="http://jetty.mortbay.org/";>Powered by >> Jetty:// >> > > > > On Friday, November 1, 2013 12:12:56 AM UTC+8, Jens wrote: > > You would probably already know whats the reason if you would just print > out the exception like you do on the server. > > Change > > public void onFailure(Throwable caught) { > Hi.setText("You fail!"); > } > > to > > public void onFailure(Throwable caught) { > *caught.printStackTrace();* > Hi.setText("You fail!"); > } > > and take a look in your Eclipse console! > > -- J. > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC AsyncCallBack is always failing persistently.
You would probably already know whats the reason if you would just print out the exception like you do on the server. Change public void onFailure(Throwable caught) { Hi.setText("You fail!"); } to public void onFailure(Throwable caught) { *caught.printStackTrace();* Hi.setText("You fail!"); } and take a look in your Eclipse console! -- J. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC AsyncCallBack is always failing persistently.
I'm not sure about this but i get wad you meant. Technically there is not error in this,it is just that everytime i run my gwt application, When my button is being clicked, no results is returned from the server side On Thursday, October 31, 2013 4:55:28 PM UTC+8, Ahmet Dakoglu wrote: > > Inspect the caught and look into the errorMessage in it. > > *public void onFailure(Throwable caught) { > Hi.setText("You fail!"); > } > * > > * > * > * > > Ahmet DAKOĞLU* > > > On Thu, Oct 31, 2013 at 10:27 AM, >wrote: > >> I'm sorry I'm pretty lousy in this so I could really understand what you >> meant. >> >> How I check if the call back is failing is by running a web application >> and by clicking the button I would hence try to call the server side, in >> which it should reply or return the value of my latest database entry. >> >> To check if it is failing I had 2 labels, one which is to show the >> database entry and the other is to print "Fail" on the label if the >> AsyncCallBack is onFailure. >> >> >> How do I check the exception in onFailure says at? Is it on my Entry >> point side? >> >> >> >> >> >> On Wednesday, October 30, 2013 6:08:28 PM UTC+8, Jens wrote: >>> >>> And what does the exception in onFailure say? >>> >>> -- J. >>> >> -- >> 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 google-web-toolkit+unsubscr...@googlegroups.com . >> To post to this group, send email to >> google-we...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/google-web-toolkit. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT - Send a message from the server to the client?
Do you have any examples that you have done? Been having a hard time trying to just use the event bus portion. On Tuesday, October 29, 2013 2:16:01 PM UTC-5, Andrea Boscolo wrote: > > I'd use http://errai.github.io/ and its bus. > > On Monday, October 28, 2013 10:01:27 PM UTC+1, Joshua Godi wrote: >> >> Good afternoon, >> >> I was curious how I would properly send a message from the server to the >> client? Here is my scenario: >> >> Client A - Modifies User1 from the GUI and pushes the data to the server >> Client B - Is looking at User1 and needs to be notified that there are >> changes that have been made >> >> So the server needs to send a message to all clients that the user has >> changed. >> >> What is the best way to solve this? >> >> Thanks, >> Joshua >> > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change "gwt.imageResource.maxBundleSize" ?
> May I ask why this compile option goes here, rather then in the xml where > the rest of the options seem to go? > Probably because this class also has a main() method and thus can be executed directly without any GWT context. -- J. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Under GWT Architecture, Should we validate InputData at Client Side or Server Side?
I use my validators both in the frontend and backend, works like a charm. Like others already mentioned: the server must never trust any data from the client. As such: validate at least in the server, and as extra service, for better UX, also in the client. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change "gwt.imageResource.maxBundleSize" ?
Thanks, that seems to have done the trick. It took me awhile to spot it had to go in "VM Arguments" dialogue box, rather then "Compiler Arguments" dialogue box. May I ask why this compile option goes here, rather then in the xml where the rest of the options seem to go? ~~~ Thomas & Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 31 October 2013 13:24, Jens wrote: > You have to configure a system property using a JVM parameter not a GWT > compiler parameter. The JVM parameter should be "-Dgwt.imageResource.** > maxBundleSize=1000". > > -- J. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Web Toolkit" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-web-toolkit/CDPqaQXfNHE/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change "gwt.imageResource.maxBundleSize" ?
You have to configure a system property using a JVM parameter not a GWT compiler parameter. The JVM parameter should be "-Dgwt.imageResource.maxBundleSize=1000". -- J. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change "gwt.imageResource.maxBundleSize" ?
Someone else suggested to me its probably used as a flag somewhere I tried "gwt.imageResource.maxBundleSize=1000" in the GWT Additional Compile Arguments. (using eclipse>>gwt compile) But I am clearly formatting it wrongly. (or its still the wrong place) Is there an example of this anywhere? Or a similar setting? I have only ever set options using gwt.xml before. ~~~ Thomas & Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 31 October 2013 12:38, Thomas Wrobel wrote: > Sorry, can you spell it out for me? I assumed it was set the same way > "enable Inlining" was. > I have > > and that works just fine. > > So where/how do I set this "" property? > > > ~~~ > Thomas & Bertines online review show: > http://randomreviewshow.com/index.html > Try it! You might even feel ambivalent about it :) > > > On 31 October 2013 08:58, Jens wrote: > >> Its a system property. You have to use java -D >> >> -- J. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Web Toolkit" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-web-toolkit/CDPqaQXfNHE/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> Visit this group at http://groups.google.com/group/google-web-toolkit. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change "gwt.imageResource.maxBundleSize" ?
Sorry, can you spell it out for me? I assumed it was set the same way "enable Inlining" was. I have and that works just fine. So where/how do I set this "" property? ~~~ Thomas & Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 31 October 2013 08:58, Jens wrote: > Its a system property. You have to use java -D > > -- J. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Web Toolkit" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-web-toolkit/CDPqaQXfNHE/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Detecting Proxy Update via EntityProxyChange event
I agree. I get an UPDATE just by getting new proxies. We do not now if the version has changed so why is it an UPDATE...? That should be a FETCH operation IMO the event is not really useful without this distinction. Regards, J On Sunday, January 29, 2012 1:29:14 PM UTC+1, Arash wrote: > > I am trying to add a handler to detect the proxy changes. The > event.getWriteOperation() does detect the UPDATE operation but it is > more generalized than what I actually need. The doc reads: "An UPDATE > event is fired whenever a client encounters a proxy for the first > time, or encounters a proxy whose version number has changed." How do > I only detect the proxy whose version number has changed?!!! > > Thanks, -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC AsyncCallBack is always failing persistently.
Inspect the caught and look into the errorMessage in it. *public void onFailure(Throwable caught) { Hi.setText("You fail!"); } * * * * Ahmet DAKOĞLU* On Thu, Oct 31, 2013 at 10:27 AM, wrote: > I'm sorry I'm pretty lousy in this so I could really understand what you > meant. > > How I check if the call back is failing is by running a web application > and by clicking the button I would hence try to call the server side, in > which it should reply or return the value of my latest database entry. > > To check if it is failing I had 2 labels, one which is to show the > database entry and the other is to print "Fail" on the label if the > AsyncCallBack is onFailure. > > > How do I check the exception in onFailure says at? Is it on my Entry point > side? > > > > > > On Wednesday, October 30, 2013 6:08:28 PM UTC+8, Jens wrote: >> >> And what does the exception in onFailure say? >> >> -- J. >> > -- > 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 google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC AsyncCallBack is always failing persistently.
I'm sorry I'm pretty lousy in this so I could really understand what you meant. How I check if the call back is failing is by running a web application and by clicking the button I would hence try to call the server side, in which it should reply or return the value of my latest database entry. To check if it is failing I had 2 labels, one which is to show the database entry and the other is to print "Fail" on the label if the AsyncCallBack is onFailure. How do I check the exception in onFailure says at? Is it on my Entry point side? On Wednesday, October 30, 2013 6:08:28 PM UTC+8, Jens wrote: > > And what does the exception in onFailure say? > > -- J. > -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
How to change "gwt.imageResource.maxBundleSize" ?
Its a system property. You have to use java -D -- J. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.