ok - I think now I tracked it down

first it turned out, that the ClassCastException occured only when I
read a special Enum-Value from the database. which was strange,
because it was an enum with 6 values: 5 worked, one had the
ClassCastException

when looking closer at the enum I noticed, that it uses the generated
GWT-i18n Text-Interface to return a language dependant value & I think
that lead me to the solution:
the problem was, that your build-system used GWT 1.5.0 to generate the
Text-Interfaces but later 1.5.2 to compile the application: I guess
that was the problem

Now I upgraded to GWT 1.5.3: I use GWT1.5.3 to generate the Text-
Interfaces and also 1.5.3 to compile the application & now it works

just for reference:
 * It also worked before in Safari 3.2.2

On Jul 21, 7:20 pm, Paul Robinson <[email protected]> wrote:
> Do you know which RPC methods trigger it? Is it all RPC methods or just
> some/one? Can you use some log statements to narrow this down? Does this
> suggest the problem exists in GWT code or your own code?
>
> Can you produce some simpler example code that still shows the problem?
>
> Has the problem just arisen, and if so, what's changed lately? Can you
> roll back to an earlier version of your code to see if the problem goes
> away? If so, which change made the problem arise?
>
> You could try it in safari 3.x, but that may not tell you much.
>
> mars1412 wrote:
> > it doesn't occur in hosted mode - my hosted mode browser is IE6 -
> > unfortunately we must still use GWT 1.5.2 and there's no OOPHM
> > available
>
> > ah - yeah - maybe I should mention some versions:
> >  * GWT 1.5.2 (I'll try to upgrade to 1.5.3 soon)
> >  * Chrome 2.0.172.37
> >  * app does not work in safari  4.0.2 at all (this is due to some java-
> > script limitation - GWT fix for this exists in GWT 1.7 AFAIK)
>
> > On 21 Jul., 18:44, Jason Essington <[email protected]> wrote:
>
> >> Uhm hosted mode is IE, FF, or Safari depending upon the platform ...
>
> >> That said, do you also get the error on Safari?
>
> >> -jason
>
> >> On Jul 21, 2009, at 10:34 AM, Paul Robinson wrote:
>
> >>> This may be a dumb question, but since you didn't mention hosted
> >>> mode....have you tried it under hosted mode as well?
>
> >>> Martin Trummer wrote:
>
> >>>> I get a ClassCastException on some of my RPC only, when the
> >>>> application runs in Chrome and only when it's compiled in (OBF)
> >>>> obfuscated mode.
>
> >>>> When I compile it in DETAILED mode, everything works fine.
> >>>> The same RPCs in other browsers also work fine (even in OBF mode).
>
> >>>> Now I'm quite stuck, because I have no idea where to start searching:
> >>>> * the log files of the backend and the webserver-logs do not show any
> >>>> exceptions/errors when this happens: this is what I excepted, because
> >>>> the exception only occurs in chrome - so it's a client side issue
> >>>> * the only information I have is, what I can see on the Java-Script
> >>>> Console of Chrome - thowable.toString() prints:
> >>>>   "java.lang.ClassCastException: null"
>
> >>>> so, unfortunaltely the class-cast-exception has no message telling me
> >>>> which class it tries to cast or which one is expected
>
> >>>> any ideas where to look / what to do?
--~--~---------~--~----~------------~-------~--~----~
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