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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 135
Registered: ‎11-14-2010
My Device: BlackBerry Z10 (White)
My Carrier: Vodafone

"No stack trace" appearing in eclipse console

[ Edited ]

I have a very simple Hello World application:

 

public class HelloBlackBerry extends UiApplication {
    
    public static void main( String[] args ) {

        HelloBlackBerry theApp = new HelloBlackBerry();
        theApp.enterEventDispatcher();
    }

    public HelloBlackBerry() {
        
        pushScreen(new HelloBlackBerryScreen());
    }
}

 and a very simple screen:

 

public class HelloBlackBerryScreen extends MainScreen {

    public HelloBlackBerryScreen() {
        super( MainScreen.VERTICAL_SCROLL | MainScreen.VERTICAL_SCROLLBAR );
        setTitle( "HelloBlackBerry" );
        ButtonField b = new ButtonField("Hello!");
        add(b);
    }
}

But when I click on the button I get: "No stack trace" appearing in the simulator output console. As you can see there are no methods which should throw an exception so where does this "No stack trace" come from?

 

Am using the Bold 9930 simulator.

 

 

 

 

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: "No stack trace" appearing in eclipse console

It's just a guess but it could be because there is no listener for the click event...

 

E.

Highlighted
Developer
Posts: 135
Registered: ‎11-14-2010
My Device: BlackBerry Z10 (White)
My Carrier: Vodafone

Re: "No stack trace" appearing in eclipse console

Hmmm, nice idea but it's not that. I tried adding a FieldChangeListener to the ButtonField and it didn't make any difference, still "No stack trace". One thing I have noticed is that it doesn't do it on the 9700 simulator. 9930 simulator bug maybe?