Re: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

2013-06-15 Thread John V Denley
Just had the same problem myself, and found that to fix it I had to do what 
you suggested, but I also had to manually create a Prefs key under 
JavaSoft too, as mentioned here:
http://www-01.ibm.com/support/docview.wss?uid=swg21496098

On Friday, 14 June 2013 02:02:26 UTC+1, QingFeng Du wrote:

 well well, 4 years later, I came across the same problem.
 here's my solution:
 open regedit.exe ( really hate Microsoft and their regedit.reg).
 change the permission of key: 
 HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft.Right click the icon, then change 
 the permission to full operation.

 On Saturday, June 27, 2009 3:03:20 PM UTC-4, Farinha wrote:

 The subject has it all. 

 Eclipse 3.4.2 
 GWT Eclipse Plugin 
 Windows 7 

 Thanks in advance for the help. 



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Chrome 24 and GWT

2013-01-24 Thread John V Denley
Looks to me like the latest release (Version 24.0.1312.56 m) fixes this 
issue...

On Sunday, 20 January 2013 22:04:32 UTC, darkflame wrote:

 Just to confirm/clarify this problem as I found it today. 


 PopupPanel test = new PopupPanel(); 

 test.add(new Label(test)); 

 test.setAnimationEnabled(true); 

 test.center(); 

 Is all it takes to reproduce it for me. 
 Animation seems to have to be true, it seems to work fine without, so 
 that could be a workaround for some people needing 2.4. 


 On Jan 15, 2:22 am, Thomas Broyer t.bro...@gmail.com wrote: 
  Sorry, didn't see that part of your mail: 
  
  On Monday, January 14, 2013 5:43:36 PM UTC+1, zarfh...@gmail.com wrote: 
  
   Perhaps you have the resources to fully regression test all of your 
   applications every week on all 8 or 9 different supported browsers, 
 plus 
   dev/beta versions, but in the real world of enterprise software, 
 that's 
   simply not feasible. 
  
  I don't have those resources, but I'm aware that it's what I should do. 
  It's actually even worse: I'm paid to build webapps, not maintaining 
 them. 
  We're not proactive on browser changes because that's not part of the 
 deal 
  with our customers, but we're generally in the situation of shipping a 
  fixed version (provided there's an easy fix or workaround) in a matter 
 of 
  hours. Once the warranty period is over however, I bet nobody does 
 testing 
  either and fixes can take ages. 
  BTW, I also know there *are* people in the real world of enterprise 
  software who *do* end-to-end testing, either using Selenium/WebDriver 
 on a 
  cluster of servers, or using SaaS such as Sauce Labs, driven by a CI 
 server 
  (Jenkins/Hudson, TeamCity, Bamboo, etc.) to be run on each commit and/or 
  nightly. 
  
  The root of the issue is that most people (IT deps mostly) ask for 
 webapps 
  rather than native apps (generally to replace native apps) for bad 
 reasons 
  and/or without understanding the consequences. 
  
   Stable software should remain stable. If a customer upgrades his 
 version 
   of Windows, I shouldn't expect the new version to suddenly start 
 working 
   strangely because of a radical change in how animations are rendered. 
 A 
   similar concept should apply for web browsers. 
  
  ROTFL! 
  Are you talking about that Windows OS that breaks its WebDAV support in 
  almost every new version or service pack, and even sometimes hotfixes?
 http://www.greenbytes.de/tech/webdav/webdav-redirector-list.html(I had to 
  do an emergency patch in a server after the SP1 was deployed on Win7 
 this 
  fall; BTW the webapp is 4 years old 'cause nobody allocated the budget 
 to 
  maintain and update it, not even with security fixes: “if it ain't 
 broke, 
  don't fix it”, BS; this is the state of software in the real world of 
  enterprise software: zombie servers on a drip of emergency fixes to 
 keep 
  them alive) 
  The one OS for which every IT department delays hotfix/SP deployment by 
  fear of breaking their payroll or LoB apps? (which is probably the main 
  reason there's still so many IE7 and IE8 out there –last year I would 
 even 
  have added IE6 to the list–). 
  
  But again, we're talking here about a bug in GWT, in the use of a beta 
  API. And that bug was fixed long before the change in Chrome reached end 
  users. 
  Also note that in a closed environment (intranet) running Windows, you 
 can 
  disable Chrome and/or ChromeFrame auto-updates using a group policy. 


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




Re: Chrome 24 and GWT

2013-01-14 Thread John V Denley
Yup, same problem for me at www.DiaryBooker.com/demo - click any 
appointment location to create a new appointment and you see it right 
there! 

This has actually happened before and a few updates later it had gone away 
again!

I'm not sure what version of GWT is currently live, but my current 
development version is not showing this issue, trouble is I am halfway 
through a massive update, so cant make any changes to the current live 
version and Im getting complaints from my customers I have had to tell 
them to use Internet Explorer while we wait for Google to fix it!!

On Thursday, 10 January 2013 23:08:25 UTC, Paul wrote:

 This morning Google updated Chrome to version 24.  Now all my GWT 
 (animated) dialogs flash when opened.  They continuously open/close and 
 give a flashing effect.  I can't access the buttons to close them and have 
 to kill the browser window to stop it.  Confirmed on linux mint (13) and 
 Windoze 7 versions of Chrome.  I had another linux box that I did not allow 
 to update, and confirmed that Chrome 23 (and previous) does not do this. 
  I've seen one other person complain of this on the Chrome forum.  Just 
 thought everyone should know!

 Paul



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/e-OyQG0OojoJ.
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: Chrome 24 and GWT

2013-01-14 Thread John V Denley
Any idea how I can fix this/workaround this in a currently live product, 
that I am unable to recompile/redeploy? Can I set something in chrome to 
stop it happening or revert back to an older version?

On Sunday, 13 January 2013 22:12:20 UTC, Craig Mitchell wrote:

 Thanks Andy!  Your workaround works great!

 +1 for not happy with Google!  GWT 2.4 is supposed to be the stable build! 
  We've been deferring going to GWT 2.5 because we wanted the stability.

 Summary for workaround is to add the following to your .gwt.xml file:

 !-- TEMP FIX UNTIL GOING TO GWT 2.5 --
 !-- Fallback implementation, based on a timer --
 replace-with 
 class=com.google.gwt.animation.client.AnimationSchedulerImplTimer
   when-type-is 
 class=com.google.gwt.animation.client.AnimationScheduler/
   any
 when-property-is name=user.agent value=ie6/
 when-property-is name=user.agent value=ie8/
 when-property-is name=user.agent value=ie9/
 when-property-is name=user.agent value=safari/
 when-property-is name=user.agent value=opera/
   /any
 /replace-with

 !-- Implementation based on mozRequestAnimationFrame --
 replace-with 
 class=com.google.gwt.animation.client.AnimationSchedulerImplMozilla
   when-type-is 
 class=com.google.gwt.animation.client.AnimationScheduler/
   when-property-is name=user.agent value=gecko1_8/
 /replace-with
 !-- * END * --



 On Saturday, January 12, 2013 5:20:20 AM UTC+11, Andy wrote:

 I posted the workaround that we're using to the chromium issue thread: 
 http://code.google.com/p/chromium/issues/detail?id=158910

 We have 100s of customers with servers deployed behind firewalls so this 
 is going to be ugly.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/QctnmlGYQYkJ.
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: Chrome 24 and GWT

2013-01-14 Thread John V Denley
Yes Thomas, you are quite correct on two very good points, firstly that my 
customers are technically waiting for ME to upgrade to 2.5 and secondly 
that I SHOULD have been using an SCM and/or should have been taking regular 
backups... thats TOTALLY on me..

I have grown organically and was not even aware of how to use an SCM when I 
started development back in 2009, its been a learning experience the whole 
way through, and the reason I chose GWT as a development platform was so 
that I would not have to worry about testing against all the possible 
browser options. (Yes it quickly became obvious that Google do not take ALL 
the cross browser pain away!)

I actually dropped my pc (attached to my backup device, while backing up 
and managed to destroy both beyond recovery - I spend over £500 trying to 
recover the data) 

I am working through the process of rebuilding the product since my last 
cloud backup in April 2012, but that was built in GWT2.4. So yes, I cant 
branch my SCM (didnt have one) and I didnt plan for that eventuality. I am 
NOW using GIT and BitBucket and SugarSync, DropBox and Google Drive to back 
EVERYTHING up constantly!

I relied too heavily on Google taking care of all browser compatibility and 
I didn't fully comprehend the dangers of not being absolutely meticulous... 
totally my fault on those two issues, but still its annoying that an 
automatic update to Chrome has broken my application. Sure, I should be 
able to  fix and be agile and maneuver  but currently I'm not, so I am 
stuck in the short them having to ask my customers to go use firefox or 
safari or god forbid even IE (v8 at least!!)


On Monday, 14 January 2013 16:26:19 UTC, Thomas Broyer wrote:



 On Monday, January 14, 2013 2:53:52 PM UTC+1, John V Denley wrote:

 Yup, same problem for me at www.DiaryBooker.com/demo - click any 
 appointment location to create a new appointment and you see it right 
 there! 

 This has actually happened before and a few updates later it had gone 
 away again!

 I'm not sure what version of GWT is currently live, but my current 
 development version is not showing this issue, trouble is I am halfway 
 through a massive update, so cant make any changes to the current live 
 version


 You mean that cannot even create a branch in your SCM from the commit you 
 last deployed, apply the workaround and re-deploy? And you didn't plan for 
 that eventuality?
  

 and Im getting complaints from my customers I have had to tell them 
 to use Internet Explorer while we wait for Google to fix it!!


 You mean while they wait for you to update, right?

 I don't get why people get angry here: there was a bug in GWT, it was 
 fixed 8 months ago in trunk and was released nearly 3 months ago (before 
 users on the stable channel of Chrome could even notice). There's an easy 
 workaround too for people not ready to update to GWT 2.5.
 So what's the problem actually? You didn't test your apps with beta or dev 
 versions of your browsers (that gives you 6 to 12 weeks to fix issues 
 before your users can notice), you're 3 months late on updating to the 
 latest stable release of GWT *and* you cannot deploy an updated version 
 (recompiled with the workaround) quickly. You can blame GWT for using a 
 beta, though rather stable, API (requestAnimationFrame) to smooth the 
 rendering of your app and having made assumptions on the value it received 
 as argument and the exact time it'll be called back, but GWT is not the 
 only one to blame by an order of magnitude.
 The Web is a moving target: browsers update and can break your code as 
 soon as you (or the lib you use) a) make assumptions on browsers behaviors, 
 b) use beta APIs or c) use hacks or workarounds. When working with web 
 technologies (whether it's GWT, jQuery or vanilla JS), it's very important 
 to regularly a) test in beta or dev versions of your browsers, b) update to 
 the latest release of the libs you use and c) be prepared to re-deploy 
 quickly.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bPZf01ykJbgJ.
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: Chrome 24 and GWT

2013-01-14 Thread John V Denley
Yes I have had to send an email to all my customers telling them to 
temporarily switch to firefox, safari or IEv8+

On Monday, 14 January 2013 14:02:25 UTC, Samyem Tuladhar wrote:

 Switch to Firefox!

 On Monday, January 14, 2013 8:55:55 AM UTC-5, John V Denley wrote:

 Any idea how I can fix this/workaround this in a currently live product, 
 that I am unable to recompile/redeploy? Can I set something in chrome to 
 stop it happening or revert back to an older version?

 On Sunday, 13 January 2013 22:12:20 UTC, Craig Mitchell wrote:

 Thanks Andy!  Your workaround works great!

 +1 for not happy with Google!  GWT 2.4 is supposed to be the stable 
 build!  We've been deferring going to GWT 2.5 because we wanted the 
 stability.

 Summary for workaround is to add the following to your .gwt.xml file:

 !-- TEMP FIX UNTIL GOING TO GWT 2.5 --
 !-- Fallback implementation, based on a timer --
 replace-with 
 class=com.google.gwt.animation.client.AnimationSchedulerImplTimer
   when-type-is 
 class=com.google.gwt.animation.client.AnimationScheduler/
   any
 when-property-is name=user.agent value=ie6/
 when-property-is name=user.agent value=ie8/
 when-property-is name=user.agent value=ie9/
 when-property-is name=user.agent value=safari/
 when-property-is name=user.agent value=opera/
   /any
 /replace-with

 !-- Implementation based on mozRequestAnimationFrame --
 replace-with 
 class=com.google.gwt.animation.client.AnimationSchedulerImplMozilla
   when-type-is 
 class=com.google.gwt.animation.client.AnimationScheduler/
   when-property-is name=user.agent value=gecko1_8/
 /replace-with
 !-- * END * --



 On Saturday, January 12, 2013 5:20:20 AM UTC+11, Andy wrote:

 I posted the workaround that we're using to the chromium issue thread: 
 http://code.google.com/p/chromium/issues/detail?id=158910

 We have 100s of customers with servers deployed behind firewalls so 
 this is going to be ugly.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/qNjcQHPHr4kJ.
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.



how does your website look in other browsers.....

2010-10-22 Thread John V Denley
http://browsershots.org

I just found this website, which loads your website into 57+ different
types of browser and then grabs a screenshot and displays them on a
specific webpage.

I found it really interesting what worked and what didnt... obviously
quite a lot of browsers are not specifically supported by GWT

But it might be good for the Google Guys to take a look at this
website and compare it with their own tests to see if its a valid test
site?


Cheers,
J

-- 
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 your website look in other browsers.....

2010-10-22 Thread John V Denley
If you dont want to wait for your own website to be rendered then the
results of mine are here:

http://browsershots.org/http://www.diarybooker.com/#

Interestingly quite a lot of them dont have javascript enabled and a
fair few generate certificate errors and some have cookies turned
off.

On Oct 22, 6:44 pm, John V Denley johnvden...@googlemail.com wrote:
 http://browsershots.org

 I just found this website, which loads your website into 57+ different
 types of browser and then grabs a screenshot and displays them on a
 specific webpage.

 I found it really interesting what worked and what didnt... obviously
 quite a lot of browsers are not specifically supported by GWT

 But it might be good for the Google Guys to take a look at this
 website and compare it with their own tests to see if its a valid test
 site?

 Cheers,
 J

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



user.agent options

2010-08-31 Thread John V Denley
Does anyone know if there is a comprehensive list of options that a
compatible with the different versions of GWT?

I cant seem to find a list anywhere, it actually took me a while to
work out that safari = chrome, and surprisingly it even took a
while (without just trying it) to find out that ie8 was the option for
ie8!

Im guessing that this should be in some documentation somewhere,
forgive me if i have missed it, but I just cant find it and was hoping
someone here has already found it!

elsewhere on this forum Ive found that gecko=FF3, but then someone
else said that gecko1_8 is right for FF3

and in another thread: Yep, safari actually means webkit as in
Safari, Chrome, Symbian's
S60 browser (as found within Nokia phones), Mobile Safari (as found in
the iPhone), Android's browser, etc. 

-- 
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: clean compile gives the parameter is incorrect

2010-04-09 Thread John V Denley
Tahnks guys, I have added to the existing issue (4395). Feel free to
let me know if you need anything else.
J

