You Are Here:

Community: Developer Discussion Boards

#1 Old Global root overflow - 2003-05-13, 10:21

Join Date: May 2003
Posts: 9
fpony
Offline
Registered User
Hello, everyone!

I am trying to build a networking midlet, and I am using HttpConnection to transfer data to and from the server. I have to open a new HttpConnection everytime i need to send data to or get data from the server. The data transmission part now works, but the midlet is not stable, and it always ends up with a "Global root overflow" exception. Anyone has any idea about this exception?

I have searched the web and the only one result I got is that:

"Global root overflow" means that the native code is registering too many "permanent references" with the garbage collector. Try reusing the connection, allocation of connection-specific data (like socket descriptor etc) might be "leaking".

Well, I think I can't "reuse" the connection, because as I tested out on the phone (Nokia 6610, not the emulator), there is no way I can use persistent connection, nor chunked HTTP. Seems like one of the bugs in the Nokia HTTP implementation.

Any comment are welcomed.
Reply With Quote

#2 Old 2003-05-30, 15:55

Join Date: Mar 2003
Posts: 112
ossipetz
Offline
me-2-j :)
well well well who knows?

keep in mind to close all connection (http, input streams, output streams)

and close the streams first before you close the connection.

midp behaves really strange in the order of commands...
Reply With Quote

#3 Old 2003-06-18, 10:29

Join Date: Mar 2003
Posts: 382
jalev's Avatar
jalev
Offline
Forum Nokia Expert
Hello

MIDlet using Http connection causes sometimes
"global root overflow" error message.

In the software versions before January 2003 there was an error where the HTTP API could cause a global root overflow.
Since January 2003 problem was fixed (7210) and does not accur with these later SW versions.

The global root overflow only occurs if a lot of HTTP requests are made and there is no data in the response,
so the simple solution is to ensure that the problem does not occur on any build is to make sure each
HTTP response does contain some body data, the MIDlet can read and discard this if none is expected.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia