BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-09-2008, 01:23 AM   #1
arun160411
New Member
 
Join Date: May 2008
Model: 7100t
PIN: N/A
Carrier: airtel
Posts: 6
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
hithayath_sait
Thumbs Must Hurt
 
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: Airtel
Posts: 51
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
arun160411
New Member
 
Join Date: May 2008
Model: 7100t
PIN: N/A
Carrier: airtel
Posts: 6
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
hithayath_sait
Thumbs Must Hurt
 
Join Date: Mar 2008
Model: 8820
PIN: N/A
Carrier: Airtel
Posts: 51
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
koedur
Knows Where the Search Button Is
 
Join Date: May 2007
Model: 8800
PIN: N/A
Carrier: Rogers
Posts: 17
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
arun160411
New Member
 
Join Date: May 2008
Model: 7100t
PIN: N/A
Carrier: airtel
Posts: 6
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5 picture

OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5

$12.11



Dell OEM Latitude Rugged Extreme 7404 Docking Connector Circuit Board picture

Dell OEM Latitude Rugged Extreme 7404 Docking Connector Circuit Board

$14.95



Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL picture

Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL

$8.95



Dell OEM Latitude Rugged Extreme 7404 Left and Right Mouse Buttons 00008 picture

Dell OEM Latitude Rugged Extreme 7404 Left and Right Mouse Buttons 00008

$5.95



NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99







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