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

Posts: 1
Registered: ‎06-21-2013
My Device: Blackberrry 7
My Carrier: BB

Uncaught Illegal State Exception

[ Edited ]

This is my piece of code 


UiApplication.getUiApplication().invokeLater(new Runnable()
public void run()
for(int j=0;j<credit.length-1;j++)
rdo_l4no =new RadioButtonField("**** **** ****"+credit[j].l4no,rbg,false);


System.out.println( credit.length);


This code is inside imeplements Runnable class under run method, actually the problem is  for loop is not running.   In output log it shows "Uncaught Illegal State Exception" please help me out from this issue. I m new to BB application developing (OS 7)

Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Uncaught Illegal State Exception

welcome to the support forums.

you posted in the Cascades section, i've asked a mod to move your post to the java section.

Check the detail message of the Illegal State Exception, it usually tells you what the issue is.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter