Thursday, October 31, 2013

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 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>
</head>
<body><h2>HTTP ERROR: 404</h2><pre>NOT_FOUND</pre>
<p>RequestURI=/com.mycompany.project.Alternate/MySQLConnection</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>                                                
<br/> 
 

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+unsubscribe@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.

No comments:

Post a Comment