Re: The GWT Eclipse Plugin stopped working in Eclipse 2021-06

2021-08-20 Thread Shawn Brown
Ha funny or not after a little use I got the same error.

I couldn't find the underlying issue mentioned anywhere (was a missing
class) so didn't know what to reinstall and just restarted eclipse.  It
works again.

On Fri, Aug 20, 2021 at 5:57 PM Shawn Brown 
wrote:

> Hey.  Sorry to hear that.
>
> I'm on v2021-06 and don't see eGit crashing.  That said, I mostly use
> GitHub Desktop.
>
> I do remember struggling with v2021-03 to get a compatible eGit version
> installed.  Not sure why that was or if it's related to the SDBG plugin,
> but I think I installed the SDBG plugin prior to v2021-03.  Likely it was
> some other update or installation I tried that required a newer version of
> eGit and that installing it perhaps resolved the issue with SDBG.  Just
> speculation here...
>
> On Fri, Aug 20, 2021 at 5:04 PM mmo  wrote:
>
>> @Craig Mitchell
>> > ...
>> > And all working great now!  Yay!  Thanks.
>>
>> Unfortunately not quite:
>>
>> While the instructions to download, build and replace the SDBG plugin
>> *do* work fine the replacement of the plugin had a *very *adverse
>> side-effect (on my eclipse at least - v2021-03):
>> With the new SDBG plugin installed the eGit-plugin reproducibly crashes.
>> I.e. I then can not access any git-repo anymore using Eclipse.
>>
>> Cheers,
>> Michael
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-web-toolkit/6cdd59cb--46a7-845f-8e42f5833420n%40googlegroups.com
>> <https://groups.google.com/d/msgid/google-web-toolkit/6cdd59cb--46a7-845f-8e42f5833420n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAM5TeUx1uF%3DcAO1H3gVjCML%2BvMwCbr8iZtsQeYtWDZ%3DMR84%3DEg%40mail.gmail.com.


Re: The GWT Eclipse Plugin stopped working in Eclipse 2021-06

2021-08-20 Thread Shawn Brown
Hey.  Sorry to hear that.

I'm on v2021-06 and don't see eGit crashing.  That said, I mostly use
GitHub Desktop.

I do remember struggling with v2021-03 to get a compatible eGit version
installed.  Not sure why that was or if it's related to the SDBG plugin,
but I think I installed the SDBG plugin prior to v2021-03.  Likely it was
some other update or installation I tried that required a newer version of
eGit and that installing it perhaps resolved the issue with SDBG.  Just
speculation here...

On Fri, Aug 20, 2021 at 5:04 PM mmo  wrote:

> @Craig Mitchell
> > ...
> > And all working great now!  Yay!  Thanks.
>
> Unfortunately not quite:
>
> While the instructions to download, build and replace the SDBG plugin *do*
> work fine the replacement of the plugin had a *very *adverse side-effect
> (on my eclipse at least - v2021-03):
> With the new SDBG plugin installed the eGit-plugin reproducibly crashes.
> I.e. I then can not access any git-repo anymore using Eclipse.
>
> Cheers,
> Michael
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/6cdd59cb--46a7-845f-8e42f5833420n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAM5TeUyWu3dTfLQ6C%3DveYg7AnCwBA4a%3D7CwFBpDSfuRNTZj5EQ%40mail.gmail.com.


Re: The GWT Eclipse Plugin stopped working in Eclipse 2021-06

2021-08-11 Thread Shawn Brown
The latest SDBG release was 2015.  You need to build it to get the code
changes that enable Java 11 to work.

On Wed, Aug 11, 2021 at 7:06 Craig Mitchell  wrote:

> Sorry, I understand now.  Other people have fixed it, it just hasn't been
> released.  I'm guessing this was the fix:
> https://github.com/sdbg/sdbg/commit/be4f2e193bf6f31fefc00985e8657e1254b2230c
>
> So, to get it working.  Steps:
>
> 1.  Uninstall the existing one:
> [image: plugin.png]
> 2. Clone:  https://github.com/sdbg/sdbg
> 3. Run maven:  mvn package
> 4. Add the built plugin with these steps:
> https://stackoverflow.com/questions/31553376/eclipse-how-to-install-a-plugin-manually
>
> Plugin is
> in:  
> com.github.sdbg.releng.p2\target\com.github.sdbg.releng.p2-1.0.10.qualifier.zip
>
> And all working great now!  Yay!  Thanks.
>
> On Wednesday, 11 August 2021 at 10:09:22 am UTC+10 Craig Mitchell wrote:
>
>> Hi Shawn.
>>
>> > Just do a maven build and install in eclipse from the archive
>>
>> Sorry, I'm not understanding, which build and what archive?
>>
>> The SDBG repos is here:  https://github.com/sdbg/sdbg
>>
>> When I get some time, I'll check out the  SDBG repos, modify the code to
>> remove the use of DatatypeConverter, build, and then install in Eclipse,
>> and hopefully that fixes the problem.
>>
>> Cheers.
>>
>> On Tuesday, 10 August 2021 at 12:33:23 am UTC+10 Shawn wrote:
>>
>>> Using SDGB built from recent code solves the issue (of it not working
>>> with Java 11).  Just do a maven build and install in eclipse from the
>>> archive.  At the time I moved to Java 11, it was at
>>> com.github.sdbg.releng.p2/target/com.github.sdbg.releng.
>>> p2-1.0.10.qualifier.zip
>>>
>>> Perhaps the version has changed since then.
>>>
>>> I think the SDGB repo is in GitHub or someplace similar.  Not at my
>>> computer at the moment so can’t confirm.
>>>
>>> On Sun, Aug 8, 2021 at 3:05 Craig Mitchell 
>>> wrote:
>>>
 >  client side in Chrome or Edge

 Yep, I can still do this.  And when I want to step into code, I often
 do just use the Chrome debugger (as the SDBG plugin was a bit of hit and
 miss when inspecting variable, etc.).

 However, it's very convient to get the Chrome console right in
 Eclipse.  You can instantly see if anything is going wrong.  That's the
 main reason it'd be great to get the SDBG plugin working again.

 I guess I could try to fix SDBG myself.  Looks like this is the problem:


 https://github.com/sdbg/sdbg/blob/master/com.github.sdbg.debug.core/src/com/github/sdbg/debug/core/internal/webkit/protocol/WebkitPage.java#L109

 I'll post a message in https://groups.google.com/g/sdbg first, and
 hope someone that knows something about the plugin responds.  :-)

 On Sunday, 8 August 2021 at 4:38:53 pm UTC+10 ralph.f...@gmail.com
 wrote:

> Stopped using Eclipse plug-ins just recently when going to JDK11. Am
> using Maven Jetty plugin to run code server and host the application.
>
> It was a bit cumbersome to set up (steep Maven learning curve!) but
> was worth it in the end: onboard a new developer in no time (if Maven is
> already configured).
>
> Server side debugging in Eclipse (or whatever is your preferred IDE),
> client side in Chrome or Edge.
>
>
> Craig Mitchell  schrieb am So. 8. Aug. 2021
> um 08:25:
>
>> Tried a fresh Eclipse install, and also tried installing the GWT
>> plugin without the Chrome debugger, and then adding the SDBG manually 
>> from
>> here https://sdbg.github.io/ with no luck.
>>
>> Looks like the SDBG died somewhere between my old 2018-12 Eclipse,
>> and 2021-06 Eclipse.
>>
>> Looking at the error:  javax/xml/bind/Datatypeconverter not found, it
>> sounds like it's because Eclipse can no longer run on Java 8 (I'm running
>> it on Java 11).
>>
>> Does anyone have Chrome debug in Eclipse still working?  Or are there
>> any other plugins that we can use?
>>
>> On Saturday, 7 August 2021 at 2:46:30 pm UTC+10 Craig Mitchell wrote:
>>
>>> I just did a fresh install on a new PC, and the GWT plugin worked
>>> fine with Eclipse 2021-06.
>>>
>>> The only issue I have is when I launch Chrome from Eclipse, Chrome
>>> opens fine, however, I get this error:
>>> [image: error.png]
>>> and I can't debug the browser in Eclipse.  Debugging still works
>>> fine in Chrome.
>>>
>>>
>>> On Thursday, 17 June 2021 at 3:22:34 am UTC+10 Jim Douglas wrote:
>>>
 I just updated my Eclipse development environment from 2021-03 to
 2021-06. The installed GWT Eclipse Plugin (which hasn't been updated 
 since
 2017) no longer shows up in the menu bar, and it logs a bunch of 
 errors. Is
 anyone (Brandon?) still maintaining it?


 http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html

Re: Guava version which is compatible with GWT 2.9.0

2021-02-26 Thread Shawn Brown
Hey,

 [java][ERROR] Hint: Your source appears not to live underneath a
> subpackage called 'client'; no problem, but you'll need to use the 
> directive in your module to make it accessible
>
>
Did you try making the source accessible?

S

>
> On Friday, February 26, 2021 at 4:52:12 PM UTC+5:30 pratik thaker wrote:
>
>> I just realized that this might be because I had remove below line from
>> my gwt.xml file,
>>
>> 
>>
>> I am checking now.
>>
>> On Friday, February 26, 2021 at 4:44:31 PM UTC+5:30 pratik thaker wrote:
>>
>>> Hi Team,
>>>
>>> We were using GWT 2.7.0 and guava-18 earlier.
>>>
>>> Recently we have upgraded to GWT 2.9.0 and we are facing issue in using
>>> below classes from guava,
>>>
>>> com.google.common.collect.ComparisonChain
>>> com.google.common.collect.Ordering
>>>
>>> I tried upgrading to guava-gwt-29.0-jre.jar but for that we are getting
>>> below error,
>>>
>>> [ERROR] Line 373: ComparisonChain cannot be
>>> resolved
>>>  [java] [ERROR] Line 8: The import com.google.common
>>> cannot be resolved
>>>  [java] [ERROR] Line 374: Ordering cannot be resolved
>>>  [java] [ERROR] Line 7: The import com.google.common
>>> cannot be resolved
>>>
>>> Can you please help me compile ?
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/d867e61d-dffc-42f4-9f79-3ec5cb76c19en%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAM5TeUz71J0E3ZNY%2BJpwB6pRrroyqT-u%3DdqTtr%2Bxrpvo%2Bmx4wg%40mail.gmail.com.


Re: Is it possible to implement a web worker with GWT?

2020-11-05 Thread Shawn Brown
 Hi,


I'm not sure, will this project helps you:
> https://gitlab.com/ManfredTremmel/gwt-webworker?
>

I really want to use it, but can't figure out the docs.

In the GWT side, it says to use:

*Worker worker = Worker.create() *
*...*
*worker.postMessage("(may be serialized) data to handle in web worker"); *

What is the *javascriptname?*

If MyWebWorker.gwt.xml renames my webwork module to "mywebworker.wkr", do I
use something like:

*Worker.create("/mywebworker.wkr/mywebworker.wkr.nocache.js");*

Other examples online seem to suggest so, but
*mywebworker.wkr.nocache.js *isn't
being generated in compilation so am stuck on what to do.

Anyone?

Shawn

> t.br...@gmail.com schrieb am Freitag, 2. Oktober 2020 um 17:04:55 UTC+2:
>>
>>> It is, through a linker:
>>> http://www.gwtproject.org/doc/latest/DevGuideLinkers.html
>>> It might work with the D8ScriptLinker shipped in GWT (
>>> https://github.com/gwtproject/gwt/blob/2.9.0/dev/core/src/com/google/gwt/core/linker/D8ScriptLinker.java);
>>> you'll have to declare it in a *.gwt.xml though (define-linker then
>>> add-linker).
>>> Or there might be (IIRC, there are) libraries with such a linker
>>> specifically for workers.
>>>
>>>
>>> On Thursday, October 1, 2020 at 10:43:37 PM UTC+2, Bruno Salmon wrote:

 hi,

 I have a GWT web app that I would like to make more reactive by moving
 some heavy computation code into web workers. This code doesn't need the
 context of the application to run, I just need to pass it a few input
 parameters so it should be a good fit for a web worker.

 I see how the web app can instantiate web workers
 using elemental2.dom.Worker.

 But as my worker code is in Java, I would like to know if I can use the
 GWT compiler to generate the worker itself. I expect a js file with a
 onmessage function as output that I can load from the web app.

 Is it possible to do this?

>>> --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-web-toolkit/0498c25c-1bd1-471c-aaa7-c9bba70488ecn%40googlegroups.com
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAM5TeUz-ubK%2Ba-RMh9rWE%2BJc1h%3DxokE3fnXYxD4ZKdThce3oSA%40mail.gmail.com.


Re: Is it possible to implement a web worker with GWT?

2020-11-05 Thread Shawn Brown
>
> Hi,
>
> I'm not sure, will this project helps you:
>> https://gitlab.com/ManfredTremmel/gwt-webworker?
>>
>
> I really want to use it, but can't figure out the docs.
>
> In the GWT side, it says to use:
>
> *Worker worker = Worker.create() *
> *...*
> *worker.postMessage("(may be serialized) data to handle in web worker"); *
>
> What is the *javascriptname?*
>
> If MyWebWorker.gwt.xml renames my webwork module to "mywebworker.wkr", do
> I use something like:
>
> *Worker.create("/mywebworker.wkr/mywebworker.wkr.nocache.js");*
>
> Other examples online seem to suggest so, but
> *mywebworker.wkr.nocache.js *isn't being generated in compilation so am
> stuck on what to do.
>
> Anyone?
>
> Shawn
>
>
> t.br...@gmail.com schrieb am Freitag, 2. Oktober 2020 um 17:04:55 UTC+2:
>
>> It is, through a linker:
>> http://www.gwtproject.org/doc/latest/DevGuideLinkers.html
>> It might work with the D8ScriptLinker shipped in GWT (
>> https://github.com/gwtproject/gwt/blob/2.9.0/dev/core/src/com/google/gwt/core/linker/D8ScriptLinker.java);
>> you'll have to declare it in a *.gwt.xml though (define-linker then
>> add-linker).
>> Or there might be (IIRC, there are) libraries with such a linker
>> specifically for workers.
>>
>>
>> On Thursday, October 1, 2020 at 10:43:37 PM UTC+2, Bruno Salmon wrote:
>>>
>>> hi,
>>>
>>> I have a GWT web app that I would like to make more reactive by moving
>>> some heavy computation code into web workers. This code doesn't need the
>>> context of the application to run, I just need to pass it a few input
>>> parameters so it should be a good fit for a web worker.
>>>
>>> I see how the web app can instantiate web workers
>>> using elemental2.dom.Worker.
>>>
>>> But as my worker code is in Java, I would like to know if I can use the
>>> GWT compiler to generate the worker itself. I expect a js file with a
>>> onmessage function as output that I can load from the web app.
>>>
>>> Is it possible to do this?
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/0498c25c-1bd1-471c-aaa7-c9bba70488ecn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAM5TeUzCA77y1yFAoqijPFOLnaVMdKPOcUG782AcWhPLi-S-zg%40mail.gmail.com.


Re: DevMode woe

2016-09-05 Thread Shawn Brown
Thanks.

SuperDevMode working
debugging with SDBG
upgraded to 2.8b2

Selenium testing works better this way!

On Mon, Sep 5, 2016 at 1:59 AM Thomas Broyer  wrote:

>
>
> On Sunday, September 4, 2016 at 5:27:36 PM UTC+2, Shawn wrote:
>>
>>
>> Is there a way to get it to execute code modification in the debugger?  I
>> found my source and adding a logging statement but can’t save the file so
>> it doesn’t execute.  Is there a good book on this … is any chrome debugging
>> book ok?
>>
>
> You can either use Chrome workspaces (
> https://developers.google.com/web/tools/setup/setup-workflow) or
> remote-debug from your IDE and have it handle the Source Maps (SDBG in
> Eclipse for instance: https://sdbg.github.io)
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" 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 https://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 "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DevMode woe

2016-09-04 Thread Shawn Brown
Duh?!?!

Took my manifest=“offline.manifest” out of the html tag and it seems to be
working fine….

Is there a way to get it to execute code modification in the debugger?  I
found my source and adding a logging statement but can’t save the file so
it doesn’t execute.  Is there a good book on this … is any chrome debugging
book ok?

On Sun, Sep 4, 2016 at 11:31 PM Thomas Broyer  wrote:

>
>
> On Sunday, September 4, 2016 at 3:08:46 PM UTC+2, Shawn wrote:
>>
>>
>>
>> Maybe the underlying confusion is that I am using an offline cache and it
>> loads from that…
>>
>>
>> Document was loaded from Application Cache with manifest
>> http://127.0.0.1:59047/offline.manifest
>>
>>
>> Then gives me fluencybuildergae.nocache.js:54 GET
>> http://127.0.0.1:59040/recompile-requester/fluencybuildergae
>> net::ERR_FAILED
>>
>>
>> Still why the need for a recompile… nothing has changed.
>>
>>
>> Should I just give up on superdevmode until 2.8?  Will it have changed?
>>
>
> No (not in a way that'd change anything to your problem)
>
>
>> This is beyond my abiility to understand what to do…
>>
>
> Disable your application cache?
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" 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 https://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 "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DevMode woe

2016-09-04 Thread Shawn Brown
On Sun, Sep 4, 2016 at 9:24 PM Shawn Brown <big.coffee.lo...@gmail.com>
wrote:

> And can you access http://127.0.0.1:9876/ ?
>>>
>>
>> Yes and I get:
>> GWT Code Server
>>
>>1. Drag these two bookmarklets to your browser's bookmark bar:
>>Dev Mode On Dev Mode Off
>>2. Visit a web page that uses one of these modules:
>>   - *app*
>>3. Click "Dev Mode On" to start development mode.
>>
>> So I did 1, but 2 gives me an error:
>>
> app (GWT Code Server)
>>
> This module hasn't been compiled yet.
>> Output Files
>>
>> (From the last successful compile.)
>>
>
>>- blank.html <http://127.0.0.1:9876/fluencybuildergae/blank.html>
>>- app.nocache.js <http://127.0.0.1:9876/app/app.nocache.js>
>>- app.nocache.js <http://127.0.0.1:9876/app/app.recompile.nocache.js> 
>> <---oops
>>typo
>>
>>  Sorry that was...
>
>- app.recompile.nocache.js
><http://127.0.0.1:9876/app/app.recompile.nocache.js>
>
>
>>- reset.css <http://127.0.0.1:9876/fluencybuildergae/reset.css>
>>
>> Recompiling (from Eclipse GWT Compile Project) and trying again does
>> nothing.  Restarting the server and trying again gives the same result.
>>
>
 Setting (in eclipse) the GWT code server port and the Appengine built-in
server both to automatically select an unused port (ended up 58777) and
accessing it at

http://127.0.0.1:58777/MyApp.jsp

gets me a response of:

Compiling app

There aren’t any process open on my computer though using any significant
amount CPU.

So checking Chrome Dev Mode gives a error with a link
http://127.0.0.1:59040/recompile/app?gxt.device=desktop=chrome=en=safari=mac&_callback=__gwt_sdm_globals.callbacks.c1472993865970
<http://127.0.0.1:59040/recompile/fluencybuildergae?gxt.device=desktop=chrome=en=safari=mac&_callback=__gwt_sdm_globals.callbacks.c1472993865970>

Trying that link in a new tab shows this in my Eclipse server

GET /recompile/ap

   Job com.k.app.MyApp_1_1

  starting job: com.k.app.MyApp_1_1

  binding: gxt.device=desktop

  binding: gxt.user.agent=chrome

  binding: locale=en

  binding: user.agent=safari

  binding: user.agent.os=mac

  skipped compile because no input files have changed

  0.410s total — Compile completed


Maybe the underlying confusion is that I am using an offline cache and it
loads from that…


Document was loaded from Application Cache with manifest
http://127.0.0.1:59047/offline.manifest


Then gives me fluencybuildergae.nocache.js:54 GET
http://127.0.0.1:59040/recompile-requester/fluencybuildergae net::ERR_FAILED


Still why the need for a recompile… nothing has changed.


Should I just give up on superdevmode until 2.8?  Will it have changed?
This is beyond my abiility to understand what to do…

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DevMode woe

2016-09-04 Thread Shawn Brown
> And can you access http://127.0.0.1:9876/ ?
>>
>
> Yes and I get:
> GWT Code Server
>
>1. Drag these two bookmarklets to your browser's bookmark bar:
>Dev Mode On Dev Mode Off
>2. Visit a web page that uses one of these modules:
>   - *app*
>3. Click "Dev Mode On" to start development mode.
>
> So I did 1, but 2 gives me an error:
> app (GWT Code Server)
>
> This module hasn't been compiled yet.
> Output Files
>
> (From the last successful compile.)
>
>- blank.html 
>- app.nocache.js 
>- app.nocache.js  
> <---oops
>typo
>
>  Sorry that was...

   - app.recompile.nocache.js
   


>- reset.css 
>
> Recompiling (from Eclipse GWT Compile Project) and trying again does
> nothing.  Restarting the server and trying again gives the same result.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DevMode woe

2016-09-04 Thread Shawn Brown
Thanks for the quick response.

Can’t get DevMode to work.
>>
>> Think it’s related to my app.gwt.xml using:
>>
>> 
>>
>> Trying my page give me:
>> Error:Couldn’t load app from Super Dev Mode server at
>> http://127.0.0.1:9876.
>>
>> Am seeing (in Chrome brower dev console)
>> app.nocache.js:54 GET http://127.0.0.1:9876/recompile-requester/app
>> net::ERR_FAILEDinjectScriptTag @ app.nocache.js:54
>>
>> I think the codeserver is fine:
>>
>> Super Dev Mode starting up
>>
>> …
>>
>> Initializing App Engine server
>>
>> …
>>
>> The code server is ready at http://127.0.0.1:9876/
>>
>>
>> I can view my data in the admin console fine
>>
>> http://127.0.0.1:/_ah/admin/ <—- works great
>>
>
> And can you access http://127.0.0.1:9876/ ?
>

Yes and I get:
GWT Code Server

   1. Drag these two bookmarklets to your browser's bookmark bar:
   Dev Mode On Dev Mode Off
   2. Visit a web page that uses one of these modules:
  - *app*
   3. Click "Dev Mode On" to start development mode.

So I did 1, but 2 gives me an error:
app (GWT Code Server)

This module hasn't been compiled yet.
Output Files

(From the last successful compile.)

   - blank.html 
   - app.nocache.js 
   - app.nocache.js 
   - reset.css 

Recompiling (from Eclipse GWT Compile Project) and trying again does
nothing.  Restarting the server and trying again gives the same result.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


DevMode woe

2016-09-04 Thread Shawn Brown
Can’t get DevMode to work.

Think it’s related to my app.gwt.xml using:



Trying my page give me:
Error:Couldn’t load app from Super Dev Mode server at http://127.0.0.1:9876.

Am seeing (in Chrome brower dev console)
app.nocache.js:54 GET http://127.0.0.1:9876/recompile-requester/app
net::ERR_FAILEDinjectScriptTag @ app.nocache.js:54

I think the codeserver is fine:

Super Dev Mode starting up

…

Initializing App Engine server

…

The code server is ready at http://127.0.0.1:9876/


I can view my data in the admin console fine

http://127.0.0.1:/_ah/admin/ <—- works great


Hints? Tips? Suggestions?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: confounding rpc serialization exception

2015-07-16 Thread Shawn Brown
g. guess a library I was using was returning a copy which was
unmodifiable.

simply throwing the copy into a new LinkedList seems to have solved it

On Thu, Jul 16, 2015 at 9:34 PM, Shawn Brown big.coffee.lo...@gmail.com
wrote:

 I added a list containing a class that implements Serializable, has a
 public no arg constructor, and contains only strings.  Now I get an rpc
 serialization exception:


 com.google.gwt.user.client.rpc.SerializationException: could not get type
 signature for class java.util.Collections$UnmodifiableRandomAccessList


 Why???


-- 
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.


confounding rpc serialization exception

2015-07-16 Thread Shawn Brown
I added a list containing a class that implements Serializable, has a
public no arg constructor, and contains only strings.  Now I get an rpc
serialization exception:


com.google.gwt.user.client.rpc.SerializationException: could not get type
signature for class java.util.Collections$UnmodifiableRandomAccessList


Why???

-- 
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: Memory Leak caused by ThreadLocalMap - The suspect is com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet

2012-11-27 Thread Shawn Brown
The current implementation
 of com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet uses two
 instances of ThreadLocal to wrap the HttpServletRequest and
 HttpServiceResponse objects. (both are not static; couldn't see any calls
 to remove; this is in the sychronized block - couple of things that
 triggered my suspicions).

 Did anybody faced similar issues?


Don't think so but it concerned me so I took a look ... seems ok but...

Every doPost it will call

if (perThreadRequest == null) {
  perThreadRequest = new ThreadLocalHttpServletRequest();
} if (perThreadResponse == null) {
  perThreadResponse = new ThreadLocalHttpServletResponse();
} So that would be one instance of each per servlet right!?! Also per
doPost it calls: try { perThreadRequest.set(request);
perThreadResponse.set(response);


  processPost(request, response);

... } finally {
  // null the thread-locals to avoid holding request/response
  //
  perThreadRequest.set(null);
  perThreadResponse.set(null); } So that should clear the response,
request right!?! I can't see an issue with AbstractRemoteServiceServlet but
... am I missing something?

Well OK I don't understand why the call is perThreadRequest.set(null) and
NOT .remove()

*removehttp://docs.oracle.com/javase/6/docs/api/java/lang/ThreadLocal.html#remove()
*()
  Removes the current thread's value for this thread-local variable

*sethttp://docs.oracle.com/javase/6/docs/api/java/lang/ThreadLocal.html#set(T)
*(T http://docs.oracle.com/javase/6/docs/api/java/lang/ThreadLocal.html
 value)
  Sets the current thread's copy of this thread-local variable to
the specified value.

  Are the 400.000 entries null and if so is that taking memory???

-- 
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: Are you happy with GWT?

2012-10-12 Thread Shawn Brown
 ( I really recommend to try out SuperDevMode).

Sounds great but for anyone using AppEngine and RPC calls, won't
really work without tons of hassle (as far as I can find).

http://code.google.com/p/google-web-toolkit/issues/detail?id=7522

-- 
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: GWT 2.5 RC2 is out. Can we see release notes?

2012-10-04 Thread Shawn Brown
  Is it possible
 to get release notes to see what's new?

Isn't this it 
https://developers.google.com/web-toolkit/release-notes#Release_Notes_Current
?

-- 
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: Can't get touch handlers to fire?

2012-08-09 Thread Shawn Brown
 I can't get touch handlers to fire:

see this 
http://stackoverflow.com/questions/11875484/how-to-use-touch-handlers-does-gwt-support-them/11875997#11875997

-- 
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: Is there any chart library for GWT?

2012-08-05 Thread Shawn Brown
Hi,

 Interactive, GWT compatible, touch screen ready, full animation.

 trust me, nothing better than this

 https://www.sencha.com/

Well GWT Highcharts is better if you need the client to see the same
thing in a pdf as they do on the screen.  GXT doesn't have that
functionality and it'd be tough to make it work or so the threads on
their mailing list suggest.

Shawn

-- 
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: Application size due to Internationalization

2012-07-25 Thread Shawn Brown
 Thanks for your suggestions. Yes, I did this. But the main issue I am unable
 to solve is the size of the code. It is too big to deploy on app.spot.

I don't think that is the case.

Prior to AE1.7, I was over the limit due to permutations as well.
AE1.6 was 150MB/app right, and 1.7 is 1gb (total for all apps)

It wasn't that difficult to serve the permutation files out of the blobstore.

The overview is:

1) ant task to move permutation stuff into /serve_from_blobstore folder
2) class to upload  /serve_from_blobstore permutations (including .rpc
files, and no-cache stuff) using BlobstoreService
3) servlet to handle the upload - stores blob and map (in datastore
entity) the req url and blob key
4) filter to serve blobs.  If request matches /myAppName, serve blob
by looking up blob key from request url using the enitity map created
in 3 [my *.gwt.xml file was using module rename-to='myAppName']
5) task to delete blobs for particular app version

