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


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

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

Forum Jump


National Instruments Mainframe Chassis - NI-PXIe-1071 w/Warranty picture

National Instruments Mainframe Chassis - NI-PXIe-1071 w/Warranty

$690.00



Agilent E1301B Mainframe  9-slots with multimeter, totalizer, and relay muxes picture

Agilent E1301B Mainframe 9-slots with multimeter, totalizer, and relay muxes

$350.00



JDSU Viavi T-Berd 2000 Mainframe Only with PM & VFL picture

JDSU Viavi T-Berd 2000 Mainframe Only with PM & VFL

$300.00



Tektronix TM504 Mainframe with PG508 PLUG IN picture

Tektronix TM504 Mainframe with PG508 PLUG IN

$99.99



SHC SYSTEM 6 MAINFRAME + Mixed Modules 6-562,6-201,6-402. picture

SHC SYSTEM 6 MAINFRAME + Mixed Modules 6-562,6-201,6-402.

$110.99



Liquid Filling Machine Automatic Bottle Filler Weighing Filler Microcomputer USA picture

Liquid Filling Machine Automatic Bottle Filler Weighing Filler Microcomputer USA

$306.85







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