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
Developer
donturner
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.

 

 

 

 

Please use plain text.
Developer
maadani
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.

Please use plain text.
Developer
donturner
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? 

 

Please use plain text.