Probably the trickiest things were catching the failed uploads (it
sporadically happened) and making sure they were retried until
successful and ensuring a versions blobs were all deleted.

I'm under 500 mb now so I just have two versions (and stay under the
1gb limit) and don't serve from the blobstore but have the
infrastructure in place should the need arise.

There is no way your app minus permutations is over 1gb I think.  I
don't see the size of language permutations as a barrier to deploying
on AppEngine.

-- 
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: Debugging is terribly slow

2012-07-08 Thread Shawn Brown
 Do others have this problem, too?

No I didn't at all, and then suddenly I did.  Virtually unusable.

The difference was I upgraded to EE IDE for Web Developers and the
validation it does really messed me up.

I turned everything off except for the xml, jsp, html  and web validators.

Now it's back to normal.  Not sure what the issue was but there sure was one.

-- 
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: can we use load-on-startup for serviceImpl

2012-06-20 Thread Shawn Brown
 my question here is can we do load-on-startup for this servlet.

 currently servlet is not loading on startup.

How do you know??  ;^)
public void SlimLookUpImpl() is a method that never gets called.


Try one of these:

@Override public void init() throws ServletException {
}

private SlimLookUpImpl() {

}

 Shawn

-- 
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: GWT offline

2012-06-18 Thread Shawn Brown
 We had the same problem. But instead of doing what you did, we found in the
 doc that the nocache.js file should be returned by HTTP servers as
 non-cachable. This solves the issue. You just write a servlet that sets
 Headers when delivering that file.

OK but I don't understand.  Isn't *.nocache.js needed to bootstrap
(i.e. load)  the GWT code?
If *.nocache.js isn't cached by the browser, then how does the offline
version load -- [it can't get it from the server!!!]?

If I have extra time to try an offline version that hasn't set a
backup to load I will.  I don't see how it would work though unless
the browser is 1) really storing *.nocache.js [even though you set the
header in the servlet not to] and just refreshing it everytime or 2)
not really needing *.nocache.js. I don't think either of those things
is true but I can't test it right now.

Shawn

-- 
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: GWT offline

2012-06-18 Thread Shawn Brown
 I think you're confusing two different things:
 - browser cache
 - Application Cache (the feature added in HTML5)

 They are 2 different caches.
 A browser can (and will) store nochache.js file in Application Cache (HTML5)
 even if it is not storing it in regular browser cache.

Yeah I think you are right.  Thanks man.

-- 
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: GWT offline

2012-06-17 Thread Shawn Brown
 Can i use gwt offline? if so, how? I havent been able to get it to work
 offline for over a week

Yes you can.  What have you done?

My approach (=no guarantee to be best practice) is to:

1) use a linker to make the offline manifest (one for each permutation)
2) timestamp, rename, and map to appname.nocache.js** (done in linker)
3) use a servlet filter to return the manifest for the right
browser/language permutation

