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:
From http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsCompatibility.html:
Several fundamental exceptions implicitly produced by the Java VM, most notably NullPointerException, StackOverflowError, 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 <gardellajuanpablo@gmail.com>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.Juan2013/12/5 Davide Micheletti <d.micheletti91@gmail.com>
yes.. u can see it in the code that i posted..On Thu, Dec 5, 2013 at 7:15 PM, Juan Pablo Gardella <gardellajuanpablo@gmail.com> wrote:
Do you have a catch for NullPointerException in the code that is translated to Javascript?2013/12/5 Davide Micheletti <d.micheletti91@gmail.com>
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 <baunax@gmail.com> wrote:Hi Bhumika,
You can take a look to:
http://www.gwtproject.org/javadoc/latest/com/google/gwt/logging/server/StackTraceDeobfuscator.html
It can be used to de-obfuscate the stacktrace.
also check:
https://groups.google.com/forum/#!topic/google-web-toolkit/jikvFQUJYjk
Regards,
--
Pablo
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.
>
> com.google.gwt.core.client.JavaScriptException: (TypeError): a.b.k.j
> is null stack: GXd([object Object],[object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7116
> HNi([object Object],[object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:3830
> JNi([object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7919
> cG([object Object],[object
> Object],null)@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10218
> NF([object Object],[object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9321
> gYd([object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/E
--
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 google-web-toolkit+unsubscribe@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.
No comments:
Post a Comment