Re: GWT Developer Plugin installed but (apparently) not recognized

2014-05-23 Thread Sang Hero
I agree with Sergey Shpikin,  with Super Dev Mode I can't debug my
application effectively, there's no stacktrace to trace exceptions, no
breackpoint, no variable value monitor, I have use console.log to trace
variables (as you guess, it's wrong way). Anyway, you can't say we must use
third-party tools to debug GWT application, so, please bring Dev Mode back
or same thing better than Super Dev Mode.

BTW, Deobfuscating the stacktrace on SDBG is only mostly working:


>- Deobfuscating the stacktrace. Works but does not look 100% like e.g.
>the JDT Debugger stacktrace. For example, the methods are not deobfuscated
>to their Java equivalents
>
>

2014-05-22 23:57 GMT+07:00 Sergey Shpikin :

> Thanks for your answers! I know that the classic dev mode had to be
> replaced, just didn't expect this to happen so soon without an on par
> working analog. I'll try to dig into SDBG on my free time but until that
> I'll use Chromium 34 (it works fine btw, tried today without issues so
> far). Happy to hear that GWT is being worked on fine but devtools now need
> more love than ever. It's always a pain when you invest lots of time into
> some framework and then it suddenly becomes (partly) unusable and you're
> just lost. Especially if you develop at work.
>
> I also highly agree with Vassilis Virvilis. But I also want to expand this
> JS-hatred to HTML for webapps. It's really not suited for designing user
> interfaces but it's something we have to deal with. GWT relieves us from
> the pain of cross-browser design and JS trickery bringing every good
> Java-world thing to the web world. And that's what I'm grateful to it for.
> Java became popular because of *tools*, and so did GWT. Thank you for
> doing that, I hope SDM will catch up fast enough if CDM can't be ported.
>
>
> On Thursday, 22 May 2014 12:25:49 UTC+4, Thomas Broyer wrote:
>>
>>
>>
>>  --
> 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/d/optout.
>

-- 
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/d/optout.


Re: HandlerRegistration.removeHandler() does not work?

2013-06-22 Thread Sang Hero
Oh, thank Thomas.

I have solved the problem. The problem caused by an other activity that
fires the LoginSuccessEvent. I forgot to removeHandler() on that activity,
so It fires the  LoginSuccessEvent multiple times.

2013/6/22 Thomas Broyer 

>
>
> On Saturday, June 22, 2013 3:40:21 AM UTC+2, Sang Hero wrote:
>>
>> Hi everyone,
>>
>> I have had a problem with *HandlerRegistration* returned by method *
>> SimpleEventBus.addHandler *
>> *
>> *
>> When I call:
>>
>> *HandlerRegistration hr = eventBus.addHandler(LoginSuccessEvent.TYPE,
>> new LoginSuccessEventHandler() {*
>> * *
>> * @Override*
>> * public void onSuccess(LoginSuccessEvent event) {*
>> * view.getName().setText(event.getName());*
>> * System.out.println("Fire");*
>> * }*
>> * });*
>> *
>> *
>> Then I call:
>>
>> *hr.removeHandler();*
>> *
>> *
>> The handler still does not be removed. I see on console multiple "Fire"
>> each event firing.
>>
>> This is my complete code: 
>> http://pastebin.com/**3ZBXnXF8<http://pastebin.com/3ZBXnXF8#>
>>
>> On each event firing, I see "Back" one time but multiple time with "Fire"
>>
>> Can you help me solve this problem?
>>
>
> Hard to diagnose with the given information (where and when the
> LoginSuccessEvent is fired?), but you actually don't need that 'hr',
> because the EventBus passed to start() will automatically un-register all
> its handlers when the activity stops (onStop and onCancel).
>
> --
> 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.




HandlerRegistration.removeHandler() does not work?

2013-06-21 Thread Sang Hero
Hi everyone,

I have had a problem with *HandlerRegistration* returned by method *
SimpleEventBus.addHandler *
*
*
When I call:

*HandlerRegistration hr = eventBus.addHandler(LoginSuccessEvent.TYPE, new
LoginSuccessEventHandler() {*
* *
* @Override*
* public void onSuccess(LoginSuccessEvent event) {*
* view.getName().setText(event.getName());*
* System.out.println("Fire");*
* }*
* });*
*
*
Then I call:

*hr.removeHandler();*
*
*
The handler still does not be removed. I see on console multiple "Fire"
each event firing.

This is my complete code:
http://pastebin.com/3ZBXnXF8

On each event firing, I see "Back" one time but multiple time with "Fire"

Can you help me solve this problem?

