×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    1

    Unhandled Exception : close application

    In my application,using browse functionality i am trying to select a file from native directory of a device.I tested this functionality on sony and LG mobile,functionality works fine.

    When i test the same application on Nokia E60 mobile on selection of a file,it throws "Unhandled Exception" .

    I tried to put the code in try and catch block, to print the message then i got null.

    following is the j2me code:

    try
    {
    pictureURI.setString("");
    pictureURI.setString(url);
    display.setCurrent(detailsForm);
    }

    catch (Exception e)
    {
    System.out.println(e);
    showAlert("Exception ===="+e.getMessage());
    }

    What is the issue i am not understanding.

    Thanks & Regards,

    Chandra Prakash

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Unhandled Exception : close application

    Don't use getMessage(), use toString().

    Graham.

  3. #3
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: Unhandled Exception : close application

    Quote Originally Posted by chandrap@inkrea.com View Post
    In my application,using browse functionality i am trying to select a file from native directory of a device.I tested this functionality on sony and LG mobile,functionality works fine.

    When i test the same application on Nokia E60 mobile on selection of a file,it throws "Unhandled Exception" .

    I tried to put the code in try and catch block, to print the message then i got null.

    following is the j2me code:

    try
    {
    pictureURI.setString("");
    pictureURI.setString(url);
    display.setCurrent(detailsForm);
    }

    catch (Exception e)
    {
    System.out.println(e);
    showAlert("Exception ===="+e.getMessage());
    }

    What is the issue i am not understanding.

    Thanks & Regards,

    Chandra Prakash
    have u checked the url, is it null ? check this.
    Also follow Graham's suggestion..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  4. #4
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Unhandled Exception : close application

    also there is abviously a chance that you have an error in the showAlert() mehtod that you're calling in the catch part

Similar Threads

  1. HelloWorld: Unhandled Exception error
    By chylld in forum Mobile Java Tools & SDKs
    Replies: 10
    Last Post: 2009-05-01, 08:22
  2. Replies: 3
    Last Post: 2008-07-01, 11:07
  3. 7654 Application close bug.
    By jeep_ in forum Mobile Java General
    Replies: 0
    Last Post: 2002-09-10, 07:44
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

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