ClassCastException when service is included

2012-03-29 Thread Vlad
Hi Everyone,

I have an issue which I am unable to solve. I am getting
ClassCastException when I include GWT.create(UserService.class); in by
view. It worked fine but then it suddenly stopped.

UserServiceAsync.java:
public interface UserServiceAsync {
void signIn(String email, String password, AsyncCallbackString
callback);
}

Loginview.Java
public class LoginView extends Composite {
private UserService userRpcService =
GWT.create(UserService.class); // this throws following exception


21:03:42.923 [ERROR] [myproject] Unable to load module entry point
class com.myproject.gwt.myproject.ProjectOne (see associated exception
for details)
java.lang.ClassCastException:
com.myproject.gwt.client.services.UserService_Proxy cannot be cast to
com.myproject.gwt.client.services.UserService
at com.myproject.gwt.client.viewes.LoginView.init(LoginView.java:
28)
at
com.myproject.gwt.client.ProjectOne.onModuleLoad(ProjectOne.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
200)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
525)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Unknown Source)


GWT 2.4.0 - Eclipse

Can you please point me to a solution?
Vlad

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



R: Re: R: Re: Re: Can't install Google Web Toolkit Developer Plugin under Chrome

2011-07-14 Thread Vlad
Nope, I try to install the plugin from a folder where it has been 
extracted...

Il giorno mercoledì 13 luglio 2011 17:45:40 UTC+2, Chak Lai ha scritto:

 You may want to try the offline installation
 Chrome - https://dl.google.com/dl/gwt/plugins/chrome/gwt-dev-plugin.crx


Is there anywhere a log for reading a and eventually find what's going on?

 

-- 
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/-/IRE_20aMuMcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



R: Re: Re: Can't install Google Web Toolkit Developer Plugin under Chrome

2011-07-13 Thread Vlad
Hi Chris,

I turned off the firewall to avoid any conflict, and also added my ip 
address, something like 26.2, and the loopback ip address to the 
GWT Developer option page, but Chrome still asks for installing the Google 
Web Toolkit Developer Plugin.

-- 
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/-/lWxoddzvKMcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



R: Re: Can't install Google Web Toolkit Developer Plugin under Chrome

2011-07-07 Thread Vlad
Hi Chris,

the OS is Windows XP 5.1.2600 SP2, and the browser has been installed via 
the installer easily downloadable from http://www.google.com/chrome/

-- 
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/-/xivIMwNj_x4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Can't install Google Web Toolkit Developer Plugin under Chrome

2011-07-04 Thread Vlad
I was starting coding with GWT following the tutorial at

   http://code.google.com/intl/it/webtoolkit/doc/latest/tutorial/create.html

when the tutorial tells to connect to the 'development mode code
server' the browser ask to install a plugin.
With Firefox everything works fine, but with Chrome every time I try
to connect to the server it asks to install it

  
http://code.google.com/intl/it/webtoolkit/doc/latest/tutorial/images/MissingPlugin.png

even if it is listed under

  chrome://extensions/

I'd like to know what am I missing.

TIA

Something useful
GWT developer pulgin version: 1.0.9738
Chrome versione  :  12.0.742.112

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Firefox Plugin for GWT not downloading

2011-01-27 Thread vlad...@gmail.com
Can't run in dev mode on Chrome (Windows 7) anymore. Says that Development 
Mode requires the Google Web Toolkit Developer Plugin but plugin is already 
installed and was working yesterday. Will check on ubuntu soon

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: String.matches() does not work with \p{ASCII}

2010-08-13 Thread Vlad
Thanks, with the hexidecimal range 00, 7F it works.

