Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

"Exceeded the limit of number of bytes..."

We have an app that makes http connections to download data. The connections are made using the device defaults (no connection parameters appended). When I test the app using the latest MDS simulator, I sometimes get a SocketBaseIOException with the following message: "Exceeded the limit of number of bytes allowed per connection!" after downloading a very small amount of data (typically under 30K bytes from the server). I realize that transcoding can expand the amount of data flowing through the connection, but this seems like a ridiculously low threshold. I thought that the limits were on the order of megabytes, not tens of kilobytes.

 

There's nothing in the MDS log to suggest why this is happening, or even that it did happen. Also, this only happens under some simulators--with the same MDS simulator session, I've seen the exact same http connection fail with 8310 and 9000 simulators, and succeed with 8320 and 9630 simulators.

 

Can someone explain what's happening here and what I can do about it (other than adding a "x-rim-transcode-content:none" header)?




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.
Highlighted
Developer
Posts: 212
Registered: ‎07-18-2008
My Device: Storm 9550

Re: "Exceeded the limit of number of bytes..."

check out this link:

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

 

If your problem was solved, please mark answer as "Accepted solution"
If your want to thank, click the "kudo" symbol
___________
visit me: http://mobilejavadevelopment.blogspot.com/
visit the Berlin BlackBerry Developer Group: http://berlinblackberrydevelopers.blogspot.com/
Developer
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

Re: "Exceeded the limit of number of bytes..."

I'm aware of that. As far as I can tell from reading it, there's no reason that the connection should **bleep** out after delivering less than 30 KB. The tightest limit mentioned is 256 KB.

 

Also, I'm receiving an I/O exception, not a 213 HTTP response code.

 

Finally, if the issue is some MDS server setting, wouldn't the same behavior occur on all simulators? As I mentioned, with the same session of the MDS simulator, I've seen some simulators succeed and others fail when attempting to download exactly the same data file from my server.




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.
Contributor
Posts: 21
Registered: ‎04-21-2011
My Device: Developer
My Carrier: ----

Re: "Exceeded the limit of number of bytes..."

Hi have any of you found nay solution to this?

 

  I am facing the same issue...

[trace] IOException...net.rim.device.cldc.io.ippp.SocketBaseIOException: [0.0] Exceeded the limit of number of bytes allowed per connection!

 

 The HTTP response coed is 200 and not 413.

 

 

 

 

Contributor
Posts: 12
Registered: ‎06-24-2012
My Device: 9800
My Carrier: developer

Re: "Exceeded the limit of number of bytes..."

hi everyone ,

 

 

  I too have this issue , All i get is  just the exception  in response......

 

  Does anyone have a solution to this ??