**appname.nocache.js is needed to load GWT but doesn't cache right
(assuming you have it set not to cache, and if you allow it to cache,
the user won't get timely updates right)?  So I cache it under a
different timestamped file name, and map to it in the manifest.  For
ex.:
FALLBACK:
/appname/appname.nocache.js /appname/appname.1339975521875.js

Then if the browser is online and loads a new manifest [yes of course
the manifest includes #timestamp in it], it will update the cache to
the new version.

Anyway, you aren't saying what isn't working so I assume you are not
looking at the chrome developer console.  It nicely logs out
Application Cache Progress (or failure )events.

Shawn

-- 
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: SmartGWT GUI Layout

2012-05-13 Thread Shawn Brown
 Need help in SmartGUI layout issue mentioned below:

Why don't you try http://forums.smartclient.com/   ???

-- 
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: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-16 Thread Shawn Brown
 Honestly, everything sounds to me like a political choice to force people to
 shift from java platform develepment to Dart platform, leveraging the huge
 Android diffusion through cellphones and tablets.

OK yeah sure maybe it is political but ...

What if Oracle wins big against Google in terms of java use for android.

From Google's standpoint, couldn't you see why they might be
interested in an alternative?  Do you know what courts will decide?
Does Google? I don't.

Shawn

-- 
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: HTML5 Offline Web-Application

2012-04-08 Thread Shawn Brown
Hi,

 Followed this thread, and also stumbled the same problem.
 anyone solved this?

 DevMode warning: Clobbering appcache.nocache.manifest to allow debugging.
 Recompile before deploying your app!

 And the appcache.nocache.manifest_user-agent doesn't contain the js file
 name!

 Any idea what is causing this???

Sorry no idea at all.  Have never seen it.  I don't understand the problem.

If you need to know which js file goes into which user-agent file, you
can figure that out from this:

[actually this makes a separate permutation.properties file.  I have
the same login in my linker class to make sure the pro]


import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Map;
import java.util.Properties;
import java.util.SortedMap;
import java.util.SortedSet;

import com.google.gwt.core.ext.LinkerContext;
import com.google.gwt.core.ext.TreeLogger;
import com.google.gwt.core.ext.UnableToCompleteException;
import com.google.gwt.core.ext.linker.AbstractLinker;
import com.google.gwt.core.ext.linker.ArtifactSet;
import com.google.gwt.core.ext.linker.CompilationResult;
import com.google.gwt.core.ext.linker.LinkerOrder;
import com.google.gwt.core.ext.linker.SelectionProperty;
import com.google.gwt.core.ext.linker.SyntheticArtifact;

/**
 * This GWT linker creates a properties file which can be used to
resolve Permutation Strong name given UserAgent and
 * locale.
 *
 * @author Etienne Lacazedieu
 */
@LinkerOrder(LinkerOrder.Order.PRE) public class
StrongNameOracleLinker extends AbstractLinker {
public static final String STRONGNAME_FILE = permutation.properties;

@Override public String getDescription() {
return PermutationStrongName Oracle linker;
}

@Override public ArtifactSet link(TreeLogger logger, LinkerContext
context, ArtifactSet artifacts) throws UnableToCompleteException {
artifacts = new ArtifactSet(artifacts);
ByteArrayOutputStream out = new ByteArrayOutputStream();

String permutation = null;
String locale = null;
String userAgent = null;
SelectionProperty selectionProperty = null;

Properties props = new Properties();

for (CompilationResult result : 
artifacts.find(CompilationResult.class)) {
permutation = result.getStrongName();

SortedSetSortedMapSelectionProperty, String 
propertiesMap =
result.getPropertyMap();
for (SortedMapSelectionProperty, String sm : 
propertiesMap) {
for (Map.EntrySelectionProperty, String e : 
sm.entrySet()) {
selectionProperty = e.getKey();
if 
(locale.equals(selectionProperty.getName())) {
locale = e.getValue();
}
if 
(user.agent.equals(selectionProperty.getName())) {
userAgent = e.getValue();
}
}
}
props.setProperty(userAgent + . + locale, 
permutation);
}
try {
props.store(out, StrongNameOracle properties file);
} catch (IOException e) { // Should generally not happen
logger.log(TreeLogger.ERROR, Unable to store deRPC 
data, e);
throw new UnableToCompleteException();
}
SyntheticArtifact a = emitBytes(logger, out.toByteArray(), 
STRONGNAME_FILE);
artifacts.add(a);

return artifacts;
}

}


---


so in the actual linker class I have I use


...

Properties props = new Properties();

for (CompilationResult result : 
artifacts.find(CompilationResult.class)) {
permutation = result.getStrongName();

SortedSetSortedMapSelectionProperty, String 
propertiesMap =
result.getPropertyMap();
for (SortedMapSelectionProperty, String sm : 
propertiesMap) {
for (Map.EntrySelectionProperty, String e : 
sm.entrySet()) {
selectionProperty = e.getKey();
if 
(locale.equals(selectionProperty.getName())) {
locale = e.getValue();
}
if 
(user.agent.equals(selectionProperty.getName())) {
userAgent = e.getValue();
}
}
}
   

Re: Dev Mode results in 'spinning wheel' delays on Mac

2012-04-06 Thread Shawn Brown
 Do other people experience this problem when using Dev mode?

No.

I think you people are both seeing it swap from lack of memory.

What do you have in your dev mode VM args?  I have -Xss16M -Xmx1G
What do you have for eclipse.ini?

I have
-XX:MaxPermSize=512m
-Xms40m
-Xmx1G

Neither of these settings may be ideal but they pretty much work for me.
I also watched the heap size in eclipse (show it via eclipse
preferences) and sometimes I restart dev mode when it creeps up too
high and won't go back down.

Shawn

-- 
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: GWT Performance : Good or Bad ?

2012-03-27 Thread Shawn Brown
Hi,

A grid with 23 columns that contains at least 10 GridRenderer

GXT 3.0:
All data widgets support cells (instead of renderers)
Cells support events and can fire events
High performance via flyweight pattern

 the model used in GXT did not extend well to our MVP setup.

for GXT 3.0 (in beta) Models:
Support any bean-like object
Not forced to implement GXT interfaces
Not forced to use GXT model classes Interoperability with RPC,
RequestFactor, AutoBean

MVP support has changed too.

  GWT tends towards attaching the elements into the DOM immediately whereas 
 GXT caches the elements then attaches them in bulk.
for GXT 3.0:
Components create their DOM at construction DOM available immediately

Shawn

-- 
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: when combined with GAE, app.yaml / web.xml user authentication and login/logout not really working

2012-01-15 Thread Shawn Brown
 I'm writing a web app using GWT and GAE (Java).  I know GAE pretty
 well, especially the Python version; I'm new to GWT and the Java
 version of GAE.


Uuugh, an evil GAE python user who always gets features before us Java
users.  ...just kidding...



  security-constraint
    web-resource-collection
      url-pattern/MyApp.html/url-pattern
    /web-resource-collection
    auth-constraint
      role-name*/role-name
    /auth-constraint
  /security-constraint

 Given the app.yaml configuration (which seems to correctly generate
 the web.xml) to not even let the user see the page unless they are
 logged in, how is it possible for that to even happen?

I don't think it is, is it?

I don't use security-constraint for that purpose.
For login and rpc authentication, I run a servlet filter.

Here's snippets from web.xml:

web-app

context-param
param-namegwt.xsrf.session_cookie_name/param-name
param-valueJSESSIONID/param-value
/context-param

filter
filter-nameAuthenticationFilter/filter-name
filter-classcom.myPackage.AuthenticationFilter/filter-class
/filter

...


security-constraint
web-resource-collection
web-resource-namesession-cleanup/web-resource-name
url-pattern/_ah/sessioncleanup/url-pattern
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

security-constraint
web-resource-collection
web-resource-namemy-app/web-resource-name
url-pattern/_ah/mail/*/url-pattern
/web-resource-collection

auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

/web-app

Here's my logic:

(client side) in onModuleLoad()
if no JSESSIONID cookie present, display login which makes an rpc call
to an authenticationService
if cookie present, send request

(severside) in AuthenticationFilter doFilter
if JSESSIONID valid - allow request to desired page -- simply:
chain.doFilter(request, response);
if no JSESSIONID allow call to authenticationService after checking to
make sure it's a login rpc call :  if ((HttpServletRequest)
request).getRequestURI().equals(login_uri))){ ...

if not authenticated by that call, return to client via rpc return and
redisplay login -- if authenticated return to client and proceed with
app
if not authenicated and not a call to authenticationService, allow if
it's a devServer call to access the datastore (this is just
convenience, and not necessary if you don't browse local data)

if none of the above, send a HttpServletResponse.SC_EXPECTATION_FAILED message.

Anyway, at the time of writing there wasn't a simple way to do
authentication by simply configuring yaml.  I'm not sure if this has
changed or what pre-baked options are available.

-- 
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: MVP framework(s) doubt

2011-12-03 Thread Shawn Brown
I think you have no problem.

 Sorry about the delay :)

 The main issue that I am having is in Eclipse, something when I make a
 change (little change) and I reload my app in Firefox I get this on
 the console:

 java.lang.OutOfMemoryError: PermGen space
   [ERROR] Out of memory; to increase the amount of memory, use the -
 Xmx flag at startup (java -Xmx128M ...)

 So that's why I believed that cutting the number of classes could
 solve my problem.

Completely unnecessary.

Just right click your project in eclipse and select --run as -- run
configurations.

Under Web Applications find the html page for your project, select it
and do what the message above says to do in the vmargs tab.

If Eclipse itself need more memory you have to find the icon in finder
and right click it, select Show Package contents -- MacOS -- and
modify with something like the following under -vmargs:


-vmargs

-XX:MaxPermSize=1G
-Xms40m
-Xmx2G

-- 
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: Assistance required by a novice.

2011-11-15 Thread Shawn Brown
http://lmgtfy.com/?q=GWT+Designer

-- 
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: GWT a breadbcrumb for NooBS like me.

2011-11-10 Thread Shawn Brown
 When GreetingServiceAsync is an interface, from which we obtain an
 object. - Yet... What the hell is in that thing!

If your question is how it is used, you would be better off to look at
http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html

Understanding deferred binding isn't a prerequisite to really using
GWT.  Well I don't really understand and my project runs fine...

Shawn

-- 
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: future of gwt who use gwt

2011-10-25 Thread Shawn Brown
 The death of Go seems to me that Dart is just another experiment of Google.

When did Go die?

Also, if it were dead, why did Google introduce it in the most recent
AppEngine API?  That was two weeks ago.
http://blog.golang.org/2011/10/go-app-engine-sdk-155-released.html

Just asking...

Shawn

-- 
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: syncProxy + Xsrf

2011-09-30 Thread Shawn Brown
 Just for the record,

 I guess the underlying issue is that syncProxy uses
 interfaceWhateverService extends XsrfProtectedService and does not use
  WhateverServiceAsyn that gets created by GWT.create().

I gave up on syncProxy and will use the appengine remote api instead

 http://code.google.com/appengine/docs/java/tools/remoteapi.html

Shawn

-- 
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.



is code using DateTimeFormat not testable?

2011-09-23 Thread Shawn Brown
I'm just trying to test my code that has DateTimeFormat in it.
However I see ...

java.lang.ExceptionInInitializerError
at 
com.google.gwt.i18n.client.DateTimeFormat.getDefaultDateTimeFormatInfo(DateTimeFormat.java:808)
at 
com.google.gwt.i18n.client.DateTimeFormat.getFormat(DateTimeFormat.java:488)
at 
com.google.gwt.i18n.client.DateTimeFormat.getLongDateTimeFormat(DateTimeFormat.java:690)
 ...
Caused by: java.lang.UnsupportedOperationException: ERROR:
GWT.create() is only usable in client code!  It cannot be called, for
example, from server code.  If you are running a unit test, check that
your test case extends GWTTestCase and that GWT.create() is not called
from within an initializer or constructor.
at com.google.gwt.core.client.GWT.create(GWT.java:91)
at com.google.gwt.i18n.client.LocaleInfo.clinit(LocaleInfo.java:36)
... 35 more


Is there a list of what I can not use in Tests since GWT.create
forbids it?  This seems to be a reoccurring theme in GWT and I am
tired of writing code that subsequently needs to be yanked as it's not
testable.

Shawn

-- 
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.



syncProxy + Xsrf

2011-09-15 Thread Shawn Brown
Hello,

In trying to test rpc protected with GWT's RPC XSRF protection, I used
syncProxy to get a valid xsrf token and then modified syncProxy to
write it to the request the same  way that GXT does in
RemoteServiceProxy.java  (i.e. by writing it to the request body with
streamWriter.writeObject(rpcToken);)

So I believe I am sending a valid xsrfToken, however I get this error:

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.google.gwt.user.client.rpc.XsrfToken', which is not implemented
by 'com.google.gwt.user.server.rpc.XsrfTokenServiceServlet'; this is
either misconfiguration or a hack attempt )


I guess the underlying issue is that syncProxy uses
interfaceWhateverService extends XsrfProtectedService and does not use
 WhateverServiceAsyn that gets created by GWT.create().

Does anyone know a way to test XSRF protected rpc calls using
snycProxy or any other means?

Shawn

-- 
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: syncProxy + Xsrf

2011-09-15 Thread Shawn Brown
 I guess the underlying issue is that syncProxy uses
 interfaceWhateverService extends XsrfProtectedService and does not use
  WhateverServiceAsyn that gets created by GWT.create().


I also tried using SyncProxy to use WhateverServiceAsync but can't set
the Xsrf token in the normal manner -- ((HasRpcToken)
rpcService).setRpcToken(token); -- because it throws a classcast
exception.

Apperantly creating the WhateverServiceAsync by GWT.create() enables
that cast to succeed.

Trying to write the xsrf token to the body fails as described
previously (even when using the async class) before the call to fetch
the token.

Hmmn...

Shawn

-- 
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: How to send mail using Google App Engine?Very Urgent, I have been waiting for your reply.

2011-09-12 Thread Shawn Brown
        public void init(ServletConfig config) throws ServletException {
                super.init(config);
                System.out.println(Mail Servlet is called);
                Properties properties = new Properties();
                Session session = Session.getDefaultInstance(properties, null);
                String message = Welcome to WWW.DataStoreGwt.com;
                try

Will you really have active session within the init method of a
servlet?  I would think not.

Shawn

-- 
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: How to send mail using Google App Engine?Very Urgent, I have been waiting for your reply.

2011-09-12 Thread Shawn Brown
On Mon, Sep 12, 2011 at 8:00 PM, Shawn Brown big.coffee.lo...@gmail.com wrote:
        public void init(ServletConfig config) throws ServletException {
                super.init(config);
                System.out.println(Mail Servlet is called);
                Properties properties = new Properties();
                Session session = Session.getDefaultInstance(properties, 
 null);
                String message = Welcome to WWW.DataStoreGwt.com;
                try

 Will you really have active session within the init method of a
 servlet?  I would think not.

try

@Override public void doPost(HttpServletRequest req,
HttpServletResponse resp) throws IOException {
//in here
}

-- 
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.



XsrfToken + GWTTestCase = ERROR: GWT.create() is only usable in client code!

2011-09-12 Thread Shawn Brown
Hi,

I'm trying to test rpc calls.

As I am using Xsrf protection, I tried getting a token via the same
code I use in my module:

final XsrfTokenServiceAsync xsrf = (XsrfTokenServiceAsync)
GWT.create(XsrfTokenService.class);

However, this does not work and I see:


 java.lang.UnsupportedOperationException: ERROR: GWT.create() is only
usable in client code!  It cannot be called, for example, from server
code.  If you are running a unit test, check that your test case
extends GWTTestCase and that GWT.create() is not called from within an
initializer or constructor.

1) my unit test does extend GWTTestCAse
2) GWT.create() is not called from within an initializer or constructor

 I am calling from within
 @Test public void test() {

...
final XsrfTokenServiceAsync xsrf = (XsrfTokenServiceAsync)
GWT.create(XsrfTokenService.class);
...
}

Is this sort of usage not viable?

I intend to make rpc calls via syncProxy but can't get by my xsrf protection.

Shawn

-- 
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: Request Factory and com.google.appengine.api.datastore.Text type

2011-09-11 Thread Shawn Brown
 The reason is that String are limited to 500 characters in the datastore.


send a string and convert it before storing

Text text = new Text(someSentString);

...and back out again...

String s = text.getValue();

Shawn

-- 
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: HTML5 Offline Web-Application

2011-08-25 Thread Shawn Brown
 @1: Chrome Dev Tools are great. Nevertheless I was thinking about
 reading the online/offline DOM flag from within my client code to
 detect whether the application is online or offline.

Oh, that I do not know.

 @2: Great idea. Servlet filter, intercepting requests to
 appcache.nocache.manifest and returning the correct one (depending on
 browser version) seems pretty clear to me.

 But I am really stuck on how to write the linker class that generates
 different appcache.nocache.manifest files for every permutation.

oops sorry forgot to say use @Shardable

@Shardable @LinkerOrder(LinkerOrder.Order.POST) public class
SimpleAppCacheLinker extends AbstractLinker {

see 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/ext/linker/Shardable.html

be sure to read the api for the method you'll use to understand the
behavior - it calls link for every permutation and then one final time
(with onePermutation set as true )

-- 
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: HTML5 Offline Web-Application

2011-08-25 Thread Shawn Brown
Hi,

 Sorry for getting confused with the API. I did not want to sound
 rude...

Yeah no problem at all...



 The only solution I have come up so far is this:
 (It generates an offline manifest for every user.agent. So after
 compiling I have six different manifests in the WAR directory.

Which is what you want right?

 @Override
  public ArtifactSet link(TreeLogger logger, LinkerContext context,
 ArtifactSet artifacts,
      boolean onePermutation)
      throws UnableToCompleteException {

    ArtifactSet toReturn = new ArtifactSet(artifacts);

        for (CompilationResult compilationResult :
 artifacts.find(CompilationResult.class)) {
                for (SelectionProperty property :
 compilationResult.getPropertyMap().first().keySet()) {
                        if (property.getName().equals(user.agent)) {
                                String userAgent = 
 compilationResult.getPropertyMap()
                                                .first().get(property);
                                System.out.println(userAgent);
                                // Create the general cache-manifest resource 
 for the
                                // landing page:
                                
 toReturn.add(emitLandingPageCacheManifest(context, logger,
                                                artifacts, userAgent));
                        }
                }
        }

 This calls a method for generating a offline manifest for every
 user.agent. But there gotta be an easier way than to navigate over the
 compilation result?

I don't know one.  I need to add in some .css and .gif files, as well
as get the rpc stuff under network so I do the following:  (well I
took some other stuff out ... but this is mostly it )
.  Your code is probably better than mine.

@Override public ArtifactSet link(TreeLogger logger, 
LinkerContext
context, ArtifactSet artifacts, boolean onePermutation)
throws UnableToCompleteException {

String permutation = null;
String locale = ;
String userAgent = ;
SelectionProperty selectionProperty = null;
Properties props = new Properties();

for (CompilationResult result : 
artifacts.find(CompilationResult.class)) {
permutation = result.getStrongName();

SortedSetSortedMapSelectionProperty, String 
propertiesMap =
result.getPropertyMap();
for (SortedMapSelectionProperty, String sm : 
propertiesMap) {
for (Map.EntrySelectionProperty, String e : 
sm.entrySet()) {
selectionProperty = e.getKey();
if 
(locale.equals(selectionProperty.getName())) {
locale = e.getValue();
}
if 
(user.agent.equals(selectionProperty.getName())) {
userAgent = e.getValue();
}
}
}
props.setProperty(userAgent + . + locale, 
permutation);
}
StringBuilder buf = new StringBuilder();
Log.info(is Shardable:  + isShardable());

StringBuilder network_buf = new StringBuilder();
network_buf.append(NETWORK:).append(SEP);

buf.append(CACHE MANIFEST + SEP + WELCOME + FAVICON + S_STYLE 
+
T_STYLE + WELCOME_STYLE + NO_CACHE_JS + EDIT_STUFF + IMAGES);
buf.append(#).append(System.currentTimeMillis()).append(SEP);

ArtifactSet artifactSet = new ArtifactSet(artifacts);

for (EmittedArtifact artifact : 
artifacts.find(EmittedArtifact.class)) {

if (!artifact.isPrivate()) {

if (!isRPRCall(artifact)) {

if 
(artifact.getPartialPath().contains(rpcPolicyManifest) ||
artifact.getPartialPath().contains(symbolMap)) {
Log.info(NOT ADDING  : + 
(artifact.getPartialPath() + to cache));
} else {
addToCache(buf, artifact);
}
} else {
network_buf.append(HOME + 
artifact.getPartialPath()).append(SEP);
}

}
}
String lang = (locale.equals(default) ?  : . + locale);
if (!onePermutation) {
EmittedArtifact artifact = emitString(logger, 
buf.toString() +
network_buf.toString() + FALLBACK, /../ + userAgent + lang
  

Re: HTML5 Offline Web-Application

2011-08-25 Thread Shawn Brown
 .  I need to add in some .css and .gif files, as well
 as get the rpc stuff under network so I do the following:  (well I
 took some other stuff out ... but this is mostly it )


One more thing:

private void addToCache(StringBuilder buf, EmittedArtifact artifact) {
buf.append(/myApp/ + artifact.getPartialPath()).append(\n);
}

-- 
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: HTML5 Offline Web-Application

2011-08-25 Thread Shawn Brown
 Do I have to rename the returned offline manifest to match the name
 described in the HTML file? (appcache.nocache.manifest)

No,

1) get the servlet context at init time

private ServletContext context;
@Override public void init(FilterConfig arg0) throws ServletException {
context = arg0.getServletContext();

}

2) use that to forward the file
response.setContentType(text/cache-manifest);

context.getRequestDispatcher(/ +
appcache.nocache.manifest.gecko1_8).include(request, response);


 Because now I return appcache.nocache.manifest.gecko1_8 for example...

If the request asks for appcache.nocach.manifest, then that is what
will be returned - athough the contexts will be
appcache.nocache.manifest.gecko1_8


Is appcache.nocache.manifest.gecko1_8 OK?  It doens't have to end with
.manifest ??? I don't know that.

-- 
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: HTML5 Offline Web-Application

2011-08-24 Thread Shawn Brown
Hi,

 I already succeeded in tweaking the simpleappcachelinker class a
 little bit to create a first simple Offline application.

 Now I have two question concerning this topic:

 1.) Are there methods inside GWT to read HTML5 Offline Web Appliation
 events? (Online? Offline? Finished Caching? Caching not
 necessary? ...)

I found the Devloper Tools in Chrome to be extremely useful here.  It
shows the events and what is in the cache.

this was useful to validate the manifest http://manifest-validator.com/

 2.) appcache.nocache.manifest contains all HTML files generated by
 GWT. The effect is that a user calling the web app from FireFox will
 cache all HTML files inside this browser. Altough he/she  would only
 need the FireFox HTML file. Difficult topic because creating the
 manifest happens during linking, browser detection during runtime.

It's really easier than you think.

The link method gets called for each permutation, so just set it up
make a different manifest for each permutation.

Then on your server when your application.manifest is requested,
detect the useragent and version and serve back the appropriate file
for that permutation.  With serlvet filters this is pretty easy.

There is also a linker on the web someplace, can't find the link just
now, that makes a property file with the userAgent and hash (directory
containing that permutation).  I don't really use it but just glanced
at it to veryfy things were right.  The only trick was from within
each link call figuring out what permutation is being created.

I have this;

Properties props = new Properties();

for (CompilationResult result : 
artifacts.find(CompilationResult.class)) {
permutation = result.getStrongName();

SortedSetSortedMapSelectionProperty, String 
propertiesMap =
result.getPropertyMap();
for (SortedMapSelectionProperty, String sm : 
propertiesMap) {
for (Map.EntrySelectionProperty, String e : 
sm.entrySet()) {
selectionProperty = e.getKey();
if 
(locale.equals(selectionProperty.getName())) {
locale = e.getValue();
}
if 
(user.agent.equals(selectionProperty.getName())) {
userAgent = e.getValue();
}
}
}
props.setProperty(userAgent + . + locale, 
permutation);
}

Shawn

-- 
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: (perplexing + frustrating) CSS image not found

2011-08-23 Thread Shawn Brown
 HI,
 Why can I directly access them using the url that it is being reported
 GWT can not find them at.

 I mean:

 /images/panel/top.gif  --- is found
 /images/panel/bottom.gif -- is not found by gwt but can be accessed
 by using the link DevTools says GWT says it's not at.
 It's just beyond crazy.

Yuck.  I will guess that using RunAsync to split code is the cause.

The urls are relative so if called from javascript placed in
/deferredjs/somehash2345, then I guess they can not resolve.

Taking out RunAsnyc seems to work (in GAE devmode at least).

I can't understand though since the script calling from
/deferredjs/somehash2345 seems to find some .gifs but not others.

So, it seems related to RunAsync but exactly how or why I can't say.

Yuck.  This sucks.


Shawn

-- 
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: (perplexing + frustrating) CSS image not found

2011-08-23 Thread Shawn Brown
 .panelAddTop {
  background-image: url(../images/panel/top.gif);
 }

 .panelEnterBottom{
  background-image: url(../images/panel/bottom.gif);
 }

 So I would expect neither or both to be found since they both resolve
 relative to the CSS file.  That one is found but not the other really
 perplexes me since they are both there.

Ok what works is;

  background-image: url(/resources/images/panel/top.gif);
 }

 .panelEnterBottom{
  background-image: url(/resources/images/panel/bottom.gif);
 }

where the application is structured

/war
/war/resources/
/war/resources/images
/war/resources/css
etc.

Since the css file is obviously in /war/resources/css, shouldn't the below work?

 .panelEnterBottom{
  background-image: url(../images/panel/bottom.gif);
 }

Well using RunAsync seems to confuse things...

-- 
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: (perplexing + frustrating) CSS image not found

2011-08-23 Thread Shawn Brown
 Yikes

 Ok what works is;

   background-image: url(/resources/images/panel/top.gif);
  }

  .panelEnterBottom{
   background-image: url(/resources/images/panel/bottom.gif);
  }

 where the application is structured

 /war
 /war/resources/
 /war/resources/images
 /war/resources/css
 etc.


That only tricked devMode
On a real AppEngine deployment it still fails.

Shawn

-- 
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.



(perplexing + frustrating) CSS image not found

2011-08-22 Thread Shawn Brown
Hi,

I have a compiled project deployed on AppEngine.

Some .gif files are not found by GWT.

I am perplexed.

The CSS file is found.
Other .gif images used by the CSS file are found.

Looking at DevTools in Chrome, I see which ones are not found.
Clicking on the link, the server finds them and shows them in my
browser.

Why can I directly access them using the url that it is being reported
GWT can not find them at.

I mean:

/images/panel/top.gif  --- is found
/images/panel/bottom.gif -- is not found by gwt but can be accessed
by using the link DevTools says GWT says it's not at.

Dev mode shows the same things.

It's just beyond crazy.

If client bundle is the only way to use things, the docs should say that.

Shawn

-- 
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.



GWT.runAsync broken

2011-08-13 Thread Shawn Brown
Help,

I'm seeing an error with GWT.runAsync on Safari (v5.1, 4.01):
com.google.gwt.core.client.impl.AsyncFragmentLoader$HttpDownloadFailure:
Download of 
http://xyz.appspot.com/myapp/deferredjs/DB91D61F68FC8AD63A3F2FE426E34531/5.cache.js
failed with status 0()
at Unknown.Gjb(StackTraceCreator.java:168)
at Unknown.vc(StackTraceCreator.java:421)
at Unknown.cjb(Throwable.java:46)
at Unknown.$jb(XhrLoadingStrategy.java:254)
at Unknown.anonymous(XMLHttpRequest.java:287)
at Unknown.pjb(Impl.java:168)
at Unknown.sjb(Impl.java:221)
at Unknown.anonymous(Impl.java:57)

1) the code runs fine on firefox and chrome
2) the 5.cache.js file is there on the server and can be accessed
directly and the server logs report no failure in the resource not
being found (note: the url above was changed for this mail)
3) using GWT 2.3

Fyi the code in question is like:

GWT.runAsync(new RunAsyncCallback() {


@Override public void onFailure(Throwable caught) {

Log.error(err fetching code for controllers, caught);
}


@Override public void onSuccess() {


// do some work

Log.debug(Non history forward called for NAVIGATION with
data: + mvce.getAppEvent().getData());
}
});


What should I be doing?


 Shawn

-- 
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: Problems deploying to app engine

2011-08-13 Thread Shawn Brown
Hi,
 You can see what that is like here:
 http://3.michaeltyack.appspot.com



Look at firebug or the web inspector in safari or chrome and look for
errors in the console.

It shows an error stemming from this code in
909C8695A83550446C89538CB145ACB1.cache.html:1486[object Object]:

function dynamicCast(src, dstId){
  if (src != null  !(src.castableTypeMap$  src.castableTypeMap$[dstId])) {
throw new ClassCastException_0;

  }
  return src;
}

So I would look through your changes and see if there is anywhere you
might be doing something that is causing the app to throw this
ClassCastException.

Shawn

-- 
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: GWT Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-21 Thread Shawn Brown
 Glad it's not just me.
 It broken on SnowLeopard too after upgrading to Version 5.1 (6534.50)

I saved the .dmg and ran the GWT Dev Plugin.mpkg which showed it
installed, but it doesn't show up as installed after re-launching
Safari.


7/21/11 3:44:46.041 PM installd: PackageKit: - Begin install -
7/21/11 3:44:46.736 PM installd: Installed Google Web Toolkit
Developer Plugin ()
7/21/11 3:44:46.748 PM installd: PackageKit: - End install -
7/21/11 3:44:47.046 PM Installer: Removing temporary directory
/var/folders/78/qxddxy2j5y153vbgxv22x4_4gn/T//Install.3352RVZOtz
7/21/11 3:44:47.049 PM Installer: Finalize disk Macintosh HD
7/21/11 3:44:47.050 PM Installer: Notifying system of updated components
7/21/11 3:44:47.050 PM Installer:  Summary Information 
7/21/11 3:44:47.050 PM Installer:   Operation  Elapsed time
7/21/11 3:44:47.050 PM Installer: -
7/21/11 3:44:47.050 PM Installer:zero  0.01 seconds
7/21/11 3:44:47.050 PM Installer:disk  0.02 seconds
7/21/11 3:44:47.050 PM Installer: install  1.09 seconds
7/21/11 3:44:47.050 PM Installer: -total-  1.12 seconds
7/21/11 3:44:47.235 PM Installer: IFDInstallController 83025890 state = 5
7/21/11 3:44:47.235 PM Installer: Displaying 'Install Succeeded' UI.

This didn't work for either SnowLeopard or Lion

Shawn

-- 
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: GWT Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-20 Thread Shawn Brown
 Glad it's not just me.

It broken on SnowLeopard too after upgrading to Version 5.1 (6534.50)

Shawn

-- 
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: GXT : Out of memory error

2011-06-14 Thread Shawn Brown
 I am new to GXT development.We have used GXT in our project. However, on
 running the hosted mode in debug I encounter Out of memory error very
 frequently. Is there any thing which i can do to prevent this or minimize
 the frequency of occurance?
 Any tweaks for this?


Can't you go to Run Configurations (to configure hosted mode) and set
more memory as a VM argument?  Well that assumes you use Eclipse.  I
have -Xmx512m and it never has a problem.

If that doesn't work, I'd try setting a  VM argument under Advanced
when you click to compile the project.  Im not sure if the settings
get carried over to developer mode though, so that's why I'd set it
directly first.

-- 
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: javascript call from GWT?

2011-05-27 Thread Shawn Brown
 Hi group,
 From GWT class, I need to call a javascript method. Please reply asap.

try this http://lmgtfy.com/?q=gwt+call+javascript

Best Regards

-- 
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: New HTML5 features in GWT?

2011-05-22 Thread Shawn Brown
 Whats the plan for other HTML5 features in GWT? Like web worker and/or file

especially about web worker 

Shawn

-- 
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.



GWT Linkers target HTML5 WebWorkers

2011-05-22 Thread Shawn Brown
Hi,

Looking at the GWT Linkers target HTML5 WebWorkers presentation from I/O '10,

it states to load the webworker by calling

new Worker(module.cocache.js);

However the Worker class just has a no-arg constructor.  How do we
load it?  I've got the linker producing the js, but how do I load it?




Shawn

PS - viewing at 27:22 --
http://www.youtube.com/watch?v=omBURP0MxcIfeature=player_embedded#at=1640

-- 
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: GWT RPC XSRF protection - Invalid RPC token

2011-05-05 Thread Shawn Brown
 Hi,

 com.google.gwt.user.client.rpc.XsrfTokenService.getNewXsrfToken()'
 threw an unexpected exception:
 com.google.gwt.user.client.rpc.RpcTokenException: Invalid RPC token
 (Session cookie is not set or empty! Unable to generate XSRF cookie)


What do these show?  Have you tried logging the error?

                                        public void onFailure(Throwable 
 caught) {
                                                try {
                                                        throw caught;
                                                } catch (RpcTokenException e) {
                                                        // Can be thrown for 
 several reasons:
                                                        // - duplicate session 
 cookie, which may be a sign
                                                        // of a cookie
                                                        // overwrite attack
                                                        // - XSRF token cannot 
 be generated because session
                                                        // cookie isn't
                                                        // present
                                                } catch (Throwable e) {
                                                        // unexpected
                                                }
                                        }
                                });
                        }

Do you have gwt-dev.jar in your classpath.  I didn't and was seeing
and unexpected error when it couldn't generate the token for as the
needed class wasn't found.  Not sure if that is your problem or not.

Shawn

-- 
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: [appengine-java] does the Google AppEngine or WebToolkit replace the bootclasspath of the running Java runtime?

2011-03-13 Thread Shawn Brown
Hi,

 Do you have the contact information for the Apple Engineer?

He's contacted you, Toby, off list now.  I got cc'd on the mail.

Let me know if for some reason you didn't get it.

Shawn

-- 
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.



does the Google AppEngine or WebToolkit replace the bootclasspath of the running Java runtime?

2011-03-12 Thread Shawn Brown
Hi,

I used the open-jdk workaround to solve the problems introduced by the
latest apple java sdk update but have a question an Apple engineer
asked me about the following:

http://code.google.com/p/googleappengine/issues/detail?id=4712
http://code.google.com/p/google-web-toolkit/issues/detail?id=6125

does the Google AppEngine or WebToolkit replace the bootclasspath of
the running Java runtime? From the crash reports I've seen, we should
only be failing in native in this way if a couple of new classes we
introduced are not present. I'm not sure how to explain it, but since
the problem appears to be isolated to these Google tools, I can only
speculate that this is the work of JVM wizards who are somehow
replacing our universe with their own.

I don't think AE or GWT do that, do they?

Shawn

-- 
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: Many problems when updating from 2.1.1 to 2.2

2011-02-23 Thread Shawn Brown
 Try http://code.google.com/eclipse/docs/install-from-zip.html

I also had to uninstall the stuff from instantiations such as
GWTDesigner, windowsBuilder etc.

[help -- install new software --  what is already installed --
uninstall GWTDesigner, windowsBuilder etc.]

Seems to works with Ext GWT just fine when you do a full install.
http://code.google.com/webtoolkit/tools/download-gwtdesigner.html

Shawn
osx 10.6, osx 10.5

-- 
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: Problems while installing Google Updates for Eclipse 3.6

2011-02-18 Thread Shawn Brown
Hi,

 I'm also facing the same problem.

 Any help would be appreciated.

Try http://code.google.com/eclipse/docs/install-from-zip.html

I also had to uninstall the stuff from instantiations such as
GWTDesigner, windowsBuilder etc.

[help -- install new software --  what is already installed --
uninstall GWTDesigner, windowsBuilder etc.]

All three items (2.2 plugin, 2.2 gwt, AE 1.4.2) installed just fine.

Shawn
osx 10.6, osx 10.5

-- 
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: Is there a way to use i18n in a shared class that works on client and server too?

2010-12-09 Thread Shawn Brown
Hi,


 How can I handlei18nin a class that I use in server classes and in
 client classes?

Here is a recent thread on the topic.

http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg48015.html

I think you'll find GWT doesn't do this well.

Shawn

-- 
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.



Re: Several Servlets Help

2010-11-28 Thread Shawn Brown
http://lmgtfy.com/?q=servlets

On Mon, Nov 29, 2010 at 2:14 PM, Noor baken...@gmail.com wrote:
 HI, in almost every tutorial I have seen only on servlets, Is it
 possible to have several servlets. if yes how to manage the several
 servlets

-- 
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.



Re: GWT-EXT Store is not working in server side

2010-11-22 Thread Shawn Brown
 I am using GWT-EXT. I am having trouble initializing GWT-EXT Store in
 a RPC call in server side.

I use all my Stores client side.

I can't see the purpose of using it server side.  Of course I load the
data into the store via RPC...

Shawn

-- 
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.



Re: Problem with Google App Engine

2010-11-17 Thread Shawn Brown
 Any ideas?

Get the libraries in your path obviously.

Beyond that though, I can see no purpose for running a swing
application on a server.  How is anyone going to see it?

Anyway, I concede you may be using the class somehow that I can not
fathom, so just look at the error to see what you need.

Shawn

-- 
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.



Re: Problem with Google App Engine

2010-11-16 Thread Shawn Brown
 thanks for the good news. I haven't actually seen the Spring Roo framework
 so far and I don't really need it. Can anyone point out how I can deploy my
 App so that all used classes, including javax.swing.event.EventlistenerList
 will be supported?

Deploy my App means to Tomcat right?

I don't know how to switch an AppEngine project to Tomcat but you
might try within Eclipse to:

1) take out the AE jars from your build path (maybe just by removing
the AE SDK from the libraries tab of your java build path (under
project, properties)
2) uncheck the google app engine validator (under project, properties,
Builders).

Then you have to deploy to Tomcat and get that set up to run in dev mode.

I wonder if starting with a fresh GWT project out of the box that
isn't GAE would be easier.

I think you intend to develop the way you have it though (as a GAE
project), and then just want to deploy to Tomcat.  I wouldn't try that
myself.

Shawn

-- 
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.



Re: Problem with Google App Engine

2010-11-16 Thread Shawn Brown
 so I followed your advice to set up a completely new GWT project in eclipse
 without App Engine support (unchecked during creation of the project). When
 I linked the classes i need that are not supported by GAE, I did no longer
 get an error from Eclipse. So I thought: success. After running the GWT
 compiler and deploying the whole thing to Tomcat, the application runs, but
 when the non-compliant code is triggered, I get an error message from the
 GreetSerciveImpl.class. When commenting these non-compliant lines of code
 out, there is no more error.

What is the error?  Same one - not supported in GAE?

If so, are you sure that class was recompiled after your switch?  Are
you sure you have no GAE in you lib or builders?

Shawn

-- 
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.



Re: Problem with Google App Engine

2010-11-16 Thread Shawn Brown
 What is the error?

Are you sure javax.swing.* is supported in GWT?

 Shawn

-- 
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.



Re: GWT + JDO (GAE)

2010-11-07 Thread Shawn Brown
 Hi,

 I've been using JDO these weeks. I've followed the tutorial at GAE
 Docs, and I learned how to create and get entity objects.

It just my opinion based on struggling with JDO that objectify is much
easier to use.  Much much much easier.

http://code.google.com/p/objectify-appengine/

Shawn

-- 
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.



Re: 2.1 linker changes (solved)

2010-11-02 Thread Shawn Brown
Hi,

 In 2.04 appName.nocache.js was emitted in the link method but in 2.1 it 
 isn't

 Yes it is, but the SelectionScriptLinker now supports
 shardability (and all built-in linkers are shardable), so the linker
 is called once per permutation and then a last time after all
 permutations have been compiled; and the selection script is only
 emitted during that last call.

OK Thanks!

I had to:
1) annotate my link class with
@Shardable

2) use the link(TreeLogger, LinkerContext, ArtifactSet, boolean)
method-- [in 2.04 I used the link method without a boolean parameter]


Example:

package com.google.gwt.sample.hello.server;

import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.ext.LinkerContext;
import com.google.gwt.core.ext.TreeLogger;
import com.google.gwt.core.ext.UnableToCompleteException;
import com.google.gwt.core.ext.linker.AbstractLinker;
import com.google.gwt.core.ext.linker.ArtifactSet;
import com.google.gwt.core.ext.linker.EmittedArtifact;
import com.google.gwt.core.ext.linker.LinkerOrder;
import com.google.gwt.core.ext.linker.Shardable;

@Shardable
@LinkerOrder(LinkerOrder.Order.POST)
public class TestLinker extends AbstractLinker {

@Override
public String getDescription() {
// TODO Auto-generated method stub
return testLinker;
}

@Override
public ArtifactSet link(TreeLogger logger, LinkerContext context,
ArtifactSet artifacts, boolean test) throws UnableToCompleteException
{
Log.info(link);
Log.info(is Shardable: +isShardable());

for (EmittedArtifact artifact : 
artifacts.find(EmittedArtifact.class)) {
Log.info(emitted artifacts info: 
+artifact.getPartialPath());
}


return artifacts;
}



}

-- 
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.



Re: Announcing GWT 2.1

2010-10-31 Thread Shawn Brown
 That being said, I'm not a Spring (nor Guice) fan, so would actually
 enjoy seeing numbers that show, say, your stack w/Spring takes x% more
 time than the same stack w/o Spring.


Here's what I read...

I’ve been able to reduce my cold start time on AppEngine from an
average of 8.1s to 2.5s, a 69% reduction ...by eliminating DI
frameworks and using Objectify for persistence.
http://turbomanage.wordpress.com/2010/03/26/appengine-cold-starts-considered/

Spring MVC added around 6 seconds to the cold start time
http://blog.listry.com/2010/03/google-app-engine-cold-start-guide-for.html

Shawn

-- 
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.



Re: 2.1 linker changes

2010-10-31 Thread Shawn Brown
Should appName.nocache.js be one of the Artifacts obtained via
artifacts.find(EmittedArtifact.class)?

In 2.04 it was emitted in the link method but in 2.1 it isn't

Is this by design?  If so, what is the design?!?

Shawn


 Later the log reports  Emitting resource projectName.nocache.js

 Just to clarify.

 Version 2.0.4 includes appName.nocache.js in the ArtifactSet passed
 into the link method of a class that extends AbstractLinker AND
 reports writing it to disk Emitting resource appName.nocache.js and
 writes it to disk

 Version 2.1 DOES NOT include appName.nocache.js in the ArtifactSet
 passed into the link method of a class that extends AbstractLinker BUT
 DOES report writing it to disk Emitting resource appName.nocache.js
 and writes it to disk

 What I can't understand is why artifacts.find(EmittedArtifact.class)
 does not now find appName.nocache.js.  EmittedArtifacts are defined in
 the api (both 2.04 and 2.1) as An artifact that will be emitted into
 the output. All EmittedArtifacts contained in the ArtifactSet at the
 end of the Linking process will be emitted by the compiler into the
 module's output directory.

 appName.nocache.js IS emitted into the output so WHY IS IT NO LONGER
 IN THE ARTIFACT SET?

 Shawn


-- 
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.



Re: Announcing GWT 2.1

2010-10-31 Thread Shawn Brown
 That being said, I'm not a Spring (nor Guice) fan, so would actually
 enjoy seeing numbers that show, say, your stack w/Spring takes x% more
 time than the same stack w/o Spring.

One more:

http://www.streamhead.com/google-appengine-java-loading-request-analysis/

Shawn

-- 
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.



2.1 linker changes

2010-10-29 Thread Shawn Brown
Hi,

On upgrade to 2.1, a linker I used to catch the projectName.nocache.js
file that I need.

I used to find it in the link method but now it doesn't appear in the
ArtifactSet.

   @Override
   public ArtifactSet link(TreeLogger logger, LinkerContext context,
ArtifactSet artifacts) throws UnableToCompleteException {

   ArtifactSet artifactSet = new ArtifactSet(artifacts);

   for (EmittedArtifact artifact :
artifacts.find(EmittedArtifact.class)) {


   if
(artifact.getPartialPath().equals(projectName.nocache.js)) {
   Log.info(artifact
projectName.nocache.js found);

...


Later the log reports  Emitting resource projectName.nocache.js

There is nothing in the release notes.

Can we please have documentation on such important changes.

Please Please Please Please Please Please PLEASE!!!


Shawn

-- 
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.



Re: 2.1 linker changes

2010-10-29 Thread Shawn Brown
 Later the log reports  Emitting resource projectName.nocache.js

Just to clarify.

Version 2.0.4 includes appName.nocache.js in the ArtifactSet passed
into the link method of a class that extends AbstractLinker AND
reports writing it to disk Emitting resource appName.nocache.js and
writes it to disk

Version 2.1 DOES NOT include appName.nocache.js in the ArtifactSet
passed into the link method of a class that extends AbstractLinker BUT
DOES report writing it to disk Emitting resource appName.nocache.js
and writes it to disk

What I can't understand is why artifacts.find(EmittedArtifact.class)
does not now find appName.nocache.js.  EmittedArtifacts are defined in
the api (both 2.04 and 2.1) as An artifact that will be emitted into
the output. All EmittedArtifacts contained in the ArtifactSet at the
end of the Linking process will be emitted by the compiler into the
module's output directory.

appName.nocache.js IS emitted into the output so WHY IS IT NO LONGER
IN THE ARTIFACT SET?

Shawn

-- 
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.



Re: GWT Designer not available ...

2010-09-01 Thread Shawn Brown
 The email address dev-tools-sa...@google.com is not valid.
 What is the actual email address to use?

What I did was check the original message I got when I purchased a
license.  There was an email address of an individual there to contact
if there were any questions.

He was out of town but someone there got back to me right away with a
way to download the product.

Shawn

-- 
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.



Re: Digest for google-web-toolkit@googlegroups.com - 25 Messages in 14 Topics

2010-08-30 Thread Shawn Brown
 Please stop emailing me. No more. I have so many emails from this

 To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.

-- 
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.



Re: GWT eat your own dogfood ? Future of GWT ?

2010-08-27 Thread Shawn Brown
 Unfortunately, we have to manually approve posts from new members to
. We typically review postings from new members several
 times a day. After that, your posts should appear immediately.


 Please, consider removing this manual control spam. It is slowing
 down the community. We have to wait for official Google presence in
 the groups for us to keep talking about how to solve our problems. I
 do not post most of the times because I know it will take around a day
 to see my post here and get reply for anyone.

The only way I see it taking Google moderation every time is if you
are using a new member name for each message.  As I am sure you are
not, it seems you don't understand the manual control spam system
they have.  I don't see a problem here.

Shawn

-- 
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.



Re: Reusing GWT Localization in Server Side Code

2010-08-27 Thread Shawn Brown
 all localisation should be done on client side in a clean
 architecture, even notifications.
 Localisation is presentation logic which belongs to the client
 Server should only hold persistence and business logic.

 Send error/warning/information codes plus parameters to the client.

That's a nice theory but it in cases where the server needs to send
out email for say a lost password or a pdf summary of something, it
would be nice to be able to use some of the localization constants
that I've defined.  I guess in clean architecture you are saying the
client sends the info to the server to send out in the mail unless you
somehow have clients sending mail and generating pdfs.

Notifications make sense because they go through the client, but not
all contact goes through the client.  Do they?

Shawn

-- 
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.



Re: Detecting mobile phones browser

2010-08-15 Thread Shawn Brown
 I wont to know if by checking the user.agent property in the gwt.xml

I don't know what that returns but have seen this in my servlets with
Android 2.1

GET /myCache.manifest HTTP/1.1 200 1120 - Mozilla/5.0 (Linux; U;
Android 2.1-update1; en-us; HTC Magic Build/EPE54B) AppleWebKit/530.17
(KHTML, like Gecko) Version/4.0 Mobile Safari/530.17,gzip(gfe)

...so if user.agent isn't telling you, I think you can figure it out
server side.  User agent would return safari for this phone wouldn't
it?


 And also, are there nasty restrictions on the JS (thus GWT classes)
 on those browsers ?(at least for those very widely used)

I haven't seen any on the browser used for Android 2.1

Shawn

-- 
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.



Re: why we probably won't use GWT for a large UI project

2010-08-10 Thread Shawn Brown
 I'm looking to get this group's feedback before I present my findings
 to the team. What do you think?

If open source is nice then go for gpl and ExtGWT (GXT).  If you don't
pay the commercial fee, then you have to open source your project I
believe.

Shawn

-- 
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.



Re: GWT, web service and reverse ajax/Comet

2010-08-10 Thread Shawn Brown
 I don't think you can because you can't keep a connection open to the
 client so polling would be your only option.

Sorry I was thinking you were using GoogleAppEngine too.  My bad...

If not , yeah.

-- 
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.



Unmatched /embed encountered. in script from dev mode

2010-08-09 Thread Shawn Brown
Hi,


**[safari plugin seems broken]**

In Dev mode when accessing my page, I immdiately see

 [The HTML that caused this error was generated by a script.]
Unmatched /embed encountered.  Ignoring tag.

Then inexplicably, I see .gif files not being resolved.  They are
there when deployed and I can actually see them resolved in dev mode
by looking at Safari's dev tools.  They only appear in the dev tools
though and show a error in console and do not appear on the actual
page.

**[firefox is ok]**
**[deployed is ok]**

-- 
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.



Re: GWT, web service and reverse ajax/Comet

2010-08-09 Thread Shawn Brown
 I have found StreamHub, GWT-Comet (and more) online but I'm not sure
 if I can use these libaries in the manner I am proposing...

I don't think you can because you can't keep a connection open to the
client so polling would be your only option.

Personally I liked DWR.

If you have a 2rd server that has an open connection to the client you
can tell --

AppEng -- 2rd server (tell client that a message is waiting) --
client (call AE as a message is waiting) --- Appengine (can I have
my waiting message) -- client (here is your message)

There may be a more appropriate appeng specific mechanism in the works
but I'm not on top of it.

-- 
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.



Re: Anyone know of any Android History token problems?

2010-08-06 Thread Shawn Brown
 I've noticed the browser on my Android phone doesn't seem to fire some
 history events for my little online game;

 I wondered if this was a Android issue, or something with my code that
 only shows up on Android.

I've seen it too but haven't gotten to the bottom of it.

Sometimes it works especially if the address bar has focus and I
manually enter it and press go.

although, have you ever entered in your url#history_marker and pressed
go only to see the page load without the #history_marker?  I have.

Another thing I notice is that when I manually enter a new address and
press go to well load that page, the url displayed in the browser
reverts back to the previous url for a second and then finally
resolved and displays the page I request.

So yeah I think Android loses the #history token sometimes but I don't
understand at all when or why consistently.

A bookmark with a history token seems to load consistently in a new
tab.  That is about all I know.

-- 
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.



Re: instance of Servlet in web.xml

2010-08-05 Thread Shawn Brown
 I need to get and instance of the servlet specified in web.xml. I have
 a main running in the same JVM as the servlet.

I think you need to understand GAE.  I don't think you know what JVM
you are running in GAE and that it can be killed at any time and that
what your client sends may be handled by any JVM.  See if java.rmi is
supported in GAE whitelisted classes if you want to try.

GAE instances come and GAE instances go.  Even sessions get persisted
to BigTable (the database) for this reason.

-- 
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.



Re: Wave Demise.........sad day for GWT

2010-08-04 Thread Shawn Brown
 I just worry about GWT itself.  Google may kill GWT some day. Our
 project heavy uses it:(.

Not anytime soon I imagine.

Look Google just acquired instantiations which makes the gwtdesigner.

http://www.instantiations.com/

-- 
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.



which permutation which user.agent HTML5 manifest help!!!

2010-08-04 Thread Shawn Brown
How can I know which which permutation (exactly which files) are for
which user.agent?

I assume that information is available if I look for it during compile
time by extending an AbstractLinker, adding it my xxx.gwt.xml config
file.

I need to know because in order to make a cache.manifest for offline
HTML5 storage, I need to know which files go in there.

I can make a manifest now but it has files for my 12 permutations.
Try using that on your Android phone.  While it works, it seems to
take like 5-10 minutes to pull the files from cache.  I'm not exactly
sure here but wouldn't you suspect having all 12 version in the
manifest file is the culprit.  It seems all files for all versions are
downloaded, cached and retrieved.

How then can I make a separate manifest file for each user.agent?  I
can just specify a generic html manifest=generic.manifest/ in my
base page and then in a servlet filter detect user.agent and return an
appropriate manifest.

My problem is that I don't know what files are for which user.agent.

Anyone?

Does anyone know which GWT class is responsible for writing the
xxx.nocache.js file.  Whatever is writing that file has the
information I need but how to get it?

I'll start wading through GWT src but does anyone know?

I can watch Cache event in chrome and I know the manifest is causing
all versions of all user.agents to be downloaded and stored.  Well
that is what I told it to do because I don't know which files are used
by which user agent.

Should I file a bug?  Is there one already?  I GWT just inherently
HTML5 unfriendly?  Shouldn't be.

Shawn

-- 
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.



Re: How does Google earn money from GWT?

2010-08-02 Thread Shawn Brown
Surely one way could be via appengine.

no?

-- 
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.



Re: How does Google earn money from GWT?

2010-08-02 Thread Shawn Brown
 During my GWT presentation, I was being asked this question which I
 could not answer. It goes, How does Google earn money from GWT?

AdWords is a small product at Google. You may have heard of it. And
it's recently been--the user interface of that has been revamped from
the ground up as a GWT application. -Ray Ryan
http://extgwt-mvp4g-gae.blogspot.com/2009/10/gwt-app-architecture-best-practices.html

AdWords is Google's flagship advertising product and main source of
revenue. Google's total advertising revenues were USD$23 billion in
2009. -http://en.wikipedia.org/wiki/AdWords


Shawn

-- 
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.



Re: How does Google earn money from GWT?

2010-08-02 Thread Shawn Brown
@Frank A

 I hate stupid spammy sites like yours that steal content and load their site
 with ads. Here's the original source of the IO session

Me too.  Didn't have the proper original link.  Sorry about that.
Please don't accuse me though without knowing the facts first.  But I
do hate those sites too so your are off the hook.

 http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html

 http://dl.google.com/io/2009/pres/Th_0200_GoogleWebToolkitArchitecture-BestPracticesForArchitectingYourGWTApp.pdf

-- 
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.



Re: HTML5 Offline GWT APP

2010-07-29 Thread Shawn Brown
Hey Julio,

 The problem is finding out which files are cached and how... i don't
 know if there is any tool that show you that.

Here's one way...

Go to the The Application Cache Database section
http://building-iphone-apps.labs.oreilly.com/ch06.html

Shawn

-- 
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.



Re: HTML5 Offline GWT APP

2010-07-28 Thread Shawn Brown
Hi,

 The problem is finding out which files are cached and how... i don't
 know if there is any tool that show you that.

I tried to see what would happen if a file wasn't cached by using a
whitelist of things to load off the network.

CACHE MANIFEST
...list of files...

NETWORK:
index.html
myapp.nocache.js

I wanted to see what I'd see in firebug when a resource wasn't cached
and it wasn't available.

I couldn't though as the dev server
(com.google.appengine.tools.development.gwt.AppEngineLauncher ) is
rewriting the cache files.

If I lock the file, the server won't start and if I rewrite the file
after the server starts, the server keeps rewriting it for
everyrequest.

There is a big difference between the linker manifest and the
appengine dev server generated one, but anyway my app works fine even
without many needed .js files in the manifest.  That is of course
until the first rpc call but that is to be expected and I'll have to
get data from the database.

Anyway, thanks for your help.  I'll try the network whitelist when I
get a minute with a real deploy.  I'm curious what we'll see.  Judging
from the gears lists, it'll just be a html error code type thing when
a server isn't available.

Shawn

FYI, why not a filter instead of a Servlet


filter-nameOfflineManifestFilter/filter-name
filter-classapp.server.OfflineManifestFilter/filter-class
/filter


filter-mapping
filter-nameOfflineManifestFilter/filter-name
url-patternapp.manifest/url-pattern
/filter-mapping



package app.server;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import com.allen_sauer.gwt.log.client.Log;



public class OfflineManifestFilter implements Filter {

@Override
public void destroy() {
// TODO Auto-generated method stub

}

@Override
public void doFilter(ServletRequest request, ServletResponse
response, FilterChain chain) throws IOException, ServletException {

Log.info(request for OfflineManifest);
response.setContentType(text/cache-manifest);
chain.doFilter(request, response);

}

@Override
public void init(FilterConfig arg0) throws ServletException {
// TODO Auto-generated method stub

}

}

-- 
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.



Re: HTML5 Offline GWT APP

2010-07-27 Thread Shawn Brown
Hi Julio,

 Thanks Arthur, the linker works perfectly.

Did you use the  com.google.gwt.core.ext.linker.AbstractLinker  and
just override the link method?

If so, are we just outputting the file names to make a suitable
manifest in the link method.  Will this compile the project and make
the manifest at the same time or is it a two step process.

May I please see your linker code!?!  Is there a manifest linker
available someplace?


 I am using google plugin for eclipse and gae-java

Me too and if I have any info I'll share but right now am a step or
two behind you.

Thanks,

Shawn

-- 
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.



Re: HTML5 Offline GWT APP

2010-07-27 Thread Shawn Brown
 It seems to be working, but debugging is not easy.

Why is that?

Can't you use Firebug, the Error console in Safari or the Dev console
in chrome to display logging?

Sorry if it's a dumb question but ...

Anyway thanks!

Shawn

-- 
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.



(Random can't be used in a static method) ?????

2010-07-22 Thread Shawn Brown
is this as expected (Random can't be used in a static method) ?

public static void test() {  // static method
Log.info(random int +Random.nextInt(6));
}

-throws a java.lang.UnsatisfiedLinkError:
com.google.gwt.user.client.Random.nextInt(I)I

BUT ...

com.google.gwt.user.client.Random;

public void test() { // non-static method
Log.info(random int: +Random.nextInt(6));


-IS OK!!!


- a l s o --


java.util.Random random = new Random;

public static void test() {  // static method
Log.info(random int +random.nextInt(6));
}

-throws a nullpointer

BUT ...



public void test() {  // not static
Log.info(random int +random.nextInt(6));
}

-is fine!!!



Aaah.  Damn, I just re-factored for hours and made a static
reusable utility class...


Why can't I do that by the way?


Shawn

-- 
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.



  1   2   >