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
New Developer
Posts: 48
Registered: ‎12-11-2008
My Device: Not Specified

"Uncaught Exception when open Dialog box"


Hi guys,

 

Am woking in Blackberry JDE 4.2. Here when i open video link in my browser i need to show one "Dialog box" before opening the browser.... Ya obviously i can display the dialog box .Now i click "Ok" . I got Uncaught Exception....

Am display this dialog box in paint event......... Am also using Try , catch but no use....  got one bug named "java.io.IOException: HTTP response code: 413"

 

Let me know , i have any idea.....

 

 

try
         
          {
             
             
                     bOpenBrow=true;
                    
                       // Dialog.alert("Your device does not support streaming videos.");
                       
                        Dialog.inform("Your device does not support streaming videos.");
                       
                        
                        
                      }
                     
                       catch (Exception e)
                 {
                                    
                System.out.println("Exception at Dialog........ "+e);  
                 } 


Expect uuuuuuu

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: "Uncaught Exception when open Dialog box"

[ Edited ]

I don't see where HTTP 413 response code (requested content is too large) has anything to do with the dialog box.

 

Having said that, I don't think that displaying a modal dialog (or any dialog) from within a paint() event is an great idea, either.

 

 

 

Message Edited by RexDoug on 01-03-2009 11:20 AM
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: "Uncaught Exception when open Dialog box"

Check this link: http://na.blackberry.com/eng/developers/resources/developer_labs.jsp#tab_tab_jde

 

Go step by step, from simple app to more complex.

 

It is not productive to write a complex app without experience with a simpler one.

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

Re: "Uncaught Exception when open Dialog box"

It is doubtful that this exception is caused by the dialog.  Please see the link below for more information on 413 responses.

 

What Is - HTTP 413 Request Entity Too Large
Article Number: DB-00623

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

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