Re: Possible cause for IncompatibleRemoteServiceException

2009-07-27 Thread ivo

I've just noticed that in certain circumstances having a GAE/J JDO
persistent detachable class like:
 @PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable="true")

may also cause:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser.
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:204)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:264)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
(Request.java:236)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:227)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.mac.MethodDispatch.invoke
(MethodDispatch.java:71)
at org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(Native Method)
at org.eclipse.swt.widgets.Display.sleep(Display.java:3801)
at com.google.gwt.dev.SwtHostedModeBase.sleep(SwtHostedModeBase.java:
241)
at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:236)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

Unfortunately I've spent a lot of time of useless troubleshooting to
reach this conclusion, since the exception message and trace didn't
indicated nothing to put me in the right direction, and the server
logs didn't pointed out any problem at all.

My environment GWT 1.7.0 + GAE/J 1.2.2

--~--~-~--~~~---~--~~
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: Problem uploading SmartGWT and GWT to Java GAE

2009-04-16 Thread ivo

Ok, so I managed to solve this problem using a different approach,
which was to zip the static files, and unzip them on the fly in a
servlet as needed. I describe it here:
http://forums.smartclient.com/showthread.php?t=5258

This solution is for smartgwt, but anyone trying to upload more than
1000 files to gae can use a similar approach.

Thanks!

On Apr 15, 12:56 pm, ivo  wrote:
> Ok, but my question is how to set-up gwt in such a way that it can
> look for static files from other urls (for the time being regardless
> of the specific IE quircks)
> thanks!
>
> On Apr 15, 12:25 pm, Salvador Diaz  wrote:
>
> > You'll probably run into trouble with the Same Origin Policy (with IE7
> > for instance, we have an issue where an image isn't loaded if the url
> > isn't in the same domain the module is deployed on, even though the
> > url points to the IP for that domain)
>
> > Let us know if you succeed
>
> > On Apr 15, 1:13 pm, ivo  wrote:
>
> > > Hello,
>
> > > I'm using gwt and smartgwt for an aplication and now I want to try out
> > > the java GAE for the backend.
>
> > > When I upload my application to GAE I get an error saying "Max number
> > > of files and blobs is 1000."
>
> > > The problem is that smartgwt inserts thousands of static files into my
> > > app (javascript, css, xml, png...).
> > > One solution would be to host smartgwt files in some other domain and
> > > then point gwt to look for these static files from the proper url.
>
> > > So, is it possible to configure gwt in such a way?
>
> > > Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem uploading SmartGWT and GWT to Java GAE

2009-04-15 Thread ivo

Ok, but my question is how to set-up gwt in such a way that it can
look for static files from other urls (for the time being regardless
of the specific IE quircks)
thanks!

On Apr 15, 12:25 pm, Salvador Diaz  wrote:
> You'll probably run into trouble with the Same Origin Policy (with IE7
> for instance, we have an issue where an image isn't loaded if the url
> isn't in the same domain the module is deployed on, even though the
> url points to the IP for that domain)
>
> Let us know if you succeed
>
> On Apr 15, 1:13 pm, ivo  wrote:
>
> > Hello,
>
> > I'm using gwt and smartgwt for an aplication and now I want to try out
> > the java GAE for the backend.
>
> > When I upload my application to GAE I get an error saying "Max number
> > of files and blobs is 1000."
>
> > The problem is that smartgwt inserts thousands of static files into my
> > app (javascript, css, xml, png...).
> > One solution would be to host smartgwt files in some other domain and
> > then point gwt to look for these static files from the proper url.
>
> > So, is it possible to configure gwt in such a way?
>
> > Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Problem uploading SmartGWT and GWT to Java GAE

2009-04-15 Thread ivo

Hello,

I'm using gwt and smartgwt for an aplication and now I want to try out
the java GAE for the backend.

When I upload my application to GAE I get an error saying "Max number
of files and blobs is 1000."

The problem is that smartgwt inserts thousands of static files into my
app (javascript, css, xml, png...).
One solution would be to host smartgwt files in some other domain and
then point gwt to look for these static files from the proper url.

So, is it possible to configure gwt in such a way?

Thanks!

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



What are your thoughts on Cappuccino and SproutCore?

2009-02-26 Thread ivo

Cappuccino and SproutCore have been around for a while and they are
really starting to make an impression on web developers.

