Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
heather_1
Posts: 83
Registered: 05-24-2011
My Carrier: XXX
Accepted Solution

No stack trace - only some of the time with SplashScreen

Hi all,

 

I have a bit of an intriguing problem. I am loading an app will a splashscreen and about half the time I get a no stack trace error. The splashscreen is pushed while I am getting data and images from a remote server, then parsing the data. This is the code I get a no stack trace on:

                    _app.invokeLater( new Runnable() {                
                        public void run() {                    
                            // This represents the next step after loading. This just shows 
                            // a dialog, but you could push the applications main menu screen.
                         
								try {
									getUiEngine().pushScreen(new DirectoryScreen(sqlmanager));
									_app.getActiveScreen().getScreenBelow().close();
								} catch (Exception e) {
									// TODO Auto-generated catch block
									System.out.println("in the runnable exception: " + e.getMessage());
									
									e.printStackTrace();
								}
							
                        }
                    });

 

 

Typically, the error message is something like "in the runnable exception: Index -3 >= 4

 

Help!

 

Please use plain text.
Developer
YamilBracho
Posts: 485
Registered: 05-31-2010
My Carrier: Movistar

Re: No stack trace - only some of the time with SplashScreen

Check the code in DirectoryScreen. Use a step by step debugging...

Please use plain text.