×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    20

    why EmptyStackException.

    hi folks,

    i am getting EmptyStackException on Blackberry 7xxx Series device but i tested the same application on all the vendors, like nokia, sony ericsson and etc. even the application working fine on Blackberry 8xxx series devices.

    now i keen to know the route of the EmptyStackException. what is the scenario it may come?

    Thanks in advance.

    Regards,
    Nagarajan. K

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    370

    Re: why EmptyStackException.

    Doesn't this query belong to Blackberry forums?
    Regards

    - MVP
    "Dare To Dream" - A.P.J.Kalam

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: why EmptyStackException.

    Hi Nagarajan,

    as from EmptyStackException JavaDocs:
    Thrown by methods in the Stack class to indicate that the stack is empty.
    So, I think you should definitely debug your Stack instances to check when this happens (usually, when calling pop() or peek()), and then look for possible causes.

    Pit

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: why EmptyStackException.

    Hi,
    I hope through the post of the pit you have the answer..just adding to the same..
    as java docs says.....
    Runtime exception which is thrown when pop/peek method of stack is executed on a stack which is empty
    So you check that why and when this is happening ..
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •