Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stack overflow

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am encountering a "Stack overflow at line: 0" message
upon receiving the result of an RPC invocation.

I have this problem in gwt-2.0.3 in IE 6.(not in Mozilla)
i am calling RPC call. in return it returns huge amount of data. containing many lists, hash-sets. is this problem is due to this RPC call.
what should i do to resolve this problem??

also some time i got message than internet explore to run slow because of this script..
check the attachments...

refer
Google Issue 1438
also.
script-slow.JPG
[Thumbnail for script-slow.JPG]
Script
stack-ovetflow.JPG
[Thumbnail for stack-ovetflow.JPG]
Stack overflow
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yikes.. it's difficult to say what the exact source of your problem is without more information.

I would suggest a couple of places to look.

Are all your objects being returned by the RPC call serialized?

In my project we found the best type of objects to pass to the client are just plain old java objects (POJO's). If you can boil all your class fields down to primitives like String or int it works even better.

Remember the only thing you should be passing down to the client is the absolute minimum information needed for the Presenter (if you are using the MVP pattern) to render the display. Any business logic or complex calculations should be done on the server before generating your response.
 
author
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

The idea about sending the minimum possible data is valid: check pages 32 through 34 in this presentation from the Google 2009 IO conference, and pages 14 through 18 in this other presentation from the 2010 conference. There were other conferences that pointed to this idea (sending id's instead of objects, for example) but I don't remember which -- sorry!

Hope this helps!

 
Do you pee on your compost? Does this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic