BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-09-2008, 01:23 AM   #1 (permalink)
New Member
 
Join Date: May 2008
Model: 7100t
PIN: N/A
Carrier: airtel
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default j2me application problem on blackberry

Please Login to Remove!

Hi, we developed a j2me application and is running fine on normal java enabled mobiles. and now we want to port that application to blackberry.. but when we installed this application in blackberry.. the application behaves very inconsistently.. the major problem we are facing is that when we try to run that app. in blackberry, the emulator shows that "too many threads exception" and exits. we are creating about 30 threads in application,and we wonder how blackberry is not able to handle that many threads, while the normal mobiles are able to handle them...So please do help us in this issue.
Offline  
Old 05-09-2008, 01:36 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: Airtel
Posts: 51
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

How did u port the application..??

Please giv info about thread Handling in your application.

So that i can make a move.

Regards,
Hithayath.
Offline  
Old 05-09-2008, 01:44 AM   #3 (permalink)
New Member
 
Join Date: May 2008
Model: 7100t
PIN: N/A
Carrier: airtel
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by hithayath_sait View Post
Hi,

How did u port the application..??

Please giv info about thread Handling in your application.

So that i can make a move.

Regards,
Hithayath.
we are creating http connections for getting images and xml files from our server and and each http connection runs in one separate thread. after fetching the data that thread dies.this is how we are creating threads and we are using jde version 4.0.2 to build the application.. as of now our code does not use any blackberry api , we thought we could just see how it goes on blackberry before changing to the blackberry event handling mechanism.
Offline  
Old 05-09-2008, 06:19 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: Airtel
Posts: 51
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did u start MDS along with the simulator while running the application.?

What kind of exceptions are u getting..??
Offline  
Old 05-09-2008, 12:08 PM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2007
Model: 8800
PIN: N/A
Carrier: Rogers
Posts: 17
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by arun160411 View Post
Hi, we developed a j2me application and is running fine on normal java enabled mobiles. and now we want to port that application to blackberry.. but when we installed this application in blackberry.. the application behaves very inconsistently.. the major problem we are facing is that when we try to run that app. in blackberry, the emulator shows that "too many threads exception" and exits. we are creating about 30 threads in application,and we wonder how blackberry is not able to handle that many threads, while the normal mobiles are able to handle them...So please do help us in this issue.
RIM's JVM implementation only allows up to 16 threads per process. This is from DB-00474 (Livelink - Redirection)
Offline  
Old 05-10-2008, 12:09 AM   #6 (permalink)
New Member
 
Join Date: May 2008
Model: 7100t
PIN: N/A
Carrier: airtel
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi, now we tried with simple application also like fetching one image from website and pasting it in mobile screen.. this also producing uncaught exceptions.. im running the MDS also.running it on 4.1.0 JDE . this we tested on device with blackberry 8700 on airtel network also..but its not working.can u tell me apart from providing the blackberry services, Do airtel has to provide some more setting to access the data from net... from blackbeery browser im able to connect to any website..
Offline  
Closed Thread


Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.