GeeCON Prague 2014*
The moose likes Java Micro Edition and the fly likes java.lang.SecurityException:javax.microedition.pim.ContactList.read was denied on Moto Razr V3xxR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "java.lang.SecurityException:javax.microedition.pim.ContactList.read was denied on Moto Razr V3xxR" Watch "java.lang.SecurityException:javax.microedition.pim.ContactList.read was denied on Moto Razr V3xxR" New topic
Author

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

Roshan Chacko
Greenhorn

Joined: Jun 25, 2004
Posts: 5
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


Everything's Possible
Roshan Chacko
Greenhorn

Joined: Jun 25, 2004
Posts: 5
Can anyone help on this...IT IS URGENT
Roshan Chacko
Greenhorn

Joined: Jun 25, 2004
Posts: 5
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

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