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
Highlighted
Developer
Posts: 40
Registered: ‎09-03-2008
My Device: Not Specified
Accepted Solution

Runtime exception: ApplicationRegistry.waitFor() timeout

We have a 8800 device (firmware 4.1.2.79)  that has runtime exception every time on battery reset. Morganphone is an inhouse application built on 4.1.0 JDE.  This device also shows same exception of ApplicationMenuItemRepository.addMenuItem on another inhouse application.  I suspect it is device specific, but what causes this runtime exception? 

 

Name: RuntimeException

GUID: 9c3cd62e3320b498

Time: Aug 06, 2008 09:33:48

ApplicationRegistry.waitFor(0x1c83a547b3934c66) timeout

net_rim_cldc-4

ApplicationRegistry

<private>

0x483D

net_rim_cldc-4

ApplicationRegistry

waitFor

0x4710

net_rim_cldc-4

ApplicationRegistry

waitFor

0x467B

net_rim_bb_apps_framework-2

TaskCollectionHolder

getTaskCollection

0x265C

net_rim_pdap-1

ToDoListImpl

<init>

0x8E9

net_rim_cldc-1

Class

newInstance

0x2186

net_rim_pdap

ToDoListFactory

createToDoList

0xCDA5

net_rim_pdap

PIMImpl

openPIMList

0xA13D

net_rim_bbapi_menuitem

SdkProxyVerb

<clinit>

0x897

net_rim_bbapi_menuitem

ApplicationMenuItemRepository

addMenuItem

0x27F

net_rim_bbapi_menuitem

ApplicationMenuItemRepository

addMenuItem

0xDC

com_ms_morganphone

MorganPhone

main

0x1265

 

Thanks,

 

June Jorgensen

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Runtime exception: ApplicationRegistry.waitFor() timeout

What action(s) is your application taking when the exception is thrown?  Do you know what line of code is triggering the exception?  You can connect the BlackBerry to your PC via USB and step through the application to determine this.  To do so select the Debug menu of the BlackBerry JDE, then Attach to, Handheld, select your PIN and step through breakpoints set in your application.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Runtime exception: ApplicationRegistry.waitFor() timeout

Something quick for you to try before working through what Mark has suggested. 

 

I've had a very similar problem in the past, as documented on the old forum, and someone pointed me at this thread:

http://www.blackberryforums.com/general-blackberry-discussion/12488-urgent-help-needed.html

 

To summarize, make sure Phone, Tasks and Memopad are all installed on the device. From your stack trace, I'm betting that Tasks is missing (ToDoList).  Install this and I suspect all will be well.

Developer
Posts: 40
Registered: ‎09-03-2008
My Device: Not Specified

Re: Runtime exception: ApplicationRegistry.waitFor() timeout

Thanks for all the responses.

 

The exceptions were thrown when one application tries to addMenuItem to EMAIL and another application tries to addMenuItem to PHONE, ADDRESSBOOK and CALENDAR (not sure which one without running the application in debugging with the berry).

 

I will ask the device owner to check Phone/Tasks/Memopad first.

 

Thanks,

 

June 

Developer
Posts: 40
Registered: ‎09-03-2008
My Device: Not Specified

Re: Runtime exception: ApplicationRegistry.waitFor() timeout

Bingo. User did remove tasks from the device.

 

Is there a logical reason why Phone,Tasks and Memopad are tied to addMenuItem call? Is this a firmware bug?

 

June

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Runtime exception: ApplicationRegistry.waitFor() timeout

Since the ApplicationMenuItemRepository class can add an ApplicationMenuItem to any of these applications, it relies on them when adding menu items.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 40
Registered: ‎09-03-2008
My Device: Not Specified

Re: Runtime exception: ApplicationRegistry.waitFor() timeout

Thank you for the explanation. Case closed.

 

June