• 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

HttpConnection and CLDC 1.0

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I'm having some troubles with CLDC 1.0, my Midlet is communicating with the server over HTTP, but if I make some 4 to 6 HttpConnections without restarting the Midlet, it shows me an Exception. I was testing it in a Motorola V3 Black and a Samsung SGH-C200 both CLDC 1.0, but in any CLDC 1.1 device this exception is never thrown, anyone knows why?

Obs.: In Motorola's devices we get the size of the bytes transferred, and it is always something near 6000 bytes, than the Exception occurs.

Are there any limitations?
 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could there be a limitation on the number of connections that can be opened simultaneously ?

Hi Joao,

Can you share the exception being thrown ?

Arnab
 
Joao Eduardo Galli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

sorry to disturb you.... I forgot to close the inputStream...
but why the CLDC 1.1 doesn't have this problem? The Connection closes the InputStream together in CLDC 1.1 ?

thanks
 
Arnb Sen
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you will have the same problem with CLDC 1.1 if you open few more connections.. or it could be due to implementation of the APIs for that phone..

Arnab
 
reply
    Bookmark Topic Watch Topic
  • New Topic