• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.SecurityException:javax.microedition.pim.ContactList.read was denied on Moto Razr V3xxR

 
Roshan Chacko
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing an issue where i get the following exception when i try to access the Phone Contacts on Moto Razr V3xxR
java.lang.SecurityException:javax.microedition.pim.ContactList.read was denied.
I read on many sites that permission needs to be granted.
So i added the permisssion
MIDlet-Permissions: javax.microedition.pim.ContactList.read
To the jad file and the manifest file. As soon as I add it in the jad i get and error upfront
Authorization Error:Application was not installed
if i remove it from the jad and put it in manifest it gives me
Invlaid File.
I know that i need to grant the permission to access Phone Contacts. But some how this is not working.
The Motorola Razr V3xxR specification says that it does support JSR 75 PIM API. But how do i implement it then.
Has anybody faced this issue. Do write back this issue is urgent

regards
Roshan
 
Roshan Chacko
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help on this...IT IS URGENT
 
Roshan Chacko
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution to the issue.
The Motorola phones do not recognise Versign of Thwate certificated applications to access the API.
Motorola Web Page
Inorder to access the PIM API. We need a Motorolas Certificate. Motorola does provide with a Developers Certificate.
Also make it sure when providing with permission:
1) in the Manifes and the .jad file the Permissions should be the same
2) PushRegistry doesnt require to be mentioned in the Permissions
3) Only specify those APIS which you will use. Nothing more that what is useful in your application.
I tried using Motorola SDK to sign the application but found issues with it when i tried to sign a ofstrucated jar. Using the Java SDK Utilties=>Signing Midlet is preferable.

These are my views and observations that came accross in the scenarios that i worked on and could be coicidental
Atlast I got it working. Thanks

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic