×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    4

    Exclamation java.lang.IllegalArgumentException on n78 caused by PIM API (JSR75)

    I m facing a serious problem using functionality of the PIM api on the nokia n78.

    contactList.isSupportedField(Contact.NAME)
    contactList.isSupportedField(Contact.TEL)

    both calls return "true" however the command

    contact.getString(Contact.NAME, 0)

    results with an java.lang.IllegalArgumentException

    Thx in advance

  2. #2
    Registered User
    Join Date
    Jan 2008
    Location
    Pune
    Posts
    24

    Re: java.lang.IllegalArgumentException on n78 caused by PIM API (JSR75)

    Hi Lukas,
    just use Contact.FORMATTED_NAME instead of NAME

    actually it is device specific, NAME my not work in Nokia. Just check with FORMATTED_NAME and let me know.

    Anjan

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    4

    Unhappy Re: java.lang.IllegalArgumentException on n78 caused by PIM API (JSR75)

    unfortunately this solution did not fix my problem.

    The command

    contactList.getSupportedFields()

    returns the following values

    110 106 107 115 103 16797699 16797705 16797698 109 16797700 116 16797701 16797703 16797702 118 100 101 16797704 108 102 16797697 117 114

    as you can easily notice the FORMATED_NAME field (105) is not supported.
    This is why this time the app thrown the following exception

    javax.microedition.pim.UnsupportedFieldException: Unsupported Field: 105

    Does anyone has similar problem?
    May i ask any Nokia developer to comment my problem ?

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Re: java.lang.IllegalArgumentException on n78 caused by PIM API (JSR75)

    Hi All,

    I'm having this same problem on the Nokia N96, since it's from the same family of devices.

    Is there any known solution to this?

    -David H

  5. #5
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Re: java.lang.IllegalArgumentException on n78 caused by PIM API (JSR75)

    Quote Originally Posted by ThunderD View Post
    Hi All,

    I'm having this same problem on the Nokia N96, since it's from the same family of devices.

    Is there any known solution to this?

    -David H
    OK, I got this working now.

    This family uses Contact.NAME but is stored as a string array. so you must use the getstringarray method rather than the getstring.

    It throws the exception because it's not stored as a String.

    -Dave

Similar Threads

  1. PIM API and application signing
    By JJAAZZZ in forum Mobile Java General
    Replies: 1
    Last Post: 2008-07-28, 12:16
  2. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 29
    Last Post: 2008-06-30, 11:47
  3. PIM API is giving exception or not reading any contact
    By mobile_expert in forum Mobile Java General
    Replies: 0
    Last Post: 2008-04-25, 15:29
  4. PIM Api
    By cars2004 in forum Mobile Java General
    Replies: 0
    Last Post: 2005-02-11, 04:04
  5. Bluetooth API caused an error (0x8004320A, NokiaCL.Servicelayer)
    By acomber in forum Bluetooth Technology
    Replies: 4
    Last Post: 2004-12-26, 22:18

Posting Permissions

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