I've been using GWT in one project for 2 months, and I'm loving it.
However I tried out Cappuccino, just to get the felling of it, and I
was truly impressed. I was able to re-design the project's UI in
Cappuccino in one week, and it seems to me that a lot of my server
side code can be re-utilized if I use something like cp2javaws
(haven't tried it).

So, my question to you guys is how will GWT compete with Cappuccino or
SproutCore, (and I'm not even mentioning JavaFX), and if you have
anything planned to extend GWT capabilities of building really rich
UIs just as easy as Cappuccino.

Don't get me wrong, I'm a truly GWT lover. In my opinion GWT is
superior in both performance and code security (minimization /
obfuscation), but right now I'm really tempted to throw away 2 months
of GWT work...

Some pointers:
http://280atlas.com/ (just announced, I recommend watching the video)
http://cappuccino.org/
http://sourceforge.net/projects/cp2javaws/
http://www.carsonified.com/web-apps/why-objective-j-cappuccino-and-sproutcore-are-completely-changing-the-web-app-industry

--~--~-~--~~~---~--~~
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: Deferred binding result type gone after refresh in hosted mode

2008-10-21 Thread Ivo

Hi Sumit,

I was being unclear: with  'a bit of caching in the Generator'
I meant 'a bit of caching in _my_ Generator extension'.

I originally  added the caching in an attempt to shorten the compile
time,
as I noticed the generator was called a many times for the same
classes. It didn't actually make much of a difference, but I never
took it out :/

The cache was such that if a class had been generated, its name
as added to the (static) cache. Therefore,  the class wasn't
regenerated after
a refresh. It seems the generated classes are removed during a
refresh
and I think that wasn't the case in 1.4.62?

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



Re: Deferred binding result type gone after refresh in hosted mode

2008-10-20 Thread Ivo

Hi,

While trimming down the application to a minimal testcase (which is of
course a form of debugging),
I found the culprit: a bit of caching in the Generator that prevented
the class from being generated
anew on a refresh, if it was already generated earlier on. That goes
to show that premature optimization
is once again the root of all evil. :)

Has there been a change in behaviour here, causing generated classes
to be deleted and
regenerated on a refresh? Now that I think of it, I actually expect
the classes to be generated anew
and it may have been entirely coincidental that it worked in the first
place.

Well, thanks for encouraging me to perform this bit of digging :)

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



Re: Deferred binding result type gone after refresh in hosted mode

2008-10-19 Thread Ivo

"Sumit Chandel" <[EMAIL PROTECTED]> wrote:
>
> Could you send us some code to try to reproduce the error? There are a few
> things that have changed from 1.4.62 to 1.5.2, but we haven't seen this kind
> of error and would need to reproduce it to find out what's going on.
>
I will try to produce a minimal testcase that will reproduce the error
and get back
to you in a few days.

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



Re: Deferred binding result type gone after refresh in hosted mode

2008-10-14 Thread Ivo

I'm bumping this discussion, in the hopes that someone who has a clue
about the problem sees it.

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



Re: Deferred binding result type gone after refresh in hosted mode

2008-10-11 Thread Ivo

>
> If the problem really is rooted in your generator, we probably need to
> see your generator to help you
>
I don't think the problem is in the generator code itself, as the
wrapper classes it generates are available after initially launching
the hosted mode browser and the problems only occurs after a refresh.
I haven't changed the generator code for ages and it always worked
'through' refreshes, up to 1.4.62.

I suppose the problem is either in the location of the generated
classes or in the fact that the classes are removed and the generator
is subsequently not invoked at all. However, what happens there is a
bit of GWT voodoo to me :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Deferred binding result type gone after refresh in hosted mode

2008-10-08 Thread Ivo

> This might not be an issue, but this looks a little fishy to me:
>
>  [ERROR] Could not load deferred binding result type
>
> > 'nl.commpany.app.web.gwt.client.model.UserAccountWrapper'
>
> company is spelled with two m's.everywhere else it has one.  Could
> be a typo in a config file somewhere.
>
That is a typo on my part: I searched/replaced the name of our client
and the actual name of the application from the stacktrace, but a few
lines weren't changed, which I modified by hand.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Deferred binding result type gone after refresh in hosted mode

2008-10-07 Thread Ivo

Hello,

Currently, my development efforts on a GWT app are seriously hindered
by the fact that I can no longer 'refresh' the code in Hosted Mode.
When I try to do so, the browser throws the exception quoted below and
the only option is to close it and restart, which takes too long per
cycle to be workable.

Does anyone know what may be wrong with my setup that causes this
problem? It obviously has to do with the custom generator I am using
(which is similar to the one in 
www.zenika.com/blog/wp-content/uploads/2007/08/tutorial-binding-en.pdf),
but I cannot discover what the problem is. It worked just fine for a
long time, but started showing this behaviour shortly after migrating
to GWT 1.5.2, although not immediately.

[ERROR] Could not load deferred binding result type
'nl.commpany.app.web.gwt.client.model.UserAccountWrapper'
java.lang.ClassNotFoundException: nl$company$app$web$gwt$client$model
$UserAccountWrapper
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
590)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
516)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
360)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
39)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at
nl.company.app.gwt.client.view.widgets.CreateAccountWidget.newAccountPanel(CreateAccountWidget.java:
61)
at
nl.company.app.web.gwt.client.view.widgets.CreateAccountWidget.(CreateAccountWidget.java:
41)
at
nl.company.app.web.gwt.client.view.widgets.WebAccountEntryWidget.(WebAccountEntryWidget.java:
37)
at
nl.company.app.web.gwt.client.view.widgets.TabPanelWidget.initializeTabs(TabPanelWidget.java:
89)
at
nl.company.app.web.gwt.client.view.widgets.TabPanelWidget.(TabPanelWidget.java:
70)
at
nl.company.app.web.gwt.client.view.widgets.RootWidget.(RootWidget.java:
35)
at
nl.company.app.web.gwt.client.Entrypoint.onModuleLoad(Actieweb.java:
73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320)
at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
329)
at com.google.gwt.dev.shell.moz.BrowserWidgetMoz.access
$100(BrowserWidgetMoz.java:35)
at com.google.gwt.dev.shell.moz.BrowserWidgetMoz
$ExternalObjectImpl.gwtOnLoad(BrowserWidgetMoz.java:59)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:
1428)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---