On Apr 7, 2:43 pm, Miguel Méndez mmen...@google.com wrote:
 FWIW, there is already an issue filed against the GWT Compile action in GPE.
  CreateProcess Error On GWT Compile With Long Classpath 
 -http://code.google.com/p/google-web-toolkit/issues/detail?id=4395.  It uses
 the same process launching infrastructure that the enhancer uses.  Feel free
 to add to it or create a new bug and link to 4395.  The problem, as we
 understand it, is that there are cases where the command line generated by
 GPE for enhancement and GWT compiles can exceed the platform limitations on
 Windows.

 On Tue, Apr 6, 2010 at 9:46 PM, Isaac Truett itru...@gmail.com wrote:
  John,

  I'm glad to hear you've got it working! Thanks for the details on your
  workaround. There's one more thing that would be helpful, if you don't mind.
  Could you open an issue to track this? If you could, please include a link
  to this thread in the issue description and then post the issue number here
  so that anyone else following the thread can find the issue and star it if
  they so desire. You can use the GWT tracker since GPE doesn't have a
  separate one that I know of.

 http://code.google.com/p/google-web-toolkit/issues/entry

  http://code.google.com/p/google-web-toolkit/issues/entryThanks,
  Isaac

  On Tue, Apr 6, 2010 at 5:37 PM, John V Denley 
  johnvden...@googlemail.comwrote:

  OK, so in desparation, I went the whole hog and moved my SDK to C:
  \appengine-java-sdk-1.3.2 and w, its suddenly compiled
  successfully

  So there you have it folks, anyone reading this and seemingly only
  ever finding someone saying your classpath might be too long may
  find it helpful to simply relocate your appengine sdk to the root of
  your c:\ drive and see if that helps!

  Also worth pointing out of course that this is technically an
  appengine issue rather than a GWT issue, so thanks to everyone on this
  GWT forum for helping me fix this, I will now go and add this solution
  to my question on the GAE for java forum!

  Thanks all,
  J
  PS I never did figure out how to run anything off the command line,
  but im not going to bother now, until I find a need to think about
  doing that later!!

  PPS a summary for anyone reading this later who doesnt want to read
  all the thread:

  To find out the classpath used:
  In Eclipse select Debug view by going to Window|Open
  Perspective|Debug and then select the debug window by going to
  Window|Show View|Debug then right click the last item in the list
  shown and select properties

  I found that my appengine SDK path was being references about 21 times
  as:
  C:\Program Files\eclipse\plugins
  \com.google.appengine.eclipse.sdkbundle.
  1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2

  so I copied it to C:\appengine-java-sdk-1.3.2

  And then linked to it by doing the following:

  In Eclipse select the Java view by going to Window|Open Perspective|
  Java and then select the project properties by going to Project|
  Properties then select Google|App Engine and click on Configure
  SDK's then click Add on the right hand side and select the path you
  just created eg C:\appengine-java-sdk-1.3.2 and add a Display Name
  eg Short App Engine SDK. Click OK as needed to close all the
  windows, and everything should start working again!!!

  On Apr 6, 9:05 pm, John V Denley johnvden...@googlemail.com wrote:
   Just as an FYI, using Kathrins suggestion

   (How to For Dummies: Select Debug view by going to Window|Open
   Perspective|Debug and then select the debug window by going to
   Window|Show View|Debug then right click the last item in the list
   shown  and select properties)

   The result I was getting from there (which looks like a very long
   list) is shown below (It seems pretty long because it includes a lot
   of C:\Program Files\eclipse\plugins
   \com.google.appengine.eclipse.sdkbundle.
   1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib references. I
   have now changed this path and reimported it so that its now C:
   \Program Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
   1.3.2\appengine-java-sdk-1.3.2\ (which is 20 characters shorter) This
   equates to at least 420 characters less in the whole classpath(!!)
   which should suggest that its not the length of the classpath that is
   the problem.

   I will now try to figure out how to run the enhancer from the command
   line, but if anyone has any other ideas in the mean time, please do
   let me know!

    C:\Program Files\Java\jre6\bin\javaw.exe -Xmx512m -javaagent:C:
   \Program Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
   1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\agent\appengine-
   agent.jar -Dfile.encoding=Cp1252 -classpath C:\Documents and Settings
   \John\My Documents\_DeBa\ideba\iDeBanet\src;C:\Documents and Settings
   \John\My

Re: clean compile gives the parameter is incorrect

2010-04-06 Thread John V Denley
Thanks for all your hints and tips guys, I will have a go at trying to
figure out what to do from everything you have written although at the
moment it all sounds like double dutch to me (im not a real
programmer- just someone who has managed to learn everything ive
needed to do to get a web app up and running over the last 6-8 months,
with great help from GWT/GAE, this community and lots and lots of
google searches!!!)

Thanks again for the help so far. Its amazing how many times ive found
people saying maybe your classpath is too long with absolutely no
information about how to fix that, or even find out how long it is!
LOL If I figure it out, ill try to write it up in idiot terms!
J

On Apr 6, 7:40 pm, Isaac Truett itru...@gmail.com wrote:
 Thanks, Miguel!

 John, I'd suggest trying to run com.google.appengine.tools.enhancer.Enhance
 from the command line and see if you get the same error. See Enhancing Data
 Classes at the docs URL Miguel provided. And you should be able to get the
 classpath that Eclipse constructs from your project's build path by running
 Development Mode and using the technique Kathrin provided. I'd start with
 enhancing just one class file and see if it gets tripped up by the length of
 the classpath.

 2010/4/6 Miguel Méndez mmen...@google.com

  You are right.  It won't show up there since we don't create a launch
  configuration for enhancement.  Basically, we launch the enhancer as
  described in
 http://code.google.com/appengine/docs/java/datastore/usingjdo.htmlEnhancing 
 Data Classes section.  The problem could be the length of the
  classpath or the length of the classes that we pass to the enhancer.

  2010/4/6 Isaac Truett itru...@gmail.com

  @Kathrin -  That is a really useful feature. But I don't think the Enhancer
  is going to show up in that list since it's run in the background by the
  plugin, rather than being launched by the user.

  @MiguelKeith - Do either of you have greater insight into the DataNucleus
  Enhancer and what parameters it/GPE might use that javaw could choke on?

  On Tue, Apr 6, 2010 at 11:55 AM, Katharina Probst 
  kpro...@google.comwrote:

  In eclipse, if you go to the Debug view and right-click on the task
  (under debug, it might say terminated  If you go to Properties,
  it'll show the classpath that was actually run.

  I'm not sure this helps, but it's happened to me before that I changed
  something that messed with the classpath in eclipse, and reverting that
  change didn't actually revert the classpath...

  kathrin

  On Tue, Apr 6, 2010 at 11:44 AM, Isaac Truett itru...@gmail.com wrote:

  I was thinking of libraries on the classpath rather than source files.
  But I don't even know for a fact that the DataNucleus Enhancer uses the
  project's buildpath. That's something the GPE folks would know.

  On Mon, Apr 5, 2010 at 4:28 PM, John V Denley 
  johnvden...@googlemail.com wrote:

  Yes, Isaac, this is something I have seen elsewhere, but I use eclipse
  and I have no idea how to find out how long my classpath is..

  As far as I can tell all my java files are in :
  C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
  \com\ideba\net\client
  (I have 12 *.java files in here, recently increased to 13, which is
  when it started to fail, but I have rolled back to a previous version
  now)
  and
  C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
  \com\ideba\net\server
  (I have 14 *.java  in here (this has not changed in months))

  Java build path is set to idebanet/src Included (All) and Excluded
  (none) Native library location (none)

  If you can point me anywhere else to look or test, Ill do anything to
  sort this out

  On Apr 5, 5:42 pm, Isaac Truett itru...@gmail.com wrote:
   John,

   This may be completely out of left field, but has your classpath
  grown
   recently? I've known java/javaw to fail due to excessively long
  classpaths.
   Even just moving files up a few directories can make the difference.

   - Isaac

   On Mon, Apr 5, 2010 at 12:18 PM, John V Denley
   johnvden...@googlemail.comwrote:

Im on the train now... hoping my connection holds up, but just
  incase
it helps, I have now rolled back to a version of the code that I
comiled and deployed successfully last night, and Im still getting
this error, so something else has changed, and its not me thats
changed it... this must be something that Eclipse or Java compiler
  is
picking up from somewhere else!.

On Apr 5, 3:53 pm, John V Denley johnvden...@googlemail.com
  wrote:
 What is this message telling me?

 'DataNucleus Enhancer' has encountered a problem

 Cannot run program C:\Program Files\Java\jre6\bin\javaw.exe (in
 directory C:\Documents and Settings\John\My
  Documents\_DeBa\ideba
 \iDeBanet): CreateProcess error=87, The parameter is incorrect
 Cannot run program C:\Program Files\Java\jre6\bin\javaw.exe (in
 directory C:\Documents

Re: clean compile gives the parameter is incorrect

2010-04-06 Thread John V Denley
.
1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\appengine-tools-
api.jar;C:\Program Files\eclipse\plugins
\com.google.gwt.eclipse.sdkbundle.
2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-user.jar;C:\Program Files
\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.
2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-dev.jar
com.google.gwt.dev.DevMode -remoteUI 1707:344705537223585 -startupUrl
IDeBanet.html -logLevel INFO -port  -war C:\Documents and Settings
\John\My Documents\_DeBa\ideba\iDeBanet\war -server
com.google.appengine.tools.development.gwt.AppEngineLauncher
com.ideba.net.IDeBanet

On Apr 6, 8:07 pm, John V Denley johnvden...@googlemail.com wrote:
 Thanks for all your hints and tips guys, I will have a go at trying to
 figure out what to do from everything you have written although at the
 moment it all sounds like double dutch to me (im not a real
 programmer- just someone who has managed to learn everything ive
 needed to do to get a web app up and running over the last 6-8 months,
 with great help from GWT/GAE, this community and lots and lots of
 google searches!!!)

 Thanks again for the help so far. Its amazing how many times ive found
 people saying maybe your classpath is too long with absolutely no
 information about how to fix that, or even find out how long it is!
 LOL If I figure it out, ill try to write it up in idiot terms!
 J

 On Apr 6, 7:40 pm, Isaac Truett itru...@gmail.com wrote:

  Thanks, Miguel!

  John, I'd suggest trying to run com.google.appengine.tools.enhancer.Enhance
  from the command line and see if you get the same error. See Enhancing Data
  Classes at the docs URL Miguel provided. And you should be able to get the
  classpath that Eclipse constructs from your project's build path by running
  Development Mode and using the technique Kathrin provided. I'd start with
  enhancing just one class file and see if it gets tripped up by the length of
  the classpath.

  2010/4/6 Miguel Méndez mmen...@google.com

   You are right.  It won't show up there since we don't create a launch
   configuration for enhancement.  Basically, we launch the enhancer as
   described in
  http://code.google.com/appengine/docs/java/datastore/usingjdo.htmlEnhancing
   Data Classes section.  The problem could be the length of the
   classpath or the length of the classes that we pass to the enhancer.

   2010/4/6 Isaac Truett itru...@gmail.com

   @Kathrin -  That is a really useful feature. But I don't think the 
   Enhancer
   is going to show up in that list since it's run in the background by the
   plugin, rather than being launched by the user.

   @MiguelKeith - Do either of you have greater insight into the 
   DataNucleus
   Enhancer and what parameters it/GPE might use that javaw could choke on?

   On Tue, Apr 6, 2010 at 11:55 AM, Katharina Probst 
   kpro...@google.comwrote:

   In eclipse, if you go to the Debug view and right-click on the task
   (under debug, it might say terminated  If you go to Properties,
   it'll show the classpath that was actually run.

   I'm not sure this helps, but it's happened to me before that I changed
   something that messed with the classpath in eclipse, and reverting that
   change didn't actually revert the classpath...

   kathrin

   On Tue, Apr 6, 2010 at 11:44 AM, Isaac Truett itru...@gmail.com wrote:

   I was thinking of libraries on the classpath rather than source files.
   But I don't even know for a fact that the DataNucleus Enhancer uses the
   project's buildpath. That's something the GPE folks would know.

   On Mon, Apr 5, 2010 at 4:28 PM, John V Denley 
   johnvden...@googlemail.com wrote:

   Yes, Isaac, this is something I have seen elsewhere, but I use eclipse
   and I have no idea how to find out how long my classpath is..

   As far as I can tell all my java files are in :
   C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
   \com\ideba\net\client
   (I have 12 *.java files in here, recently increased to 13, which is
   when it started to fail, but I have rolled back to a previous version
   now)
   and
   C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
   \com\ideba\net\server
   (I have 14 *.java  in here (this has not changed in months))

   Java build path is set to idebanet/src Included (All) and Excluded
   (none) Native library location (none)

   If you can point me anywhere else to look or test, Ill do anything to
   sort this out

   On Apr 5, 5:42 pm, Isaac Truett itru...@gmail.com wrote:
John,

This may be completely out of left field, but has your classpath
   grown
recently? I've known java/javaw to fail due to excessively long
   classpaths.
Even just moving files up a few directories can make the difference.

- Isaac

On Mon, Apr 5, 2010 at 12:18 PM, John V Denley
johnvden...@googlemail.comwrote:

 Im on the train now... hoping my connection holds up, but just
   incase
 it helps, I have now rolled back to a version of the code that I

Re: clean compile gives the parameter is incorrect

2010-04-06 Thread John V Denley
.
1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\appengine-tools-
api.jar;C:\Program Files\eclipse\plugins
\com.google.gwt.eclipse.sdkbundle.
2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-user.jar;C:\Program Files
\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.
2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-dev.jar
com.google.gwt.dev.DevMode -remoteUI 1707:344705537223585 -startupUrl
IDeBanet.html -logLevel INFO -port  -war C:\Documents and Settings
\John\My Documents\_DeBa\ideba\iDeBanet\war -server
com.google.appengine.tools.development.gwt.AppEngineLauncher
com.ideba.net.IDeBanet

On Apr 6, 8:07 pm, John V Denley johnvden...@googlemail.com wrote:
 Thanks for all your hints and tips guys, I will have a go at trying to
 figure out what to do from everything you have written although at the
 moment it all sounds like double dutch to me (im not a real
 programmer- just someone who has managed to learn everything ive
 needed to do to get a web app up and running over the last 6-8 months,
 with great help from GWT/GAE, this community and lots and lots of
 google searches!!!)

 Thanks again for the help so far. Its amazing how many times ive found
 people saying maybe your classpath is too long with absolutely no
 information about how to fix that, or even find out how long it is!
 LOL If I figure it out, ill try to write it up in idiot terms!
 J

 On Apr 6, 7:40 pm, Isaac Truett itru...@gmail.com wrote:

  Thanks, Miguel!

  John, I'd suggest trying to run com.google.appengine.tools.enhancer.Enhance
  from the command line and see if you get the same error. See Enhancing Data
  Classes at the docs URL Miguel provided. And you should be able to get the
  classpath that Eclipse constructs from your project's build path by running
  Development Mode and using the technique Kathrin provided. I'd start with
  enhancing just one class file and see if it gets tripped up by the length of
  the classpath.

  2010/4/6 Miguel Méndez mmen...@google.com

   You are right.  It won't show up there since we don't create a launch
   configuration for enhancement.  Basically, we launch the enhancer as
   described in
  http://code.google.com/appengine/docs/java/datastore/usingjdo.htmlEnhancing
   Data Classes section.  The problem could be the length of the
   classpath or the length of the classes that we pass to the enhancer.

   2010/4/6 Isaac Truett itru...@gmail.com

   @Kathrin -  That is a really useful feature. But I don't think the 
   Enhancer
   is going to show up in that list since it's run in the background by the
   plugin, rather than being launched by the user.

   @MiguelKeith - Do either of you have greater insight into the 
   DataNucleus
   Enhancer and what parameters it/GPE might use that javaw could choke on?

   On Tue, Apr 6, 2010 at 11:55 AM, Katharina Probst 
   kpro...@google.comwrote:

   In eclipse, if you go to the Debug view and right-click on the task
   (under debug, it might say terminated  If you go to Properties,
   it'll show the classpath that was actually run.

   I'm not sure this helps, but it's happened to me before that I changed
   something that messed with the classpath in eclipse, and reverting that
   change didn't actually revert the classpath...

   kathrin

   On Tue, Apr 6, 2010 at 11:44 AM, Isaac Truett itru...@gmail.com wrote:

   I was thinking of libraries on the classpath rather than source files.
   But I don't even know for a fact that the DataNucleus Enhancer uses the
   project's buildpath. That's something the GPE folks would know.

   On Mon, Apr 5, 2010 at 4:28 PM, John V Denley 
   johnvden...@googlemail.com wrote:

   Yes, Isaac, this is something I have seen elsewhere, but I use eclipse
   and I have no idea how to find out how long my classpath is..

   As far as I can tell all my java files are in :
   C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
   \com\ideba\net\client
   (I have 12 *.java files in here, recently increased to 13, which is
   when it started to fail, but I have rolled back to a previous version
   now)
   and
   C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
   \com\ideba\net\server
   (I have 14 *.java  in here (this has not changed in months))

   Java build path is set to idebanet/src Included (All) and Excluded
   (none) Native library location (none)

   If you can point me anywhere else to look or test, Ill do anything to
   sort this out

   On Apr 5, 5:42 pm, Isaac Truett itru...@gmail.com wrote:
John,

This may be completely out of left field, but has your classpath
   grown
recently? I've known java/javaw to fail due to excessively long
   classpaths.
Even just moving files up a few directories can make the difference.

- Isaac

On Mon, Apr 5, 2010 at 12:18 PM, John V Denley
johnvden...@googlemail.comwrote:

 Im on the train now... hoping my connection holds up, but just
   incase
 it helps, I have now rolled back to a version of the code that I

Re: clean compile gives the parameter is incorrect

2010-04-06 Thread John V Denley
.
1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\appengine-tools-
api.jar;C:\Program Files\eclipse\plugins
\com.google.gwt.eclipse.sdkbundle.
2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-user.jar;C:\Program Files
\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.
2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-dev.jar
com.google.gwt.dev.DevMode -remoteUI 1707:344705537223585 -startupUrl
IDeBanet.html -logLevel INFO -port  -war C:\Documents and Settings
\John\My Documents\_DeBa\ideba\iDeBanet\war -server
com.google.appengine.tools.development.gwt.AppEngineLauncher
com.ideba.net.IDeBanet

On Apr 6, 8:07 pm, John V Denley johnvden...@googlemail.com wrote:
 Thanks for all your hints and tips guys, I will have a go at trying to
 figure out what to do from everything you have written although at the
 moment it all sounds like double dutch to me (im not a real
 programmer- just someone who has managed to learn everything ive
 needed to do to get a web app up and running over the last 6-8 months,
 with great help from GWT/GAE, this community and lots and lots of
 google searches!!!)

 Thanks again for the help so far. Its amazing how many times ive found
 people saying maybe your classpath is too long with absolutely no
 information about how to fix that, or even find out how long it is!
 LOL If I figure it out, ill try to write it up in idiot terms!
 J

 On Apr 6, 7:40 pm, Isaac Truett itru...@gmail.com wrote:

  Thanks, Miguel!

  John, I'd suggest trying to run com.google.appengine.tools.enhancer.Enhance
  from the command line and see if you get the same error. See Enhancing Data
  Classes at the docs URL Miguel provided. And you should be able to get the
  classpath that Eclipse constructs from your project's build path by running
  Development Mode and using the technique Kathrin provided. I'd start with
  enhancing just one class file and see if it gets tripped up by the length of
  the classpath.

  2010/4/6 Miguel Méndez mmen...@google.com

   You are right.  It won't show up there since we don't create a launch
   configuration for enhancement.  Basically, we launch the enhancer as
   described in
  http://code.google.com/appengine/docs/java/datastore/usingjdo.htmlEnhancing
   Data Classes section.  The problem could be the length of the
   classpath or the length of the classes that we pass to the enhancer.

   2010/4/6 Isaac Truett itru...@gmail.com

   @Kathrin -  That is a really useful feature. But I don't think the 
   Enhancer
   is going to show up in that list since it's run in the background by the
   plugin, rather than being launched by the user.

   @MiguelKeith - Do either of you have greater insight into the 
   DataNucleus
   Enhancer and what parameters it/GPE might use that javaw could choke on?

   On Tue, Apr 6, 2010 at 11:55 AM, Katharina Probst 
   kpro...@google.comwrote:

   In eclipse, if you go to the Debug view and right-click on the task
   (under debug, it might say terminated  If you go to Properties,
   it'll show the classpath that was actually run.

   I'm not sure this helps, but it's happened to me before that I changed
   something that messed with the classpath in eclipse, and reverting that
   change didn't actually revert the classpath...

   kathrin

   On Tue, Apr 6, 2010 at 11:44 AM, Isaac Truett itru...@gmail.com wrote:

   I was thinking of libraries on the classpath rather than source files.
   But I don't even know for a fact that the DataNucleus Enhancer uses the
   project's buildpath. That's something the GPE folks would know.

   On Mon, Apr 5, 2010 at 4:28 PM, John V Denley 
   johnvden...@googlemail.com wrote:

   Yes, Isaac, this is something I have seen elsewhere, but I use eclipse
   and I have no idea how to find out how long my classpath is..

   As far as I can tell all my java files are in :
   C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
   \com\ideba\net\client
   (I have 12 *.java files in here, recently increased to 13, which is
   when it started to fail, but I have rolled back to a previous version
   now)
   and
   C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
   \com\ideba\net\server
   (I have 14 *.java  in here (this has not changed in months))

   Java build path is set to idebanet/src Included (All) and Excluded
   (none) Native library location (none)

   If you can point me anywhere else to look or test, Ill do anything to
   sort this out

   On Apr 5, 5:42 pm, Isaac Truett itru...@gmail.com wrote:
John,

This may be completely out of left field, but has your classpath
   grown
recently? I've known java/javaw to fail due to excessively long
   classpaths.
Even just moving files up a few directories can make the difference.

- Isaac

On Mon, Apr 5, 2010 at 12:18 PM, John V Denley
johnvden...@googlemail.comwrote:

 Im on the train now... hoping my connection holds up, but just
   incase
 it helps, I have now rolled back to a version of the code that I

Re: clean compile gives the parameter is incorrect

2010-04-06 Thread John V Denley
OK, so in desparation, I went the whole hog and moved my SDK to C:
\appengine-java-sdk-1.3.2 and w, its suddenly compiled
successfully

So there you have it folks, anyone reading this and seemingly only
ever finding someone saying your classpath might be too long may
find it helpful to simply relocate your appengine sdk to the root of
your c:\ drive and see if that helps!

Also worth pointing out of course that this is technically an
appengine issue rather than a GWT issue, so thanks to everyone on this
GWT forum for helping me fix this, I will now go and add this solution
to my question on the GAE for java forum!

Thanks all,
J
PS I never did figure out how to run anything off the command line,
but im not going to bother now, until I find a need to think about
doing that later!!

PPS a summary for anyone reading this later who doesnt want to read
all the thread:

To find out the classpath used:
In Eclipse select Debug view by going to Window|Open
Perspective|Debug and then select the debug window by going to
Window|Show View|Debug then right click the last item in the list
shown and select properties

I found that my appengine SDK path was being references about 21 times
as:
C:\Program Files\eclipse\plugins
\com.google.appengine.eclipse.sdkbundle.
1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2

so I copied it to C:\appengine-java-sdk-1.3.2

And then linked to it by doing the following:

In Eclipse select the Java view by going to Window|Open Perspective|
Java and then select the project properties by going to Project|
Properties then select Google|App Engine and click on Configure
SDK's then click Add on the right hand side and select the path you
just created eg C:\appengine-java-sdk-1.3.2 and add a Display Name
eg Short App Engine SDK. Click OK as needed to close all the
windows, and everything should start working again!!!




On Apr 6, 9:05 pm, John V Denley johnvden...@googlemail.com wrote:
 Just as an FYI, using Kathrins suggestion

 (How to For Dummies: Select Debug view by going to Window|Open
 Perspective|Debug and then select the debug window by going to
 Window|Show View|Debug then right click the last item in the list
 shown  and select properties)

 The result I was getting from there (which looks like a very long
 list) is shown below (It seems pretty long because it includes a lot
 of C:\Program Files\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib references. I
 have now changed this path and reimported it so that its now C:
 \Program Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
 1.3.2\appengine-java-sdk-1.3.2\ (which is 20 characters shorter) This
 equates to at least 420 characters less in the whole classpath(!!)
 which should suggest that its not the length of the classpath that is
 the problem.

 I will now try to figure out how to run the enhancer from the command
 line, but if anyone has any other ideas in the mean time, please do
 let me know!

  C:\Program Files\Java\jre6\bin\javaw.exe -Xmx512m -javaagent:C:
 \Program Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\agent\appengine-
 agent.jar -Dfile.encoding=Cp1252 -classpath C:\Documents and Settings
 \John\My Documents\_DeBa\ideba\iDeBanet\src;C:\Documents and Settings
 \John\My Documents\_DeBa\ideba\iDeBanet\war\WEB-INF\classes;C:\Program
 Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\shared
 \appengine-local-runtime-shared.jar;C:\Program Files\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\shared\geronimo-
 el_1.0_spec-1.0.1.jar;C:\Program Files\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\shared\geronimo-
 jsp_2.1_spec-1.0.1.jar;C:\Program Files\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\shared\geronimo-
 servlet_2.5_spec-1.2.jar;C:\Program Files\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\shared\jsp
 \repackaged-appengine-ant-1.6.5.jar;C:\Program Files\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\shared\jsp
 \repackaged-appengine-ant-launcher-1.6.5.jar;C:\Program Files\eclipse
 \plugins\com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\shared\jsp
 \repackaged-appengine-commons-el-1.0.jar;C:\Program Files\eclipse
 \plugins\com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib\shared\jsp
 \repackaged-appengine-commons-logging-1.1.1.jar;C:\Program Files
 \eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib

Re: clean compile gives the parameter is incorrect

2010-04-05 Thread John V Denley
Im on the train now... hoping my connection holds up, but just incase
it helps, I have now rolled back to a version of the code that I
comiled and deployed successfully last night, and Im still getting
this error, so something else has changed, and its not me thats
changed it... this must be something that Eclipse or Java compiler is
picking up from somewhere else!.

On Apr 5, 3:53 pm, John V Denley johnvden...@googlemail.com wrote:
 What is this message telling me?

 'DataNucleus Enhancer' has encountered a problem

 Cannot run program C:\Program Files\Java\jre6\bin\javaw.exe (in
 directory C:\Documents and Settings\John\My Documents\_DeBa\ideba
 \iDeBanet): CreateProcess error=87, The parameter is incorrect
 Cannot run program C:\Program Files\Java\jre6\bin\javaw.exe (in
 directory C:\Documents and Settings\John\My Documents\_DeBa\ideba
 \iDeBanet): CreateProcess error=87, The parameter is incorrect

 I cant seem to find anything helpful anywhere on the web, all I can
 find is suggestions that my classpath is too long for windows, but I
 dont know where to figure out what my classpath length is, plus its
 not THAT big a project, so im surprised ive hit any kind of limit,
 although I HAVE just included one additional *.java file in my client
 directory, but I have tried taking that out and recompiling clean, and
 its still happening!

 Is this a GAE problem? or an Eclipse problem or a Java problem?

 Any pointers would be really helpful, as i have a deadline for
 tomorrow, the code is all done, I just cant seem to deploy it!

 Thanks,
 John
 PS Im posting this on the GAE javagrouptoo, as I have to catch a
 train now, and will be back later to see if anyone has replied!

-- 
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: clean compile gives the parameter is incorrect

2010-04-05 Thread John V Denley
Yes, Isaac, this is something I have seen elsewhere, but I use eclipse
and I have no idea how to find out how long my classpath is..

As far as I can tell all my java files are in :
C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
\com\ideba\net\client
(I have 12 *.java files in here, recently increased to 13, which is
when it started to fail, but I have rolled back to a previous version
now)
and
C:\Documents and Settings\John\My Documents\_DeBa\ideba\iDeBanet\src
\com\ideba\net\server
(I have 14 *.java  in here (this has not changed in months))

Java build path is set to idebanet/src Included (All) and Excluded
(none) Native library location (none)

If you can point me anywhere else to look or test, Ill do anything to
sort this out

On Apr 5, 5:42 pm, Isaac Truett itru...@gmail.com wrote:
 John,

 This may be completely out of left field, but has your classpath grown
 recently? I've known java/javaw to fail due to excessively long classpaths.
 Even just moving files up a few directories can make the difference.

 - Isaac

 On Mon, Apr 5, 2010 at 12:18 PM, John V Denley
 johnvden...@googlemail.comwrote:

  Im on the train now... hoping my connection holds up, but just incase
  it helps, I have now rolled back to a version of the code that I
  comiled and deployed successfully last night, and Im still getting
  this error, so something else has changed, and its not me thats
  changed it... this must be something that Eclipse or Java compiler is
  picking up from somewhere else!.

  On Apr 5, 3:53 pm, John V Denley johnvden...@googlemail.com wrote:
   What is this message telling me?

   'DataNucleus Enhancer' has encountered a problem

   Cannot run program C:\Program Files\Java\jre6\bin\javaw.exe (in
   directory C:\Documents and Settings\John\My Documents\_DeBa\ideba
   \iDeBanet): CreateProcess error=87, The parameter is incorrect
   Cannot run program C:\Program Files\Java\jre6\bin\javaw.exe (in
   directory C:\Documents and Settings\John\My Documents\_DeBa\ideba
   \iDeBanet): CreateProcess error=87, The parameter is incorrect

   I cant seem to find anything helpful anywhere on the web, all I can
   find is suggestions that my classpath is too long for windows, but I
   dont know where to figure out what my classpath length is, plus its
   not THAT big a project, so im surprised ive hit any kind of limit,
   although I HAVE just included one additional *.java file in my client
   directory, but I have tried taking that out and recompiling clean, and
   its still happening!

   Is this a GAE problem? or an Eclipse problem or a Java problem?

   Any pointers would be really helpful, as i have a deadline for
   tomorrow, the code is all done, I just cant seem to deploy it!

   Thanks,
   John
   PS Im posting this on the GAE javagrouptoo, as I have to catch a
   train now, and will be back later to see if anyone has replied!

  --
  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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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: RootPanel.get() problems

2010-02-19 Thread John V Denley
OK I thought I had got past this problem, but Its returned and its not
happening at the RootPanel.get() point.

I've used Eclipse to step through the code line by line and here is
where Im getting this A widget that has an existing parent widget may
not be added to  the detach list (BTW I wish someone would acually
explain what this really means!) As this appears to be at the browser
level, I have no idea how to investigate any further, can anyone
please help me out with what to try next?

Heres the StackTrace:


Daemon Thread [Code server for idebanet from Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-GB; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 GTB6
(.NET CLR 3.5.30729) on 
http://localhost:/IDeBanet.html?gwt.codesvr=127.0.0.1:9997
@ H_W?:@Z[P3u;sI*] (Suspended)
BrowserChannelServer(BrowserChannel).reactToMessages(BrowserChannel
$SessionHandler) line: 1670
BrowserChannelServer.processConnection() line: 401
BrowserChannelServer.run() line: 222
Thread.run() line: not available [local variables unavailable]

Heres the Code:


  public void reactToMessages(SessionHandler handler) {
do {
  try {
getStreamToOtherSide().flush();
MessageType messageType = Message.readMessageType(
getStreamFromOtherSide());
switch (messageType) {
  case FREE_VALUE:
final FreeMessage freeMsg = FreeMessage.receive(this);
handler.freeValue(this, freeMsg.getIds());
break;
  case INVOKE:
InvokeOnServerMessage imsg =
InvokeOnServerMessage.receive(this);
ExceptionOrReturnValue result = handler.invoke(this,
imsg.getThis(),
imsg.getMethodDispatchId(), imsg.getArgs());
sendFreedValues();




On Feb 9, 2:31 pm, Juan M.M.M. knn0n@gmail.com wrote:
 Thx for the reply

 p.d: it's enough with the prototype of the method ;D

 Bye!

 On Feb 9, 3:10 pm, Thomas Broyer t.bro...@gmail.com wrote:



  On Feb 9, 10:37 am, Juan M.M.M. knn0n@gmail.com wrote:

   Hi man!

   Thx for the reply but I can't set the visiblitiy with this method
   Document.get().getElementById(...) .

   Can you tell me the exact sintax to acced to the setVisibility method
   through Document clas?

  Either getStyle.setDisplay(Display.NONE) to hide and
  getStyle().clearDisplay() to show; or UIObject.setVisible(elt, false)
  to hide (pass 'true' as the second argument to show).

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



Google Accounts are killing my application!....

2010-02-18 Thread John V Denley
I have been trying to leverage google accounts for security for my
users, but the way its working is really preventing useability within
my application, its very frustrating

Ive just spent the best part of the last week trying to get the google
account login to work in an frame within my application. Ive run into
a number of related issues (see other threads) which I have manage to
work through finally. (Thanks to everyone who helped out and provided
input)

However, I have just tried clicking on the create an account now
link which is what will be used by any new user who doesnt currently
have a google account, but the account creation window has frame
breakout code on it, which takes my users away from my application
again, and then after clicking on the email link to confirm thier new
account, the user is NOT taken back to my application but are just
congratulated for creating a google account.

The problem is that the user is then left thinking now what do i do?
and several of the people we are talking to have just given up at that
point!

Has anyone else successfully integrated Google accounts into their
applications?

Should I create my own logins rather than using Google accounts?

-- 
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: username/password when using GAE

2010-02-14 Thread John V Denley
Thanks gengstrand, Ill deal with your 3 options in turn:
1. official App Engine options
   a) use google accounts as a unified signon: This is how we are
currently implementing, the problem is that if the potential customer/
user is not very technically savvy, and either doesnt have an email or
only has a hotmail account, then setting up a google account is not at
all straighforward and because it doesnt have any kind of API, it cant
be integrated into your existing application, so the sign up and sign
in processes are very disconnected from the non-google application.
   b) use google apps for your domain: This is a similar arguement for
the above problem, fine if you are doing something inside your
organisation, but if you are dealing with random basic internet users
(eg everyone on facebook) then it is next to useless as an
authentication option
2. The use of jBCrypt : This is fine for encrypting the password into
the database on the server, but from reading a lot of other posts on
this subject GWT does something funny when translating JBCrypt into
javascript on the client, and renders it useless.

3. waiting for RPCAuth : This is no good for us, as we are currently
live, and as i said above, Im looking for an inhouse alternative to
google accounts as a unified login.

It seems to me that Im still not getting a clear answer to my main
question:

Given that I cant use SSL or HTTPS and I dont want to use a 3rd party
login system, how safe is it to just send passwords in plain text to
the server and then use JBCrypt on the server to encrypt the passwords
when storing it?


On Feb 13, 6:55 pm, gengstrand gengstr...@gmail.com wrote:
 First, take a look at this article and see if it covers your needs.
 This is the official position on GAE and authentication.

 http://code.google.com/appengine/articles/auth.html

 If that's not going to cut it for you, then take a look 
 athttp://www.mindrot.org/projects/jBCrypt/

 If you were using GWT and weren't going to deploy for a while, then
 you might want to take a look 
 athttp://code.google.com/p/google-web-toolkit/wiki/RpcAuth

 I hope this helps.

 On Feb 12, 9:14 pm, John V Denley johnvden...@googlemail.com wrote:

  really no responses on this one?

  On Feb 11, 11:19 pm, John V Denley johnvden...@googlemail.com wrote:

   There are plenty of (fairly indepth  technical) conversations on here
   about the use of passwords and how to send the data/password to the
   server.

   It very much seems a consensus that unless you are using HTTPS/SSL
   then its totally pointless doing anything on the client.

   Given that Google App Engine does not support HTTPS/SSL, what is
   everyones opinion on this matter, what IS the best practice?

   As a side bar on this, up to now I have been using the google account
   login to deal with all this, but have been getting a LOT of resistance
   from my potential user community who get very lost and confused about
   the process when having to create a google account, prior to being
   able to create an account in my system, hence the need to look at
   having my own security, which scares me as I dont know anything about
   this subject, but I want my users logons/data to be safe and secure.

-- 
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: username/password when using GAE

2010-02-14 Thread John V Denley
Ah, sorry Benjamin, my earlier reply to gengstrand was written before
id fully taken in what your blog was saying. I cant be sure that you
have indeed answered my question, as it will take me a little while to
filter through your blog and understand it all, but it certainly seems
to cover the majority of the points, even if it feels to me like you
have slightly overengineered it for what I actually need.

I forgot to mention on my previous post, that I have also played
around with using a GWT Frame to contain the google account signup
and google account login pages, but what Id like to be able to do is
somehow set the URL of the page containing the frame from within the
frame itself! Anyone know how to do that? I might post that separately
after making sure it hasnt already been answered somewhere!

Thanks,
J

On Feb 13, 8:31 pm, Benjamin bsaut...@gmail.com wrote:
 John,

 I put a lot of time putting together this blog posting to consolidate
 the process of authenticating a client to app engine - the sample i
 posted definitely works - it's tailored for Android clients but i hope
 it helps you - all about getting the auth token.

 http://javagwt.blogspot.com/2009/12/authenticating-android-app-to-goo...

 On Feb 13, 1:55 pm, gengstrand gengstr...@gmail.com wrote:

  First, take a look at this article and see if it covers your needs.
  This is the official position on GAE and authentication.

 http://code.google.com/appengine/articles/auth.html

  If that's not going to cut it for you, then take a look 
  athttp://www.mindrot.org/projects/jBCrypt/

  If you were using GWT and weren't going to deploy for a while, then
  you might want to take a look 
  athttp://code.google.com/p/google-web-toolkit/wiki/RpcAuth

  I hope this helps.

  On Feb 12, 9:14 pm, John V Denley johnvden...@googlemail.com wrote:

   really no responses on this one?

   On Feb 11, 11:19 pm, John V Denley johnvden...@googlemail.com wrote:

There are plenty of (fairly indepth  technical) conversations on here
about the use of passwords and how to send the data/password to the
server.

It very much seems a consensus that unless you are using HTTPS/SSL
then its totally pointless doing anything on the client.

Given that Google App Engine does not support HTTPS/SSL, what is
everyones opinion on this matter, what IS the best practice?

As a side bar on this, up to now I have been using the google account
login to deal with all this, but have been getting a LOT of resistance
from my potential user community who get very lost and confused about
the process when having to create a google account, prior to being
able to create an account in my system, hence the need to look at
having my own security, which scares me as I dont know anything about
this subject, but I want my users logons/data to be safe and secure.

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



setting or refreshing the parent URL from within an iframe

2010-02-14 Thread John V Denley
My application requires a login to a google account.

I have been looking at trying to do this login step within a GWT frame
which works fine.

The problem is that once that login has been completed my application
then loads INSIDE the frame, I really want it to reload in the parent
window. I have tried both the following:

Window.Location.reload();
Window.open(http://www.google.co.uk;, _top,);

but neither of them have the desired effect, If I press F5 it does
exactlywhat I want it to do, even if the focus is on a text box within
the frame.

Anyone got any ideas, am I doing something wrong, is there a better
way to do this?

Thanks,
John

-- 
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: setting or refreshing the parent URL from within an iframe

2010-02-14 Thread John V Denley
OK, I think I might have figured out what the problem is... when Im
creating the frame Im trying to set it using the following line:

The resulting URL is /_ah/login?continue=http%3A%2F%2Flocalhost
%3A%2F so the problem is that it is stripping out the /
myappname.html?gwt.codesvr=127.0.0.1:9997 part which then results in
me running the last version of the application that I deployed to the
web.

Does anyone know why the version at localhost: is not the same
version that exists at localhost:888/IDeBanet.html?
gwt.codesvr=127.0.0.1:9997 or how I can force it to be the same
without having to deploy each time?

Oh and Im running eclipse ganymede by the way.

Thanks,
John

On Feb 14, 4:06 pm, John V Denley johnvden...@googlemail.com wrote:
 My application requires a login to a google account.

 I have been looking at trying to do this login step within a GWT frame
 which works fine.

 The problem is that once that login has been completed my application
 then loads INSIDE the frame, I really want it to reload in the parent
 window. I have tried both the following:

 Window.Location.reload();
 Window.open(http://www.google.co.uk;, _top,);

 but neither of them have the desired effect, If I press F5 it does
 exactlywhat I want it to do, even if the focus is on a text box within
 the frame.

 Anyone got any ideas, am I doing something wrong, is there a better
 way to do this?

 Thanks,
 John

-- 
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: setting or refreshing the parent URL from within an iframe

2010-02-14 Thread John V Denley
I forgot the line from where I am getting the URL:

loginInfo.getLoginUrl()


On Feb 14, 11:16 pm, John V Denley johnvden...@googlemail.com wrote:
 OK, I think I might have figured out what the problem is... when Im
 creating the frame Im trying to set it using the following line:

 The resulting URL is /_ah/login?continue=http%3A%2F%2Flocalhost
 %3A%2F so the problem is that it is stripping out the /
 myappname.html?gwt.codesvr=127.0.0.1:9997 part which then results in
 me running the last version of the application that I deployed to the
 web.

 Does anyone know why the version at localhost: is not the same
 version that exists at localhost:888/IDeBanet.html?
 gwt.codesvr=127.0.0.1:9997 or how I can force it to be the same
 without having to deploy each time?

 Oh and Im running eclipse ganymede by the way.

 Thanks,
 John

 On Feb 14, 4:06 pm, John V Denley johnvden...@googlemail.com wrote:

  My application requires a login to a google account.

  I have been looking at trying to do this login step within a GWT frame
  which works fine.

  The problem is that once that login has been completed my application
  then loads INSIDE the frame, I really want it to reload in the parent
  window. I have tried both the following:

  Window.Location.reload();
  Window.open(http://www.google.co.uk;, _top,);

  but neither of them have the desired effect, If I press F5 it does
  exactlywhat I want it to do, even if the focus is on a text box within
  the frame.

  Anyone got any ideas, am I doing something wrong, is there a better
  way to do this?

  Thanks,
  John

-- 
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: username/password when using GAE

2010-02-12 Thread John V Denley
really no responses on this one?

On Feb 11, 11:19 pm, John V Denley johnvden...@googlemail.com wrote:
 There are plenty of (fairly indepth  technical) conversations on here
 about the use of passwords and how to send the data/password to the
 server.

 It very much seems a consensus that unless you are using HTTPS/SSL
 then its totally pointless doing anything on the client.

 Given that Google App Engine does not support HTTPS/SSL, what is
 everyones opinion on this matter, what IS the best practice?

 As a side bar on this, up to now I have been using the google account
 login to deal with all this, but have been getting a LOT of resistance
 from my potential user community who get very lost and confused about
 the process when having to create a google account, prior to being
 able to create an account in my system, hence the need to look at
 having my own security, which scares me as I dont know anything about
 this subject, but I want my users logons/data to be safe and secure.

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



username/password when using GAE

2010-02-11 Thread John V Denley
There are plenty of (fairly indepth  technical) conversations on here
about the use of passwords and how to send the data/password to the
server.

It very much seems a consensus that unless you are using HTTPS/SSL
then its totally pointless doing anything on the client.

Given that Google App Engine does not support HTTPS/SSL, what is
everyones opinion on this matter, what IS the best practice?

As a side bar on this, up to now I have been using the google account
login to deal with all this, but have been getting a LOT of resistance
from my potential user community who get very lost and confused about
the process when having to create a google account, prior to being
able to create an account in my system, hence the need to look at
having my own security, which scares me as I dont know anything about
this subject, but I want my users logons/data to be safe and secure.

-- 
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: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-21 Thread John V Denley
I have a similar problem with a compiled GWT javascript, but it only
fails in IE.

Im not sure where in eclipse to set style=DETAILED and even if I
did, is there a firebug dev tool for debugging javascript in IE?

I dont mind taking some time to figure out how to set the
style=DETAILED, but only if there is some way to debug the problem
once ive done it!

Thanks,
John

On Jan 15, 2:39 pm, LEDUQUE Mickaël mledu...@gmail.com wrote:
 Y(ou'll probably only have this kind ofexceptioninjavascript
 compiled app, so you won't be able to use hosted/devmode to inspect
 it. I'd probably compile the application with style=DETAILED and use
 tools like firebug (Firefox) or webkit developer tools (chrome/safari)
 todebugthat.
 Of course, if this really is a big application, it may take some
 resources to trace into DETAILEDjavascript(I know for example
 Firebug has some problems with really big js files).
-- 
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: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-21 Thread John V Denley
I finally bit the bullet, and started commenting out huge chunks of my
code, and running the application to see if that got rid of the
problem...

After a few hours of this, I finally narrowed it down to the following
(and similar) line of code:

daygrid.getColumnFormatter().setWidth(col, 0px);

As soon as I set this to 1px rather than 0px the javascript error
went away.

for you dduck, the way forward would be to do as leduque suggests
above and set the compile time flag for style to detailed and that
should give you a much better idea where the error is, you might find
the following link useful:
http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Why_is_my_GWT-generated_JavaScript_gibberish?

Id still like to know how to set this setting via eclipse, which im
sure is very simple for someone who knows!

Thanks,
John


On Jan 21, 2:14 pm, dduck anders.johansen.a...@gmail.com wrote:
 Well, using Safari I can now spot the place where the exception is
 thrown in the generated JavaScript, but I have no way to relate that
 to the Java code that I put into the GWT compiler.

 Any clues as to how I do that?

 Regard,
   Anders
-- 
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: javascript error (invalid Argument)

2010-01-21 Thread John V Denley
I finally bit the bullet, and started commenting out huge chunks of my
code, and running the application to see if that got rid of the
problem...

After a few hours of this, I finally narrowed it down to the following
(and similar) line of code:

daygrid.getColumnFormatter().setWidth(col, 0px);

where daygrid was defined as follows:

private Grid daygrid = new Grid(daygridrows, daygridcols);

As soon as I set this to 1px rather than 0px the javascript error
went away.

Others might find the following link useful:
http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Why_is_my_GWT-generated_JavaScript_gibberish?
Id still like to know how to set this setting via eclipse, which im
sure is very simple for someone who knows!

Thanks,
John



On Jan 20, 10:25 pm, John V Denley johnvden...@googlemail.com wrote:
 Ive just tried to step through my code painfully one line at a time in
 the eclipse debugger everything seemed to work OK up to the point when
 it was about to start waiting for user interraction (or feasibly when
 it starts trying to draw to the screen), then I got the following
 error:

 Exception processing async thread queue
   Exception processing async thread queue
   org.eclipse.jdt.internal.debug.core.model.JDIClassType cannot be
 cast to org.eclipse.jdt.debug.core.IJavaValue

 Not at all helpful whats my next steps guys, anyone able to help
 me?...

 On Jan 18, 12:08 am, John VDenleyjohnvden...@googlemail.com wrote:



  Does anyone have any ideas how to debug this javascript problem with
  IE? or even where to start debugging it?

  Thanks,
  John

  On Jan 10, 5:25 pm, John VDenleyjohnvden...@googlemail.com wrote:

   Im not doing any direct DOM assignments, its all pure GWT and CSS (Im
   also using GAE) but its all native, im also not using any third party
   toolsets/jars etc

   How did you manage to narrow it down Joe? how did you go about
   figuring it out? I have thousands of lines of code, I dont even know
   where to begin looking for this error, the only thing I can be sure of
   is that I didnt have this problem on the my 1st Dec version, which was
   the last version I released for external  testing and that since then
   I have upgraded to V2.0

   Any help would be greatly appreciated..

   On Jan 8, 1:39 am, Joe Cole profilercorporat...@gmail.com wrote:

I feel your pain. I narrowed this down in our case to an incorrect
style assignment. From memory I was setting:

DOM.setStyleAttribute(overflowX, none);

Instead of:

DOM.setStyleAttribute(overflowX, hidden);

Only in IE was it throwing this exception. I would suggest checking
your style assignments, it could be the same problem.

Joe

On Jan 8, 11:29 am, John VDenleyjohnvden...@googlemail.com wrote:

 I have just come across the following error when testing my
 application in IE7, It seems to work fine in Chrome 4.0  and FF 3.5.7

 I have seen several other people having the same problem on this
 forum, but I cant work out from any of them how I can work out whats
 wrong with MY application!

 Can anyone give me any clues as to how and where to look to find out
 where to fix this problem?

 Thanks,
 John

 22:04:09.376 [ERROR] [idebanet] Uncaught exception escaped
 com.google.gwt.core.client.JavaScriptException: (Error): Invalid
 argument.
  number: -2147024809
  description: Invalid argument.
     at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
 (BrowserChannelServer.java:195)
     at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
 (ModuleSpaceOOPHM.java:120)
     at com.google.gwt.dev.shell.ModuleSpace.invokeNative
 (ModuleSpace.java:507)
     at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
 (ModuleSpace.java:264)
     at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
 (JavaScriptHost.java:91)
     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
     at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.google.gwt.dev.shell.MethodAdaptor.invoke
 (MethodAdaptor.java:103)
     at com.google.gwt.dev.shell.MethodDispatch.invoke
 (MethodDispatch.java:71)
     at com.google.gwt.dev.shell.OophmSessionHandler.invoke
 (OophmSessionHandler.java:157)
     at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
 (BrowserChannel.java:1668)
     at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
 (BrowserChannelServer.java:401)
     at com.google.gwt.dev.shell.BrowserChannelServer.run
 (BrowserChannelServer.java:222)
     at java.lang.Thread.run(Unknown Source)
-- 
You received this message because you are subscribed

Re: javascript error (invalid Argument)

2010-01-21 Thread John V Denley
OK I lied, whilst this fix worked on my local system, and I no longer
get a javascript invalid arguement error.

However as soon as I deploy it live (using GAE to host) it doesnt work
anymore and doesnt give any errors or anything, it just seems to
hang

If anyone wants to try to figure out whats wrong with it, feel free,
you can play with it at: http://demo.ideba.net, remember the problem
is ONLY in IE, it works fine in all other browsers. Also, there is no
need to login, the problem occurs on that first screen...

On Jan 21, 2:46 pm, John V Denley johnvden...@googlemail.com wrote:
 I finally bit the bullet, and started commenting out huge chunks of my
 code, and running the application to see if that got rid of the
 problem...

 After a few hours of this, I finally narrowed it down to the following
 (and similar) line of code:

 daygrid.getColumnFormatter().setWidth(col, 0px);

 where daygrid was defined as follows:

 private Grid daygrid = new Grid(daygridrows, daygridcols);

 As soon as I set this to 1px rather than 0px the javascript error
 went away.

 Others might find the following link 
 useful:http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...
 Id still like to know how to set this setting via eclipse, which im
 sure is very simple for someone who knows!

 Thanks,
 John

 On Jan 20, 10:25 pm, John VDenleyjohnvden...@googlemail.com wrote:



  Ive just tried to step through my code painfully one line at a time in
  the eclipse debugger everything seemed to work OK up to the point when
  it was about to start waiting for user interraction (or feasibly when
  it starts trying to draw to the screen), then I got the following
  error:

  Exception processing async thread queue
    Exception processing async thread queue
    org.eclipse.jdt.internal.debug.core.model.JDIClassType cannot be
  cast to org.eclipse.jdt.debug.core.IJavaValue

  Not at all helpful whats my next steps guys, anyone able to help
  me?...

  On Jan 18, 12:08 am, John VDenleyjohnvden...@googlemail.com wrote:

   Does anyone have any ideas how to debug this javascript problem with
   IE? or even where to start debugging it?

   Thanks,
   John

   On Jan 10, 5:25 pm, John VDenleyjohnvden...@googlemail.com wrote:

Im not doing any direct DOM assignments, its all pure GWT and CSS (Im
also using GAE) but its all native, im also not using any third party
toolsets/jars etc

How did you manage to narrow it down Joe? how did you go about
figuring it out? I have thousands of lines of code, I dont even know
where to begin looking for this error, the only thing I can be sure of
is that I didnt have this problem on the my 1st Dec version, which was
the last version I released for external  testing and that since then
I have upgraded to V2.0

Any help would be greatly appreciated..

On Jan 8, 1:39 am, Joe Cole profilercorporat...@gmail.com wrote:

 I feel your pain. I narrowed this down in our case to an incorrect
 style assignment. From memory I was setting:

 DOM.setStyleAttribute(overflowX, none);

 Instead of:

 DOM.setStyleAttribute(overflowX, hidden);

 Only in IE was it throwing this exception. I would suggest checking
 your style assignments, it could be the same problem.

 Joe

 On Jan 8, 11:29 am, John VDenleyjohnvden...@googlemail.com wrote:

  I have just come across the following error when testing my
  application in IE7, It seems to work fine in Chrome 4.0  and FF 
  3.5.7

  I have seen several other people having the same problem on this
  forum, but I cant work out from any of them how I can work out whats
  wrong with MY application!

  Can anyone give me any clues as to how and where to look to find out
  where to fix this problem?

  Thanks,
  John

  22:04:09.376 [ERROR] [idebanet] Uncaught exception escaped
  com.google.gwt.core.client.JavaScriptException: (Error): Invalid
  argument.
   number: -2147024809
   description: Invalid argument.
      at 
  com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
  (BrowserChannelServer.java:195)
      at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
  (ModuleSpaceOOPHM.java:120)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNative
  (ModuleSpace.java:507)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
  (ModuleSpace.java:264)
      at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
  (JavaScriptHost.java:91)
      at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
      at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
      at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
  Source)
      at java.lang.reflect.Method.invoke(Unknown Source

Re: Seamlessly Integrating GWT and Gears

2010-01-20 Thread John V Denley
Yup, I need the same thing, although Im using App Engine for the
datastore, but have no real idea how to get gears integrated.

On Jan 20, 9:33 pm, Greg gregbram...@gmail.com wrote:
 Hi all,

 Has anyone tried to integrate Gears with a GWT application that uses
 Ajax to access the backend?

 Specifically, I am thinking of having a Gears class that implements
 the DatabaseAsync interface so that my client code can call the same
 methods and I will swap out the Gears class and the regular GWT
 database class depending on whether or not the user is online or
 offline.

 Has anyone done this? I can't find any code samples online. Does it
 seem feasable? Is there any better way to do it?

 Thanks,
 Greg
-- 
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: javascript error (invalid Argument)

2010-01-20 Thread John V Denley
Ive just tried to step through my code painfully one line at a time in
the eclipse debugger everything seemed to work OK up to the point when
it was about to start waiting for user interraction (or feasibly when
it starts trying to draw to the screen), then I got the following
error:

Exception processing async thread queue
  Exception processing async thread queue
  org.eclipse.jdt.internal.debug.core.model.JDIClassType cannot be
cast to org.eclipse.jdt.debug.core.IJavaValue

Not at all helpful whats my next steps guys, anyone able to help
me?...


On Jan 18, 12:08 am, John V Denley johnvden...@googlemail.com wrote:
 Does anyone have any ideas how to debug this javascript problem with
 IE? or even where to start debugging it?

 Thanks,
 John

 On Jan 10, 5:25 pm, John VDenleyjohnvden...@googlemail.com wrote:



  Im not doing any direct DOM assignments, its all pure GWT and CSS (Im
  also using GAE) but its all native, im also not using any third party
  toolsets/jars etc

  How did you manage to narrow it down Joe? how did you go about
  figuring it out? I have thousands of lines of code, I dont even know
  where to begin looking for this error, the only thing I can be sure of
  is that I didnt have this problem on the my 1st Dec version, which was
  the last version I released for external  testing and that since then
  I have upgraded to V2.0

  Any help would be greatly appreciated..

  On Jan 8, 1:39 am, Joe Cole profilercorporat...@gmail.com wrote:

   I feel your pain. I narrowed this down in our case to an incorrect
   style assignment. From memory I was setting:

   DOM.setStyleAttribute(overflowX, none);

   Instead of:

   DOM.setStyleAttribute(overflowX, hidden);

   Only in IE was it throwing this exception. I would suggest checking
   your style assignments, it could be the same problem.

   Joe

   On Jan 8, 11:29 am, John VDenleyjohnvden...@googlemail.com wrote:

I have just come across the following error when testing my
application in IE7, It seems to work fine in Chrome 4.0  and FF 3.5.7

I have seen several other people having the same problem on this
forum, but I cant work out from any of them how I can work out whats
wrong with MY application!

Can anyone give me any clues as to how and where to look to find out
where to fix this problem?

Thanks,
John

22:04:09.376 [ERROR] [idebanet] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
 number: -2147024809
 description: Invalid argument.
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:195)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative
(ModuleSpace.java:507)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:264)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
    at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke
(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke
(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
    at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
(BrowserChannel.java:1668)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:401)
    at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
    at java.lang.Thread.run(Unknown Source)
-- 
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: Duplicate RPCs in gwt + app engine -- why?

2010-01-17 Thread John V Denley
ah yes, ive had that one, i was recreating the dialogs and buttons
each time, and then found id defined multiple on click events which
all did the same thing, so that when the user clicked on the submit
button, it actually initiated the same function multiple times!

I also fell down the trap of forgetting that the RPC call was
asynchronous and so sometimes there were actions following the RPC
call which were being executed before the rpc had finished messy
beginners mistakes!

On Jan 11, 5:07 am, amich...@gmail.com amich...@gmail.com wrote:
 On Jan 10, 5:46 pm, amich...@gmail.com amich...@gmail.com wrote:

  On Jan 10, 4:43 pm, John VDenleyjohnvden...@googlemail.com wrote:

   What was the problem Amir, I've been seeing a very similar problem
   with my application!

  It was a UI problem.  Sometimes the submission dialog didn't disappear
  quickly enough.  At that point, you might click submit again.

 Actually, it turns out that the problem occurs when the submission
 dialog has other(s) behind it...  So when one goes away, it seems that
 it didn't.

 Amir





  Try hiding the dialog before you initiate an RPC for submission.

  Amir

   On Jan 10, 8:29 pm, amich...@gmail.com amich...@gmail.com wrote:

Please ignore.  Problem found.

Amir

On Jan 10, 10:53 am, amich...@gmail.com amich...@gmail.com wrote:

 Hello,

 Sometimes an RPC is executed multiple times and I have no idea why.

 This is gwt + app engine (Java).

 Is it possible for an RPC to succeed on the app engine yet appear to
 fail at the client, thus encouraging the user to request that the
 operation be repeated?

 Amir
-- 
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: javascript error (invalid Argument)

2010-01-17 Thread John V Denley
Does anyone have any ideas how to debug this javascript problem with
IE? or even where to start debugging it?

Thanks,
John

On Jan 10, 5:25 pm, John V Denley johnvden...@googlemail.com wrote:
 Im not doing any direct DOM assignments, its all pure GWT and CSS (Im
 also using GAE) but its all native, im also not using any third party
 toolsets/jars etc

 How did you manage to narrow it down Joe? how did you go about
 figuring it out? I have thousands of lines of code, I dont even know
 where to begin looking for this error, the only thing I can be sure of
 is that I didnt have this problem on the my 1st Dec version, which was
 the last version I released for external  testing and that since then
 I have upgraded to V2.0

 Any help would be greatly appreciated..

 On Jan 8, 1:39 am, Joe Cole profilercorporat...@gmail.com wrote:



  I feel your pain. I narrowed this down in our case to an incorrect
  style assignment. From memory I was setting:

  DOM.setStyleAttribute(overflowX, none);

  Instead of:

  DOM.setStyleAttribute(overflowX, hidden);

  Only in IE was it throwing this exception. I would suggest checking
  your style assignments, it could be the same problem.

  Joe

  On Jan 8, 11:29 am, John VDenleyjohnvden...@googlemail.com wrote:

   I have just come across the following error when testing my
   application in IE7, It seems to work fine in Chrome 4.0  and FF 3.5.7

   I have seen several other people having the same problem on this
   forum, but I cant work out from any of them how I can work out whats
   wrong with MY application!

   Can anyone give me any clues as to how and where to look to find out
   where to fix this problem?

   Thanks,
   John

   22:04:09.376 [ERROR] [idebanet] Uncaught exception escaped
   com.google.gwt.core.client.JavaScriptException: (Error): Invalid
   argument.
    number: -2147024809
    description: Invalid argument.
       at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
   (BrowserChannelServer.java:195)
       at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
   (ModuleSpaceOOPHM.java:120)
       at com.google.gwt.dev.shell.ModuleSpace.invokeNative
   (ModuleSpace.java:507)
       at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
   (ModuleSpace.java:264)
       at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
   (JavaScriptHost.java:91)
       at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
       at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
       at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at com.google.gwt.dev.shell.MethodAdaptor.invoke
   (MethodAdaptor.java:103)
       at com.google.gwt.dev.shell.MethodDispatch.invoke
   (MethodDispatch.java:71)
       at com.google.gwt.dev.shell.OophmSessionHandler.invoke
   (OophmSessionHandler.java:157)
       at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
   (BrowserChannel.java:1668)
       at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
   (BrowserChannelServer.java:401)
       at com.google.gwt.dev.shell.BrowserChannelServer.run
   (BrowserChannelServer.java:222)
       at java.lang.Thread.run(Unknown Source)
-- 
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: javascript error (invalid Argument)

2010-01-10 Thread John V Denley
Im not doing any direct DOM assignments, its all pure GWT and CSS (Im
also using GAE) but its all native, im also not using any third party
toolsets/jars etc

How did you manage to narrow it down Joe? how did you go about
figuring it out? I have thousands of lines of code, I dont even know
where to begin looking for this error, the only thing I can be sure of
is that I didnt have this problem on the my 1st Dec version, which was
the last version I released for external  testing and that since then
I have upgraded to V2.0

Any help would be greatly appreciated..

On Jan 8, 1:39 am, Joe Cole profilercorporat...@gmail.com wrote:
 I feel your pain. I narrowed this down in our case to an incorrect
 style assignment. From memory I was setting:

 DOM.setStyleAttribute(overflowX, none);

 Instead of:

 DOM.setStyleAttribute(overflowX, hidden);

 Only in IE was it throwing this exception. I would suggest checking
 your style assignments, it could be the same problem.

 Joe

 On Jan 8, 11:29 am, John VDenleyjohnvden...@googlemail.com wrote:



  I have just come across the following error when testing my
  application in IE7, It seems to work fine in Chrome 4.0  and FF 3.5.7

  I have seen several other people having the same problem on this
  forum, but I cant work out from any of them how I can work out whats
  wrong with MY application!

  Can anyone give me any clues as to how and where to look to find out
  where to fix this problem?

  Thanks,
  John

  22:04:09.376 [ERROR] [idebanet] Uncaught exception escaped
  com.google.gwt.core.client.JavaScriptException: (Error): Invalid
  argument.
   number: -2147024809
   description: Invalid argument.
      at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
  (BrowserChannelServer.java:195)
      at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
  (ModuleSpaceOOPHM.java:120)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNative
  (ModuleSpace.java:507)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
  (ModuleSpace.java:264)
      at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
  (JavaScriptHost.java:91)
      at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
      at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
      at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.google.gwt.dev.shell.MethodAdaptor.invoke
  (MethodAdaptor.java:103)
      at com.google.gwt.dev.shell.MethodDispatch.invoke
  (MethodDispatch.java:71)
      at com.google.gwt.dev.shell.OophmSessionHandler.invoke
  (OophmSessionHandler.java:157)
      at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
  (BrowserChannel.java:1668)
      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
  (BrowserChannelServer.java:401)
      at com.google.gwt.dev.shell.BrowserChannelServer.run
  (BrowserChannelServer.java:222)
      at java.lang.Thread.run(Unknown Source)
-- 
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: Duplicate RPCs in gwt + app engine -- why?

2010-01-10 Thread John V Denley
What was the problem Amir, I've been seeing a very similar problem
with my application!

On Jan 10, 8:29 pm, amich...@gmail.com amich...@gmail.com wrote:
 Please ignore.  Problem found.

 Amir

 On Jan 10, 10:53 am, amich...@gmail.com amich...@gmail.com wrote:



  Hello,

  Sometimes an RPC is executed multiple times and I have no idea why.

  This is gwt + app engine (Java).

  Is it possible for an RPC to succeed on the app engine yet appear to
  fail at the client, thus encouraging the user to request that the
  operation be repeated?

  Amir
-- 
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: javascript error (invalid Argument)

2010-01-09 Thread John V Denley
If I had any clue how to figure out which of the 6000 odd lines of
code were causing the error!

On Jan 8, 4:39 pm, Chris Ramsdale cramsd...@google.com wrote:
 Hey John,

 Would you be able to narrow it down to a smaller repro case?

 - Chris

 On Thu, Jan 7, 2010 at 5:29 PM, John V Denley 
 johnvden...@googlemail.comwrote:



  I have just come across the following error when testing my
  application in IE7, It seems to work fine in Chrome 4.0  and FF 3.5.7

  I have seen several other people having the same problem on this
  forum, but I cant work out from any of them how I can work out whats
  wrong with MY application!

  Can anyone give me any clues as to how and where to look to find out
  where to fix this problem?

  Thanks,
  John

  22:04:09.376 [ERROR] [idebanet] Uncaught exception escaped
  com.google.gwt.core.client.JavaScriptException: (Error): Invalid
  argument.
   number: -2147024809
   description: Invalid argument.
     at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
  (BrowserChannelServer.java:195)
     at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
  (ModuleSpaceOOPHM.java:120)
     at com.google.gwt.dev.shell.ModuleSpace.invokeNative
  (ModuleSpace.java:507)
     at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
  (ModuleSpace.java:264)
     at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
  (JavaScriptHost.java:91)
     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
     at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.google.gwt.dev.shell.MethodAdaptor.invoke
  (MethodAdaptor.java:103)
     at com.google.gwt.dev.shell.MethodDispatch.invoke
  (MethodDispatch.java:71)
     at com.google.gwt.dev.shell.OophmSessionHandler.invoke
  (OophmSessionHandler.java:157)
     at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
  (BrowserChannel.java:1668)
     at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
  (BrowserChannelServer.java:401)
     at com.google.gwt.dev.shell.BrowserChannelServer.run
  (BrowserChannelServer.java:222)
     at java.lang.Thread.run(Unknown Source)

  --
  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.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
-- 
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.




javascript error (invalid Argument)

2010-01-07 Thread John V Denley
I have just come across the following error when testing my
application in IE7, It seems to work fine in Chrome 4.0  and FF 3.5.7

I have seen several other people having the same problem on this
forum, but I cant work out from any of them how I can work out whats
wrong with MY application!

Can anyone give me any clues as to how and where to look to find out
where to fix this problem?

Thanks,
John


22:04:09.376 [ERROR] [idebanet] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
 number: -2147024809
 description: Invalid argument.
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:195)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative
(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke
(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke
(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
(BrowserChannel.java:1668)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Unknown Source)
-- 
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: Offline Mode in GWT

2009-12-17 Thread John V Denley
We will be implementing offline capabilities in the new year, and are
fully intending to use gears for that, Not looked at how its going to
work at all yet though!!

On Dec 16, 2:28 pm, Joe Cole profilercorporat...@gmail.com wrote:
 We use adobe air. Gears doesn't have support for encrypted local data
 which is important for us.
 We've used gwt-in-the-air as a base, which has worked really well.

 On Dec 16, 11:06 am, Greg gregbram...@gmail.com wrote: Hi All,

  I am about to attempt to turn my GWT app into an offline-capable app
  with DB and local server. Is Gears for GWT still the best way to do
  this? Has anyone used HTML5 with GWT or have any other ideas to
  offline a server/DB app?

  Thanks,
  Greg

--

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: HttpServlet implementation...

2009-12-16 Thread John V Denley
FYI for anyone reading this, you might find the answer to this issue
in the following blog: 
http://turbomanage.wordpress.com/2009/11/20/deferred-defer-is-a-thing-of-beauty/

I have not had a chance to read it all through yet and try to
implement it, but it appears to be dealing with the problem I was
trying to solve

On Dec 15, 9:19 am, John V Denley johnvden...@googlemail.com wrote:
 Ive been trying to find some help regarding using Google App Engine's
 task queues, but have just realised that the questions Im asking may
 well be more of a GWT question.

 Essentially I have an application, lets say you go to http://
 myappname.appspot.com to run it normally, but what I want to do is be
 able to initiate something like http://myappname.appspot.com/
 MyServletFunction 

 I understand that Im meant to do this by extending the HttpServlet
 class, but my problem is where to do this and how to do it, and how to
 open this up to the public.

 Here is part of what I posted on the GAE Java group (can anyone on
 here help with a clear example of how to do this?):

 Where should I put the function which extends the HttpServlet (eg
 public class MyServletFunction extends HttpServlet {/*do something
 useful*/}  )
 I'm guessing it should be on the server side (eg as a new file within
 com.myappname.server) called MyServletFunctionFile.java?
 If so then should this be included somewhere OTHER than in the
 myappname.gwt.xml file (eg  servlet path=/MyServletFunction
 class=com.myappname.server.MyServletFunctionFile/)
 Im guessing that this would then mean that in theory I could type 
 inhttp://myappname.appspot.com/MyServletFunctionto invoke the /*do
 something useful*/ code?
 Is there anything else I'm meant to define anywhere? Have I totally
 misunderstood this process? If so then hopefully what Ive written
 here
 illustrates the problems that some of us are having with getting our
 head around some of these basic concepts!

 Thanks,
 John

--

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.




HttpServlet implementation...

2009-12-15 Thread John V Denley
Ive been trying to find some help regarding using Google App Engine's
task queues, but have just realised that the questions Im asking may
well be more of a GWT question.

Essentially I have an application, lets say you go to http://
myappname.appspot.com to run it normally, but what I want to do is be
able to initiate something like http://myappname.appspot.com/
MyServletFunction 

I understand that Im meant to do this by extending the HttpServlet
class, but my problem is where to do this and how to do it, and how to
open this up to the public.

Here is part of what I posted on the GAE Java group (can anyone on
here help with a clear example of how to do this?):

Where should I put the function which extends the HttpServlet (eg
public class MyServletFunction extends HttpServlet {/*do something
useful*/}  )
I'm guessing it should be on the server side (eg as a new file within
com.myappname.server) called MyServletFunctionFile.java?
If so then should this be included somewhere OTHER than in the
myappname.gwt.xml file (eg  servlet path=/MyServletFunction
class=com.myappname.server.MyServletFunctionFile/)
Im guessing that this would then mean that in theory I could type in
http://myappname.appspot.com/MyServletFunction to invoke the /*do
something useful*/ code?
Is there anything else I'm meant to define anywhere? Have I totally
misunderstood this process? If so then hopefully what Ive written
here
illustrates the problems that some of us are having with getting our
head around some of these basic concepts!

Thanks,
John

--

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 2.0 - com.google.gwt.user.client.rpc.IsSerializable is mandatory again?

2009-12-12 Thread John V Denley
Yup, Ive got the same problem having just upgraded to 2.0.. G

On Dec 12, 12:27 am, Dop Sun dop...@gmail.com wrote:
 While I upgraded my project settings to 2.0 (via Google Eclipse
 Plugin), and have a runtime error while running in development mode:

 com.google.gwt.user.client.rpc.SerializationException: Type 'xxx' was
 not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and
 did not have a custom field serializer. For security purposes, this
 type will not be deserialized.

 I believe this is resolved while GWT since 1.5, but it comes back 2.0
 again?

--

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 2.0 - com.google.gwt.user.client.rpc.IsSerializable is mandatory again?

2009-12-12 Thread John V Denley
Actually, sorry, not sure ive got the SAME problem, I have:

com.google.gwt.user.client.rpc.SerializationException: Type
'com.ideba.net.client.LoginInfo' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
custom field serializer.For security purposes, this type will not be
serialized.: instance = com.ideba.net.client.logini...@a59c12

On Dec 12, 12:27 am, Dop Sun dop...@gmail.com wrote:
 While I upgraded my project settings to 2.0 (via Google Eclipse
 Plugin), and have a runtime error while running in development mode:

 com.google.gwt.user.client.rpc.SerializationException: Type 'xxx' was
 not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and
 did not have a custom field serializer. For security purposes, this
 type will not be deserialized.

 I believe this is resolved while GWT since 1.5, but it comes back 2.0
 again?

--

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: Please Suggest Me Good Book for GWT

2009-12-02 Thread John V Denley
I found the following very useful:

http://www.pathf.com/blogs/2007/07/36-gwt-tutorial/

lots of free tutorials and examples listed there

--

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: DatePicker starting week on Monday

2009-11-28 Thread John V Denley
Yes, Id like to know this too

On Nov 11, 11:20 pm, santins sant...@gmail.com wrote:
 Is there a way to change the first day of the week from Sunday to
 Monday?

--

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: Hosted mode hanging 4 out of 10times

2009-10-21 Thread John V Denley

Just thought it might be worth mentioning that I have been having this
problem for about 4 weeks now... I was hoping it might be dealt with
in the lastest updates, but its still there!

Im using GWT with GAE functionality, my app is built up from the
original stockwatcher application.

I actually have periods of time when I get this problem over and over
and over again, but usually I find that it eventually sorts itself out
without me doing anything, I just keep trying to restart hosted mode,
and eventually it kicks in by going to the correct url
There are suggestions around (not sure if they are also in here) that
clearing the IE cache can fix this problem, and that worked for me for
a little while, but then it didnt work anymore, and after experiencing
the issue so many times, i now know that its just a waiting game.

However, I also find that closing eclipse down and reopening it seems
to clear the problem too, but then again that just might be due to the
time period it takes to shut down and restart (the ubiquitous have
you tried rebooting solution)

Cheers,
J

On Aug 28, 4:50 pm, Ian Bambury ianbamb...@gmail.com wrote:
 Keep cutting bits out until it stops hanging - the problem is in the last
 bit you cut out
 Ian

 http://examples.roughian.com

 2009/8/28 Rahul coolrahul18...@gmail.com



  Hi Ian,
  Yeah doing that now, its still hanging a lot
  I don't know whats the problem. I guess the last option would be to
  reinstall gwt

  On Aug 28, 11:14 am, Ian Bambury ianbamb...@gmail.com wrote:
   I don't think that the problem is there, but try commenting out just that
   call and running the rest of the app. If the problem goes away, then I'm
   wrong :-)
   Ian

  http://examples.roughian.com

   2009/8/28 Rahul coolrahul18...@gmail.com

Hi,
This is my code:

Client side, i am calling an RPC service to connect to sqlserver2005.
Its an simple login(very basic)

greetingService.greetServer3(username,password, new
AsyncCallbackInteger()
                                               {

                                                      �...@override
                                                       public void
onFailure(Throwable caught) {
                                                               // TODO
Auto-generated method stub

                                                       }

                                                      �...@override
                                                       public void
onSuccess(Integer result) {
                                                               // TODO
Auto-generated method stub
                                                               if
  (result
== 1)

 Window.alert(log on successful);
                                                               else

 Window.alert(Please check the username and password);
                                                       }

My implementation on server side is

 public Integer greetServer3(String str, String str1) {
                               // TODO Auto-generated method stub

                                try
                                   {
                                     Class.forName
(com.microsoft.sqlserver.jdbc.SQLServerDriver).newInstance();
                                     conn =
DriverManager.getConnection(jdbc:sqlserver://
STI1121081:1433;database=Sql-obtv, username, password);
                                     stm =
((java.sql.Connection)conn).createStatement();

                                     System.out.println(Values of
  string
name+str+value of
pass+str1);
                                     rs = stm.executeQuery(select *
  from
Password);

                                     while (rs.next())
                                     {
                                         user
  =rs.getString(Username);
                                         pass = rs.getString(Pass);
                                                              }
                                     conn.close();
                                   } catch (Exception e) {
                                    connString = e.getMessage();

                                   }

                                  user =user.replaceAll(\\s+$, );
                                  pass = pass.replaceAll(\\s+$, );

                                   if (str.equals(user)
str1.equals(pass))
                                       return 1;

                                   else
                                       return 0;

                       }

Also I am not using the Google Application engine as i am integrating
with sqlserver2005. I have seen similar problems whenever i try
integrating with sqlserver2005. I am using 

Re: dialog box background - BUG?

2009-09-29 Thread John V Denley

OK so this bug seems to relate to a dialog box, containing a
FlexTable, when you use the addStyleName operator rather than the
setStyleName operator

If you create a basic GWT project and add the following code just just
after the line which adds the send button into the HTML page
(   RootPanel.get(sendButtonContainer).add(sendButton);  )

final Button TestButton = new Button(TEST,
new ClickHandler() {
public void onClick(ClickEvent event) {

final DialogBox TestDialogBox = new DialogBox();
TestDialogBox.addStyleName(TEST_DIALOG);
final FlexTable TestFT = new FlexTable();
final Button TestCloseButton = new Button(Close);
TestFT.setWidget(3,1,TestCloseButton);
TestDialogBox.setWidget(TestFT);
TestCloseButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
TestDialogBox.hide();
}
});
TestDialogBox.show();
}
});
RootPanel.get(sendButtonContainer).add(TestButton);

Then add the following in the CSS file:

.TEST_DIALOG {
  background: red;
}


Then you will see this bug when you run the project and click on the
TEST button


On Sep 17, 3:47 pm, Isaac Truett itru...@gmail.com wrote:
 John,

 The first step in reporting a bug is to create the smallest possible
 piece of code that reproduces the problem. You can post that code here
 and the group can help you determine if you have a legitimate bug.

 - Isaac

 On Thu, Sep 17, 2009 at 5:36 AM, John VDenley

 johnvden...@googlemail.com wrote:

  ive just tried to set the background colour of all my dialog boxes
  using CSS and its immediately obvious that there seems to be a bug
  with the DIV somewhere, as the background colour is appearing to the
  immediate right of the actual dialog box, its exactly the same height,
  but approximately 30% wider. One of my dialog boxes has a disclosure
  panel, and when i open that up, the shadow background expands with
  it, again maintaining the same height, but approximately 30% more
  width.

  Has anyone else seen this, is it a known bug? If not how can i report
  it officially?

  I know i could probably work out how to report it etc myself, but I
  have a deadline today to get my first version finished before i go off
  on holiday tomorrow, and I still have a lot to do!!

  Thanks,
  J
--~--~-~--~~~---~--~~
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: dialog box background - BUG?

2009-09-29 Thread John V Denley

Hmmm, not sure I ever would have figured that out on my own, Ive only
been doing web application development for about 2-3 months, so this
is all new to me.

You were correct in your assumptions, and that makes sense why the
problem only happens when you add a stylename, as using the
setStyleName would override the gwt-DialogBox Style.

Also odd though that the problem goes away when you use
dialogBox.setWidget(dialogVPanel); which must mean that the dialog box
width automatically shrinks to fit the vertical panel, but doesnt when
the widget is a flextable.

Thanks for the tip about firebug, I downloaded that for another
purpose a while ago, and didnt know that you could use it in the way
you have described below, so I will have a look at that, not least as
it might help me dissect and understand whats happening with GWT
unther the hood a bit better

Thanhks for your help and input, hopefully this will be a useful entry
for anyone else with a similar issue :D

On Sep 29, 1:20 pm, Isaac Truett itru...@gmail.com wrote:
 John,

 I'm assuming that by basic GWT project you mean a project created
 with the New Web Application Project wizard in the Google Plugin for
 Eclipse, since that seems to fit with your description. If that
 assumption is correct, then you're not looking at a bug at all. The
 CSS file created by the wizard sets a width of 400px on DialogBoxes:

 .gwt-DialogBox {
   width: 400px;

 }

 You have a 400px-wide dialog with a smaller table inside it, allowing
 the background to show through. I'm sure you could've discovered that
 for yourself. If you'd really stripped things down to the smallest
 possible reproduction case, you would've found that the problem
 disappeared when you removed that CSS rule. You also could've
 discovered it by examining your application in a DOM inspector such as
 the Firefox plugin Firebug.

 -- Isaac

 On Tue, Sep 29, 2009 at 6:41 AM, John VDenley

 johnvden...@googlemail.com wrote:

  OK so this bug seems to relate to a dialog box, containing a
  FlexTable, when you use the addStyleName operator rather than the
  setStyleName operator

  If you create a basic GWT project and add the following code just just
  after the line which adds the send button into the HTML page
  (   RootPanel.get(sendButtonContainer).add(sendButton);  )

         final Button TestButton = new Button(TEST,
                         new ClickHandler() {
                 public void onClick(ClickEvent event) {

                         final DialogBox TestDialogBox = new DialogBox();
                         TestDialogBox.addStyleName(TEST_DIALOG);
                         final FlexTable TestFT = new FlexTable();
                         final Button TestCloseButton = new Button(Close);
                         TestFT.setWidget(3,1,TestCloseButton);
                         TestDialogBox.setWidget(TestFT);
                         TestCloseButton.addClickHandler(new ClickHandler() {
                                 public void onClick(ClickEvent event) {
                                         TestDialogBox.hide();
                                 }
                         });
                         TestDialogBox.show();
                         }
         });
         RootPanel.get(sendButtonContainer).add(TestButton);

  Then add the following in the CSS file:

  .TEST_DIALOG {
   background: red;
  }

  Then you will see this bug when you run the project and click on the
  TEST button

  On Sep 17, 3:47 pm, Isaac Truett itru...@gmail.com wrote:
  John,

  The first step in reporting a bug is to create the smallest possible
  piece of code that reproduces the problem. You can post that code here
  and the group can help you determine if you have a legitimate bug.

  - Isaac

  On Thu, Sep 17, 2009 at 5:36 AM, John VDenley

  johnvden...@googlemail.com wrote:

   ive just tried to set the background colour of all my dialog boxes
   using CSS and its immediately obvious that there seems to be a bug
   with the DIV somewhere, as the background colour is appearing to the
   immediate right of the actual dialog box, its exactly the same height,
   but approximately 30% wider. One of my dialog boxes has a disclosure
   panel, and when i open that up, the shadow background expands with
   it, again maintaining the same height, but approximately 30% more
   width.

   Has anyone else seen this, is it a known bug? If not how can i report
   it officially?

   I know i could probably work out how to report it etc myself, but I
   have a deadline today to get my first version finished before i go off
   on holiday tomorrow, and I still have a lot to do!!

   Thanks,
   J
--~--~-~--~~~---~--~~
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 

Re: How to fire events registered with a HandlerManager?

2009-09-29 Thread John V Denley

Bulat, can you direct me to any documentation anywhere which explains
the use of the ? and I constructs?

Thanks,
J


On Sep 21, 4:03 am, Bulat Sirazetdinov bula...@gmail.com wrote:
 You should do it this way:
 At first you'll need to create a class that implements
 HasValueChangeHandlers interface. It is because of the fact that
 ValueChangeEvent.fire() method requires a class that implements
 HasValueChangeHandlers interface passed in a first parameter.
 So let name that class MyHandlers (see below).

 Then you should get an instance of MyHandlers class:
 ---
 MyHandlersString exampleHandlers = new HandlersString();
 ---

 and register ValueChangeHandler objects in that instance:
 ---
 exampleHandlers.addValueChangeHandler(someHandler1);
 exampleHandlers.addValueChangeHandler(someHandler2);
 exampleHandlers.addValueChangeHandler(someHandler3);
 ---

 Now you can fire ValueChangeEvent to all handlers that you've
 registered in exampleHandlers object:
 ---
 ValueChangeEvent.fire(exampleHandlers, text);
 ---

 MyHandlers class declaration:
 -
 public class MyHandlersI implements HasValueChangeHandlersI {

     private final ListValueChangeHandlerI list = new
 ArrayListValueChangeHandlerI();

     public void fireEvent(GwtEvent? event) {
         if (event instanceof ValueChangeEvent) {
             for (ValueChangeHandlerI handler : list) {
                 handler.onValueChange((ValueChangeEventI) event);
             }
         }
     }

     public HandlerRegistration addValueChangeHandler(final
 ValueChangeHandlerI handler) {
         list.add(handler);
         return new HandlerRegistration() {

             public void removeHandler() {
                 list.remove(handler);
             }
         };
     }}

 -

 Hope that helps.
 Best wishes!

 On Aug 20, 4:33 am, jscheller jschel...@csoftware.com wrote:

  Hello -

  So, I've got a composite that has something like this inside it...

  private HandlerManager changeHandlers = new HandlerManager( null );

  public HandlerRegistration      addValueChangeHandler(ValueChangeHandler
  handler)
     { return changeHandlers.addHandler(ValueChangeEvent.getType(),
  handler); }

  ...and somewhere down the pipeline, I want to actually fire off an
  event to anyone who registered a handler when the composite decides
  it's represented value has changed and wants the rest of the world to
  know. However, the syntax for actually constructing and firing the
  event off has got me pulling my hair out.

  I've tried variants of sending the event through the change
  handlers...

  changeHandlers.fireEvent( new ValueChangeEvent(foo) );
  changeHandlers.fireEvent( new ValueChangeEventString(foo) );

  ...and using the static fire() method in the event class itself...

  ValueChangeEventString.fire( changeHandlers, foo);

  ...and Eclipse complains loudly about all of these constructions. I
  mean, I know this can't be that hard, but I can't find any good
  examples of things like this using the new (GWT 1.6 or later) event
  handlers, and reading the code sends me down a DOM event/Java generics
  rabbit hole that I'm frankly not experienced enough to deal with
  yet...

  Any help appreciated!

  Jim
--~--~-~--~~~---~--~~
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: dialog box background - BUG?

2009-09-27 Thread John V Denley

OK, thanks Isaac, Ill try to get onto that tomorrow

On Sep 17, 3:47 pm, Isaac Truett itru...@gmail.com wrote:
 John,

 The first step in reporting a bug is to create the smallest possible
 piece of code that reproduces the problem. You can post that code here
 and the group can help you determine if you have a legitimate bug.

 - Isaac

 On Thu, Sep 17, 2009 at 5:36 AM, John VDenley

 johnvden...@googlemail.com wrote:

  ive just tried to set the background colour of all my dialog boxes
  using CSS and its immediately obvious that there seems to be a bug
  with the DIV somewhere, as the background colour is appearing to the
  immediate right of the actual dialog box, its exactly the same height,
  but approximately 30% wider. One of my dialog boxes has a disclosure
  panel, and when i open that up, the shadow background expands with
  it, again maintaining the same height, but approximately 30% more
  width.

  Has anyone else seen this, is it a known bug? If not how can i report
  it officially?

  I know i could probably work out how to report it etc myself, but I
  have a deadline today to get my first version finished before i go off
  on holiday tomorrow, and I still have a lot to do!!

  Thanks,
  J
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



dialog box background - BUG?

2009-09-17 Thread John V Denley

ive just tried to set the background colour of all my dialog boxes
using CSS and its immediately obvious that there seems to be a bug
with the DIV somewhere, as the background colour is appearing to the
immediate right of the actual dialog box, its exactly the same height,
but approximately 30% wider. One of my dialog boxes has a disclosure
panel, and when i open that up, the shadow background expands with
it, again maintaining the same height, but approximately 30% more
width.

Has anyone else seen this, is it a known bug? If not how can i report
it officially?

I know i could probably work out how to report it etc myself, but I
have a deadline today to get my first version finished before i go off
on holiday tomorrow, and I still have a lot to do!!

Thanks,
J
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



HTTP POST on the server side?

2009-09-13 Thread John V Denley

Please excuse the newbie wording below, Im really not sure how to
phrase this problem correctly, which is of course causing me problems
with trying to find a solution by searching online, as I dont really
know what it is that i need to do, but I think its an HTTP POST (but
it could be send/get/submit/request?! as Ive seen all these terms used
when hunting around for a solution!)

Ive looked around as much as I can though and as is often the case
cant seem to find any working examples of what I need to do which is
to call a 3rd party website via an HTTP call from the server side of
my GWT/GAE application.

Essentially the following code snippet does the job on the client side
(ive changed the parameters to protect confidentiality):

String SendText=http://www.services.dynmark.com/
HttpServices/SendMessage.ashx? +
user=username +
password=password +
to=447765111222+
from=447765222111 +
text=MESSAGE_TEXT;
Anchor SendMessageLink = new Anchor(Send Message);
SendMessageLink.setHref(SendText);
RootPanel.get().add(SendMessageLink);

when the user clicks on the link though, it takes them to an XML
result page with a reference number embedded.

Obviously i dont want that to happen, i need to capture the reference
number so I can then make a different HTTP request to get the status,
and I dont want the user to see the HTTP text (password) or to be
redirected to another website.

Ive then tried to use the Requestbuilder function (class/widget?) of
GWT, but thats when I run into the same origin policy security
restriction (http://en.wikipedia.org/wiki/Same_origin_policy)

Reading around on the internet, it seems that the only way to achieve
what I need is to run the HTTP post from the server after an RPC
conection. I have tried to implement this, but have found no working
examples to figure out how to achieve this. I have tried to simple
copy and paste the Requestbuilder code into my server functions, only
to have the following error appear on the eclipse console:

Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create
() is only usable in client code!  It cannot be called, for example,
from server code.

If anyone can give me some help and advice on this topic, then I would
be very greatful!

Thanks,
John
--~--~-~--~~~---~--~~
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: HTTP POST on the server side?

2009-09-13 Thread John V Denley

Ah, I actually meant to mention that I had already tried that and got
the following error:

the import java.net cannot be resolved

Im guessing ive done something wrong, or im meant to have included it
in some other way, or im meant to include something else somewhere!

Im using Eclipse if that helps at all.

Thanks
John
--~--~-~--~~~---~--~~
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: HTTP POST on the server side?

2009-09-13 Thread John V Denley

LOL - you almost beat me to it!

It was the hosted mode browser reporting that error, after replying to
your earlier post, I realised that I had only tried to use the
java.net.URL class inside the client code rather than inside the
server code.

As soon as I moved it into the server side, it worked perfectly, a bit
of a case of not being able to see the wood for the trees

Thank you very much :D

one of those moments, where I already had the answer, I just needed to
describe it to someone to figure out where i had gone wrong!!!

Cheers, thats made my whole weekend :D:D:D,
J

On Sep 13, 7:24 pm, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 Who is reporting that error? Eclipse? Or is it the GWT hosted mode browser?

 Also, can you paste the folder structure of the src folder? Perhaps the
 server code somehow made its way to the client packages..

 --Sri

 2009/9/13 John V Denley johnvden...@googlemail.com



  Ah, I actually meant to mention that I had already tried that and got
  the following error:

  the import java.net cannot be resolved

  Im guessing ive done something wrong, or im meant to have included it
  in some other way, or im meant to include something else somewhere!

  Im using Eclipse if that helps at all.

  Thanks
  John
--~--~-~--~~~---~--~~
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: Seriously getting beyond my capabilities with GWT....

2009-09-12 Thread John V Denley

Im in total agreement with everything Ian has said.

Almost everything he stated, are exactly the reasons that the
relationships ive tried to build over the last 6 months have all
failed.

As such (and mostly as he is based not far from me in the UK) I shall
be contacting Ian offlist to see if there is a mutually agreeable way
that he can help me with my project :D

Was regretting my inital posting, but now I feel like its turned out
quite positive in the end!

Cheers,
J
--~--~-~--~~~---~--~~
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: Seriously getting beyond my capabilities with GWT....

2009-09-11 Thread John V Denley

Ok Mars, I wasnt really expecting a technical response on this
particular problem yet, this post was designed to see if anyone was
willing to allow me to send questions to them directly rather than
having to wait for responses on here.

I dont take offence with your reply, although I dont think your
opinions are correct!

1. I'd certainly love for someone to write the app for me, but im
equally happy to realise that id never get anyone to do that for
nothing!  We actually did employ an indian development company to do
this for us, but they didnt do anywhere near an acceptable job for us
and that burnt most of our startup costs. I have now had to take on
the job myself, and so far I feel Ive been doing a pretty good job, we
are hoping to start selling V3 of the product next week!

2. I do try to read the documentation, I usually dont post onto this
forum until Ive completely run out of ideas having read everything I
can find out about the specific issue im trying to solve.Usually the
problem is that most of the documentation and suggestions from people
like youself assume a certain level of understanding of all the
technologies involved, and often there are terms used, which have no
meaning to me, and I then have to go and investigate those terms
before i can understand the issue im reading about, often to only find
that half the stuff im looking into is not relevant to what im
actually trying to do.

On this particular issue I am quite happily transferring data to and
from the datastore (Google App Engine - which i did mention above). Im
not actually 100% certain what technology terms to use to describe how
im doing that bit now, I think its RPC, but i cant be sure. I took the
code for the stockwatcher example and modified that to do what im
doing, and some of the code from the sticky application (I think).

I have managed to work around the above problem through my own
ingenuity by breaking the date down for each appointment on the
server side into month/day/hour/minute and then passing this as a
string[][] array back to the client, where i reconstitute the date
back into a date object and then apply the localisation manually. I am
certain that this is a horrible way to achieve the result, but it
works OK, so for now Im going to live with it.

I now have a new problem (sending an HTTP request to a 3rd party
website from the server rather than the client to avoid the single-
origin security restriction). I have been trying to figure this out
since about 11pm last night but have not yet looked at all online
documentation and forum posts yet.  I will probably post that
separately later this evening as its unrelated to this thread and im
not feeling hopeful about finding an easy answer to that!

Thanks for your input anyway, all responses are always appreciated :D

J


On Sep 11, 9:56 am, mars1412 martin.trum...@24act.at wrote:
 to me it's no surprise, that you don't get answers to a post like this

 here's my very personal opinion and I assure you, it's meant to help
 and not to offend you

 my opinion after reading your post is

 1st impression: your not looking for answers to your questions, but
 for someone who will write the app. for you

 2nd impression:  you didn't really read the docs and try simple
 examples of whatever technology you use.
 because storing and retrieving data from whatever datastore you use
 is a very basic thing to do and I can't imagine that the specific
 documentation of your datastore-product does not provide information
 or basic examples about this.

 so what I suggest:
  * read the docs
  * try some examples
  * provide detailed information
    e.g. what technology are you using?
    GWT, GAE, HIbernate, JPA, JDO, Spring, ...?
    how do you transfer data from the server to the client?
    RPC, JSON, ...?
  * provide specific questions about small problems and maybe
    even include source-code or an errormessage

 On Sep 10, 3:03 pm,JohnVDenleyjohnvden...@googlemail.com wrote:

  Is there anyone out there who would l like to help me out? Its
  ultimately a commercial product, but Im really not a programmer
  anymore, I used to know C, but all this webstuff is hurting my brain!

  My current problem is that Ive managed to get my application to create
  entries in the datastore (I know thats a bit of a GAE area) but the
  problem Im having now is retrieving the data. Im storing an
  appointment into the datastore, but now when trying to retrieve it, I
  need to get several variables back, so far I can only get strings or
  string arrays back.But I really need to retrieve the date back now, as
  its stored as a UTC on the server, and of course that means that when
  if I pass it back as a string and parse it then the time is wrong for
  my local timezone (I know this is a horrible way to do it, but i was
  just trying to get something quick and dirty up and running, and then
  work out later how to do it properly!)

  I have tried to change my server calls so they use a more 

Re: Seriously getting beyond my capabilities with GWT....

2009-09-11 Thread John V Denley

Hi Frank and Trevis, you are both correct, and I guess I should
apologise to some extent, I was just throwing the question out there
to see what kind of a response I got. I am happy to drop this thread
now and concentrate on specific GWT questions.

I have been burnt several times over the last six months, both with
commercial organisations and individuals who have promised the world
and then simply not delivered. Hence I am very wary of getting
involved with anyone new.

Frank, I used to be a programmer, but have moved away from it over the
years, and have been forced back into it, due to being unable to find
anyone else who can do a good enough job for me. I dont want to be
doing the programming, I am an ideas man, so if you have any
suggestions as to how i can find competent developers without having
to pay them for 2 months work before finding out how good they really
are, then I am all ears!!

Apologies to anyone who has taken any kind of offence to my asking
this question on here!

Thanks for all your responses though!  :D

J

On Sep 11, 4:33 pm, Trevis trevistho...@gmail.com wrote:
 imho, the purposes of forums like this isnt to find someone who will
 help you off line but to share questions that others may have so that
 they can be answered in on central repository.  Further the questions
 and responses could possibly guide future development and
 documentation.

 To that end i think that questions in this specific forum should be
 GWT specific not development in general.

 That my opinion anyway.
 Trevis

 On Sep 11, 10:14 am,JohnVDenleyjohnvden...@googlemail.com wrote:

  Ok Mars, I wasnt really expecting a technical response on this
  particular problem yet, this post was designed to see if anyone was
  willing to allow me to send questions to them directly rather than
  having to wait for responses on here.

  I dont take offence with your reply, although I dont think your
  opinions are correct!

  1. I'd certainly love for someone to write the app for me, but im
  equally happy to realise that id never get anyone to do that for
  nothing!  We actually did employ an indian development company to do
  this for us, but they didnt do anywhere near an acceptable job for us
  and that burnt most of our startup costs. I have now had to take on
  the job myself, and so far I feel Ive been doing a pretty good job, we
  are hoping to start selling V3 of the product next week!

  2. I do try to read the documentation, I usually dont post onto this
  forum until Ive completely run out of ideas having read everything I
  can find out about the specific issue im trying to solve.Usually the
  problem is that most of the documentation and suggestions from people
  like youself assume a certain level of understanding of all the
  technologies involved, and often there are terms used, which have no
  meaning to me, and I then have to go and investigate those terms
  before i can understand the issue im reading about, often to only find
  that half the stuff im looking into is not relevant to what im
  actually trying to do.

  On this particular issue I am quite happily transferring data to and
  from the datastore (Google App Engine - which i did mention above). Im
  not actually 100% certain what technology terms to use to describe how
  im doing that bit now, I think its RPC, but i cant be sure. I took the
  code for the stockwatcher example and modified that to do what im
  doing, and some of the code from the sticky application (I think).

  I have managed to work around the above problem through my own
  ingenuity by breaking the date down for each appointment on the
  server side into month/day/hour/minute and then passing this as a
  string[][] array back to the client, where i reconstitute the date
  back into a date object and then apply the localisation manually. I am
  certain that this is a horrible way to achieve the result, but it
  works OK, so for now Im going to live with it.

  I now have a new problem (sending an HTTP request to a 3rd party
  website from the server rather than the client to avoid the single-
  origin security restriction). I have been trying to figure this out
  since about 11pm last night but have not yet looked at all online
  documentation and forum posts yet.  I will probably post that
  separately later this evening as its unrelated to this thread and im
  not feeling hopeful about finding an easy answer to that!

  Thanks for your input anyway, all responses are always appreciated :D

  J

  On Sep 11, 9:56 am, mars1412 martin.trum...@24act.at wrote:

   to me it's no surprise, that you don't get answers to a post like this

   here's my very personal opinion and I assure you, it's meant to help
   and not to offend you

   my opinion after reading your post is

   1st impression: your not looking for answers to your questions, but
   for someone who will write the app. for you

   2nd impression:  you didn't really read the docs and try simple
   examples of 

Re: Offline GWT Applications

2009-09-11 Thread John V Denley

Not sure how relevant these are for this specific discussion

But Im looking at using gears with my GWT application to allow for
offline access so they might be useful to others on here:
http://wiki.developerforce.com/index.php/Building_Offline_Salesforce_Applications_with_Google_Gears_and_Google_Web_Toolkit
http://www.gwtsite.com/getting-started-with-gwt-and-google-gears/

Cheers,
J
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Seriously getting beyond my capabilities with GWT....

2009-09-10 Thread John V Denley

Is there anyone out there who would l like to help me out? Its
ultimately a commercial product, but Im really not a programmer
anymore, I used to know C, but all this webstuff is hurting my brain!

My current problem is that Ive managed to get my application to create
entries in the datastore (I know thats a bit of a GAE area) but the
problem Im having now is retrieving the data. Im storing an
appointment into the datastore, but now when trying to retrieve it, I
need to get several variables back, so far I can only get strings or
string arrays back.But I really need to retrieve the date back now, as
its stored as a UTC on the server, and of course that means that when
if I pass it back as a string and parse it then the time is wrong for
my local timezone (I know this is a horrible way to do it, but i was
just trying to get something quick and dirty up and running, and then
work out later how to do it properly!)

I have tried to change my server calls so they use a more complex data
type (Appointment class) but the compiler is now giving me a ton of
error messages which i dont understand (basically lots of i cant
resolve that type kinds of messages)

Im a bit lost and could use some more expert help with this, but cant
seem to find anyone willing to put in a bit of time and effort to help
me out without wanting payment!!!

Can anyone help me please?!
--~--~-~--~~~---~--~~
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 fire events registered with a HandlerManager?

2009-09-08 Thread John V Denley

I sitll cant work out from the code in this article, how to fire an
event:

final ListBox dropBox = new ListBox(false);
dropBox.addItem();
dropBox.addItem(a);
dropBox.addItem(b);
dropBox.addItem(c);
dropBox.addItem(d);

dropBox.addChangeHandler(new ChangeHandler()
{
//  @Override
public void onChange(ChangeEvent event)
{
switch (dropBox.getSelectedIndex()) {
  case 0:
ApptPrice.setText();
break;
  case 1:
ApptPrice.setText(8.50);
break;
  case 2:
ApptPrice.setText(9.50);
break;
  case 3:
ApptPrice.setText(10.50);
break;
  case 4:
ApptPrice.setText(11.50);
break;
default:
ApptPrice.setText(should never see 
this);
break;

}
}
});
dropBox.setItemSelected(setitemtoselect, true);
dropBox.fireEvent(onChange);

Its this last line I want to implement, Im setting the selection
programattically (based on selections elsewhere in the code) and i
need to fire the onChange event because as stated in the javadoc:
Note that setting the selection programmatically does not cause the
ChangeHandler.onChange(ChangeEvent) event to be fired. 

On Aug 20, 5:45 pm, jscheller jschel...@csoftware.com wrote:
 Thanks Thomas... That and gazing wisely (or at least trying to give
 the appearance of looking somewhat informed) at TextBoxBase.class got
 me this...

 public class MyComposite extends Composite implements
 HasValueChangeHandlersString {

         private void internalMethodToHandleUpdates() {
                // handle validation and all sorts of other stuff, then
 if
                // if it looks good let outsiders know...

               ValueChangeEvent.fire( this, theNewValue );
         }

         public HandlerRegistration addValueChangeHandler(ValueChangeHandler
 handler) {
             return addHandler(handler, ValueChangeEvent.getType());
         }

 }

 ..which looks like it should work. Still fuzzy on why the widget can't
 manage an independent list of handlers under the hood, and the event
 typing system still has me baffled, but this'll get me past the puzzle
 box that kept me busy yesterday and seems less complex than what I was
 doing... Thanks for your help!

 On Aug 20, 2:25 am, Thomas Broyer t.bro...@gmail.com wrote:

  On Aug 20, 2:33 am, jscheller jschel...@csoftware.com wrote:

   Hello -

   So, I've got a composite that has something like this inside it...

   private HandlerManager changeHandlers = new HandlerManager( null );

   public HandlerRegistration      addValueChangeHandler(ValueChangeHandler
   handler)
      { return changeHandlers.addHandler(ValueChangeEvent.getType(),
   handler); }

  You shouldn't ever instantiate a HandlerManager (except if you use one
  as an event bus; but that's another story and at least this rule is
  true for widgets); just call the Widget#addHandler(...) method.

  public HandlerRegistration addValueChangeHandler
  (ValueChangeHandlerString handler) {
    return addHandler(handler, ValueChangeEvent.getType());

  }
   ...and somewhere down the pipeline, I want to actually fire off an
   event to anyone who registered a handler when the composite decides
   it's represented value has changed and wants the rest of the world to
   know. However, the syntax for actually constructing and firing the
   event off has got me pulling my hair out.

   I've tried variants of sending the event through the change
   handlers...

   changeHandlers.fireEvent( new ValueChangeEvent(foo) );
   changeHandlers.fireEvent( new ValueChangeEventString(foo) );

   ...and using the static fire() method in the event class itself...

   ValueChangeEventString.fire( changeHandlers, foo);

   ...and Eclipse complains loudly about all of these constructions. I
   mean, I know this can't be that hard, but I can't find any good
   examples of things like this using the new (GWT 1.6 or later) event
   handlers, and reading the code sends me down a DOM event/Java generics
   rabbit hole that I'm frankly not experienced enough to deal with
   yet...

   Any help appreciated!

  ValueChangeEvent.fire(this, foo);
--~--~-~--~~~---~--~~
You received this message because you 

Stockwatcher source code (Java + Eclipse + Datastore)

2009-08-03 Thread John V Denley

Does anyone have a full finished and working version of stockwatcher
built in eclipse?

Basically the source code for: http://lensticker.appspot.com

My version of it just doesnt work, and i cant work out why:
http://ucanzoom.appspot.com

in hosted mode it says cant display this website
--~--~-~--~~~---~--~~
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: Stockwatcher source code (Java + Eclipse + Datastore)

2009-08-03 Thread John V Denley

In the Eclipse Console, Im getting the following error:

The server is running at http://localhost:8080/
03-Aug-2009 13:34:52
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /stockwatcher/login

On Aug 3, 9:41 am, John V Denley johnvden...@googlemail.com wrote:
 Does anyone have a full finished and working version of stockwatcher
 built in eclipse?

 Basically the source code for:http://lensticker.appspot.com

 My version of it just doesnt work, and i cant work out 
 why:http://ucanzoom.appspot.com

 in hosted mode it says cant display this website
--~--~-~--~~~---~--~~
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: Offline GWT Applications

2009-08-03 Thread John V Denley

Great Question, Im doing a similar thing, but Im using the App Engine,
but at present I cant get the datastore access to work, Ive been stuck
on that for 3 days now, and I only wanted to do that so that I could
move on to testing gears outhowever it looks like that might be a
waste of time anyway! Thanks for the heads up and saving me some
time... Still want to get the datastore thing working though, thats
reallly frustrating me!

On Aug 3, 4:18 pm, Dominic Holt domh...@gmail.com wrote:
 Greetings all,

 I am currently building a GWT application that functions entirely
 offline (as in, never connects to the internet to update, sync, what
 have you). In a normal web application, you can typically run your
 application offline just as well as long as you use an application
 server that you have deployed your app in and assuming you have local
 network access to the application server.

 The problem inherent with GWT is that you must use GWT-RPC in order to
 call the server from the client side in order to do interesting
 things. Normally this would not be a problem, it would just be a
 server call and would make use of the local application server, but
 GWT insists on having a connection to the internet to make an RPC call
 (and I'm having a hard time understanding why this is a good idea).

 At any rate, Google's answer to this problem seems to be to use Gears
 to stick everything in a database. I've accomplished reasonable
 functionality by creating separate java projects that do interesting
 things, which access the Gears SQLite database used by my GWT project.
 Essentially the GWT project has to stick things into the database, the
 other projects have to read these inputs out of the database, perform
 magic with them, and then put them back in the database so that the
 GWT project can read them again. Unfortunately, this method is
 becoming increasingly cumbersome, especially with the limitations of
 SQLite and how you can only update so often without the database
 locking. Is there a way to fake an internet connection for GWT so
 that GWT-RPC calls will work offline? Is there a better method?

 Thanks very much for your time,

 Dominic Holt
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---