Sunday, December 29, 2013

Re: how to reproduce.cache.html error in dev

Hi All,

Thanks you for your reply :)
Sorry I did not replied this post after solving issue, yeah  The problem is only null pointer. 
I  used server push tried to use widget before rendering.
I could not get because I habituate to see java script error in development mode but it's showing in console.

On Friday, 6 December 2013 04:21:42 UTC+5:30, Davide Micheletti wrote:
This is the code

server.tutti_clienti(new AsyncCallback<Cliente>() {

public void onSuccess(Cliente result) {

log = log + " 1 - Cliente ";
tutti_clienti = result;

cliente.addItem("- Seleziona un Cliente -","null");
for(int i=0; i<n_clienti; i++)
cliente.addItem(tutti_clienti.getCliente(i), String.valueOf(tutti_clienti.getId(i)));

public void onFailure(Throwable caught) {

log = log + " 1.1 - ERRORE Cliente " + caught;
System.out.println("Errore server.tutti_clienti(): " + caught.getMessage());
 "cliente" is a ListBox and "tutti_clienti" is a compose of ArrayList.
These type of code is written for many ListBox with many differt server call.
The problem is that if i run it on a TomCat server not all of the ListBox are loaded, but if i run it in DebugMode it work.
The error that i retrive in "server" mode are;
NullPointerException OR Fail to call the server (etc etc).

Thanks in advance and sorry for my english.

Il giorno giovedì 5 dicembre 2013, Juan Pablo Gardella ha scritto:


Several fundamental exceptions implicitly produced by the Java VM, most notably NullPointerExceptionStackOverflowError, andOutOfMemoryError, do not occur in production mode as such. Instead, aJavaScriptException is produced for any implicitly generated exceptions. This is because the nature of the underlying JavaScript exception cannot be reliably mapped onto the appropriate Java exception type.
So, a unhandled error suceded.

    2013/12/5 Juan Pablo Gardella <>
    I didn't see the java code anywhere. Replace catch (NullPointerExceptione e ) with (Exception e) and put an alert or something to see the problem. It is a NPE in javascript.


    2013/12/5 Davide Micheletti <>
    yes.. u can see it in the code that i posted..

    On Thu, Dec 5, 2013 at 7:15 PM, Juan Pablo Gardella <> wrote:
    Do you have a catch for NullPointerException in the code that is translated to Javascript?

    2013/12/5 Davide Micheletti <>
    i think that i did't explain well. The webapp run but never in the same mode. i attach some screen so you can understand.

    On Thu, Dec 5, 2013 at 4:38 PM, Pablo Nussembaum <> wrote:
    Hi Bhumika,
    You can take a look to:
    It can be used to de-obfuscate the stacktrace.

    also check:!topic/google-web-toolkit/jikvFQUJYjk


    On 12/05/2013 03:42 AM, Bhumika Thaker wrote:
    > Hi All,
    > In my gwt application, I am facing below error in war but not in
    > development.
    > This error is not understandable
    > can any body suggest how can I reach to this error in development.
    > (TypeError): a.b.k.j
    > is null stack: GXd([object Object],[object
    > Object])@
    > HNi([object Object],[object
    > Object])@
    > JNi([object
    > Object])@
    > cG([object Object],[object
    > Object],null)@
    > NF([object Object],[object
    > Object])@
    > gYd([object
    > Object])@

    Davide Micheletti

    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
    To post to this group, send email to
    Visit this group at
    For more options, visit

    No comments:

    Post a Comment