(Sorry about my English, I'm Vietnamese)

-- 
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: A library that allows using GWT with Gson

2013-05-12 Thread Sang Hero
Thanks for your comment.

Do you have any solution to use GSON without making a GWT-RPC call?

(Anw, I add entrypoint class to project to testing, it still likes a
library when I remove entrypoint and export to jar file :D)

2013/5/11 Thomas Broyer :
> Er, really? making a GWT-RPC call just to serialize an object to JSON? How
> can this be even remotely (no pun intended) useful?
>
> (BTW, it's not a library, it's a sample project)
>
>
> On Saturday, May 11, 2013 5:47:21 AM UTC+2, Sang Hero wrote:
>>
>> Hello everyone,
>>
>> I have written a library that allows using GWT with Gson here:
>> https://github.com/heroandtn3/bGwtGson
>>
>> Enjoy it and send me pull requests or open issues if you have any
>> suggestion for me.
>>
>> -sangnd
>
> --
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




A library that allows using GWT with Gson

2013-05-10 Thread Sang Hero
Hello everyone,

I have written a library that allows using GWT with Gson here:
https://github.com/heroandtn3/bGwtGson

Enjoy it and send me pull requests or open issues if you have any
suggestion for me.

-sangnd

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Compiler exception after upgrade to 2.5.1

2013-03-20 Thread Sang Hero
Why don't you try searching this folder with that name?

2013/3/21 mdwarne 

> Thanks,
> I'm using the Netbeans plugin for GWT can anyone point me to where the
> gwt-unitCache folder would be?
> Thanks,
> Mike.
>
>
> On Tuesday, March 19, 2013 11:11:14 PM UTC-10, Thomas Broyer wrote:
>>
>> Delete the gwt-unitCache and try again.
>>
>> On Wednesday, March 20, 2013 3:27:16 AM UTC+1, mdwarne wrote:
>>>
>>> Hi,
>>>
>>> My project compiles and runs OK with GWT 2.5.0.
>>> After upgrading to version 2.5.1 Compiling the project causes an
>>> exception (see below)
>>>
>>> This is using Java EE 6 (Mac OSX)
>>>
>>> Any ideas?
>>> Thanks,
>>> Mike
>>>
>>>
>>>[ERROR] Unexpected internal compiler error
>>> java.lang.RuntimeException: Unexpected IOException on in-memory stream
>>> at com.google.gwt.dev.javac.**CompilationUnit.getTypes(**
>>> CompilationUnit.java:360)
>>> at com.google.gwt.dev.jjs.impl.**UnifyAst.assimilateUnit(**
>>> UnifyAst.java:670)
>>> at com.google.gwt.dev.jjs.impl.**UnifyAst.**searchForTypeBySource(**
>>> UnifyAst.java:983)
>>> at com.google.gwt.dev.jjs.impl.**UnifyAst.addRootTypes(**
>>> UnifyAst.java:531)
>>> at com.google.gwt.dev.jjs.**JavaToJavaScriptCompiler.**precompile(**
>>> JavaToJavaScriptCompiler.java:**637)
>>> at com.google.gwt.dev.jjs.**JavaScriptCompiler.precompile(**
>>> JavaScriptCompiler.java:33)
>>> at com.google.gwt.dev.Precompile.**precompile(Precompile.java:**278)
>>> at com.google.gwt.dev.Precompile.**precompile(Precompile.java:**229)
>>> at com.google.gwt.dev.Precompile.**precompile(Precompile.java:**141)
>>> at com.google.gwt.dev.Compiler.**run(Compiler.java:232)
>>> at com.google.gwt.dev.Compiler.**run(Compiler.java:198)
>>> at com.google.gwt.dev.Compiler$1.**run(Compiler.java:170)
>>> at com.google.gwt.dev.**CompileTaskRunner.doRun(**
>>> CompileTaskRunner.java:88)
>>> at com.google.gwt.dev.**CompileTaskRunner.**
>>> runWithAppropriateLogger(**CompileTaskRunner.java:82)
>>> at com.google.gwt.dev.Compiler.**main(Compiler.java:177)
>>> Caused by: java.io.InvalidClassException: 
>>> com.google.gwt.dev.jjs.ast.**JDeclaredType;
>>> local class incompatible: stream classdesc serialVersionUID =
>>> -1052417216019896795, local class serialVersionUID = -8155793964565947646
>>> at java.io.ObjectStreamClass.**initNonProxy(**
>>> ObjectStreamClass.java:560)
>>> at java.io.ObjectInputStream.**readNonProxyDesc(**
>>> ObjectInputStream.java:1580)
>>> at java.io.ObjectInputStream.**readClassDesc(**
>>> ObjectInputStream.java:1493)
>>> at java.io.ObjectInputStream.**readNonProxyDesc(**
>>> ObjectInputStream.java:1580)
>>> at java.io.ObjectInputStream.**readClassDesc(**
>>> ObjectInputStream.java:1493)
>>> at java.io.ObjectInputStream.**readOrdinaryObject(**
>>> ObjectInputStream.java:1729)
>>> at java.io.ObjectInputStream.**readObject0(ObjectInputStream.**
>>> java:1326)
>>> at java.io.ObjectInputStream.**readObject(ObjectInputStream.**
>>> java:348)
>>> at java.util.ArrayList.**readObject(ArrayList.java:593)
>>> at sun.reflect.**GeneratedMethodAccessor19.**invoke(Unknown Source)
>>> at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
>>> DelegatingMethodAccessorImpl.**java:25)
>>> at java.lang.reflect.Method.**invoke(Method.java:597)
>>> at java.io.ObjectStreamClass.**invokeReadObject(**
>>> ObjectStreamClass.java:969)
>>> at java.io.ObjectInputStream.**readSerialData(**
>>> ObjectInputStream.java:1852)
>>> at java.io.ObjectInputStream.**readOrdinaryObject(**
>>> ObjectInputStream.java:1756)
>>> at java.io.ObjectInputStream.**readObject0(ObjectInputStream.**
>>> java:1326)
>>> at java.io.ObjectInputStream.**readObject(ObjectInputStream.**
>>> java:348)
>>> at com.google.gwt.dev.jjs.ast.**JProgram.deserializeTypes(**
>>> JProgram.java:203)
>>> at com.google.gwt.dev.javac.**CompilationUnit.getTypes(**
>>> CompilationUnit.java:358)
>>> ... 14 more
>>>
>>>
>>  --
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.