Hi again,

> I'm working on an application with Jetty Continuations, and I'm
> sometimes suffering from NoClassDefFoundError, where class not found
> is a WhateverClass_FieldSerializer.
> The context is a classical Continuations context, where users
> connected to an application receive events from the server. In this
> case, any user connected receives a notification when a new user
> connects (so if 200 users are connected, 200 messages are sent).
> In hosted mode, I sometimes get this exception in an already connected
> session when a new user connects. Note that only one session receives
> this message (I've never seen more than one connection receiving
> theexception). No stack trace on the server, the problem only appears
> client-side. No problem when running the compiled application (at
> least, I've never seen it, even with more than 200 users connected).
> So it's just a pain when in development mode ; this can happen even
> with only 2 or 3 users connected.
>
> Does anybody have any idea where this could come from ? Found nothing
> on issues tracker.

I tracked the problem down to
com.google.gwt.dev.javac.CompilationState
What's happening is (in hosted mode) :
 1/ First user opens hosted browser, connects the application. During
this process, rebuildClassMaps() is called multiple times.
 2/ Second user opens a new hosted browser, and connects the
application. When the server receives the connection, it immediately
sends (before second user receives connection confirmation) an event
to the first user, telling him someone is connecting. The problem is
that rebuildClassMaps() is called again multiple times, and
exposedClassFileMap is empty when the server tries to serialize the
event, hence the ClassNotFoundError.

Opening multiple hosted browsers before connecting seems to fix the
problem, but it's quite painful to open multiple browser windows just
in case...

So I'd like to know if it's the correct behavior to rebuild class maps
every time a new hosted browser window is opened ?

Thanks

--
Gilles QUERRET
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to