On 13 авг, 01:17, cokol eplisc...@googlemail.com wrote:
 as you probably know, regex is belongs to that cases not fully
 compatible between java and javascript, and in dev mode your GWT
 engine uses real JDK therefore it works, whereas after compilation
 your matches() is performed on the browser with its regex engne and it
 fails.

 well u have to rewrite the pattern \\p{ASCII}* to JS compatible
 fashion

 On 12 Aug., 00:39, Vlad vsinit...@gmail.com wrote:



  Hi,
  I have a simple code that works correctly in development mode but
  fails to run on production.
  Basically, I need to check if the text entered by user contains only
  ASCII characters. So, I do the following:

  String s = getTextArea().getText();
  if(s.matches(\\p{ASCII}*))
  {
  ...}

  else
  {
  // Some non ASCII characters found

  }

  On the production it always comes to the else section. I've tried it
  with IE, FireFox and Chrome. The results are the same.
  Any suggestions of how to fix this?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



String.matches() does not work with \p{ASCII}

2010-08-12 Thread Vlad
Hi,
I have a simple code that works correctly in development mode but
fails to run on production.
Basically, I need to check if the text entered by user contains only
ASCII characters. So, I do the following:

String s = getTextArea().getText();
if(s.matches(\\p{ASCII}*))
{
...
}
else
{
// Some non ASCII characters found
}

On the production it always comes to the else section. I've tried it
with IE, FireFox and Chrome. The results are the same.
Any suggestions of how to fix this?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Access to AsyncFragmentLoader$HttpDownloadFailure

2010-02-07 Thread Vlad Skarzhevskyy
We are using GWT.runAsync to load part of our our application.

The application may run in the client Browser for some time before it would
need to open the unloaded fragments.
If during this time the application on server is updated e.g. GWT recompiled
and deployed we may get exception on client:

com.google.gwt.core.client.impl.AsyncFragmentLoader$HttpDownloadFailure:
HTTP download failed with status 404


In RunAsyncCallback.onFailure(Throwable) we can analyze the reason for
error. If it is status 404 then we can show error:
We updated our application.  Reload Yes/No?  and call
Window.Location.reload();  to gracefully recover from this error.

But the Exception HttpDownloadFailure is private static class inside gwt
AsyncFragmentLoader implementation.
Does it make sense to expose the HttpDownloadFailure exception so that
application would be able gracefully and properly recover from some known
errors?

BTW the StatusCodeException with nearly the same meaning is public in RPC
package com.google.gwt.user.client.rpc.

Vlad

PS
 For now I'm just looking for the string HTTP download failed with status
404 in Throwable message to recover from this errors.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT using GET for RPC calls

2009-10-26 Thread Vlad

Hi

I am supporting a big application based on GWT 1.4.  The developers of
this application say that it must use POST methods for all RPC calls
but sometimes in Apache logs I can see requests made using GET method.

Example:
123.123.123.123 - - [26/Oct/2009:14:00:40 -0500] GET /secure/
userPreferences.rpc HTTP/1.1 500 57 - - 33269 -

Could you please advice is it GWT bug or not?  Does anybody run into
the same issue?

Thank you in advance,
Vlad

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



GWT1.6.4 multiple module and gwt-ext

2009-08-18 Thread Vlad

When putting multiple GWT modules on the html host page that use gwt-
ext library there is JavaScript error and only in the OBFuscated mode.
Everything works just fine in the PRETTY mode. Most likely the error
is caused by the name collision in the obfuscated mode when method aa1
() from one module collides with the same obfuscated name from the
second one. Basically when first module executes some method there is
an error and stack trace reference to the HTML file from the different
module.

Is there any way to specify some range for JavaScript method names
when compiling in the OBFuscated mode via linker etc.

Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



changing keyboard input language

2008-11-26 Thread Vlad

Hi all,

Just started dev with GWT. I am able to change the current keyboard
input context in pure java using the InputContext class so that when I
change the language in my app, the keyboard automatically changes to
that language. Now, is there an equivalent or similar way to do this
in GWT. My web client has a drop down list to select different
languages which my server returns the appropriate info in the selected
language. However, I still need to manually change the keyboard input
on the MS WIndows XP System Tray to be able to enter data in the
selected language.

All help is appreciated.

Thanks in advance,

Vlad

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---